use foreach function

This commit is contained in:
casperlamboo 2017-11-28 15:44:21 +01:00
parent 2f1c6da5e1
commit c580d4e5b8

View File

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