From 129d72cd58ae2b30e77fbfd08fa0e8723494a0b4 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 29 Jul 2025 23:01:37 -0400 Subject: [PATCH] fix gesturetool --- src/GestureTool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])