@oncokb/oncotree
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -52,2 +52,3 @@ import "./index.css"; | ||
_tooltipContainer, | ||
_showTooltipTimeout, | ||
_isHoveringTooltip, | ||
@@ -243,2 +244,3 @@ _isHoveringNode, | ||
__privateAdd(this, _tooltipContainer); | ||
__privateAdd(this, _showTooltipTimeout); | ||
__privateAdd(this, _isHoveringTooltip, false); | ||
@@ -358,2 +360,3 @@ __privateAdd(this, _isHoveringNode, false); | ||
__publicField(this, "enterCopyJsonMode", (copyHandlers) => { | ||
__privateGet(this, _svg).style("cursor", "copy"); | ||
__privateGet(this, _svgGroup) | ||
@@ -386,2 +389,3 @@ .selectAll("g.node") | ||
__publicField(this, "exitCopyJsonMode", () => { | ||
__privateGet(this, _svg).style("cursor", "auto"); | ||
__privateGet(this, _svgGroup) | ||
@@ -523,15 +527,23 @@ .selectAll("g.node") | ||
.on("mouseover", (event, d) => { | ||
__privateSet(this, _isHoveringNode, true); | ||
__privateGet(this, _tooltipContainer) | ||
.transition() | ||
.duration(200) | ||
.style("opacity", 1) | ||
.style("pointer-events", "all"); | ||
__privateGet(this, _tooltipContainer) | ||
.html(buildTooltip(d).outerHTML) | ||
.style("left", `${event.pageX - 12}px`) | ||
.style("top", `${event.pageY + 12}px`); | ||
clearTimeout(__privateGet(this, _showTooltipTimeout)); | ||
__privateSet( | ||
this, | ||
_showTooltipTimeout, | ||
setTimeout(() => { | ||
__privateSet(this, _isHoveringNode, true); | ||
__privateGet(this, _tooltipContainer) | ||
.transition() | ||
.duration(200) | ||
.style("opacity", 1) | ||
.style("pointer-events", "all"); | ||
__privateGet(this, _tooltipContainer) | ||
.html(buildTooltip(d).outerHTML) | ||
.style("left", `${event.pageX - 12}px`) | ||
.style("top", `${event.pageY + 12}px`); | ||
}, 300), | ||
); | ||
}) | ||
.on("mouseout", () => { | ||
__privateSet(this, _isHoveringNode, false); | ||
clearTimeout(__privateGet(this, _showTooltipTimeout)); | ||
setTimeout(() => { | ||
@@ -719,2 +731,3 @@ if ( | ||
__privateSet(this, _isHoveringTooltip, false); | ||
clearTimeout(__privateGet(this, _showTooltipTimeout)); | ||
setTimeout(() => { | ||
@@ -762,2 +775,3 @@ if ( | ||
_tooltipContainer = new WeakMap(); | ||
_showTooltipTimeout = new WeakMap(); | ||
_isHoveringTooltip = new WeakMap(); | ||
@@ -764,0 +778,0 @@ _isHoveringNode = new WeakMap(); |
{ | ||
"name": "@oncokb/oncotree", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/oncotree.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
109493
2639