@relation-graph/react 3.0.1 → 3.0.3

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.
Files changed (105) hide show
  1. package/package.json +1 -1
  2. package/relation-graph.js +6 -6
  3. package/relation-graph.mjs +1826 -1644
  4. package/relation-graph.umd.js +6 -6
  5. package/types/packages/platforms/react/src/index.d.ts +10 -2
  6. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts +1 -1
  7. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4CreatingLine.d.ts +1 -1
  8. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4FakeLines.d.ts +1 -1
  9. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Lines.d.ts +1 -1
  10. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePath.d.ts +1 -0
  11. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineText.d.ts +3 -1
  12. package/types/packages/platforms/vue2/src/core4vue/RGLineContent.vue.d.ts +5 -4
  13. package/types/packages/platforms/vue2/src/core4vue/RGLinePath.vue.d.ts +1 -2
  14. package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectTarget.vue.d.ts +32 -2
  15. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingLineController.vue.d.ts +7 -0
  16. package/types/packages/platforms/vue2/src/index.d.ts +39 -4
  17. package/types/packages/relation-graph-models/data/RGDataDefine.d.ts +2 -2
  18. package/types/packages/relation-graph-models/data/RGDataGetter.d.ts +3 -3
  19. package/types/packages/relation-graph-models/data/RGDataProvider.d.ts +3 -3
  20. package/types/packages/relation-graph-models/data/RGNodeDataUtils.d.ts +5 -2
  21. package/types/packages/relation-graph-models/layouts/RGForceLayout.d.ts +18 -13
  22. package/types/packages/relation-graph-models/layouts/analyzers/BasicNetworkAnalyzer.d.ts +1 -0
  23. package/types/packages/relation-graph-models/layouts/tmp/old.d.ts +1 -0
  24. package/types/packages/relation-graph-models/models/RelationGraphBase.d.ts +2 -2
  25. package/types/packages/relation-graph-models/models/RelationGraphWith2Data1Getter.d.ts +15 -7
  26. package/types/packages/relation-graph-models/models/RelationGraphWith2Data2Analysis.d.ts +6 -1
  27. package/types/packages/relation-graph-models/models/RelationGraphWith2Data3Update.d.ts +2 -0
  28. package/types/packages/relation-graph-models/models/RelationGraphWith2Data4ConnectTarget.d.ts +3 -3
  29. package/types/packages/relation-graph-models/models/RelationGraphWith4Line.d.ts +6 -2
  30. package/types/packages/relation-graph-models/models/RelationGraphWith6Layout.d.ts +5 -1
  31. package/types/packages/relation-graph-models/models/RelationGraphWith7Event.d.ts +2 -3
  32. package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +3 -0
  33. package/types/packages/types.ts +36 -32
  34. package/types/packages/platforms/react/src/relation-graph/RGPovider.d.ts +0 -7
  35. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerContent.d.ts +0 -4
  36. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationView.d.ts +0 -4
  37. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/NewCanvas.d.ts +0 -20
  38. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/NewCanvasV2.d.ts +0 -1
  39. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/NewCanvasV3.d.ts +0 -1
  40. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnSVGDefs.d.ts +0 -3
  41. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnToolbar.d.ts +0 -3
  42. package/types/packages/platforms/react/src/relation-graph/src/core4react/store/reducers/StockStore.d.ts +0 -8
  43. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphDebugPanel.d.ts +0 -3
  44. package/types/packages/platforms/react/src/types.d.ts +0 -1
  45. package/types/packages/platforms/react/vite.config.d.ts +0 -2
  46. package/types/packages/platforms/vue2/src/core4vue/RGLineText.vue.d.ts +0 -33
  47. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphDebugPanel.vue.d.ts +0 -12
  48. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGCanvas.vue.d.ts +0 -34
  49. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGCanvasContent.vue.d.ts +0 -37
  50. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGEasyView.vue.d.ts +0 -2
  51. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGFakeNode.vue.d.ts +0 -32
  52. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGGraphDefs.vue.d.ts +0 -29
  53. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGLineContent.vue.d.ts +0 -12
  54. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGLinePath.vue.d.ts +0 -16
  55. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGLinePeel.vue.d.ts +0 -29
  56. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGLineText.vue.d.ts +0 -27
  57. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGNodeExpandHolder.vue.d.ts +0 -18
  58. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGNodePeel.vue.d.ts +0 -40
  59. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RGProvider.vue.d.ts +0 -34
  60. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RelationGraph.vue.d.ts +0 -39
  61. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RelationLinker.vue.d.ts +0 -130
  62. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RelationLinkerCanvas.vue.d.ts +0 -23
  63. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/RelationLinkerView.vue.d.ts +0 -24
  64. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectSource.vue.d.ts +0 -45
  65. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectTarget.vue.d.ts +0 -46
  66. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingConnectController.vue.d.ts +0 -23
  67. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingConnectPoints.vue.d.ts +0 -16
  68. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingLineController.vue.d.ts +0 -56
  69. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingNearNodeWidget.vue.d.ts +0 -30
  70. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingNodeController.vue.d.ts +0 -17
  71. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingReferenceLine.vue.d.ts +0 -15
  72. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingResize.vue.d.ts +0 -19
  73. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGMiniView.vue.d.ts +0 -17
  74. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/index.vue.d.ts +0 -143
  75. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphBackground.vue.d.ts +0 -49
  76. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphDebugPanel.vue.d.ts +0 -2
  77. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphLoading.vue.d.ts +0 -2
  78. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphMoveOperator.vue.d.ts +0 -2
  79. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphOperateStuff.vue.d.ts +0 -19
  80. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphToolBar.vue.d.ts +0 -31
  81. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphWatermark.vue.d.ts +0 -56
  82. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/GraphXsToolBar.vue.d.ts +0 -31
  83. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/widgets/RGIcons.vue.d.ts +0 -15
  84. package/types/packages/relation-graph-models/layouters/RGBaseLayouter.d.ts +0 -36
  85. package/types/packages/relation-graph-models/layouters/RGCenterLayouter.d.ts +0 -12
  86. package/types/packages/relation-graph-models/layouters/RGCircleLayouter.d.ts +0 -8
  87. package/types/packages/relation-graph-models/layouters/RGFixedLayouter.d.ts +0 -11
  88. package/types/packages/relation-graph-models/layouters/RGFolderLayouter.d.ts +0 -17
  89. package/types/packages/relation-graph-models/layouters/RGForceLayouter.d.ts +0 -71
  90. package/types/packages/relation-graph-models/layouters/RGForceLayouterV2.d.ts +0 -59
  91. package/types/packages/relation-graph-models/layouters/RGSmartTreeLayouter.d.ts +0 -16
  92. package/types/packages/relation-graph-models/layouters/RGTreeLayouter.d.ts +0 -18
  93. package/types/packages/relation-graph-models/models/RGLineDataUtils.d.ts +0 -9
  94. package/types/packages/relation-graph-models/models/RGNodeDataUtils.d.ts +0 -14
  95. package/types/packages/relation-graph-models/models/RGOptionsDataUtils.d.ts +0 -11
  96. package/types/packages/relation-graph-models/models/RelationGraphFinal.d.ts +0 -11
  97. package/types/packages/relation-graph-models/models/RelationGraphReact.d.ts +0 -5
  98. package/types/packages/relation-graph-models/models/RelationGraphWith1Dom.d.ts +0 -76
  99. package/types/packages/relation-graph-models/models/RelationGraphWith3Image.d.ts +0 -20
  100. package/types/packages/relation-graph-models/models/RelationGraphWith8Update.d.ts +0 -23
  101. package/types/packages/relation-graph-models/types.d.ts +0 -903
  102. package/types/react.d.ts +0 -201
  103. package/types/svelte.d.ts +0 -170
  104. package/types/vue2.d.ts +0 -862
  105. package/types/vue3.d.ts +0 -1246
