fix gesturetool

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

View File

@ -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<TLDrawShape>).props!.isClosed =
this.getIsClosed(newSegments, shape.props.size)
this.getIsClosed(newSegments)
}
this.editor.updateShapes([shapePartial])