@witchcraft/layout 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,7 +115,7 @@ const actionHandler = props.actionHandler ?? markRaw(new ActionHandler(
|
|
|
115
115
|
actionHandler.shapes = reactive([]);
|
|
116
116
|
actionHandler.textHints = reactive({ actions: [], errors: [] });
|
|
117
117
|
const shapes = actionHandler.shapes;
|
|
118
|
-
const
|
|
118
|
+
const moveContext = useFrames(
|
|
119
119
|
win,
|
|
120
120
|
actionHandler
|
|
121
121
|
);
|
|
@@ -126,8 +126,8 @@ const {
|
|
|
126
126
|
state,
|
|
127
127
|
movingFrameId,
|
|
128
128
|
showMoving
|
|
129
|
-
} =
|
|
130
|
-
provide(moveContextInjectionKey,
|
|
129
|
+
} = moveContext;
|
|
130
|
+
provide(moveContextInjectionKey, moveContext);
|
|
131
131
|
function getWindowOffset() {
|
|
132
132
|
const windowElRect = windowEl.value.getBoundingClientRect();
|
|
133
133
|
return {
|
|
@@ -169,6 +169,7 @@ defineExpose({
|
|
|
169
169
|
state,
|
|
170
170
|
win,
|
|
171
171
|
getUpdateWindowSizeInfo,
|
|
172
|
-
actionHandler
|
|
172
|
+
actionHandler,
|
|
173
|
+
moveContext
|
|
173
174
|
});
|
|
174
175
|
</script>
|