|
@@ -116,7 +116,8 @@ export const useTransformer = installGlobalVar(() => {
|
|
|
|
|
|
rotateRect.opacity(0);
|
|
|
rotateRect.parent!.add(group);
|
|
|
- const update = () => {
|
|
|
+ const update = async () => {
|
|
|
+ await nextTick()
|
|
|
setShapeTransform(group, rotateRect.getTransform());
|
|
|
group.x(group.x() + 8);
|
|
|
group.y(group.y() + 8);
|
|
@@ -132,7 +133,7 @@ export const useTransformer = installGlobalVar(() => {
|
|
|
update();
|
|
|
shape.on("bound-change", update);
|
|
|
onCleanup(() => shape.off("bound-change", update));
|
|
|
- onCleanup(watch(data, () => setTimeout(update)))
|
|
|
+ onCleanup(watch(data, update))
|
|
|
}
|
|
|
},
|
|
|
{ immediate: true }
|