@@ -154,8 +154,11 @@ export declare const RGFakeNode: import('react').FC<{
154
154
  }>;
155
155
  export declare const RGLinePath: import('react').FC<import('../../../types').RGLinePathProps & {
156
156
  onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
157
+ children?: React.ReactNode;
158
+ }>;
159
+ export declare const RGLineText: import('react').FC<import('../../../types').RGLineTextProps & {
160
+ children?: React.ReactNode;
157
161
  }>;
158
- export declare const RGLineText: import('react').FC<import('../../../types').RGLineTextProps>;
159
162
  export declare const RGDebugView: import('react').FC<{}>;
160
163
  export declare const RGToolBar: import('react').FC<import('../../../types').RGToolBarProps>;
161
164
  export declare const RGNodeExpandHolder: import('react').FC<import('./types-react').RGNodeExpandHolderProps>;
@@ -212,5 +215,10 @@ export declare const useRelationGraph: typeof import('./relation-graph/src/hooks
212
215
  export declare const RGProvider: import('react').FC<import('react').PropsWithChildren<import('./types-react').RelationGraphWithWithCustomCore>>;
213
216
  export { RelationGraphStoreContext, RelationGraphStoreContext as RGInstanceContext, RGUpdateContext, RGUpdateSignalContext as RGUpdateSingalContext, RGUpdateSignalContext } from './relation-graph/src/core4react/store/reducers/RGStore';
214
217
  export type RelationGraphComponent = _RelationGraphComponent;
215
- export declare const RelationGraph: RelationGraphComponent;
218
+ export declare const RelationGraph: import('react').ForwardRefExoticComponent<import('../../../types').RGListeners & import('./types-react').RelationGraphWithSlots & {
219
+ options: import('../../../types').RGOptions;
220
+ initialData?: import('../../../types').RGJsonData;
221
+ } & import('./types-react').RelationGraphWithWithCustomCore & {
222
+ children?: import('react').ReactNode | undefined;
223
+ } & import('react').RefAttributes<import('../../../types').RelationGraphExpose>>;
216
224
  export default _RelationGraph;
@@ -11,7 +11,7 @@ export interface RGCanvasContentProps {
11
11
  draggingNodeId?: string;
12
12
  checkedNodeId?: string;
13
13
  checkedLineId?: string;
14
- lineUseTextPath?: boolean;
14
+ defaultLineTextOnPath?: boolean;
15
15
  graphInstanceId?: string;
16
16
  }
17
17
  declare const RGCanvasContent: React.FC<RGCanvasContentProps>;
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { RGLineSlotProps } from '../../../../../../types';
3
3
  export interface RGCanvasContent4CreatingLineProps {
4
4
  lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
5
- lineUseTextPath?: boolean;
5
+ defaultLineTextOnPath?: boolean;
6
6
  checkedLineId?: string;
7
7
  graphInstanceId?: string;
8
8
  }
@@ -3,7 +3,7 @@ import { RGLineSlotProps } from '../../../../../../types';
3
3
  export interface RGCanvasContent4FakeLinesProps {
4
4
  showEasyView: boolean;
5
5
  lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
6
- lineUseTextPath?: boolean;
6
+ defaultLineTextOnPath?: boolean;
7
7
  checkedLineId?: string;
8
8
  graphInstanceId?: string;
9
9
  }
@@ -3,7 +3,7 @@ import { RGLine, RGLineSlotProps } from '../../../../../../types';
3
3
  export interface RGCanvasContent4LinesProps {
4
4
  showEasyView: boolean;
5
5
  lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
6
- lineUseTextPath?: boolean;
6
+ defaultLineTextOnPath?: boolean;
7
7
  checkedLineId?: string;
8
8
  graphInstanceId?: string;
9
9
  allLineConfigList: RGLine[];
@@ -2,5 +2,6 @@ import { default as React } from 'react';
2
2
  import { RGLinePathProps } from '../../../../../../types';
3
3
  declare const RGLinePath: React.FC<RGLinePathProps & {
4
4
  onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
5
+ children?: React.ReactNode;
5
6
  }>;
6
7
  export default RGLinePath;
@@ -1,4 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { RGLineTextProps } from '../../../../../../types';
3
- declare const RGLineText: React.FC<RGLineTextProps>;
3
+ declare const RGLineText: React.FC<RGLineTextProps & {
4
+ children?: React.ReactNode;
5
+ }>;
4
6
  export default RGLineText;
@@ -1,20 +1,21 @@
1
1
  declare const _default: import('vue').DefineComponent<Readonly<{
2
- lineUseTextPath?: any;
2
+ defaultLineTextOnPath?: any;
3
3
  lineConfig?: any;
4
4
  graphInstanceId?: any;
5
5
  checked?: any;
6
6
  }>, {}, {}, {
7
7
  graphInstance(): any;
8
- useTextPath(): any;
8
+ useTextOnPath(): any;
9
+ useSvgTextPath(): any;
9
10
  linePathInfo(): any;
10
11
  textStyle(): any;
11
12
  }, {}, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<Readonly<{
12
- lineUseTextPath?: any;
13
+ defaultLineTextOnPath?: any;
13
14
  lineConfig?: any;
14
15
  graphInstanceId?: any;
15
16
  checked?: any;
16
17
  }>>>, {
17
- readonly lineUseTextPath?: any;
18
+ readonly defaultLineTextOnPath?: any;
18
19
  readonly lineConfig?: any;
19
20
  readonly graphInstanceId?: any;
20
21
  readonly checked?: any;
@@ -1,12 +1,11 @@
1
1
  declare const _default: import('vue').DefineComponent<string[], {}, {}, {
2
2
  graphInstance(): any;
3
3
  pathId(): string;
4
- useTextPath(): any;
5
4
  line(): any;
6
5
  lineWidth(): string | undefined;
7
6
  startArrowMarkerId(): any;
8
7
  endArrowMarkerId(): any;
9
- textStyle(): any;
8
+ onPathTextStyle(): any;
10
9
  }, {
11
10
  onLineClick(e: any): void;
12
11
  }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<string[]>>, {
@@ -1,3 +1,4 @@
1
+ import { RGInnerConnectTargetType, RGJunctionPoint } from '../../../../../types';
1
2
  declare const _default: import('vue').DefineComponent<{
2
3
  junctionPoint: {
3
4
  mustUseProp: boolean;
@@ -16,13 +17,28 @@ declare const _default: import('vue').DefineComponent<{
16
17
  mustUseProp: boolean;
17
18
  type: ObjectConstructor;
18
19
  };
20
+ lineTemplate: {
21
+ mustUseProp: boolean;
22
+ type: ObjectConstructor;
23
+ };
24
+ disableDrop: {
25
+ mustUseProp: boolean;
26
+ type: BooleanConstructor;
27
+ };
28
+ disableDrag: {
29
+ mustUseProp: boolean;
30
+ type: BooleanConstructor;
31
+ };
19
32
  }, {}, {}, {
33
+ RGInnerConnectTargetType(): typeof RGInnerConnectTargetType;
34
+ RGJunctionPoint(): typeof RGJunctionPoint;
20
35
  graphInstance(): any;
21
36
  options(): any;
22
37
  }, {
23
- onMouseDown(event: any): void;
38
+ onClick($event: any): void;
39
+ onMouseDown($event: any): void;
24
40
  onMouseUp(type: any, $event: any): void;
25
- }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
41
+ }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, ("onLineVertexBeDropped" | "onDragConnectStart" | "onDragConnectEnd")[], string, Readonly<import('vue').ExtractPropTypes<{
26
42
  junctionPoint: {
27
43
  mustUseProp: boolean;
28
44
  default: string;
@@ -40,7 +56,21 @@ declare const _default: import('vue').DefineComponent<{
40
56
  mustUseProp: boolean;
41
57
  type: ObjectConstructor;
42
58
  };
59
+ lineTemplate: {
60
+ mustUseProp: boolean;
61
+ type: ObjectConstructor;
62
+ };
63
+ disableDrop: {
64
+ mustUseProp: boolean;
65
+ type: BooleanConstructor;
66
+ };
67
+ disableDrag: {
68
+ mustUseProp: boolean;
69
+ type: BooleanConstructor;
70
+ };
43
71
  }>>, {
72
+ disableDrag: boolean;
44
73
  junctionPoint: string;
74
+ disableDrop: boolean;
45
75
  }>;
46
76
  export default _default;
@@ -2,6 +2,9 @@ declare const _default: import('vue').DefineComponent<{
2
2
  textEditable: {
3
3
  default: boolean;
4
4
  };
5
+ pathEditable: {
6
+ default: boolean;
7
+ };
5
8
  }, {}, {
6
9
  lineText: string;
7
10
  editing: boolean;
@@ -30,7 +33,11 @@ declare const _default: import('vue').DefineComponent<{
30
33
  textEditable: {
31
34
  default: boolean;
32
35
  };
36
+ pathEditable: {
37
+ default: boolean;
38
+ };
33
39
  }>>, {
34
40
  textEditable: boolean;
41
+ pathEditable: boolean;
35
42
  }>;
36
43
  export default _default;
@@ -169,12 +169,11 @@ export declare const RGFakeNode: import('vue').DefineComponent<{
169
169
  export declare const RGLinePath: import('vue').DefineComponent<string[], {}, {}, {
170
170
  graphInstance(): any;
171
171
  pathId(): string;
172
- useTextPath(): any;
173
172
  line(): any;
174
173
  lineWidth(): string | undefined;
175
174
  startArrowMarkerId(): any;
176
175
  endArrowMarkerId(): any;
177
- textStyle(): any;
176
+ onPathTextStyle(): any;
178
177
  }, {
179
178
  onLineClick(e: any): void;
180
179
  }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<string[]>>, {
@@ -497,6 +496,9 @@ export declare const RGEditingLineController: import('vue').DefineComponent<{
497
496
  textEditable: {
498
497
  default: boolean;
499
498
  };
499
+ pathEditable: {
500
+ default: boolean;
501
+ };
500
502
  }, {}, {
501
503
  lineText: string;
502
504
  editing: boolean;
@@ -525,8 +527,12 @@ export declare const RGEditingLineController: import('vue').DefineComponent<{
525
527
  textEditable: {
526
528
  default: boolean;
527
529
  };
530
+ pathEditable: {
531
+ default: boolean;
532
+ };
528
533
  }>>, {
529
534
  textEditable: boolean;
535
+ pathEditable: boolean;
530
536
  }>;
531
537
  export declare const RGEditingConnectController: import('vue').DefineComponent<Readonly<{}>, {}, {}, {
532
538
  graphInstance(): any;
@@ -583,13 +589,28 @@ export declare const RGConnectTarget: import('vue').DefineComponent<{
583
589
  mustUseProp: boolean;
584
590
  type: ObjectConstructor;
585
591
  };
592
+ lineTemplate: {
593
+ mustUseProp: boolean;
594
+ type: ObjectConstructor;
595
+ };
596
+ disableDrop: {
597
+ mustUseProp: boolean;
598
+ type: BooleanConstructor;
599
+ };
600
+ disableDrag: {
601
+ mustUseProp: boolean;
602
+ type: BooleanConstructor;
603
+ };
586
604
  }, {}, {}, {
605
+ RGInnerConnectTargetType(): typeof import('../../../types').RGInnerConnectTargetType;
606
+ RGJunctionPoint(): typeof import('../../../types').RGJunctionPoint;
587
607
  graphInstance(): any;
588
608
  options(): any;
589
609
  }, {
590
- onMouseDown(event: any): void;
610
+ onClick($event: any): void;
611
+ onMouseDown($event: any): void;
591
612
  onMouseUp(type: any, $event: any): void;
592
- }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
613
+ }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, ("onLineVertexBeDropped" | "onDragConnectStart" | "onDragConnectEnd")[], string, Readonly<import('vue').ExtractPropTypes<{
593
614
  junctionPoint: {
594
615
  mustUseProp: boolean;
595
616
  default: string;
@@ -607,8 +628,22 @@ export declare const RGConnectTarget: import('vue').DefineComponent<{
607
628
  mustUseProp: boolean;
608
629
  type: ObjectConstructor;
609
630
  };
631
+ lineTemplate: {
632
+ mustUseProp: boolean;
633
+ type: ObjectConstructor;
634
+ };
635
+ disableDrop: {
636
+ mustUseProp: boolean;
637
+ type: BooleanConstructor;
638
+ };
639
+ disableDrag: {
640
+ mustUseProp: boolean;
641
+ type: BooleanConstructor;
642
+ };
610
643
  }>>, {
644
+ disableDrag: boolean;
611
645
  junctionPoint: string;
646
+ disableDrop: boolean;
612
647
  }>;
613
648
  export declare const RGEditingConnectPoints: import('vue').DefineComponent<{
614
649
  mouseUpOnJunctionPoint: {
@@ -1,4 +1,4 @@
1
- import { RGGraphData, RGNode, RGLine, RGLink, RGOptionsFull, RGFakeLine, RGConnectTarget4NodePoint, RGLineTarget } from '../../types';
1
+ import { RGGraphData, RGNode, RGLine, RGLink, RGOptionsFull, RGFakeLine, RGConnectTargetData, RGLineTarget } from '../../types';
2
2
  /**
3
3
  * 数据提供者
4
4
  * 专门负责数据的增删改查,并自动触发视图更新
@@ -13,7 +13,7 @@ export declare class RGDataDefine {
13
13
  protected runtimeDATA4NodeMap: Map<string, RGNode>;
14
14
  protected runtimeDATA4Links: RGLink[];
15
15
  protected runtimeDATA4LinkMap: Map<string, RGLink>;
16
- protected runtimeDATA4ConnectTargets: RGConnectTarget4NodePoint[];
16
+ protected runtimeDATA4ConnectTargets: RGConnectTargetData[];
17
17
  protected runtimeDATA4ElLineTargets: RGLineTarget[];
18
18
  protected runtimeDATA4ShouldRenderItems: {
19
19
  nodes: RGNode[];
@@ -1,4 +1,4 @@
1
- import { RGNode, RGLine, RGFakeLine, RGConnectTarget4NodePoint, RGCoordinate } from '../../types';
1
+ import { RGNode, RGLine, RGFakeLine, RGConnectTargetData, RGCoordinate } from '../../types';
2
2
  import { RGDataDefine } from './RGDataDefine';
3
3
  /**
4
4
  * 数据提供者
@@ -25,8 +25,8 @@ export declare class RGDataGetter extends RGDataDefine {
25
25
  getShouldRenderFakeLines(): RGFakeLine[];
26
26
  isPerformanceMode(): boolean;
27
27
  getCanvasScale(): number;
28
- getConnectTargets(): RGConnectTarget4NodePoint[];
29
- getConnectTargetById(targetId: string): RGConnectTarget4NodePoint | undefined;
28
+ getConnectTargets(): RGConnectTargetData[];
29
+ getConnectTargetById(targetId: string): RGConnectTargetData | undefined;
30
30
  getElLineTargets(): import('../../types').RGLineTarget[];
31
31
  getElLineTargetById(elId: string): import('../../types').RGLineTarget | undefined;
32
32
  calcShouldRenderNodes(): RGNode[];
@@ -1,4 +1,4 @@
1
- import { RGNode, RGLine, RGOptionsFull, JsonLine, RGConnectTarget4NodePoint, RGLineTarget } from '../../types';
1
+ import { RGNode, RGLine, RGOptionsFull, JsonLine, RGConnectTargetData, RGLineTarget } from '../../types';
2
2
  import { RGDataGetter } from './RGDataGetter';
3
3
  export type DataCommits = {
4
4
  optionsChanged: boolean;
@@ -55,12 +55,12 @@ export declare class RGDataProvider extends RGDataGetter {
55
55
  updateLine(lineId: string, lineProperties: Partial<RGLine>): void;
56
56
  updateLineData(lineId: string, lineData: Record<string, any>): void;
57
57
  updateFakeLine(lineId: string, lineProperties: Partial<RGLine>): void;
58
- updateConnectTarget(connectTargetId: string, connectTargetProperties: Partial<RGConnectTarget4NodePoint>): void;
58
+ updateConnectTarget(connectTargetId: string, connectTargetProperties: Partial<RGConnectTargetData>): void;
59
59
  updateElLineTarget(elId: string, targetProperties: Partial<RGLineTarget>): void;
60
60
  updateNodesVisibleProperty(nodes?: RGNode[]): void;
61
61
  private calcLinkVisibility;
62
62
  updateShouldRenderGraphData(): void;
63
- addConnectTarget(newConnectTarget: RGConnectTarget4NodePoint): RGConnectTarget4NodePoint | undefined;
63
+ addConnectTarget(newConnectTarget: RGConnectTargetData): RGConnectTargetData | undefined;
64
64
  addElLineTarget(elementTarget: RGLineTarget): void;
65
65
  setRootNodeId(rootNodeId: string): void;
66
66
  }
@@ -5,10 +5,13 @@ export declare const newNodeTemplate: {
5
5
  y: number;
6
6
  text: string;
7
7
  };
8
- export declare const json2Node: (originData: JsonNode, graphOptions?: RGOptions) => RGNode;
8
+ export declare const json2Node: (originData: JsonNode, graphOptions?: RGOptions, nodesSizeMap?: Map<string, [
9
+ number,
10
+ number
11
+ ]>) => RGNode;
9
12
  export declare const transNodeToJson: (node: RGNode) => JsonNode | undefined;
10
13
  declare const _default: {
11
- json2Node: (originData: JsonNode, graphOptions?: Partial<import('../../types').RGOptionsInited> | undefined) => RGNode;
14
+ json2Node: (originData: JsonNode, graphOptions?: Partial<import('../../types').RGOptionsInited> | undefined, nodesSizeMap?: Map<string, [number, number]> | undefined) => RGNode;
12
15
  transNodeToJson: (node: RGNode) => JsonNode | undefined;
13
16
  };
14
17
  export default _default;
@@ -12,26 +12,30 @@ type CalcNode4Force = CalcNode & {
12
12
  };
13
13
  export declare class RGForceLayout extends RGBaseLayout {
14
14
  layoutOptions: RGForceLayoutOptions;
15
- fastStart: boolean;
16
- skipInitLayout: boolean;
17
- maxLayoutTimes: number;
18
- byNode: boolean;
19
- byLine: boolean;
20
- lockX: boolean;
21
- lockY: boolean;
22
- force_node_repulsion: number;
23
- force_line_elastic: number;
24
- stopWhenBalanced: boolean;
15
+ private fastStart;
16
+ private skipInitLayout;
17
+ private maxLayoutTimes;
18
+ private byNode;
19
+ private byLine;
20
+ private lockX;
21
+ private lockY;
22
+ private force_node_repulsion;
23
+ private force_line_elastic;
24
+ private disableLiveChanges;
25
+ private force_x_coefficient;
26
+ private force_y_coefficient;
25
27
  instanceId: string;
26
28
  constructor(layoutOptions: RGForceLayoutOptions, graphOptions: RGOptionsFull, graphInstance: RelationGraphInstance);
29
+ updateOptions(layoutOptions: RGForceLayoutOptions): void;
27
30
  calcNodes: RGNode[];
28
31
  placeNodes(calcNodes: RGNode[], rootNode?: RGNode): void;
29
32
  protected getLevelR(levelDistanceArr: number[], level: number): number | undefined;
30
- protected placeRelativePosition(rootNode: RGNode, groupNodes: RGNode[], analyticResult: NodesAnalyticResult, distance_coefficient: any, levelDistanceArr: any): void;
33
+ protected placeRelativePosition(rootNode: RGNode, groupNodes: RGNode[], analyticResult: NodesAnalyticResult, distanceCoefficient: number, levelDistanceArr: number[]): void;
34
+ private calculateMinimumRadius;
31
35
  protected placeNodesInFanRegion(nodes: RGNode[], startDeg: number, endDeg: number, centerXy: {
32
36
  x: number;
33
37
  y: number;
34
- }, level: number, parentStrength: number, levelDistanceArr: number[], deep: number, distanceCoefficient?: number): void;
38
+ }, level: number, parentStrength: number, levelDistanceArr: number[], deep: number, distanceCoefficient: number, currentR: number): void;
35
39
  protected graphEventHandle(eventName: RGEventNames, ...args: any[]): void;
36
40
  protected _graphEventHandler: any;
37
41
  protected connectToGraphInstance(): void;
@@ -60,7 +64,8 @@ export declare class RGForceLayout extends RGBaseLayout {
60
64
  private animationFrameTimer;
61
65
  private prevNodeLevel1Index;
62
66
  private prevNodeLevel2Index;
63
- calcNodesPosition(): boolean;
67
+ syncNodePosition(nodeId: string, x: number, y: number): void;
68
+ calcNodesPosition(): false | undefined;
64
69
  private stoped;
65
70
  stop(): void;
66
71
  addElasticByLine(node1: CalcNode4Force, node2: CalcNode4Force, force_elastic?: number): void;
@@ -3,6 +3,7 @@ import { RelationGraphInstance, RGNode } from '../../../types';
3
3
  export declare class BasicNetworkAnalyzer implements RGNetworkAnalyzer {
4
4
  graphInstance: RelationGraphInstance;
5
5
  private initialized;
6
+ isFolderLayout: boolean;
6
7
  constructor(graphInstance: RelationGraphInstance);
7
8
  analyzeNetwork(nodes: RGNode[], rootNode: RGNode, bothWay?: boolean, deepBothWay?: boolean): {
8
9
  tree: {
@@ -60,7 +60,7 @@ export declare class RelationGraphBase {
60
60
  * @param eventName Name of the event
61
61
  * @param object Parameters passed to the event handler
62
62
  */
63
- protected emitEvent(eventName: RGEventNames, ...args: any[]): import('../../types').RGCoordinate | undefined;
63
+ protected emitEvent(eventName: RGEventNames, ...args: any[]): false | import('../../types').RGCoordinate | undefined;
64
64
  /**
65
65
  * Protected Method to trigger the default event handler, i.e., trigger the events set in jsx
66
66
  * @param eventName
@@ -68,7 +68,7 @@ export declare class RelationGraphBase {
68
68
  * @protected
69
69
  */
70
70
  protected defaultEventHandler(eventName: RGEventNames, ...args: any[]): {
71
- result: void | import('../../types').RGCoordinate;
71
+ result: false | void | import('../../types').RGCoordinate;
72
72
  handled: boolean;
73
73
  };
74
74
  /**
@@ -1,4 +1,4 @@
1
- import { RGFakeLine, RGLine } from '../../types';
1
+ import { RGFakeLine, RGLine, RGLink, RGNode } from '../../types';
2
2
  import { RelationGraphWith2Data } from './RelationGraphWith2Data';
3
3
  /**
4
4
  * The instance class of the relation-graph component, providing read-only API methods based on data
@@ -15,7 +15,7 @@ export declare class RelationGraphWith2Data1Getter extends RelationGraphWith2Dat
15
15
  * @param nodeId
16
16
  * @return RGNode | undefined
17
17
  */
18
- getNodeById(nodeId: string): import('../../types').RGNode | undefined;
18
+ getNodeById(nodeId: string): RGNode | undefined;
19
19
  /**
20
20
  * Get line by lineId
21
21
  * @param lineId
@@ -27,13 +27,13 @@ export declare class RelationGraphWith2Data1Getter extends RelationGraphWith2Dat
27
27
  * @param lineId
28
28
  * @return RGLink | undefined
29
29
  */
30
- getLinkByLineId(lineId: string): import('../../types').RGLink | undefined;
30
+ getLinkByLineId(lineId: string): RGLink | undefined;
31
31
  /**
32
32
  * Get link by line
33
33
  * @param line
34
34
  * @return RGLink | undefined
35
35
  */
36
- getLinkByLine(line: RGLine): import('../../types').RGLink | undefined;
36
+ getLinkByLine(line: RGLine): RGLink | undefined;
37
37
  /**
38
38
  * Get all lines
39
39
  * @return RGLine[]
@@ -63,15 +63,23 @@ export declare class RelationGraphWith2Data1Getter extends RelationGraphWith2Dat
63
63
  * Get all nodes
64
64
  * @return RGNode[]
65
65
  */
66
- getNodes(): import('../../types').RGNode[];
66
+ getNodes(): RGNode[];
67
67
  /**
68
68
  * Get all links
69
69
  * @return RGLink[]
70
70
  */
71
- getLinks(): import('../../types').RGLink[];
71
+ getLinks(): RGLink[];
72
+ /**
73
+ * Get all links, Inlcuding fakeLine links
74
+ * @return RGLink[]
75
+ */
76
+ protected _getAllLinks(): RGLink[];
77
+ private getNodeByTargetId;
78
+ protected _getFakeLineLinks(): RGLink[];
72
79
  /**
73
80
  * Get all connect targets
74
81
  * @return RGLineTarget[]
75
82
  */
76
- getConnectTargets(): import('../../types').RGConnectTarget4NodePoint[];
83
+ getConnectTargets(): import('../../types').RGConnectTargetData[];
84
+ getConnectTargetById(targetId: string): import('../../types').RGConnectTargetData | undefined;
77
85
  }
@@ -55,8 +55,13 @@ export declare class RelationGraphWith2Data2Analysis extends RelationGraphWith2D
55
55
  * getNodeRelatedNodes(X) will return [A,B,C,F,M]
56
56
  * ```
57
57
  * @param node
58
+ * @param options
59
+ * @return RGNode[]
58
60
  */
59
- getNodeRelatedNodes(node: RGNode): RGNode[];
61
+ getNodeRelatedNodes(node: RGNode, options?: {
62
+ incoming: boolean;
63
+ outgoing: boolean;
64
+ }): RGNode[];
60
65
  /**
61
66
  * Get all nodes that have an incoming relationship to the given node
62
67
  * - e.g.
@@ -219,6 +219,8 @@ export declare class RelationGraphWith2Data3Update extends RelationGraphWith2Dat
219
219
  * @param lines_collect All expanded lines will be stored here
220
220
  */
221
221
  flatNodeData(orign_nodes: JsonNode[], parentNode: JsonNode | null, nodes_collect: JsonNode[], lines_collect: JsonLine[]): void;
222
+ private _nodesElSizeMap;
223
+ private backupNodesElSize;
222
224
  /**
223
225
  * @inner
224
226
  * @param jsonData
@@ -1,4 +1,4 @@
1
- import { RGConnectTarget4NodePoint, RGJunctionPoint } from '../../types';
1
+ import { RGConnectTargetData, RGJunctionPoint } from '../../types';
2
2
  import { RelationGraphWith2Data3Update } from './RelationGraphWith2Data3Update';
3
3
  /**
4
4
  * The class related to connection point management in the relation-graph component, where the connection point refers to the connection point registered through the <RGConnectTarget> component
@@ -35,7 +35,7 @@ export declare class RelationGraphWith2Data4ConnectTarget extends RelationGraphW
35
35
  /**
36
36
  * @inner
37
37
  */
38
- protected updateConnectTargetList(by: string, relativeNodeEl: Element, connectTargetList: RGConnectTarget4NodePoint[]): void;
38
+ protected updateConnectTargetList(by: string, relativeNodeEl: Element, connectTargetList: RGConnectTargetData[]): void;
39
39
  /**
40
40
  * @inner
41
41
  */
@@ -64,7 +64,7 @@ export declare class RelationGraphWith2Data4ConnectTarget extends RelationGraphW
64
64
  /**
65
65
  * @inner
66
66
  */
67
- registerConnectTarget(connectTargetEl: HTMLDivElement, targetId: string, targetType: string, junctionPoint: RGJunctionPoint, targetData?: Record<string, any>): RGConnectTarget4NodePoint | undefined;
67
+ registerConnectTarget(connectTargetEl: HTMLDivElement, targetId: string, targetType: string, junctionPoint: RGJunctionPoint, targetData?: Record<string, any>): RGConnectTargetData | undefined;
68
68
  /**
69
69
  * @inner
70
70
  */
@@ -26,6 +26,7 @@ export declare class RelationGraphWith4Line extends RelationGraphWith3Options2AP
26
26
  *
27
27
  */
28
28
  createLineDrawInfo(link: RGLink | RGElementLine, line: RGLine): RGLinePathInfo | undefined;
29
+ private _getLineDefaultOptions;
29
30
  /**
30
31
  * Generate line path data
31
32
  * - This method is generally used internally by components, but can also be called for external custom rendering of lines to obtain line drawing information.
@@ -98,9 +99,12 @@ export declare class RelationGraphWith4Line extends RelationGraphWith3Options2AP
98
99
  * @return Returns an object containing text content and CSS styles
99
100
  *
100
101
  */
101
- generateLineTextStyle4TextPath(lineConfig: RGGenerateLineConfig): {
102
+ generateLineTextStyle4TextOnPath(lineConfig: RGGenerateLineConfig): {
102
103
  text: string;
103
- textOffset: string;
104
+ textOffset: {
105
+ x: number;
106
+ y: number;
107
+ };
104
108
  textAnchor: string;
105
109
  onPathStartOffset: string;
106
110
  textRotate: number;
@@ -13,6 +13,9 @@ export declare class RelationGraphWith6Layout extends RelationGraphWith6Effect {
13
13
  * @return Promise<void>
14
14
  */
15
15
  doLayout(customRootNode?: RGNode | string): Promise<void>;
16
+ private _layoutTimer;
17
+ private _layoutPromise;
18
+ private _layoutResolve;
16
19
  /**
17
20
  * @inner
18
21
  * @private
@@ -49,7 +52,7 @@ export declare class RelationGraphWith6Layout extends RelationGraphWith6Effect {
49
52
  * - Note: The center layout inherits the force layout and also supports auto layout functionality.
50
53
  */
51
54
  toggleAutoLayout(): void;
52
- private layoutor;
55
+ layoutor: RGLayout | undefined;
53
56
  /**
54
57
  * If the current layout is force, you can call this method to start the force-directed calculation
55
58
  * - Note: The center layout inherits the force layout and also supports auto layout functionality.
@@ -78,4 +81,5 @@ export declare class RelationGraphWith6Layout extends RelationGraphWith6Effect {
78
81
  *
79
82
  */
80
83
  createLayout<Layout extends RGLayout>(layoutOptions: RGLayoutOptions, isMainLayout?: boolean): Layout;
84
+ setLayoutor(layoutor: RGLayout, isMainLayout: boolean, supportAutoLayout?: boolean): void;
81
85
  }
@@ -1,4 +1,4 @@
1
- import { CreatingLinePlotOptions, CreatingNodePlotOptions, RGLine, RGLineConnectEventHandler, RGLineTarget, RGLink, RGNode, RGPosition, RGUserEvent, RGCoordinate, JsonLine } from '../../types';
1
+ import { CreatingLinePlotOptions, CreatingNodePlotOptions, RGLine, RGLineConnectEventHandler, RGLineTarget, RGNode, RGPosition, RGUserEvent, RGCoordinate, JsonLine } from '../../types';
2
2
  import { RelationGraphWith6Layout } from './RelationGraphWith6Layout';
3
3
  /**
4
4
  * The relation-graph component UI and graphInstance event bus handle user interaction events.
@@ -45,10 +45,9 @@ export declare class RelationGraphWith7Event extends RelationGraphWith6Layout {
45
45
  * Triggered when the user clicks on a line
46
46
  * - Triggered when the user clicks on a line path or line text
47
47
  * @param line The clicked line object
48
- * @param link The link object that the line belongs to
49
48
  * @param e MouseDown or TouchStart event
50
49
  */
51
- onLineClick(line: RGLine, link: RGLink, e: RGUserEvent): void;
50
+ onLineClick(line: RGLine, e: RGUserEvent): void;
52
51
  /**
53
52
  * Triggered when the node's expand/collapse button is clicked.
54
53
  * - This method will expand or collapse all descendant nodes of the node.
@@ -1,3 +1,4 @@
1
+ import { RGRectTarget } from 'packages/platforms/vue2/dd/types/packages/types';
1
2
  import { RGNode } from '../../types';
2
3
  import { RelationGraphWith93Image } from './RelationGraphWith93Image';
3
4
  /**
@@ -28,6 +29,7 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
28
29
  * @private
29
30
  */
30
31
  protected initDom(): void;
32
+ updateCanvasConnectTargetsPosition(reson?: string): void;
31
33
  private mutationObserver4Nodes?;
32
34
  private mutationObserver4CanvasSlotBehind?;
33
35
  private mutationObserver4CanvasSlotAbove?;
@@ -105,4 +107,5 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
105
107
  * @protected
106
108
  */
107
109
  protected destroyResizeObserver(): void;
110
+ getCanvasSlotRectItems(): RGRectTarget[];
108
111
  }