Skip to content

Commit

Permalink
Fix type errors in buildDashedLine.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ShukantPal committed Oct 7, 2024
1 parent 9edcf44 commit e57270a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svg/src/utils/buildDashedLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ export function buildDashedLine(graphicsData: GraphicsData, graphicsGeometry: Gr
const firstPoint = new Point(points[0], points[1]);
const lastPoint = new Point(points[points.length - 2], points[points.length - 1]);

const closedShape = shape.type !== SHAPES.POLY || shape.closeStroke;
const closedShape = shape.type !== 'polygon' || shape.closePath;
const closedPath = Math.abs(firstPoint.x - lastPoint.x) < eps
&& Math.abs(firstPoint.y - lastPoint.y) < eps;

Expand Down

0 comments on commit e57270a

Please sign in to comment.