@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
@@ -69,7 +69,7 @@ export enum RGJunctionPoint {
69
69
  * Data type used internally by relation-graph to manage connection points
70
70
  * @inner This type is used internally by relation-graph and is not recommended for direct use by users
71
71
  */
72
- export type RGConnectTarget4NodePoint = {
72
+ export type RGConnectTargetData = {
73
73
  targetId: string;
74
74
  targetType: string;
75
75
  nodeId?: string;
@@ -247,6 +247,7 @@ export type RGNode = Omit<JsonNode, 'children'> & RGRectTarget & {
247
247
  x: number
248
248
  y: number
249
249
  nodeShape: RGNodeShape
250
+ data: Record<string, any>
250
251
  lot: {
251
252
  childs: RGNode[]
252
253
  parent?: RGNode | undefined
@@ -269,9 +270,9 @@ export type RGNode = Omit<JsonNode, 'children'> & RGRectTarget & {
269
270
  x?: number
270
271
  y?: number
271
272
  }
272
- rgChildrenSize?: number
273
- rgShouldRender?: boolean
274
- rgCalcedVisibility?: boolean
273
+ rgChildrenSize: number
274
+ rgShouldRender: boolean
275
+ rgCalcedVisibility: boolean
275
276
  }
276
277
  /**
277
278
  * JSON line type for relation-graph
@@ -313,8 +314,8 @@ export type JsonLine = {
313
314
  showEndArrow?: boolean
314
315
  startMarkerId?: string
315
316
  endMarkerId?: string
316
- useTextPath?: boolean
317
- onPathStartOffset?: string
317
+ useTextOnPath?: boolean
318
+ placeText?: 'start'|'center'|'end'
318
319
  textAnchor?: string
319
320
  lineDirection?: string
320
321
  polyLineStartDistance?: number
@@ -322,8 +323,8 @@ export type JsonLine = {
322
323
  data?: Record<string, any>
323
324
  cssVars?: Record<string, any>
324
325
  force_elastic?: number
325
- textOffset_x?: number
326
- textOffset_y?: number
326
+ textOffsetX?: number
327
+ textOffsetY?: number
327
328
  animation?: number
328
329
  dashType?: number
329
330
  lineRadius?: number
@@ -331,10 +332,10 @@ export type JsonLine = {
331
332
  junctionOffset?: number
332
333
  fromJunctionPoint?: RGJunctionPoint
333
334
  toJunctionPoint?: RGJunctionPoint
334
- fromJuctionPointOffsetX?: number
335
- fromJuctionPointOffsetY?: number
336
- toJuctionPointOffsetX?: number
337
- toJuctionPointOffsetY?: number
335
+ fromJunctionPointOffsetX?: number
336
+ fromJunctionPointOffsetY?: number
337
+ toJunctionPointOffsetX?: number
338
+ toJunctionPointOffsetY?: number
338
339
  hidden?: boolean
339
340
  }
340
341
  /**
@@ -345,8 +346,8 @@ export type JsonLine = {
345
346
  */
346
347
  export type RGFakeLine = JsonLine & {
347
348
  id: string;
348
- fromType: RGInnerConnectTargetType | string;
349
- toType: RGInnerConnectTargetType | string;
349
+ fromType?: RGInnerConnectTargetType | string;
350
+ toType?: RGInnerConnectTargetType | string;
350
351
  }
351
352
  /**
352
353
  * Enhanced line type for runtime in relation-graph
@@ -502,12 +503,14 @@ export type RGForceLayoutOptions = RGLayoutOptionsCore & {
502
503
  };
503
504
  /**
504
505
  * Center layout options type
505
- * - distance_coefficient: Coefficient for calculating the ideal distance between nodes, default is 1. The larger this value, the greater the ideal distance between nodes, and the more dispersed the layout will be.
506
- * - levelDistance: Array of distances between levels, default is []. You can set the distance between different levels of nodes in the tree structure. For example, [100, 200, 300] means the distance between level 0 and level 1 is 100, the distance between level 1 and level 2 is 200, and the distance between level 2 and level 3 is 300. If the array length is less than the number of levels, the last value will be used for the remaining levels.
506
+ * - distanceCoefficient: Coefficient for calculating the ideal distance between nodes, default is 1. The larger this value, the greater the ideal distance between nodes, and the more dispersed the layout will be.
507
+ * - disableAsForceLayout: CenterLayout extends ForceLayout. If you want to use CenterLayout as a pure center layout without force-directed layout capabilities, you can set this option to true to disable the force-directed layout features.
508
+ * - levelGaps: Array of distances between levels, default is []. You can set the distance between different levels of nodes in the tree structure. For example, [100, 200, 300] means the distance between level 0 and level 1 is 100, the distance between level 1 and level 2 is 200, and the distance between level 2 and level 3 is 300. If the array length is less than the number of levels, the last value will be used for the remaining levels.
507
509
  */
508
510
  export type RGCenterLayoutOptions = RGForceLayoutOptions & {
509
- distance_coefficient?: number
510
- levelDistance?: number[]
511
+ distanceCoefficient?: number
512
+ levelGaps?: number[]
513
+ disableAsForceLayout?: boolean;
511
514
  };
512
515
  /**
513
516
  * Tree layout options type
@@ -522,7 +525,7 @@ export type RGCenterLayoutOptions = RGForceLayoutOptions & {
522
525
  * - alignParentItemsY: Alignment of parent nodes in the Y direction, 'start' means top-aligned, 'center' means center-aligned, and 'end' means bottom-aligned. Default is 'center'.
523
526
  */
524
527
  export type RGTreeLayoutOptions = RGLayoutOptionsCore & {
525
- from: string
528
+ from?: 'left'|'top'|'right'|'bottom'
526
529
  treeNodeGapH?: number
527
530
  treeNodeGapV?: number
528
531
  levelGaps?: number[]
@@ -587,9 +590,9 @@ export type RGOptionsInited = {
587
590
  canvasMoveMode: boolean
588
591
  disableNodePointEvent: boolean
589
592
  disableLinePointEvent: boolean
590
- toolBarDirection: string
591
- toolBarPositionH: string
592
- toolBarPositionV: string
593
+ toolBarDirection: 'h'|'v'
594
+ toolBarPositionH: 'left'|'center'|'right'
595
+ toolBarPositionV: 'top'|'center'|'bottom'
593
596
  defaultExpandHolderPosition: 'hide' | 'left' | 'top' | 'right' | 'bottom'
594
597
  defaultNodeColor: string
595
598
  defaultNodeBorderColor: string,
@@ -599,8 +602,8 @@ export type RGOptionsInited = {
599
602
  defaultNodeWidth?: number
600
603
  defaultNodeHeight?: number
601
604
  checkedItemBackgroundColor?: string //
602
- defaultLineTextOffset_x?: number,
603
- defaultLineTextOffset_y?: number,
605
+ defaultLineTextOffsetX?: number,
606
+ defaultLineTextOffsetY?: number,
604
607
  defaultLineColor: string
605
608
  defaultLineWidth: number
606
609
  defaultLineShape?: RGLineShape
@@ -610,7 +613,7 @@ export type RGOptionsInited = {
610
613
  defaultLineJunctionOffset: number,
611
614
  // placeSingleNode: boolean
612
615
  placeOtherNodes: boolean
613
- lineUseTextPath: boolean
616
+ defaultLineTextOnPath: boolean
614
617
  lineTextMaxLength: number
615
618
  multiLineDistance: number
616
619
  checkedNodeId: string // private
@@ -757,7 +760,7 @@ export interface RGNodeSlotProps {
757
760
  export interface RGLinePeelProps {
758
761
  line: RGLine | RGFakeLine
759
762
  checked?: boolean
760
- lineUseTextPath?: boolean
763
+ defaultLineTextOnPath?: boolean
761
764
  graphInstanceId?: string
762
765
  }
763
766
 
@@ -765,14 +768,14 @@ export interface RGLinePeelProps {
765
768
  * Custom line slot component Props type
766
769
  * @param lineConfig Configuration parameters for the line, which include information such as the start and end objects, line objects, etc., used for line objects, and global default configurations for rendering lines.
767
770
  * @param checked Whether the current line is selected
768
- * @param lineUseTextPath Whether the line uses textPath to typeset text, allowing the text to be arranged along the line path
771
+ * @param defaultLineTextOnPath Whether the line uses textPath to typeset text, allowing the text to be arranged along the line path
769
772
  * @param graphInstanceId The ID of the current graph instance, used for creating some unique identifiers, etc. (for example, you can display two relation-graph components with the same data on one page to prevent their ids from conflicting)
770
773
  *
771
774
  */
772
775
  export interface RGLineSlotProps {
773
776
  lineConfig: RGGenerateLineConfig
774
777
  checked?: boolean
775
- lineUseTextPath?: boolean
778
+ defaultLineTextOnPath?: boolean
776
779
  graphInstanceId?: string
777
780
  }
778
781
 
@@ -780,7 +783,7 @@ export interface RGLineSlotProps {
780
783
  * Props type for RGLinePath component
781
784
  * @param lineConfig Configuration parameters for the line, which include information such as the start and end objects, line objects, etc., used for line objects, and global default configurations for rendering lines.
782
785
  * @param linePathInfo The path information of the line, including path data, text position, etc., used for rendering the line path
783
- * @param lineUseTextPath Whether the line uses textPath to typeset text, allowing the text to be arranged along the line path
786
+ * @param defaultLineTextOnPath Whether the line uses textPath to typeset text, allowing the text to be arranged along the line path
784
787
  * @param checked Whether the current line is selected
785
788
  * @param graphInstanceId The ID of the current graph instance, used for creating some unique identifiers, etc. (for example, you can display two relation-graph components with the same data on one page to prevent their ids from conflicting)
786
789
  *
@@ -788,7 +791,7 @@ export interface RGLineSlotProps {
788
791
  export interface RGLinePathProps {
789
792
  lineConfig: RGGenerateLineConfig
790
793
  linePathInfo: RGLinePathInfo
791
- lineUseTextPath?: boolean
794
+ useTextOnPath?: boolean
792
795
  checked?: boolean
793
796
  graphInstanceId?: string
794
797
  }
@@ -856,6 +859,7 @@ export interface RGWidgetProps {
856
859
  */
857
860
  export interface RGEditingLineControllerProps {
858
861
  textEditable?: boolean
862
+ pathEditable?: boolean
859
863
  onMoveLineVertexStart?: (type: RGLineEditPoint, line: RGLine) => void
860
864
  onMoveLineVertexEnd?: RGLineVertexBeDroppedEventHandler
861
865
  onLinePathChanged?: (line: RGLine, params: any) => void
@@ -883,7 +887,7 @@ export type CreatingLinePlotOptions = {
883
887
  onCreateLine: RGLineConnectEventHandler | undefined
884
888
  isReverse?: boolean,
885
889
  template?: JsonLineLike
886
- fromNode?: RGLineTarget
890
+ fromNode?: RGNode | RGLineTarget
887
891
  };
888
892
  /**
889
893
  * @inner
@@ -961,7 +965,7 @@ export interface RGConnectSourceProps {
961
965
  * ```
962
966
  */
963
967
  export interface RGConnectTargetProps {
964
- junctionPoint: RGJunctionPoint;
968
+ junctionPoint?: RGJunctionPoint;
965
969
  targetId: string;
966
970
  targetType?: string;
967
971
  targetData?: Record<string, any>;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RelationGraphInstance } from '../../../../relation-graph-models/types';
3
- declare const RGProvider: React.FC<{
4
- relationGraphCore?: any;
5
- onProviderReady?: (instance: RelationGraphInstance) => void;
6
- }>;
7
- export default RGProvider;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RelationLinkerCompJsxProps } from '../../../types-react';
3
- declare const RelationLinkerContent: React.FC<RelationLinkerCompJsxProps>;
4
- export default RelationLinkerContent;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RelationGraphCompJsxProps } from '../../../types-react';
3
- declare const RelationView: React.FC<RelationGraphCompJsxProps>;
4
- export default RelationView;
@@ -1,20 +0,0 @@
1
- /**
2
- * @description 用於標記工具區內容的容器。
3
- */
4
- export declare const ToolPanel: ({ children }: {
5
- children: any;
6
- }) => any;
7
- /**
8
- * @description 用於標記畫布內容的容器。
9
- */
10
- export declare const CanvasItems: ({ children }: {
11
- children: any;
12
- }) => any;
13
- /**
14
- * @description 關係圖主組件
15
- * - 負責接收所有子元素,並將它們分類到 "工具區" 或 "畫布區"。
16
- */
17
- export declare const RelationGraph: ({ children }: {
18
- children: any;
19
- }) => JSX.Element;
20
- export default function App(): JSX.Element;
@@ -1 +0,0 @@
1
- export default function App(): JSX.Element;
@@ -1 +0,0 @@
1
- export default function App(): JSX.Element;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const RGSlotOnSVGDefs: React.FC;
3
- export default RGSlotOnSVGDefs;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const RGSlotOnToolbar: React.FC;
3
- export default RGSlotOnToolbar;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { RelationGraphInstance } from '../../../../../../../../relation-graph-models/types';
3
- export type RGUpdateAction = (rgInstance: RelationGraphInstance) => void;
4
- export type RelationGraphReducer = (state: RelationGraphInstance, action: RGUpdateAction) => RelationGraphInstance;
5
- export declare const relationGraphReducer: RelationGraphReducer;
6
- export declare const RelationGraphStoreContext: React.Context<RelationGraphInstance>;
7
- export declare const RGUpdateContext: React.Context<((v?: RelationGraphInstance) => void)>;
8
- export declare const RGUpdateSignalContext: React.Context<number>;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const GraphDebugPanel: React.FC;
3
- export default GraphDebugPanel;
@@ -1 +0,0 @@
1
- export * from '../../../relation-graph-models/types';
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfigExport;
2
- export default _default;
@@ -1,33 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{
2
- lineConfig: {
3
- mustUseProp: boolean;
4
- default: () => {};
5
- type: ObjectConstructor;
6
- };
7
- linePathInfo: {
8
- mustUseProp: boolean;
9
- default: () => {};
10
- type: ObjectConstructor;
11
- };
12
- }, {}, {}, {
13
- options(): any;
14
- line(): any;
15
- textStyle(): any;
16
- }, {
17
- onLineClick(e: any): void;
18
- }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
19
- lineConfig: {
20
- mustUseProp: boolean;
21
- default: () => {};
22
- type: ObjectConstructor;
23
- };
24
- linePathInfo: {
25
- mustUseProp: boolean;
26
- default: () => {};
27
- type: ObjectConstructor;
28
- };
29
- }>>, {
30
- lineConfig: Record<string, any>;
31
- linePathInfo: Record<string, any>;
32
- }>;
33
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<Readonly<{}>, {}, {
2
- search_text: string;
3
- showSettingPanel: boolean;
4
- }, {
5
- options(): any;
6
- }, {
7
- toggleSettingPanel(): void;
8
- printOptions(): void;
9
- printData(): void;
10
- enableDevlog(): void;
11
- }, import('vue/types/v3-component-options').ComponentOptionsMixin, import('vue/types/v3-component-options').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<Readonly<{}>>>, {}>;
12
- export default _default;
@@ -1,34 +0,0 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- 'canvas-plug'?(_: {}): any;
5
- 'svg-defs'?(_: {}): any;
6
- node?(_: {
7
- node: any;
8
- }): any;
9
- line?(_: {
10
- lineConfig: any;
11
- }): any;
12
- 'node-expand-holder'?(_: {
13
- node: any;
14
- expandHolderPosition: any;
15
- expandButtonClass: any;
16
- color: any;
17
- expandOrCollapseNode: any;
18
- }): any;
19
- 'canvas-plug-above'?(_: {}): any;
20
- };
21
- refs: {
22
- rgCanvasRef: HTMLDivElement;
23
- };
24
- rootEl: HTMLDivElement;
25
- };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
- export default _default;
30
- type __VLS_WithTemplateSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,37 +0,0 @@
1
- import { RGGenerateLineConfig } from '../../../../../../relation-graph-models/types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- 'svg-defs'?(_: {}): any;
6
- line?(_: {
7
- lineConfig: any;
8
- }): any;
9
- line?(_: {
10
- lineConfig: any;
11
- }): any;
12
- line?(_: {
13
- lineConfig: RGGenerateLineConfig;
14
- }): any;
15
- node?(_: {
16
- node: any;
17
- }): any;
18
- 'node-expand-holder'?(_: {
19
- node: any;
20
- expandHolderPosition: any;
21
- expandButtonClass: any;
22
- color: any;
23
- expandOrCollapseNode: any;
24
- }): any;
25
- };
26
- refs: {};
27
- rootEl: HTMLDivElement;
28
- };
29
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
- export default _default;
33
- type __VLS_WithTemplateSlots<T, S> = T & {
34
- new (): {
35
- $slots: S;
36
- };
37
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,32 +0,0 @@
1
- import { RGNode } from '../../../../../../relation-graph-models/types';
2
- type __VLS_Props = {
3
- node: RGNode;
4
- };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- default?(_: {}): any;
9
- };
10
- refs: {
11
- nodePeelRef: HTMLDivElement;
12
- };
13
- rootEl: HTMLDivElement;
14
- };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
- export default _default;
19
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
- type __VLS_TypePropsToOption<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
28
- type __VLS_WithTemplateSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
@@ -1,29 +0,0 @@
1
- type __VLS_Props = {
2
- forElementLines?: boolean;
3
- };
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
8
- };
9
- refs: {};
10
- rootEl: SVGDefsElement;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToOption<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
25
- type __VLS_WithTemplateSlots<T, S> = T & {
26
- new (): {
27
- $slots: S;
28
- };
29
- };
@@ -1,12 +0,0 @@
1
- import { RGLineSlotProps } from '../../../../../../relation-graph-models/types';
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLineSlotProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLineSlotProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
3
- export default _default;
4
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
- type __VLS_TypePropsToOption<T> = {
6
- [K in keyof T]-?: {} extends Pick<T, K> ? {
7
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
- } : {
9
- type: import('vue').PropType<T[K]>;
10
- required: true;
11
- };
12
- };
@@ -1,16 +0,0 @@
1
- import { RGLinePathProps } from '../../../../../../relation-graph-models/types';
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLinePathProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
- onLineClick: (event: MouseEvent | TouchEvent) => void;
4
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLinePathProps>>> & Readonly<{
5
- onOnLineClick?: ((event: MouseEvent | TouchEvent) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
7
- export default _default;
8
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
- type __VLS_TypePropsToOption<T> = {
10
- [K in keyof T]-?: {} extends Pick<T, K> ? {
11
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
- } : {
13
- type: import('vue').PropType<T[K]>;
14
- required: true;
15
- };
16
- };
@@ -1,29 +0,0 @@
1
- import { RGLinePeelProps } from '../../../../../../relation-graph-models/types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- line?(_: {
6
- lineConfig: import('../../../../../../relation-graph-models/types').RGGenerateLineConfig;
7
- }): any;
8
- };
9
- refs: {};
10
- rootEl: any;
11
- };
12
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLinePeelProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLinePeelProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToOption<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
25
- type __VLS_WithTemplateSlots<T, S> = T & {
26
- new (): {
27
- $slots: S;
28
- };
29
- };
@@ -1,27 +0,0 @@
1
- import { RGLineTextProps } from '../../../../../../relation-graph-models/types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: any;
9
- };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLineTextProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<RGLineTextProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToOption<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
23
- type __VLS_WithTemplateSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };
@@ -1,18 +0,0 @@
1
- import { RGNode } from '../../../../../../relation-graph-models/types';
2
- type __VLS_Props = {
3
- node: RGNode;
4
- expandButtonClass: string;
5
- expandOrCollapseNode: (e: MouseEvent) => void;
6
- expandHolderPosition: string;
7
- };
8
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToOption<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
18
- };
@@ -1,40 +0,0 @@
1
- import { RGNode } from '../../../../../../relation-graph-models/types';
2
- type __VLS_Props = {
3
- nodeProps: RGNode;
4
- };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: {
8
- 'node-expand-holder'?(_: {
9
- node: RGNode;
10
- expandButtonClass: string;
11
- expandOrCollapseNode: (e: MouseEvent) => void;
12
- expandHolderPosition: string;
13
- }): any;
14
- node?(_: {
15
- node: RGNode;
16
- }): any;
17
- };
18
- refs: {
19
- nodePeelRef: HTMLDivElement;
20
- };
21
- rootEl: HTMLDivElement;
22
- };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
- type __VLS_TypePropsToOption<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
34
- };
35
- };
36
- type __VLS_WithTemplateSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };