Skip to content

Commit

Permalink
Add explicit types for Clipper union method
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Jun 11, 2024
1 parent 2b99a5a commit 9e01bf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ClipperPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ export class ClipperPaths {
const union = new ClipperPaths();
union.scalingFactor = this.scalingFactor;
c.AddPaths(this.paths, ClipperLib.PolyType.ptSubject, true);
c.Execute(ClipperLib.ClipType.ctUnion, union.paths);
c.Execute(ClipperLib.ClipType.ctUnion,
union.paths,
ClipperLib.PolyFillType.ClipperLib.PolyFillType.pftNonZero,
ClipperLib.PolyFillType.ClipperLib.PolyFillType.pftNonZero
);
return union;
}

Expand Down

0 comments on commit 9e01bf8

Please sign in to comment.