From 4c59dcd8ca410bb7bda2d9fb10972ed2dc6ff16c Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Tue, 28 May 2019 11:50:07 +0800 Subject: [PATCH] fix(line) size --- src/geom/shape/line.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/geom/shape/line.js b/src/geom/shape/line.js index c3849a8f8d..231ab17c82 100644 --- a/src/geom/shape/line.js +++ b/src/geom/shape/line.js @@ -83,7 +83,7 @@ export function Line(path, props, positionsIndex, lengthPerDashSegment = 200) { colors.push(...color); pickingIds.push(id); sizes.push(size[0]); - point[2] = size[1]; + point[2] = size[1] || 0; positions.push(...point); if (pointIndex === 0 || pointIndex === 1) { @@ -109,7 +109,6 @@ export function Line(path, props, positionsIndex, lengthPerDashSegment = 200) { attrDistance = attrDistance.map(d => { return d / totalLength; }); - return { positions, normal,