Update hacks.ts
This commit is contained in:
parent
5d66c153be
commit
2048b2bb70
1 changed files with 4 additions and 5 deletions
|
@ -26,12 +26,11 @@ export function fastDrawUpdate(info: PointerInfo): void {
|
||||||
|
|
||||||
const selectedId = setToArray(tld.getSelectedIds(data))[0]
|
const selectedId = setToArray(tld.getSelectedIds(data))[0]
|
||||||
|
|
||||||
const shape = data.document.pages[data.currentPageId].shapes[
|
const { shapes } = data.document.pages[data.currentPageId]
|
||||||
selectedId
|
|
||||||
] as DrawShape
|
|
||||||
|
|
||||||
;(data.document.pages[data.currentPageId].shapes[selectedId] as DrawShape) =
|
const shape = shapes[selectedId] as DrawShape
|
||||||
deepClone(shape)
|
|
||||||
|
shapes[selectedId] = deepClone(shape)
|
||||||
|
|
||||||
state.forceData(freeze(data))
|
state.forceData(freeze(data))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue