Skip to content

Commit

Permalink
fix: wrong ctx.restore
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Jun 17, 2024
1 parent 5f6fe06 commit 4fbdd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/graphs/path/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ export class SuikaPath extends SuikaGraphics<PathAttrs> {
if (pathItem.closed) {
ctx.closePath();
}
ctx.restore();
}

for (const paint of fill ?? []) {
Expand Down Expand Up @@ -309,6 +308,7 @@ export class SuikaPath extends SuikaGraphics<PathAttrs> {
}
}
ctx.closePath();
ctx.restore();
}

override toJSON() {
Expand Down

0 comments on commit 4fbdd4b

Please sign in to comment.