mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 06:29:51 +03:00
Update
This commit is contained in:
parent
5f66a15635
commit
107c5946fa
|
@ -445,7 +445,10 @@ export default function (
|
||||||
|
|
||||||
if (!tooltipOptions.disabled) {
|
if (!tooltipOptions.disabled) {
|
||||||
nodeEnter.call(
|
nodeEnter.call(
|
||||||
tooltip('tooltip', { ...tooltipOptions, root })
|
tooltip<HierarchyPointNodeWithPrivateChildren<InternalNode>>(
|
||||||
|
'tooltip',
|
||||||
|
{ ...tooltipOptions, root }
|
||||||
|
)
|
||||||
.text((d, i) => getTooltipString(d, i, tooltipOptions))
|
.text((d, i) => getTooltipString(d, i, tooltipOptions))
|
||||||
.styles(tooltipOptions.style)
|
.styles(tooltipOptions.style)
|
||||||
);
|
);
|
||||||
|
@ -501,9 +504,9 @@ export default function (
|
||||||
|
|
||||||
// fade the text in and align it
|
// fade the text in and align it
|
||||||
nodeUpdate
|
nodeUpdate
|
||||||
.select('text')
|
.select<SVGTextElement>('text')
|
||||||
.style('fill-opacity', 1)
|
.style('fill-opacity', 1)
|
||||||
.attr('transform', function transform(this: SVGGraphicsElement, d) {
|
.attr('transform', function transform(d) {
|
||||||
const x =
|
const x =
|
||||||
(d.children || d._children ? -1 : 1) *
|
(d.children || d._children ? -1 : 1) *
|
||||||
(this.getBBox().width / 2 + nodeStyleOptions.radius + 5);
|
(this.getBBox().width / 2 + nodeStyleOptions.radius + 5);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user