fix gesturetool

This commit is contained in:
Jeff Emmett 2025-07-29 23:01:37 -04:00
parent b01cb9abf8
commit 129d72cd58
1 changed files with 2 additions and 2 deletions

View File

@ -308,7 +308,7 @@ export class Drawing extends StateNode {
return this.shapeType !== "highlight" return this.shapeType !== "highlight"
} }
getIsClosed(segments: TLDrawShapeSegment[], size: TLDefaultSizeStyle) { getIsClosed(segments: TLDrawShapeSegment[]) {
if (!this.canClose()) return false if (!this.canClose()) return false
const strokeWidth = STROKE_WIDTH const strokeWidth = STROKE_WIDTH
@ -429,7 +429,7 @@ export class Drawing extends StateNode {
if (this.canClose()) { if (this.canClose()) {
; (shapePartial as TLShapePartial<TLDrawShape>).props!.isClosed = ; (shapePartial as TLShapePartial<TLDrawShape>).props!.isClosed =
this.getIsClosed(newSegments, shape.props.size) this.getIsClosed(newSegments)
} }
this.editor.updateShapes([shapePartial]) this.editor.updateShapes([shapePartial])