Skip to content

Commit

Permalink
Update path.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinten authored Aug 11, 2024
1 parent c1f0c5a commit fc48674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/draw/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ export default (options = {}) => {
]);
// normalize matrix, puts the origin in the center
let n = new DOMMatrix([1, 0, 0, 1, -ow / 2, -oh / 2]);
let p = new Path2D();
paths.forEach((path, i) => {
let p = new Path2D();
let np = new Path2D();
np.addPath(new Path2D(path), n);
p.addPath(np, m);
ctx.fill(p);
});
ctx.fill(p);
};
if (!options.url) {
ow = options.w;
Expand Down

0 comments on commit fc48674

Please sign in to comment.