0
0
mirror of https://github.com/Doodle3D/Doodle3D-Core.git synced 2025-05-10 17:33:21 +02:00

use foreach function

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

@ -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)