@flowgram.ai/free-layout-core 0.4.13 → 0.4.15
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.
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/esm/index.js
CHANGED
|
@@ -43,8 +43,7 @@ import {
|
|
|
43
43
|
useEntities,
|
|
44
44
|
useEntityFromContext as useEntityFromContext3,
|
|
45
45
|
useEntityDataFromContext,
|
|
46
|
-
useRefresh as useRefresh2
|
|
47
|
-
usePlaygroundLatest
|
|
46
|
+
useRefresh as useRefresh2
|
|
48
47
|
} from "@flowgram.ai/core";
|
|
49
48
|
|
|
50
49
|
// src/hooks/use-node-render.tsx
|
|
@@ -2739,7 +2738,7 @@ var WorkflowDragService = class {
|
|
|
2739
2738
|
const targetNode = event.currentTarget;
|
|
2740
2739
|
domNode = cloneNode ? cloneNode(e) : targetNode.cloneNode(true);
|
|
2741
2740
|
const bounds = targetNode.getBoundingClientRect();
|
|
2742
|
-
startPos = { x: bounds.left, y: bounds.top };
|
|
2741
|
+
startPos = { x: bounds.left + window.scrollX, y: bounds.top + window.scrollY };
|
|
2743
2742
|
domUtils2.setStyle(domNode, {
|
|
2744
2743
|
zIndex: 1e3,
|
|
2745
2744
|
position: "absolute",
|
|
@@ -3687,7 +3686,6 @@ export {
|
|
|
3687
3686
|
usePlayground2 as usePlayground,
|
|
3688
3687
|
usePlaygroundContainer,
|
|
3689
3688
|
usePlaygroundContext,
|
|
3690
|
-
usePlaygroundLatest,
|
|
3691
3689
|
usePlaygroundReadonlyState,
|
|
3692
3690
|
useRefresh2 as useRefresh,
|
|
3693
3691
|
useService3 as useService,
|