@flowgram.ai/free-layout-core 0.2.17 → 0.2.18

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.
@@ -1,4 +1,4 @@
1
- export { v as LineColor, w as LineColors, L as LineEventProps, m as LinePosition, k as LineRenderType, u as LineType, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, t as WorkflowNodeMeta, B as onDragLineEndParams } from '../workflow-line-entity-BpFc2Mu3.mjs';
1
+ export { v as LineColor, w as LineColors, L as LineEventProps, m as LinePosition, k as LineRenderType, u as LineType, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, t as WorkflowNodeMeta, B as onDragLineEndParams } from '../workflow-line-entity-BuRLWUuf.mjs';
2
2
  export { WorkflowEdgeJSON } from './workflow-edge.mjs';
3
3
  export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.mjs';
4
4
  export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.mjs';
@@ -1,4 +1,4 @@
1
- export { v as LineColor, w as LineColors, L as LineEventProps, m as LinePosition, k as LineRenderType, u as LineType, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, t as WorkflowNodeMeta, B as onDragLineEndParams } from '../workflow-line-entity-D4-erSyq.js';
1
+ export { v as LineColor, w as LineColors, L as LineEventProps, m as LinePosition, k as LineRenderType, u as LineType, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory, e as WorkflowNodeJSON, t as WorkflowNodeMeta, B as onDragLineEndParams } from '../workflow-line-entity-BUokXoMi.js';
2
2
  export { WorkflowEdgeJSON } from './workflow-edge.js';
3
3
  export { WorkflowNodeFormMeta, WorkflowNodeRegistry, WorkflowNodeRenderProps } from './workflow-registry.js';
4
4
  export { a as WorkflowSubCanvas } from '../workflow-sub-canvas-IQzlYvPD.js';
@@ -2,7 +2,7 @@ import 'react';
2
2
  import '@flowgram.ai/utils';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
- export { L as LineEventProps, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, B as onDragLineEndParams } from '../workflow-line-entity-BpFc2Mu3.mjs';
5
+ export { L as LineEventProps, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, B as onDragLineEndParams } from '../workflow-line-entity-BuRLWUuf.mjs';
6
6
  import '../workflow-sub-canvas-IQzlYvPD.mjs';
7
7
  import '@flowgram.ai/form-core';
8
8
  import './workflow-edge.mjs';
@@ -2,7 +2,7 @@ import 'react';
2
2
  import '@flowgram.ai/utils';
3
3
  import '@flowgram.ai/document';
4
4
  import '@flowgram.ai/core';
5
- export { L as LineEventProps, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, B as onDragLineEndParams } from '../workflow-line-entity-D4-erSyq.js';
5
+ export { L as LineEventProps, z as NodesDragEndEvent, N as NodesDragEvent, y as NodesDragStartEvent, A as NodesDraggingEvent, O as OnDragLineEnd, B as onDragLineEndParams } from '../workflow-line-entity-BUokXoMi.js';
6
6
  import '../workflow-sub-canvas-IQzlYvPD.js';
7
7
  import '@flowgram.ai/form-core';
8
8
  import './workflow-edge.js';
@@ -1,5 +1,5 @@
1
1
  import '../workflow-sub-canvas-IQzlYvPD.mjs';
2
- export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON } from '../workflow-line-entity-BpFc2Mu3.mjs';
2
+ export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON } from '../workflow-line-entity-BuRLWUuf.mjs';
3
3
  import './workflow-edge.mjs';
4
4
  import '@flowgram.ai/document';
5
5
  import '@flowgram.ai/utils';
@@ -1,5 +1,5 @@
1
1
  import '../workflow-sub-canvas-IQzlYvPD.js';
2
- export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON } from '../workflow-line-entity-D4-erSyq.js';
2
+ export { s as WorkflowContentChangeEvent, r as WorkflowContentChangeType, q as WorkflowJSON } from '../workflow-line-entity-BUokXoMi.js';
3
3
  import './workflow-edge.js';
4
4
  import '@flowgram.ai/document';
5
5
  import '@flowgram.ai/utils';
@@ -1,5 +1,5 @@
1
1
  import '@flowgram.ai/utils';
