@flowgram.ai/free-layout-core 0.1.0-alpha.12 → 0.1.0-alpha.13
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/{chunk-CTGO4RKX.js → chunk-E7ZUQ7LV.js} +1 -1
- package/dist/esm/chunk-E7ZUQ7LV.js.map +1 -0
- package/dist/esm/{chunk-242F2JCI.js → chunk-U2XMPOSL.js} +2 -1
- package/dist/esm/{chunk-242F2JCI.js.map → chunk-U2XMPOSL.js.map} +1 -1
- package/dist/esm/index.js +221 -78
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/typings/index.js +2 -2
- package/dist/esm/typings/workflow-json.js +1 -1
- package/dist/esm/typings/workflow-line.js +1 -1
- package/dist/index.d.mts +14 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +201 -57
- package/dist/index.js.map +1 -1
- package/dist/typings/index.d.mts +1 -1
- package/dist/typings/index.d.ts +1 -1
- package/dist/typings/index.js +1 -0
- package/dist/typings/index.js.map +1 -1
- package/dist/typings/workflow-drag.d.mts +1 -1
- package/dist/typings/workflow-drag.d.ts +1 -1
- package/dist/typings/workflow-json.d.mts +1 -1
- package/dist/typings/workflow-json.d.ts +1 -1
- package/dist/typings/workflow-json.js +1 -0
- package/dist/typings/workflow-json.js.map +1 -1
- package/dist/typings/workflow-line.d.mts +1 -1
- package/dist/typings/workflow-line.d.ts +1 -1
- package/dist/typings/workflow-line.js.map +1 -1
- package/dist/typings/workflow-node.d.mts +1 -1
- package/dist/typings/workflow-node.d.ts +1 -1
- package/dist/typings/workflow-registry.d.mts +2 -1
- package/dist/typings/workflow-registry.d.ts +2 -1
- package/dist/typings/workflow-registry.js.map +1 -1
- package/dist/{workflow-line-entity-Iq1OHmuK.d.mts → workflow-line-entity-DSC3qPV1.d.mts} +123 -38
- package/dist/{workflow-line-entity-LhmV98jq.d.ts → workflow-line-entity-I_VrhJ_t.d.ts} +123 -38
- package/package.json +9 -9
- package/dist/esm/chunk-CTGO4RKX.js.map +0 -1
|
@@ -7,11 +7,11 @@ import "../chunk-TQLT57GW.js";
|
|
|
7
7
|
import "../chunk-CGOMTQ3G.js";
|
|
8
8
|
import {
|
|
9
9
|
WorkflowContentChangeType
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-U2XMPOSL.js";
|
|
11
11
|
import {
|
|
12
12
|
LineColors,
|
|
13
13
|
LineType
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-E7ZUQ7LV.js";
|
|
15
15
|
import "../chunk-DDJTYHXN.js";
|
|
16
16
|
import {
|
|
17
17
|
WorkflowOperationBaseService
|
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData
|
|
|
2
2
|
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, usePlaygroundLatest, 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
|
-
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 WorkflowPorts, j as WorkflowPortType, k as
|
|
6
|
-
export {
|
|
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 WorkflowPorts, j as WorkflowPortType, k as LinePoint, l as WorkflowPort, m as LineRenderType, n as WorkflowLineRenderContribution, o as LinePosition } from './workflow-line-entity-DSC3qPV1.mjs';
|
|
6
|
+
export { Q as HoverPosition, E as LINE_HOVER_DISTANCE, x as LineColor, y as LineColors, w as LinePointLocation, v as LineType, B as NodesDragEndEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, P as POINT_RADIUS, J as PORT_SIZE, q as WORKFLOW_LINE_ENTITY, R as WorkfloEntityHoverable, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, T as WorkflowDocumentOptionsDefault, S as WorkflowDocumentProvider, M as WorkflowEntityHoverable, G as WorkflowLineEntityOpts, H as WorkflowLineInfo, F as WorkflowLinePortInfo, z as WorkflowLineRenderContributionFactory, I as WorkflowLineUIState, u as WorkflowNodeMeta, K as WorkflowPortEntityOpts, r as domReactToBounds, p as getPortEntityId, D as onDragLineEndParams } from './workflow-line-entity-DSC3qPV1.mjs';
|
|
7
7
|
import { W as WorkflowNodeEntity } from './workflow-sub-canvas-IQzlYvPD.mjs';
|
|
8
8
|
export { a as WorkflowSubCanvas } from './workflow-sub-canvas-IQzlYvPD.mjs';
|
|
9
9
|
import * as _flowgram_ai_utils from '@flowgram.ai/utils';
|
|
@@ -391,7 +391,12 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
391
391
|
constructor(entity: WorkflowNodeEntity);
|
|
392
392
|
getDefaultData(): any;
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* Update all ports data, includes static ports and dynamic ports
|
|
395
|
+
* @param ports
|
|
396
|
+
*/
|
|
397
|
+
updateAllPorts(ports?: WorkflowPorts): void;
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated use `updateAllPorts` instead
|
|
395
400
|
*/
|
|
396
401
|
updateStaticPorts(ports: WorkflowPorts): void;
|
|
397
402
|
/**
|
|
@@ -405,7 +410,7 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
405
410
|
/**
|
|
406
411
|
* 更新 ports 数据
|
|
407
412
|
*/
|
|
408
|
-
updatePorts(ports: WorkflowPorts): void;
|
|
413
|
+
protected updatePorts(ports: WorkflowPorts): void;
|
|
409
414
|
/**
|
|
410
415
|
* 获取所有 port entities
|
|
411
416
|
*/
|
|
@@ -421,19 +426,19 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
421
426
|
/**
|
|
422
427
|
* 获取输入点位置
|
|
423
428
|
*/
|
|
424
|
-
get inputPoints():
|
|
429
|
+
get inputPoints(): LinePoint[];
|
|
425
430
|
/**
|
|
426
431
|
* 获取输出点位置
|
|
427
432
|
*/
|
|
428
|
-
get outputPoints():
|
|
433
|
+
get outputPoints(): LinePoint[];
|
|
429
434
|
/**
|
|
430
435
|
* 根据 key 获取 输入点位置
|
|
431
436
|
*/
|
|
432
|
-
getInputPoint(key?: string | number):
|
|
437
|
+
getInputPoint(key?: string | number): LinePoint;
|
|
433
438
|
/**
|
|
434
439
|
* 根据 key 获取输出点位置
|
|
435
440
|
*/
|
|
436
|
-
getOutputPoint(key?: string | number):
|
|
441
|
+
getOutputPoint(key?: string | number): LinePoint;
|
|
437
442
|
/**
|
|
438
443
|
* 获取 port 实体
|
|
439
444
|
*/
|
|
@@ -570,4 +575,4 @@ declare class WorkflowSimpleLineContribution implements WorkflowLineRenderContri
|
|
|
570
575
|
private projectPointOnLine;
|
|
571
576
|
}
|
|
572
577
|
|
|
573
|
-
export { EditorCursorState, InteractiveType, LineEventProps, LinePosition, LineRenderType, NodePostionUpdateEvent, type NodeRenderReturnType, NodesDragEvent, OnDragLineEnd, type PositionMap, type StraightData, WorkflowCommands, WorkflowDocument, WorkflowDocumentContainerModule, WorkflowDocumentOptions, WorkflowDragService, WorkflowHoverService, WorkflowJSON, WorkflowLineEntity, WorkflowLineRenderContribution, WorkflowLineRenderData, type WorkflowLineRenderDataSchema, WorkflowLinesManager, WorkflowNodeEntity, WorkflowNodeJSON, type WorkflowNodeLines, WorkflowNodeLinesData, WorkflowNodePortsData, WorkflowOperationBaseService, WorkflowOperationBaseServiceImpl, WorkflowPort, WorkflowPortEntity, WorkflowPortType, WorkflowPorts, WorkflowResetLayoutService, WorkflowSelectService, WorkflowSimpleLineContribution, buildGroupJSON, fitView, getAntiOverlapPosition, nanoid, useCurrentDomNode, useCurrentEntity, useNodeRender, usePlaygroundReadonlyState, useWorkflowDocument };
|
|
578
|
+
export { EditorCursorState, InteractiveType, LineEventProps, LinePoint, LinePosition, LineRenderType, NodePostionUpdateEvent, type NodeRenderReturnType, NodesDragEvent, OnDragLineEnd, type PositionMap, type StraightData, WorkflowCommands, WorkflowDocument, WorkflowDocumentContainerModule, WorkflowDocumentOptions, WorkflowDragService, WorkflowHoverService, WorkflowJSON, WorkflowLineEntity, WorkflowLineRenderContribution, WorkflowLineRenderData, type WorkflowLineRenderDataSchema, WorkflowLinesManager, WorkflowNodeEntity, WorkflowNodeJSON, type WorkflowNodeLines, WorkflowNodeLinesData, WorkflowNodePortsData, WorkflowOperationBaseService, WorkflowOperationBaseServiceImpl, WorkflowPort, WorkflowPortEntity, WorkflowPortType, WorkflowPorts, WorkflowResetLayoutService, WorkflowSelectService, WorkflowSimpleLineContribution, buildGroupJSON, fitView, getAntiOverlapPosition, nanoid, useCurrentDomNode, useCurrentEntity, useNodeRender, usePlaygroundReadonlyState, useWorkflowDocument };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { PlaygroundConfigEntity, CommandService, PlaygroundDragEvent, EntityData
|
|
|
2
2
|
export { bindConfigEntity, useConfigEntity, useEntities, useEntityDataFromContext, useEntityFromContext, useListenEvents, usePlayground, usePlaygroundContainer, usePlaygroundContext, usePlaygroundLatest, 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
|
-
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 WorkflowPorts, j as WorkflowPortType, k as
|
|
6
|
-
export {
|
|
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 WorkflowPorts, j as WorkflowPortType, k as LinePoint, l as WorkflowPort, m as LineRenderType, n as WorkflowLineRenderContribution, o as LinePosition } from './workflow-line-entity-I_VrhJ_t.js';
|
|
6
|
+
export { Q as HoverPosition, E as LINE_HOVER_DISTANCE, x as LineColor, y as LineColors, w as LinePointLocation, v as LineType, B as NodesDragEndEvent, A as NodesDragStartEvent, C as NodesDraggingEvent, P as POINT_RADIUS, J as PORT_SIZE, q as WORKFLOW_LINE_ENTITY, R as WorkfloEntityHoverable, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, T as WorkflowDocumentOptionsDefault, S as WorkflowDocumentProvider, M as WorkflowEntityHoverable, G as WorkflowLineEntityOpts, H as WorkflowLineInfo, F as WorkflowLinePortInfo, z as WorkflowLineRenderContributionFactory, I as WorkflowLineUIState, u as WorkflowNodeMeta, K as WorkflowPortEntityOpts, r as domReactToBounds, p as getPortEntityId, D as onDragLineEndParams } from './workflow-line-entity-I_VrhJ_t.js';
|
|
7
7
|
import { W as WorkflowNodeEntity } from './workflow-sub-canvas-IQzlYvPD.js';
|
|
8
8
|
export { a as WorkflowSubCanvas } from './workflow-sub-canvas-IQzlYvPD.js';
|
|
9
9
|
import * as _flowgram_ai_utils from '@flowgram.ai/utils';
|
|
@@ -391,7 +391,12 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
391
391
|
constructor(entity: WorkflowNodeEntity);
|
|
392
392
|
getDefaultData(): any;
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* Update all ports data, includes static ports and dynamic ports
|
|
395
|
+
* @param ports
|
|
396
|
+
*/
|
|
397
|
+
updateAllPorts(ports?: WorkflowPorts): void;
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated use `updateAllPorts` instead
|
|
395
400
|
*/
|
|
396
401
|
updateStaticPorts(ports: WorkflowPorts): void;
|
|
397
402
|
/**
|
|
@@ -405,7 +410,7 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
405
410
|
/**
|
|
406
411
|
* 更新 ports 数据
|
|
407
412
|
*/
|
|
408
|
-
updatePorts(ports: WorkflowPorts): void;
|
|
413
|
+
protected updatePorts(ports: WorkflowPorts): void;
|
|
409
414
|
/**
|
|
410
415
|
* 获取所有 port entities
|
|
411
416
|
*/
|
|
@@ -421,19 +426,19 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
421
426
|
/**
|
|
422
427
|
* 获取输入点位置
|
|
423
428
|
*/
|
|
424
|
-
get inputPoints():
|
|
429
|
+
get inputPoints(): LinePoint[];
|
|
425
430
|
/**
|
|
426
431
|
* 获取输出点位置
|
|
427
432
|
*/
|
|
428
|
-
get outputPoints():
|
|
433
|
+
get outputPoints(): LinePoint[];
|
|
429
434
|
/**
|
|
430
435
|
* 根据 key 获取 输入点位置
|
|
431
436
|
*/
|
|
432
|
-
getInputPoint(key?: string | number):
|
|
437
|
+
getInputPoint(key?: string | number): LinePoint;
|
|
433
438
|
/**
|
|
434
439
|
* 根据 key 获取输出点位置
|
|
435
440
|
*/
|
|
436
|
-
getOutputPoint(key?: string | number):
|
|
441
|
+
getOutputPoint(key?: string | number): LinePoint;
|
|
437
442
|
/**
|
|
438
443
|
* 获取 port 实体
|
|
439
444
|
*/
|
|
@@ -570,4 +575,4 @@ declare class WorkflowSimpleLineContribution implements WorkflowLineRenderContri
|
|
|
570
575
|
private projectPointOnLine;
|
|
571
576
|
}
|
|
572
577
|
|
|
573
|
-
export { EditorCursorState, InteractiveType, LineEventProps, LinePosition, LineRenderType, NodePostionUpdateEvent, type NodeRenderReturnType, NodesDragEvent, OnDragLineEnd, type PositionMap, type StraightData, WorkflowCommands, WorkflowDocument, WorkflowDocumentContainerModule, WorkflowDocumentOptions, WorkflowDragService, WorkflowHoverService, WorkflowJSON, WorkflowLineEntity, WorkflowLineRenderContribution, WorkflowLineRenderData, type WorkflowLineRenderDataSchema, WorkflowLinesManager, WorkflowNodeEntity, WorkflowNodeJSON, type WorkflowNodeLines, WorkflowNodeLinesData, WorkflowNodePortsData, WorkflowOperationBaseService, WorkflowOperationBaseServiceImpl, WorkflowPort, WorkflowPortEntity, WorkflowPortType, WorkflowPorts, WorkflowResetLayoutService, WorkflowSelectService, WorkflowSimpleLineContribution, buildGroupJSON, fitView, getAntiOverlapPosition, nanoid, useCurrentDomNode, useCurrentEntity, useNodeRender, usePlaygroundReadonlyState, useWorkflowDocument };
|
|
578
|
+
export { EditorCursorState, InteractiveType, LineEventProps, LinePoint, LinePosition, LineRenderType, NodePostionUpdateEvent, type NodeRenderReturnType, NodesDragEvent, OnDragLineEnd, type PositionMap, type StraightData, WorkflowCommands, WorkflowDocument, WorkflowDocumentContainerModule, WorkflowDocumentOptions, WorkflowDragService, WorkflowHoverService, WorkflowJSON, WorkflowLineEntity, WorkflowLineRenderContribution, WorkflowLineRenderData, type WorkflowLineRenderDataSchema, WorkflowLinesManager, WorkflowNodeEntity, WorkflowNodeJSON, type WorkflowNodeLines, WorkflowNodeLinesData, WorkflowNodePortsData, WorkflowOperationBaseService, WorkflowOperationBaseServiceImpl, WorkflowPort, WorkflowPortEntity, WorkflowPortType, WorkflowPorts, WorkflowResetLayoutService, WorkflowSelectService, WorkflowSimpleLineContribution, buildGroupJSON, fitView, getAntiOverlapPosition, nanoid, useCurrentDomNode, useCurrentEntity, useNodeRender, usePlaygroundReadonlyState, useWorkflowDocument };
|