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 Mar 19, 2024
1 parent fdc0490 commit ec0f227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/simplifyPaths.js
Expand Up @@ -93,7 +93,7 @@ export const 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 ec0f227

Please sign in to comment.