2
- export { v as LineColor, w as LineColors, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-BpFc2Mu3.mjs';
2
+ export { v as LineColor, w as LineColors, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-BuRLWUuf.mjs';
3
3
  import '@flowgram.ai/core';
4
4
  import '@flowgram.ai/document';
5
5
  import '../workflow-sub-canvas-IQzlYvPD.mjs';
@@ -1,5 +1,5 @@
1
1
  import '@flowgram.ai/utils';
2
- export { v as LineColor, w as LineColors, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-D4-erSyq.js';
2
+ export { v as LineColor, w as LineColors, m as LinePosition, k as LineRenderType, u as LineType, l as WorkflowLineRenderContribution, x as WorkflowLineRenderContributionFactory } from '../workflow-line-entity-BUokXoMi.js';
3
3
  import '@flowgram.ai/core';
4
4
  import '@flowgram.ai/document';
5
5
  import '../workflow-sub-canvas-IQzlYvPD.js';
@@ -1,7 +1,7 @@
1
1
  import '@flowgram.ai/utils';
2
2
  import '@flowgram.ai/document';
3
3
  import '../workflow-sub-canvas-IQzlYvPD.mjs';
4
- export { e as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-line-entity-BpFc2Mu3.mjs';
4
+ export { e as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-line-entity-BuRLWUuf.mjs';
5
5
  import './workflow-edge.mjs';
6
6
  import '@flowgram.ai/core';
7
7
  import '@flowgram.ai/form-core';
@@ -1,7 +1,7 @@
1
1
  import '@flowgram.ai/utils';
2
2
  import '@flowgram.ai/document';
3
3
  import '../workflow-sub-canvas-IQzlYvPD.js';
4
- export { e as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-line-entity-D4-erSyq.js';
4
+ export { e as WorkflowNodeJSON, t as WorkflowNodeMeta } from '../workflow-line-entity-BUokXoMi.js';
5
5
  import './workflow-edge.js';
6
6
  import '@flowgram.ai/core';
7
7
  import '@flowgram.ai/form-core';
@@ -2,7 +2,7 @@ import { FormMeta } from '@flowgram.ai/node';
2
2
  import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
3
3
  import { FlowNodeRegistry } from '@flowgram.ai/document';
4
4
  import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-IQzlYvPD.mjs';
5
- import { t as WorkflowNodeMeta } from '../workflow-line-entity-BpFc2Mu3.mjs';
5
+ import { t as WorkflowNodeMeta } from '../workflow-line-entity-BuRLWUuf.mjs';
6
6
  import '@flowgram.ai/utils';
7
7
  import '@flowgram.ai/core';
8
8
  import './workflow-edge.mjs';
@@ -2,7 +2,7 @@ import { FormMeta } from '@flowgram.ai/node';
2
2
  import { FormMetaOrFormMetaGenerator } from '@flowgram.ai/form-core';
3
3
  import { FlowNodeRegistry } from '@flowgram.ai/document';
4
4
  import { W as WorkflowNodeEntity } from '../workflow-sub-canvas-IQzlYvPD.js';
5
- import { t as WorkflowNodeMeta } from '../workflow-line-entity-D4-erSyq.js';
5
+ import { t as WorkflowNodeMeta } from '../workflow-line-entity-BUokXoMi.js';
6
6
  import '@flowgram.ai/utils';
7
7
  import '@flowgram.ai/core';
8
8
  import './workflow-edge.js';
@@ -564,6 +564,8 @@ declare class WorkflowLinesManager {
564
564
  getNodeFromMousePos(pos: IPoint): WorkflowNodeEntity | undefined;
565
565
  registerContribution(factory: WorkflowLineRenderContributionFactory): this;
566
566
  private registerData;
567
+ /** 获取鼠标坐标位置的所有节点(stackIndex 从小到大排序) */
568
+ private getContainNodesFromMousePos;
567
569
  private getNodeIndex;
568
570
  }
569
571
 
@@ -695,6 +697,7 @@ declare class WorkflowLineEntity extends Entity<WorkflowLineEntityOpts> {
695
697
  private _to?;
696
698
  private _processing;
697
699
  private _hasError;
700
+ stackIndex: number;
698
701
  /**
699
702
  * 线条数据
700
703
  */
@@ -564,6 +564,8 @@ declare class WorkflowLinesManager {
564
564
  getNodeFromMousePos(pos: IPoint): WorkflowNodeEntity | undefined;
565
565
  registerContribution(factory: WorkflowLineRenderContributionFactory): this;
566
566
  private registerData;
567
+ /** 获取鼠标坐标位置的所有节点(stackIndex 从小到大排序) */
568
+ private getContainNodesFromMousePos;
567
569
  private getNodeIndex;
568
570
  }
569
571
 
@@ -695,6 +697,7 @@ declare class WorkflowLineEntity extends Entity<WorkflowLineEntityOpts> {
695
697
  private _to?;
696
698
  private _processing;
697
699
  private _hasError;
700
+ stackIndex: number;
698
701
  /**
699
702
  * 线条数据
700
703
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowgram.ai/free-layout-core",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
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": "^4.0.2",
37
- "@flowgram.ai/core": "0.2.17",
38
- "@flowgram.ai/form-core": "0.2.17",
39
- "@flowgram.ai/node": "0.2.17",
40
- "@flowgram.ai/reactive": "0.2.17",
41
- "@flowgram.ai/utils": "0.2.17",
42
- "@flowgram.ai/document": "0.2.17"
37
+ "@flowgram.ai/core": "0.2.18",
38
+ "@flowgram.ai/form-core": "0.2.18",
39
+ "@flowgram.ai/node": "0.2.18",
40
+ "@flowgram.ai/reactive": "0.2.18",
41
+ "@flowgram.ai/document": "0.2.18",
42
+ "@flowgram.ai/utils": "0.2.18"
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.0.4",
55
55
  "vitest": "^0.34.6",
56
- "@flowgram.ai/eslint-config": "0.2.17",
57
- "@flowgram.ai/ts-config": "0.2.17"
56
+ "@flowgram.ai/eslint-config": "0.2.18",
57
+ "@flowgram.ai/ts-config": "0.2.18"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": ">=16.8",