Skip to content

Commit

Permalink
Fix svgProps.stylePathUtilization null deference
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrjurkiewicz committed Aug 20, 2024
1 parent ec8029c commit a9667ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,8 @@ <h2>Topology properties</h2>
svgProps.originalStrokeWidth = parseFloat(svgProps.stylePath.style.strokeWidth);
svgProps.originalCircleRadius = parseFloat(svgProps.styleCircle.style.r);
svgProps.originalFontSize = parseFloat(svgProps.styleText.style.fontSize);
svgProps.stylePathUtilization.style.fontSize = `${svgProps.originalStrokeWidth}px`;
if (svgProps.stylePathUtilization)
svgProps.stylePathUtilization.style.fontSize = `${svgProps.originalStrokeWidth}px`;

svgProperties = svgProps;
}
Expand Down

0 comments on commit a9667ed

Please sign in to comment.