Skip to content

Commit 8d746fc

Browse files
committed
update clipper version
1 parent 8924fe3 commit 8d746fc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ System.config({
1616
map: {
1717
"babel": "npm:[email protected]",
1818
"babel-runtime": "npm:[email protected]",
19-
"clipper-js": "github:Doodle3D/[email protected].0",
19+
"clipper-js": "github:Doodle3D/[email protected].2",
2020
"core-js": "npm:[email protected]",
2121
"tape": "npm:[email protected]",
22-
"github:Doodle3D/[email protected].0": {
22+
"github:Doodle3D/[email protected].2": {
2323
"clipper-lib": "npm:[email protected]"
2424
},
2525
"github:jspm/[email protected]": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"lib": "src"
5959
},
6060
"dependencies": {
61-
"clipper-js": "github:Doodle3D/clipper-js@^1.0.0"
61+
"clipper-js": "github:Doodle3D/clipper-js@^1.0.2"
6262
},
6363
"devDependencies": {
6464
"babel": "npm:babel-core@^5.8.24",
@@ -68,6 +68,6 @@
6868
}
6969
},
7070
"dependencies": {
71-
"clipper-js": "1.0.0"
71+
"clipper-js": "1.0.2"
7272
}
7373
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function(paths, point, {
2525
// convert lines to polygons (this gives lines width)
2626
.offset(lineWidth, { jointType: 'jtMiter', endType: 'etOpenSquare', miterLimit })
2727
// union all overlapping paths
28-
.removeOverlap()
28+
.simplify('pftNonZero')
2929
// make all holes outlines and all outlines holes
3030
.reverse()
3131
// seperate all shapes into (these all all plausible fills)

0 commit comments

Comments
 (0)