fix gesturetool for vercel
This commit is contained in:
parent
5eb5789c23
commit
b01cb9abf8
|
|
@ -373,7 +373,6 @@ export class Drawing extends StateNode {
|
||||||
|
|
||||||
const {
|
const {
|
||||||
id,
|
id,
|
||||||
props: { size },
|
|
||||||
} = initialShape
|
} = initialShape
|
||||||
|
|
||||||
const shape = this.editor.getShape<DrawableShape>(id)!
|
const shape = this.editor.getShape<DrawableShape>(id)!
|
||||||
|
|
@ -430,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, size)
|
this.getIsClosed(newSegments, shape.props.size)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.editor.updateShapes([shapePartial])
|
this.editor.updateShapes([shapePartial])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue