@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/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData } from '@flowgram.ai/core';
|
|
2
|
-
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext,
|
|
2
|
+
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, useRefresh, useService } from '@flowgram.ai/core';
|
|
3
3
|
import { NodeFormProps } from '@flowgram.ai/node';
|
|
4
4
|
import { FlowOperationBaseService, FlowNodeType, FlowOperationBaseServiceImpl, FlowNodeEntityOrId, FlowNodeEntity } from '@flowgram.ai/document';
|
|
5
5
|
import { W as WorkflowHoverService, a as WorkflowDocument, b as WorkflowLinesManager, c as WorkflowSelectService, d as WorkflowDocumentOptions, L as LineEventProps, N as NodesDragEvent, e as WorkflowNodeJSON, f as WorkflowPortEntity, g as WorkflowLineEntity, O as OnDragLineEnd, h as WorkflowJSON, i as LineCenterPoint, j as WorkflowPorts, k as WorkflowPortType, l as LinePoint, m as WorkflowPort, n as LineRenderType, o as WorkflowLineRenderContribution, p as LinePosition } from './workflow-line-entity-IbhMSbBs.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData } from '@flowgram.ai/core';
|
|
2
|
-
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext,
|
|
2
|
+
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, useRefresh, useService } from '@flowgram.ai/core';
|
|
3
3
|
import { NodeFormProps } from '@flowgram.ai/node';
|
|
4
4
|
import { FlowOperationBaseService, FlowNodeType, FlowOperationBaseServiceImpl, FlowNodeEntityOrId, FlowNodeEntity } from '@flowgram.ai/document';
|
|
5
5
|
import { W as WorkflowHoverService, a as WorkflowDocument, b as WorkflowLinesManager, c as WorkflowSelectService, d as WorkflowDocumentOptions, L as LineEventProps, N as NodesDragEvent, e as WorkflowNodeJSON, f as WorkflowPortEntity, g as WorkflowLineEntity, O as OnDragLineEnd, h as WorkflowJSON, i as LineCenterPoint, j as WorkflowPorts, k as WorkflowPortType, l as LinePoint, m as WorkflowPort, n as LineRenderType, o as WorkflowLineRenderContribution, p as LinePosition } from './workflow-line-entity-DcecHiNc.js';
|
package/dist/index.js
CHANGED
|
@@ -26,8 +26,8 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
// src/index.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
31
|
EditorCursorState: () => EditorCursorState,
|
|
32
32
|
InteractiveType: () => InteractiveType,
|
|
33
33
|
LINE_HOVER_DISTANCE: () => LINE_HOVER_DISTANCE,
|
|
@@ -79,13 +79,12 @@ __export(src_exports, {
|
|
|
79
79
|
usePlayground: () => import_core25.usePlayground,
|
|
80
80
|
usePlaygroundContainer: () => import_core25.usePlaygroundContainer,
|
|
81
81
|
usePlaygroundContext: () => import_core25.usePlaygroundContext,
|
|
82
|
-
usePlaygroundLatest: () => import_core25.usePlaygroundLatest,
|
|
83
82
|
usePlaygroundReadonlyState: () => usePlaygroundReadonlyState,
|
|
84
83
|
useRefresh: () => import_core25.useRefresh,
|
|
85
84
|
useService: () => import_core25.useService,
|
|
86
85
|
useWorkflowDocument: () => useWorkflowDocument
|
|
87
86
|
});
|
|
88
|
-
module.exports = __toCommonJS(
|
|
87
|
+
module.exports = __toCommonJS(index_exports);
|
|
89
88
|
|
|
90
89
|
// src/workflow-commands.ts
|
|
91
90
|
var WorkflowCommands = /* @__PURE__ */ ((WorkflowCommands2) => {
|
|
@@ -2788,7 +2787,7 @@ var WorkflowDragService = class {
|
|
|
2788
2787
|
const targetNode = event.currentTarget;
|
|
2789
2788
|
domNode = cloneNode ? cloneNode(e) : targetNode.cloneNode(true);
|
|
2790
2789
|
const bounds = targetNode.getBoundingClientRect();
|
|
2791
|
-
startPos = { x: bounds.left, y: bounds.top };
|
|
2790
|
+
startPos = { x: bounds.left + window.scrollX, y: bounds.top + window.scrollY };
|
|
2792
2791
|
import_utils16.domUtils.setStyle(domNode, {
|
|
2793
2792
|
zIndex: 1e3,
|
|
2794
2793
|
position: "absolute",
|
|
@@ -3734,7 +3733,6 @@ var WorkflowDocumentContainerModule = new import_inversify10.ContainerModule(
|
|
|
3734
3733
|
usePlayground,
|
|
3735
3734
|
usePlaygroundContainer,
|
|
3736
3735
|
usePlaygroundContext,
|
|
3737
|
-
usePlaygroundLatest,
|
|
3738
3736
|
usePlaygroundReadonlyState,
|
|
3739
3737
|
useRefresh,
|
|
3740
3738
|
useService,
|