Skip to content

Commit

Permalink
wrong parser for scale in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexus committed Dec 27, 2024
1 parent 83de4bd commit 05c9139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/deepnest.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@
config.timeRatio = n;
}

if (c.scale && parseInt(c.scale) > 0) {
config.scale = parseInt(c.scale);
if (c.scale && parseFloat(c.scale) > 0) {
config.scale = parseFloat(c.scale);
}

SvgParser.config({
Expand Down

0 comments on commit 05c9139

Please sign in to comment.