fix gesturetool
This commit is contained in:
parent
b01cb9abf8
commit
129d72cd58
|
|
@ -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])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue