From c580d4e5b8bc840841b999f492f02a0a457c4887 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Tue, 28 Nov 2017 15:44:21 +0100 Subject: [PATCH] use foreach function --- src/shape/shapeToPoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape/shapeToPoints.js b/src/shape/shapeToPoints.js index bcfc049..57eb6c9 100644 --- a/src/shape/shapeToPoints.js +++ b/src/shape/shapeToPoints.js @@ -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)