From b01cb9abf844b0e0dc9a52b23be598bccdcb6c56 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 29 Jul 2025 22:49:27 -0400 Subject: [PATCH] fix gesturetool for vercel --- src/GestureTool.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GestureTool.ts b/src/GestureTool.ts index 6833296..2c65d2e 100644 --- a/src/GestureTool.ts +++ b/src/GestureTool.ts @@ -373,7 +373,6 @@ export class Drawing extends StateNode { const { id, - props: { size }, } = initialShape const shape = this.editor.getShape(id)! @@ -430,7 +429,7 @@ export class Drawing extends StateNode { if (this.canClose()) { ; (shapePartial as TLShapePartial).props!.isClosed = - this.getIsClosed(newSegments, size) + this.getIsClosed(newSegments, shape.props.size) } this.editor.updateShapes([shapePartial])