diff --git a/src/geo/paths.js b/src/geo/paths.js index ddc26d62..fa0c7129 100644 --- a/src/geo/paths.js +++ b/src/geo/paths.js @@ -166,20 +166,30 @@ function pointsToPath(points, offset, open, miter = 1.5) { // calculate segment normals which are used to calculate vertex normals // next segment info is associated with the current point const nupoints = []; - for (let i=0, l=points.length; i 2) || (!open && length > 3); + for (let i=0; i