use foreach function

This commit is contained in:
casperlamboo 2017-11-28 15:44:21 +01:00
parent 2f1c6da5e1
commit c580d4e5b8
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ function shapeToPointsRaw(shapeData) {
new ClipperShape([points, ...holes], true, true, false, false)
.simplify('pftEvenOdd')
.seperateShapes()
.map(shape => {
.forEach(shape => {
const [points, ...holes] = shape
.mapToLower()
.map(pathToVectorPath)