diff --git a/src/GestureTool.ts b/src/GestureTool.ts index 2c65d2e..dd8d647 100644 --- a/src/GestureTool.ts +++ b/src/GestureTool.ts @@ -308,7 +308,7 @@ export class Drawing extends StateNode { return this.shapeType !== "highlight" } - getIsClosed(segments: TLDrawShapeSegment[], size: TLDefaultSizeStyle) { + getIsClosed(segments: TLDrawShapeSegment[]) { if (!this.canClose()) return false const strokeWidth = STROKE_WIDTH @@ -429,7 +429,7 @@ export class Drawing extends StateNode { if (this.canClose()) { ; (shapePartial as TLShapePartial).props!.isClosed = - this.getIsClosed(newSegments, shape.props.size) + this.getIsClosed(newSegments) } this.editor.updateShapes([shapePartial])