@flowgram.ai/free-layout-core 0.1.0-alpha.37 → 0.1.0-alpha.39
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 +62 -472
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +52 -462
- 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/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-line.d.mts +1 -1
- package/dist/typings/workflow-line.d.ts +1 -1
- package/dist/typings/workflow-node.d.mts +1 -1
- package/dist/typings/workflow-node.d.ts +1 -1
- package/dist/typings/workflow-operation.d.mts +1 -1
- package/dist/typings/workflow-operation.d.ts +1 -1
- package/dist/typings/workflow-registry.d.mts +1 -1
- package/dist/typings/workflow-registry.d.ts +1 -1
- package/dist/typings/workflow-sub-canvas.d.mts +1 -1
- package/dist/typings/workflow-sub-canvas.d.ts +1 -1
- package/dist/{workflow-node-entity-Da9FrkWn.d.ts → workflow-node-entity-03Q7Fvv6.d.ts} +2 -46
- package/dist/{workflow-node-entity-BQBXdOoa.d.mts → workflow-node-entity-C6bFzfXc.d.mts} +2 -46
- package/package.json +9 -9
package/dist/typings/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-
|
|
1
|
+
export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.mjs';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.mjs';
|
|
4
4
|
export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.mjs';
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-
|
|
1
|
+
export { L as LineCenterPoint, y as LineColor, z as LineColors, g as LineEventProps, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory, h as WorkflowNodeJSON, u as WorkflowNodeMeta, B as WorkflowSubCanvas, F as onDragLineEndParams } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
2
2
|
export { WorkflowEdgeJSON } from './workflow-edge.js';
|
|
3
3
|
export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.js';
|
|
4
4
|
export { NodePostionUpdateEvent, WorkflowOperationBaseService } from './workflow-operation.js';
|
|
@@ -2,6 +2,6 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-
|
|
5
|
+
export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
7
7
|
import './workflow-edge.mjs';
|
|
@@ -2,6 +2,6 @@ import 'react';
|
|
|
2
2
|
import '@flowgram.ai/utils';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
|
-
export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-
|
|
5
|
+
export { g as LineEventProps, D as NodesDragEndEvent, N as NodesDragEvent, C as NodesDragStartEvent, E as NodesDraggingEvent, O as OnDragLineEnd, F as onDragLineEndParams } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
7
7
|
import './workflow-edge.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-
|
|
1
|
+
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
2
2
|
import './workflow-edge.mjs';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-
|
|
1
|
+
export { t as WorkflowContentChangeEvent, s as WorkflowContentChangeType, W as WorkflowJSON } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
2
2
|
import './workflow-edge.js';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-
|
|
2
|
+
export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
5
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
|
-
export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-
|
|
2
|
+
export { L as LineCenterPoint, y as LineColor, z as LineColors, x as LinePoint, w as LinePointLocation, m as LinePosition, k as LineRenderType, v as LineType, l as WorkflowLineRenderContribution, A as WorkflowLineRenderContributionFactory } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
3
3
|
import '@flowgram.ai/document';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
5
|
import 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
-
export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-
|
|
3
|
+
export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
4
4
|
import './workflow-edge.mjs';
|
|
5
5
|
import '@flowgram.ai/core';
|
|
6
6
|
import 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@flowgram.ai/utils';
|
|
2
2
|
import '@flowgram.ai/document';
|
|
3
|
-
export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-
|
|
3
|
+
export { h as WorkflowNodeJSON, u as WorkflowNodeMeta } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
4
4
|
import './workflow-edge.js';
|
|
5
5
|
import '@flowgram.ai/core';
|
|
6
6
|
import 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPoint, Event } from '@flowgram.ai/utils';
|
|
2
2
|
import { FlowNodeEntity, FlowOperationBaseService, FlowNodeEntityOrId } from '@flowgram.ai/document';
|
|
3
|
-
import { W as WorkflowJSON } from '../workflow-node-entity-
|
|
3
|
+
import { W as WorkflowJSON } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPoint, Event } from '@flowgram.ai/utils';
|
|
2
2
|
import { FlowNodeEntity, FlowOperationBaseService, FlowNodeEntityOrId } from '@flowgram.ai/document';
|
|
3
|
-
import { W as WorkflowJSON } from '../workflow-node-entity-
|
|
3
|
+
import { W as WorkflowJSON } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
4
4
|
import '@flowgram.ai/core';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@flowgram.ai/form-core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormMeta } from '@flowgram.ai/node';
|
|
2
2
|
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
3
|
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
|
-
import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-
|
|
4
|
+
import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-C6bFzfXc.mjs';
|
|
5
5
|
import '@flowgram.ai/core';
|
|
6
6
|
import '@flowgram.ai/utils';
|
|
7
7
|
import 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormMeta } from '@flowgram.ai/node';
|
|
2
2
|
import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
|
|
3
3
|
import { FlowNodeRegistry } from '@flowgram.ai/document';
|
|
4
|
-
import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-
|
|
4
|
+
import { u as WorkflowNodeMeta, i as WorkflowPortEntity, d as WorkflowLinesManager, b as WorkflowNodeEntity } from '../workflow-node-entity-03Q7Fvv6.js';
|
|
5
5
|
import '@flowgram.ai/core';
|
|
6
6
|
import '@flowgram.ai/utils';
|
|
7
7
|
import 'react';
|
|
@@ -584,15 +584,6 @@ declare class WorkflowLinesManager {
|
|
|
584
584
|
protected _lineType: LineRenderType;
|
|
585
585
|
protected onAvailableLinesChangeEmitter: Emitter<WorkflowContentChangeEvent>;
|
|
586
586
|
protected onForceUpdateEmitter: Emitter<void>;
|
|
587
|
-
private sortedNodesCache?;
|
|
588
|
-
private sortedNodesCacheVersion?;
|
|
589
|
-
private hoverNodesCache?;
|
|
590
|
-
private hoverNodesCacheVersion?;
|
|
591
|
-
private hoverNodesCacheActivatedID?;
|
|
592
|
-
private sortedNodeSpatialCache?;
|
|
593
|
-
private hoverNodeSpatialCache?;
|
|
594
|
-
private lineSpatialCache?;
|
|
595
|
-
private outsidePortNodesCache?;
|
|
596
587
|
hoverService: WorkflowHoverService;
|
|
597
588
|
selectService: WorkflowSelectService;
|
|
598
589
|
protected readonly entityManager: EntityManager;
|
|
@@ -608,7 +599,6 @@ declare class WorkflowLinesManager {
|
|
|
608
599
|
readonly contributionFactories: WorkflowLineRenderContributionFactory[];
|
|
609
600
|
init(doc: WorkflowDocument): void;
|
|
610
601
|
forceUpdate(): void;
|
|
611
|
-
invalidateSortedNodesCache(): void;
|
|
612
602
|
get lineType(): LineRenderType;
|
|
613
603
|
get lineColor(): LineColor;
|
|
614
604
|
switchLineType(newType?: LineRenderType): LineRenderType;
|
|
@@ -659,15 +649,6 @@ declare class WorkflowLinesManager {
|
|
|
659
649
|
* @param pos
|
|
660
650
|
*/
|
|
661
651
|
getPortFromMousePos(pos: IPoint, portType?: WorkflowPortType): WorkflowPortEntity | undefined;
|
|
662
|
-
getPortsFromMousePos(pos: IPoint): {
|
|
663
|
-
input?: WorkflowPortEntity;
|
|
664
|
-
output?: WorkflowPortEntity;
|
|
665
|
-
};
|
|
666
|
-
getNodeAndPortFromMousePos(pos: IPoint, portType?: WorkflowPortType): {
|
|
667
|
-
node?: WorkflowNodeEntity;
|
|
668
|
-
port?: WorkflowPortEntity;
|
|
669
|
-
};
|
|
670
|
-
getHoverNodeFromMousePos(pos: IPoint): WorkflowNodeEntity | undefined;
|
|
671
652
|
/**
|
|
672
653
|
* 根据鼠标位置找到 node
|
|
673
654
|
* @param pos - 鼠标位置
|
|
@@ -676,28 +657,8 @@ declare class WorkflowLinesManager {
|
|
|
676
657
|
registerContribution(factory: WorkflowLineRenderContributionFactory): this;
|
|
677
658
|
private registerData;
|
|
678
659
|
private getSortedNodes;
|
|
679
|
-
|
|
680
|
-
private
|
|
681
|
-
private invalidateSpatialHitCaches;
|
|
682
|
-
private getHoveredPortFromSortedNodes;
|
|
683
|
-
private getHoveredPortsFromSortedNodes;
|
|
684
|
-
private collectHoveredPorts;
|
|
685
|
-
private filterCoveredPort;
|
|
686
|
-
private getTopNodeFromSortedNodes;
|
|
687
|
-
private getNodeHitInfoFromSortedNodes;
|
|
688
|
-
private getHoverNodeHitCandidates;
|
|
689
|
-
private getSortedNodeHitCandidates;
|
|
690
|
-
private getLineHitCandidates;
|
|
691
|
-
private createSpatialIndex;
|
|
692
|
-
private querySpatialIndex;
|
|
693
|
-
private getSpatialCell;
|
|
694
|
-
private getSpatialCellKey;
|
|
695
|
-
private canIndexBounds;
|
|
696
|
-
private isPointNearNodePorts;
|
|
697
|
-
private hasPortOutsideNodeBounds;
|
|
698
|
-
private getOutsidePortNodes;
|
|
699
|
-
private getHoverNodes;
|
|
700
|
-
private isPointInBounds;
|
|
660
|
+
/** 获取鼠标坐标位置的所有节点(stackIndex 从小到大排序) */
|
|
661
|
+
private getContainNodesFromMousePos;
|
|
701
662
|
private getNodeIndex;
|
|
702
663
|
}
|
|
703
664
|
|
|
@@ -1058,12 +1019,8 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
1058
1019
|
protected _staticPorts: WorkflowPorts;
|
|
1059
1020
|
/** 存储 port 实体的 id,用于判断 port 是否存在 */
|
|
1060
1021
|
protected _portIDSet: Set<string>;
|
|
1061
|
-
protected _portDisposeIDSet: Set<string>;
|
|
1062
1022
|
/** 上一次的 ports 数据,用于判断 ports 是否发生变化 */
|
|
1063
1023
|
protected _prePorts: WorkflowPorts;
|
|
1064
|
-
protected _allPortsCache?: WorkflowPortEntity[];
|
|
1065
|
-
protected _inputPortsCache?: WorkflowPortEntity[];
|
|
1066
|
-
protected _outputPortsCache?: WorkflowPortEntity[];
|
|
1067
1024
|
constructor(entity: WorkflowNodeEntity);
|
|
1068
1025
|
getDefaultData(): any;
|
|
1069
1026
|
/**
|
|
@@ -1123,7 +1080,6 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
1123
1080
|
* 拼接 port 实体的 id
|
|
1124
1081
|
*/
|
|
1125
1082
|
protected getPortId(portType: WorkflowPortType, portKey?: string | number): string;
|
|
1126
|
-
protected clearPortsCache(): void;
|
|
1127
1083
|
/**
|
|
1128
1084
|
* 创建 port 实体
|
|
1129
1085
|
*/
|
|
@@ -584,15 +584,6 @@ declare class WorkflowLinesManager {
|
|
|
584
584
|
protected _lineType: LineRenderType;
|
|
585
585
|
protected onAvailableLinesChangeEmitter: Emitter<WorkflowContentChangeEvent>;
|
|
586
586
|
protected onForceUpdateEmitter: Emitter<void>;
|
|
587
|
-
private sortedNodesCache?;
|
|
588
|
-
private sortedNodesCacheVersion?;
|
|
589
|
-
private hoverNodesCache?;
|
|
590
|
-
private hoverNodesCacheVersion?;
|
|
591
|
-
private hoverNodesCacheActivatedID?;
|
|
592
|
-
private sortedNodeSpatialCache?;
|
|
593
|
-
private hoverNodeSpatialCache?;
|
|
594
|
-
private lineSpatialCache?;
|
|
595
|
-
private outsidePortNodesCache?;
|
|
596
587
|
hoverService: WorkflowHoverService;
|
|
597
588
|
selectService: WorkflowSelectService;
|
|
598
589
|
protected readonly entityManager: EntityManager;
|
|
@@ -608,7 +599,6 @@ declare class WorkflowLinesManager {
|
|
|
608
599
|
readonly contributionFactories: WorkflowLineRenderContributionFactory[];
|
|
609
600
|
init(doc: WorkflowDocument): void;
|
|
610
601
|
forceUpdate(): void;
|
|
611
|
-
invalidateSortedNodesCache(): void;
|
|
612
602
|
get lineType(): LineRenderType;
|
|
613
603
|
get lineColor(): LineColor;
|
|
614
604
|
switchLineType(newType?: LineRenderType): LineRenderType;
|
|
@@ -659,15 +649,6 @@ declare class WorkflowLinesManager {
|
|
|
659
649
|
* @param pos
|
|
660
650
|
*/
|
|
661
651
|
getPortFromMousePos(pos: IPoint, portType?: WorkflowPortType): WorkflowPortEntity | undefined;
|
|
662
|
-
getPortsFromMousePos(pos: IPoint): {
|
|
663
|
-
input?: WorkflowPortEntity;
|
|
664
|
-
output?: WorkflowPortEntity;
|
|
665
|
-
};
|
|
666
|
-
getNodeAndPortFromMousePos(pos: IPoint, portType?: WorkflowPortType): {
|
|
667
|
-
node?: WorkflowNodeEntity;
|
|
668
|
-
port?: WorkflowPortEntity;
|
|
669
|
-
};
|
|
670
|
-
getHoverNodeFromMousePos(pos: IPoint): WorkflowNodeEntity | undefined;
|
|
671
652
|
/**
|
|
672
653
|
* 根据鼠标位置找到 node
|
|
673
654
|
* @param pos - 鼠标位置
|
|
@@ -676,28 +657,8 @@ declare class WorkflowLinesManager {
|
|
|
676
657
|
registerContribution(factory: WorkflowLineRenderContributionFactory): this;
|
|
677
658
|
private registerData;
|
|
678
659
|
private getSortedNodes;
|
|
679
|
-
|
|
680
|
-
private
|
|
681
|
-
private invalidateSpatialHitCaches;
|
|
682
|
-
private getHoveredPortFromSortedNodes;
|
|
683
|
-
private getHoveredPortsFromSortedNodes;
|
|
684
|
-
private collectHoveredPorts;
|
|
685
|
-
private filterCoveredPort;
|
|
686
|
-
private getTopNodeFromSortedNodes;
|
|
687
|
-
private getNodeHitInfoFromSortedNodes;
|
|
688
|
-
private getHoverNodeHitCandidates;
|
|
689
|
-
private getSortedNodeHitCandidates;
|
|
690
|
-
private getLineHitCandidates;
|
|
691
|
-
private createSpatialIndex;
|
|
692
|
-
private querySpatialIndex;
|
|
693
|
-
private getSpatialCell;
|
|
694
|
-
private getSpatialCellKey;
|
|
695
|
-
private canIndexBounds;
|
|
696
|
-
private isPointNearNodePorts;
|
|
697
|
-
private hasPortOutsideNodeBounds;
|
|
698
|
-
private getOutsidePortNodes;
|
|
699
|
-
private getHoverNodes;
|
|
700
|
-
private isPointInBounds;
|
|
660
|
+
/** 获取鼠标坐标位置的所有节点(stackIndex 从小到大排序) */
|
|
661
|
+
private getContainNodesFromMousePos;
|
|
701
662
|
private getNodeIndex;
|
|
702
663
|
}
|
|
703
664
|
|
|
@@ -1058,12 +1019,8 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
1058
1019
|
protected _staticPorts: WorkflowPorts;
|
|
1059
1020
|
/** 存储 port 实体的 id,用于判断 port 是否存在 */
|
|
1060
1021
|
protected _portIDSet: Set<string>;
|
|
1061
|
-
protected _portDisposeIDSet: Set<string>;
|
|
1062
1022
|
/** 上一次的 ports 数据,用于判断 ports 是否发生变化 */
|
|
1063
1023
|
protected _prePorts: WorkflowPorts;
|
|
1064
|
-
protected _allPortsCache?: WorkflowPortEntity[];
|
|
1065
|
-
protected _inputPortsCache?: WorkflowPortEntity[];
|
|
1066
|
-
protected _outputPortsCache?: WorkflowPortEntity[];
|
|
1067
1024
|
constructor(entity: WorkflowNodeEntity);
|
|
1068
1025
|
getDefaultData(): any;
|
|
1069
1026
|
/**
|
|
@@ -1123,7 +1080,6 @@ declare class WorkflowNodePortsData extends EntityData {
|
|
|
1123
1080
|
* 拼接 port 实体的 id
|
|
1124
1081
|
*/
|
|
1125
1082
|
protected getPortId(portType: WorkflowPortType, portKey?: string | number): string;
|
|
1126
|
-
protected clearPortsCache(): void;
|
|
1127
1083
|
/**
|
|
1128
1084
|
* 创建 port 实体
|
|
1129
1085
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowgram.ai/free-layout-core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.39",
|
|
4
4
|
"homepage": "https://flowgram.ai/",
|
|
5
5
|
"repository": "https://github.com/bytedance/flowgram.ai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"reflect-metadata": "~0.2.2",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"nanoid": "^5.0.9",
|
|
37
|
-
"@flowgram.ai/core": "0.1.0-alpha.
|
|
38
|
-
"@flowgram.ai/document": "0.1.0-alpha.
|
|
39
|
-
"@flowgram.ai/node": "0.1.0-alpha.
|
|
40
|
-
"@flowgram.ai/form-core": "0.1.0-alpha.
|
|
41
|
-
"@flowgram.ai/reactive": "0.1.0-alpha.
|
|
42
|
-
"@flowgram.ai/utils": "0.1.0-alpha.
|
|
37
|
+
"@flowgram.ai/core": "0.1.0-alpha.39",
|
|
38
|
+
"@flowgram.ai/document": "0.1.0-alpha.39",
|
|
39
|
+
"@flowgram.ai/node": "0.1.0-alpha.39",
|
|
40
|
+
"@flowgram.ai/form-core": "0.1.0-alpha.39",
|
|
41
|
+
"@flowgram.ai/reactive": "0.1.0-alpha.39",
|
|
42
|
+
"@flowgram.ai/utils": "0.1.0-alpha.39"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@testing-library/react": "^12",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"tsup": "^8.0.1",
|
|
54
54
|
"typescript": "^5.8.3",
|
|
55
55
|
"vitest": "^3.2.4",
|
|
56
|
-
"@flowgram.ai/eslint-config": "0.1.0-alpha.
|
|
57
|
-
"@flowgram.ai/ts-config": "0.1.0-alpha.
|
|
56
|
+
"@flowgram.ai/eslint-config": "0.1.0-alpha.39",
|
|
57
|
+
"@flowgram.ai/ts-config": "0.1.0-alpha.39"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=16.8",
|