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])