Skip to content

Commit ea8960d

Browse files
committed
merging
2 parents de94544 + 85c472e commit ea8960d

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

package-lock.json

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/components/PerfView.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ const PerfView = (props:PerfViewProps) => {
123123
node.exit().remove();
124124

125125
// Zoom size of nodes and labels to focus view on root node
126-
zoomViewArea([packedRoot.x, packedRoot.y, packedRoot.r * 2]);
126+
if ((!Number.isNaN(packedRoot.x)) && (!Number.isNaN(packedRoot.y)) && (!Number.isNaN(packedRoot.r))) {
127+
zoomViewArea([packedRoot.x, packedRoot.y, packedRoot.r * 2]);
128+
}
127129

128130
// Zoom/relocated nodes and labels based on dimensions given [x, y, r]
129131
function zoomViewArea(newXYR) {

0 commit comments

Comments
 (0)