Skip to content

Commit

Permalink
Fix Path vs. CompoundPath
Browse files Browse the repository at this point in the history
Otherwise, it will strip out the move commands and make paths be continuous even tho they shouldn't be.

Co-authored-by: Jakob Guddas <github@jguddas.de>
  • Loading branch information
MarcelRobitaille and jguddas committed Feb 21, 2023
1 parent e9c92e5 commit b97526b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/simplifyPaths.js
Expand Up @@ -96,7 +96,7 @@ exports.fn = (_root, params) => {
path
);
} else if (node.name === 'path') {
const path = new paper.Path(node.attributes.d);
const path = new paper.CompoundPath(node.attributes.d);
node.attributes.d = simplify(
pathParams.simplifyThreshold,
floatPrecision,
Expand Down

0 comments on commit b97526b

Please sign in to comment.