@oncokb/oncotree
Advanced tools
Comparing version 0.8.3 to 0.8.4
@@ -661,4 +661,9 @@ import "./index.css"; | ||
} | ||
__privateSet(this, _viewerHeight, containerNode.clientHeight); | ||
__privateSet(this, _viewerWidth, containerNode.clientWidth); | ||
if (containerNode.clientHeight < containerNode.clientWidth) { | ||
__privateSet(this, _viewerHeight, containerNode.clientWidth); | ||
__privateSet(this, _viewerWidth, containerNode.clientHeight); | ||
} else { | ||
__privateSet(this, _viewerHeight, containerNode.clientHeight); | ||
__privateSet(this, _viewerWidth, containerNode.clientWidth); | ||
} | ||
__privateSet( | ||
@@ -758,10 +763,2 @@ this, | ||
const scaleY = __privateGet(this, _viewerHeight) / (height + 75); | ||
window.addEventListener("resize", () => { | ||
const scaleX2 = containerNode.clientWidth / (width + 75); | ||
const scaleY2 = containerNode.clientHeight / (height + 75); | ||
__privateGet(this, _zoomListener).scaleTo( | ||
__privateGet(this, _svg), | ||
Math.min(scaleX2, scaleY2), | ||
); | ||
}); | ||
__privateGet(this, _zoomListener).scaleTo( | ||
@@ -768,0 +765,0 @@ __privateGet(this, _svg), |
{ | ||
"name": "@oncokb/oncotree", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"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
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
110137
2655