@hpcc-js/graph 2.87.0 → 3.1.0

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 (156) hide show
  1. package/dist/index.js +191 -21537
  2. package/dist/index.js.map +7 -1
  3. package/package.json +41 -58
  4. package/src/AdjacencyGraph.ts +3 -3
  5. package/src/Graph.ts +22 -20
  6. package/src/GraphData.ts +6 -6
  7. package/src/GraphLayouts.ts +203 -162
  8. package/src/Sankey.ts +42 -29
  9. package/src/Vertex.ts +2 -2
  10. package/src/__package__.ts +2 -2
  11. package/src/graph2/dataGraph.ts +109 -69
  12. package/src/graph2/graph.ts +12 -12
  13. package/src/graph2/graphReactT.ts +4 -3
  14. package/src/graph2/graphT.ts +26 -23
  15. package/src/graph2/index.ts +7 -7
  16. package/src/graph2/layouts/circle.ts +1 -1
  17. package/src/graph2/layouts/dagre.ts +3 -3
  18. package/src/graph2/layouts/dagreWorker.ts +1 -1
  19. package/src/graph2/layouts/forceDirected.ts +2 -2
  20. package/src/graph2/layouts/graphviz.ts +3 -3
  21. package/src/graph2/layouts/index.ts +7 -7
  22. package/src/graph2/layouts/layout.ts +2 -2
  23. package/src/graph2/layouts/null.ts +5 -1
  24. package/src/graph2/layouts/tree.ts +3 -3
  25. package/src/graph2/liteMap.ts +1 -1
  26. package/src/graph2/sankeyGraph.ts +85 -56
  27. package/src/graph2/subgraph.tsx +3 -3
  28. package/src/graph2/vertex.tsx +4 -4
  29. package/src/index.ts +8 -8
  30. package/types/AdjacencyGraph.d.ts +2 -3
  31. package/types/Edge.d.ts +0 -1
  32. package/types/Graph.d.ts +10 -10
  33. package/types/GraphData.d.ts +2 -3
  34. package/types/GraphLayouts.d.ts +45 -6
  35. package/types/Sankey.d.ts +27 -46
  36. package/types/Subgraph.d.ts +0 -1
  37. package/types/Vertex.d.ts +0 -1
  38. package/types/__package__.d.ts +2 -3
  39. package/types/graph2/dataGraph.d.ts +68 -34
  40. package/types/graph2/graph.d.ts +10 -10
  41. package/types/graph2/graphReactT.d.ts +3 -3
  42. package/types/graph2/graphT.d.ts +5 -6
  43. package/types/graph2/index.d.ts +7 -8
  44. package/types/graph2/layouts/circle.d.ts +1 -2
  45. package/types/graph2/layouts/dagre.d.ts +3 -4
  46. package/types/graph2/layouts/dagreWorker.d.ts +0 -1
  47. package/types/graph2/layouts/forceDirected.d.ts +2 -3
  48. package/types/graph2/layouts/forceDirectedWorker.d.ts +0 -1
  49. package/types/graph2/layouts/geoForceDirected.d.ts +0 -1
  50. package/types/graph2/layouts/graphviz.d.ts +2 -3
  51. package/types/graph2/layouts/graphvizWorker.d.ts +0 -1
  52. package/types/graph2/layouts/index.d.ts +7 -8
  53. package/types/graph2/layouts/layout.d.ts +2 -3
  54. package/types/graph2/layouts/null.d.ts +2 -2
  55. package/types/graph2/layouts/placeholders.d.ts +0 -1
  56. package/types/graph2/layouts/tree.d.ts +3 -4
  57. package/types/graph2/sankeyGraph.d.ts +54 -50
  58. package/types/graph2/subgraph.d.ts +2 -3
  59. package/types/graph2/vertex.d.ts +2 -3
  60. package/types/index.d.ts +8 -9
  61. package/dist/index.es6.js +0 -21516
  62. package/dist/index.es6.js.map +0 -1
  63. package/dist/index.min.js +0 -2
  64. package/dist/index.min.js.map +0 -1
  65. package/types/AdjacencyGraph.d.ts.map +0 -1
  66. package/types/Edge.d.ts.map +0 -1
  67. package/types/Graph.d.ts.map +0 -1
  68. package/types/GraphData.d.ts.map +0 -1
  69. package/types/GraphLayouts.d.ts.map +0 -1
  70. package/types/Sankey.d.ts.map +0 -1
  71. package/types/Subgraph.d.ts.map +0 -1
  72. package/types/Vertex.d.ts.map +0 -1
  73. package/types/__package__.d.ts.map +0 -1
  74. package/types/__tests__/data.d.ts +0 -9
  75. package/types/__tests__/data.d.ts.map +0 -1
  76. package/types/__tests__/index.d.ts +0 -2
  77. package/types/__tests__/index.d.ts.map +0 -1
  78. package/types/__tests__/test1.d.ts +0 -5
  79. package/types/__tests__/test1.d.ts.map +0 -1
  80. package/types/__tests__/test2.d.ts +0 -5
  81. package/types/__tests__/test2.d.ts.map +0 -1
  82. package/types/__tests__/test3.d.ts +0 -5
  83. package/types/__tests__/test3.d.ts.map +0 -1
  84. package/types/__tests__/test4.d.ts +0 -5
  85. package/types/__tests__/test4.d.ts.map +0 -1
  86. package/types/__tests__/test5.d.ts +0 -30
  87. package/types/__tests__/test5.d.ts.map +0 -1
  88. package/types/graph2/dataGraph.d.ts.map +0 -1
  89. package/types/graph2/graph.d.ts.map +0 -1
  90. package/types/graph2/graphReactT.d.ts.map +0 -1
  91. package/types/graph2/graphT.d.ts.map +0 -1
  92. package/types/graph2/index.d.ts.map +0 -1
  93. package/types/graph2/layouts/circle.d.ts.map +0 -1
  94. package/types/graph2/layouts/dagre.d.ts.map +0 -1
  95. package/types/graph2/layouts/dagreWorker.d.ts.map +0 -1
  96. package/types/graph2/layouts/forceDirected.d.ts.map +0 -1
  97. package/types/graph2/layouts/forceDirectedWorker.d.ts.map +0 -1
  98. package/types/graph2/layouts/geoForceDirected.d.ts.map +0 -1
  99. package/types/graph2/layouts/graphviz.d.ts.map +0 -1
  100. package/types/graph2/layouts/graphvizWorker.d.ts.map +0 -1
  101. package/types/graph2/layouts/index.d.ts.map +0 -1
  102. package/types/graph2/layouts/layout.d.ts.map +0 -1
  103. package/types/graph2/layouts/null.d.ts.map +0 -1
  104. package/types/graph2/layouts/placeholders.d.ts.map +0 -1
  105. package/types/graph2/layouts/tree.d.ts.map +0 -1
  106. package/types/graph2/liteMap.d.ts +0 -13
  107. package/types/graph2/liteMap.d.ts.map +0 -1
  108. package/types/graph2/liteSVGZooom.d.ts +0 -16
  109. package/types/graph2/liteSVGZooom.d.ts.map +0 -1
  110. package/types/graph2/sankeyGraph.d.ts.map +0 -1
  111. package/types/graph2/subgraph.d.ts.map +0 -1
  112. package/types/graph2/vertex.d.ts.map +0 -1
  113. package/types/index.d.ts.map +0 -1
  114. package/types/test.d.ts +0 -17
  115. package/types/test.d.ts.map +0 -1
  116. package/types-3.4/AdjacencyGraph.d.ts +0 -69
  117. package/types-3.4/Edge.d.ts +0 -60
  118. package/types-3.4/Graph.d.ts +0 -159
  119. package/types-3.4/GraphData.d.ts +0 -33
  120. package/types-3.4/GraphLayouts.d.ts +0 -6
  121. package/types-3.4/Sankey.d.ts +0 -72
  122. package/types-3.4/Subgraph.d.ts +0 -45
  123. package/types-3.4/Vertex.d.ts +0 -83
  124. package/types-3.4/__package__.d.ts +0 -4
  125. package/types-3.4/__tests__/data.d.ts +0 -9
  126. package/types-3.4/__tests__/index.d.ts +0 -2
  127. package/types-3.4/__tests__/test1.d.ts +0 -5
  128. package/types-3.4/__tests__/test2.d.ts +0 -5
  129. package/types-3.4/__tests__/test3.d.ts +0 -5
  130. package/types-3.4/__tests__/test4.d.ts +0 -5
  131. package/types-3.4/__tests__/test5.d.ts +0 -30
  132. package/types-3.4/graph2/dataGraph.d.ts +0 -66
  133. package/types-3.4/graph2/graph.d.ts +0 -55
  134. package/types-3.4/graph2/graphReactT.d.ts +0 -15
  135. package/types-3.4/graph2/graphT.d.ts +0 -234
  136. package/types-3.4/graph2/index.d.ts +0 -8
  137. package/types-3.4/graph2/layouts/circle.d.ts +0 -7
  138. package/types-3.4/graph2/layouts/dagre.d.ts +0 -13
  139. package/types-3.4/graph2/layouts/dagreWorker.d.ts +0 -35
  140. package/types-3.4/graph2/layouts/forceDirected.d.ts +0 -19
  141. package/types-3.4/graph2/layouts/forceDirectedWorker.d.ts +0 -32
  142. package/types-3.4/graph2/layouts/geoForceDirected.d.ts +0 -2
  143. package/types-3.4/graph2/layouts/graphviz.d.ts +0 -15
  144. package/types-3.4/graph2/layouts/graphvizWorker.d.ts +0 -59
  145. package/types-3.4/graph2/layouts/index.d.ts +0 -8
  146. package/types-3.4/graph2/layouts/layout.d.ts +0 -43
  147. package/types-3.4/graph2/layouts/null.d.ts +0 -8
  148. package/types-3.4/graph2/layouts/placeholders.d.ts +0 -83
  149. package/types-3.4/graph2/layouts/tree.d.ts +0 -51
  150. package/types-3.4/graph2/liteMap.d.ts +0 -16
  151. package/types-3.4/graph2/liteSVGZooom.d.ts +0 -16
  152. package/types-3.4/graph2/sankeyGraph.d.ts +0 -73
  153. package/types-3.4/graph2/subgraph.d.ts +0 -12
  154. package/types-3.4/graph2/vertex.d.ts +0 -13
  155. package/types-3.4/index.d.ts +0 -9
  156. package/types-3.4/test.d.ts +0 -17
@@ -1,159 +0,0 @@
1
- import { ISize, SVGGlowFilter, SVGZoomWidget, Widget } from "@hpcc-js/common";
2
- import "d3-transition";
3
- import { Edge } from "./Edge";
4
- import { Subgraph } from "./Subgraph";
5
- import { Vertex } from "./Vertex";
6
- import "../src/Graph.css";
7
- export interface Lineage {
8
- parent: Widget;
9
- child: Widget;
10
- }
11
- export interface IGraphData {
12
- subgraphs?: Widget[];
13
- vertices: Widget[];
14
- edges: Edge[];
15
- hierarchy?: Lineage[];
16
- }
17
- export type GraphLayoutType = "Hierarchy" | "DOT" | "ForceDirected" | "ForceDirected2" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
18
- export declare class Graph extends SVGZoomWidget {
19
- static Subgraph: typeof Subgraph;
20
- static Vertex: typeof Vertex;
21
- static Edge: typeof Edge;
22
- private _toggleHierarchy;
23
- private _toggleForceDirected;
24
- private _toggleForceDirected2;
25
- private _toggleCircle;
26
- private _graphData;
27
- protected highlight: any;
28
- protected _selection: any;
29
- protected _dragging: any;
30
- protected forceLayout: any;
31
- protected _d3Drag: any;
32
- protected defs: any;
33
- protected _centroidFilter: SVGGlowFilter;
34
- protected svgFragment: any;
35
- protected svg: any;
36
- protected svgC: any;
37
- protected svgE: any;
38
- protected svgV: any;
39
- constructor();
40
- iconBarButtons(): Widget[];
41
- layoutClick(layout: GraphLayoutType): void;
42
- getOffsetPos(): {
43
- x: number;
44
- y: number;
45
- };
46
- size(): ISize;
47
- size(_: any): this;
48
- clear(): void;
49
- _dataHash: number;
50
- data(): IGraphData;
51
- data(_: IGraphData, merge?: boolean): this;
52
- graphData(): any;
53
- selection(_: Widget[]): this;
54
- selection(): Widget[];
55
- private _linkcolor;
56
- linkcolor_default(): string;
57
- linkcolor_default(_: string): this;
58
- private _linktooltip;
59
- linktooltip_default(): string;
60
- linktooltip_default(_: string): this;
61
- private _neighborOffsets;
62
- dragstart(d: any): void;
63
- dragging(d: any): void;
64
- dragend(d: any): void;
65
- enter(domNode: any, element: any): void;
66
- getBounds(items: any, layoutEngine?: any): any[][];
67
- getVertexBounds(layoutEngine: any): any[][];
68
- getSelectionBounds(layoutEngine: any): any[][];
69
- centerOnItem(item: Widget): void;
70
- zoomToItem(item: Widget): void;
71
- updateVertices(rootElement: any, rootSuffix: any, data: any): void;
72
- update(domNode: any, element: any): void;
73
- exit(domNode: any, element: any): void;
74
- static profileID: number;
75
- render(callback?: (w: Widget) => void): this;
76
- _prevLayout: any;
77
- _prevDataHash: any;
78
- doLayout(transitionDuration?: number): Promise<void>;
79
- _doLayout(transitionDuration?: number): Promise<void>;
80
- getLayoutEngine(): any;
81
- getNeighborMap(vertex: any): {
82
- vertices: {};
83
- edges: {};
84
- };
85
- highlightVerticies(vertexMap?: {
86
- [id: string]: boolean;
87
- }): this;
88
- highlightEdges(edgeMap: any): this;
89
- highlightVertex(_element: any, d: any): void;
90
- highlightEdge(_element: any, d: any): void;
91
- refreshIncidentEdges(d: any, skipPushMarkers: any): void;
92
- centroids(): Vertex[];
93
- selectionChanged(): void;
94
- vertex_click(_row: any, _col: any, _sel: any, more: any): void;
95
- vertex_dblclick(_row: any, _col: any, _sel: any, _opts: any): void;
96
- vertex_contextmenu(_row: any, _col: any, _sel: any, _opts: any): void;
97
- vertex_mouseover(element: any, d: any): void;
98
- vertex_mouseout(_element: any, _d: any): void;
99
- edge_mouseover(element: any, d: any): void;
100
- edge_mouseout(_element: any, _d: any): void;
101
- addMarkers(clearFirst?: boolean): void;
102
- edge_click: (_row: any, _col: any, _sel: any, _more: any) => void;
103
- edge_dblclick: (_row: any, _col: any, _sel: any, _more: any) => void;
104
- tooltip: any;
105
- tooltipHTML: (_: any) => string;
106
- tooltipFormat: (_: any) => string;
107
- progress(what: "start" | "end" | "layout-start" | "layout-tick" | "layout-end"): void;
108
- }
109
- export interface Graph {
110
- allowDragging(): boolean;
111
- allowDragging(_: boolean): this;
112
- dragSingleNeighbors(): boolean;
113
- dragSingleNeighbors(_: boolean): this;
114
- layout(): GraphLayoutType;
115
- layout(_: GraphLayoutType): this;
116
- applyScaleOnLayout(): boolean;
117
- applyScaleOnLayout(_: boolean): this;
118
- highlightOnMouseOverVertex(): boolean;
119
- highlightOnMouseOverVertex(_: boolean): this;
120
- highlightOnMouseOverEdge(): boolean;
121
- highlightOnMouseOverEdge(_: boolean): this;
122
- transitionDuration(): number;
123
- transitionDuration(_: number): this;
124
- showEdges(): boolean;
125
- showEdges(_: boolean): this;
126
- snapToGrid(): number;
127
- snapToGrid(_: number): this;
128
- selectionClearOnBackgroundClick(): boolean;
129
- selectionClearOnBackgroundClick(_: boolean): this;
130
- centroidColor(): string;
131
- centroidColor(_: string): this;
132
- highlightSelectedPathToCentroid(): boolean;
133
- highlightSelectedPathToCentroid(_: boolean): this;
134
- hierarchyRankDirection(): string;
135
- hierarchyRankDirection(_: string): this;
136
- hierarchyNodeSeparation(): number;
137
- hierarchyNodeSeparation(_: number): this;
138
- hierarchyEdgeSeparation(): number;
139
- hierarchyEdgeSeparation(_: number): this;
140
- hierarchyRankSeparation(): number;
141
- hierarchyRankSeparation(_: number): this;
142
- hierarchyDigraph(): boolean;
143
- hierarchyDigraph(_: boolean): this;
144
- forceDirectedLinkDistance(): number;
145
- forceDirectedLinkDistance(_: number): this;
146
- forceDirectedLinkStrength(): number;
147
- forceDirectedLinkStrength(_: number): this;
148
- forceDirectedFriction(): number;
149
- forceDirectedFriction(_: number): this;
150
- forceDirectedCharge(): number;
151
- forceDirectedCharge(_: number): this;
152
- forceDirectedChargeDistance(): number;
153
- forceDirectedChargeDistance(_: number): this;
154
- forceDirectedTheta(): number;
155
- forceDirectedTheta(_: number): this;
156
- forceDirectedGravity(): number;
157
- forceDirectedGravity(_: number): this;
158
- }
159
- //# sourceMappingURL=Graph.d.ts.map
@@ -1,33 +0,0 @@
1
- import { Edge as GLEdge, GraphEdge, Node } from "dagre";
2
- import { Vertex } from "./Vertex";
3
- type GLNode = Node<Vertex>;
4
- export interface GraphLabel {
5
- debugTiming?: boolean;
6
- }
7
- export declare class GraphData {
8
- private _g;
9
- constructor();
10
- parent(cn: string): string;
11
- private filterNodes;
12
- eachNode(callback: any): void;
13
- private filterEdges;
14
- eachEdge(callback: any): void;
15
- setData(subgraphs: any, vertices: any, edges: any, hierarchy: any, merge: any): {
16
- addedVertices: any[];
17
- addedEdges: any[];
18
- };
19
- node(id: string): GLNode;
20
- nodeCount(): number;
21
- nodes(): GLNode[];
22
- nodeEdges(id: string): GLEdge[];
23
- edge(glEdge: GLEdge): GraphEdge;
24
- edges(): GraphEdge[];
25
- neighbors(id: string): Node<Vertex>[];
26
- singleNeighbors(id: string): Node<Vertex>[];
27
- gatherShortestPath(pathObj: any, targetID: any): any[];
28
- shortestPath(sourceID: string, targetID: string): any[];
29
- undirectedShortestPath(sourceID: string, targetID: string): any[];
30
- getJSON(): string;
31
- }
32
- export {};
33
- //# sourceMappingURL=GraphData.d.ts.map
@@ -1,6 +0,0 @@
1
- import { GraphData } from "./GraphData";
2
- export declare function Circle(graphData: GraphData, width?: any, height?: any, radius?: any): void;
3
- export declare function None(graphData: GraphData, _width: any, _height: any, _radius: any): void;
4
- export declare function ForceDirected(graphData: GraphData, width: any, height: any, options: any): void;
5
- export declare function Hierarchy(graphData: GraphData, _width: any, _height: any, options: any): void;
6
- //# sourceMappingURL=GraphLayouts.d.ts.map
@@ -1,72 +0,0 @@
1
- import { PropertyExt, SVGWidget } from "@hpcc-js/common";
2
- import "../src/Sankey.css";
3
- export declare class SankeyColumn extends PropertyExt {
4
- _owner: Sankey;
5
- constructor();
6
- owner(): Sankey;
7
- owner(_: Sankey): this;
8
- valid(): boolean;
9
- aggregate(values: any): any;
10
- column: {
11
- (): string;
12
- (_: string): SankeyColumn;
13
- };
14
- aggrType: {
15
- (): string;
16
- (_: string): SankeyColumn;
17
- };
18
- aggrColumn: {
19
- (): string;
20
- (_: string): SankeyColumn;
21
- };
22
- }
23
- export declare class Sankey extends SVGWidget {
24
- Column: any;
25
- _palette: any;
26
- _d3Sankey: any;
27
- _d3SankeyPath: any;
28
- _selection: any;
29
- constructor();
30
- sankeyData(): {
31
- vertices: any[];
32
- edges: any[];
33
- };
34
- enter(domNode: any, element: any): void;
35
- update(domNode: any, element: any): void;
36
- paletteID: {
37
- (): string;
38
- (_: string): Sankey;
39
- };
40
- mappings: {
41
- (): SankeyColumn[];
42
- (_: SankeyColumn[]): Sankey;
43
- };
44
- vertexStrokeWidth: {
45
- (): number;
46
- (_: number): Sankey;
47
- };
48
- vertexStrokeColor: {
49
- (): string;
50
- (_: string): Sankey;
51
- };
52
- vertexWidth: {
53
- (): number;
54
- (_: number): Sankey;
55
- };
56
- vertexPadding: {
57
- (): number;
58
- (_: number): Sankey;
59
- };
60
- xAxisMovement: {
61
- (): boolean;
62
- (_: boolean): Sankey;
63
- };
64
- yAxisMovement: {
65
- (): boolean;
66
- (_: boolean): Sankey;
67
- };
68
- exit(domNode: any, element: any): void;
69
- click(row: any, column: any, selected: any): void;
70
- dblclick(row: any, column: any, selected: any): void;
71
- }
72
- //# sourceMappingURL=Sankey.d.ts.map
@@ -1,45 +0,0 @@
1
- import { Icon, SVGWidget, Text } from "@hpcc-js/common";
2
- import "d3-transition";
3
- import "../src/Subgraph.css";
4
- export type SubgraphMinState = "normal" | "partial";
5
- export declare class Subgraph extends SVGWidget {
6
- protected _border: any;
7
- protected _textWidget: Text;
8
- protected _buttonMin: Icon;
9
- protected _minState: SubgraphMinState;
10
- constructor();
11
- minState(): SubgraphMinState;
12
- minState(_: SubgraphMinState): this;
13
- calcIcon(): "" | "";
14
- getBBox(refresh?: boolean, round?: boolean): {
15
- x: number;
16
- y: number;
17
- width: number;
18
- height: number;
19
- };
20
- enter(domNode: any, element: any): void;
21
- update(domNode: any, element: any): void;
22
- exit(domNode: any, element: any): void;
23
- intersection(pointA: any, pointB: any): any;
24
- click(d: any): void;
25
- minClick(): void;
26
- }
27
- export interface Subgraph {
28
- border_colorStroke(): string;
29
- border_colorStroke(_: string): this;
30
- border_colorFill(): string;
31
- border_colorFill(_: string): this;
32
- border_colorFill_exists: () => boolean;
33
- showTitle(): boolean;
34
- showTitle(_: boolean): this;
35
- title(): string;
36
- title(_: string): this;
37
- titleFontSize(): string;
38
- titleFontSize(_: string): this;
39
- title_colorFill(): string;
40
- title_colorFill(_: string): this;
41
- title_colorFill_exists: () => boolean;
42
- showMinMax(): boolean;
43
- showMinMax(_: boolean): this;
44
- }
45
- //# sourceMappingURL=Subgraph.d.ts.map
@@ -1,83 +0,0 @@
1
- import { Icon, SVGWidget, TextBox } from "@hpcc-js/common";
2
- import "../src/Vertex.css";
3
- export interface IAnnotation {
4
- faChar?: string;
5
- imageUrl?: string;
6
- tooltip?: string;
7
- diameter?: number;
8
- paddingPercent?: number;
9
- shape_colorFill?: string;
10
- shape_colorStroke?: string;
11
- image_colorFill?: string;
12
- fontFamily?: string;
13
- }
14
- export declare class Vertex extends SVGWidget {
15
- protected _icon: Icon;
16
- protected _textBox: TextBox;
17
- protected _annotationWidgets: object;
18
- protected _graphID: any;
19
- constructor();
20
- getIconBBox(): {
21
- x: number;
22
- y: number;
23
- width: number;
24
- height: number;
25
- };
26
- getBBox(refresh?: boolean, round?: boolean): {
27
- x: number;
28
- y: number;
29
- width: number;
30
- height: number;
31
- };
32
- enter(domNode: any, element: any): void;
33
- _prevHash: any;
34
- update(domNode: any, element: any): void;
35
- exit(domNode: any, element: any): void;
36
- contains(point: any): boolean;
37
- intersection(pointA: any, pointB: any): any;
38
- mouseover(d: any): void;
39
- mouseout(d: any): void;
40
- }
41
- export interface Vertex {
42
- faChar(): string;
43
- faChar(_: string): this;
44
- imageUrl(): string;
45
- imageUrl(_: string): this;
46
- icon_diameter(): number;
47
- icon_diameter(_: number): this;
48
- icon_paddingPercent(): number;
49
- icon_paddingPercent(_: number): this;
50
- icon_shape_colorFill(): string;
51
- icon_shape_colorFill(_: string): this;
52
- icon_shape_colorStroke(): string;
53
- icon_shape_colorStroke(_: string): this;
54
- icon_image_colorFill(): string;
55
- icon_image_colorFill(_: string): this;
56
- icon_fontFamily(): string;
57
- icon_fontFamily(_: string): this;
58
- centroid(): boolean;
59
- centroid(_: boolean): this;
60
- text(): string;
61
- text(_: string): this;
62
- anchor(): string;
63
- anchor(_: string): this;
64
- textbox_shape_colorStroke(): string;
65
- textbox_shape_colorStroke(_: string): this;
66
- textbox_shape_colorFill(): string;
67
- textbox_shape_colorFill(_: string): this;
68
- textbox_text_colorFill(): string;
69
- textbox_text_colorFill(_: string): this;
70
- iconAnchor(): "" | "start" | "middle" | "end" | "left";
71
- iconAnchor(_: "" | "start" | "middle" | "end" | "left"): this;
72
- iconTooltip(): string;
73
- iconTooltip(_: string): this;
74
- tooltip(): string;
75
- tooltip(_: string): this;
76
- annotationDiameter(): number;
77
- annotationDiameter(_: number): this;
78
- annotationSpacing(): number;
79
- annotationSpacing(_: number): this;
80
- annotationIcons(): IAnnotation[];
81
- annotationIcons(_: IAnnotation[]): this;
82
- }
83
- //# sourceMappingURL=Vertex.d.ts.map
@@ -1,4 +0,0 @@
1
- export declare const PKG_NAME = "@hpcc-js/graph";
2
- export declare const PKG_VERSION = "2.87.0";
3
- export declare const BUILD_VERSION = "2.107.0";
4
- //# sourceMappingURL=__package__.d.ts.map
@@ -1,9 +0,0 @@
1
- export declare function genData2(): {
2
- vertices: (string | number | boolean)[][];
3
- edges: (string | number)[][];
4
- };
5
- export declare function createData(): {
6
- vertices: any[];
7
- edges: any[];
8
- };
9
- //# sourceMappingURL=data.d.ts.map
@@ -1,2 +0,0 @@
1
- export { Test2 as Test } from "./test2";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Graph } from "../Graph";
2
- export declare class Test extends Graph {
3
- constructor();
4
- }
5
- //# sourceMappingURL=test1.d.ts.map
@@ -1,5 +0,0 @@
1
- import { DataGraph } from "../graph2/dataGraph";
2
- export declare class Test2 extends DataGraph {
3
- constructor();
4
- }
5
- //# sourceMappingURL=test2.d.ts.map
@@ -1,5 +0,0 @@
1
- import { SankeyGraph } from "../graph2/sankeyGraph";
2
- export declare class Test3 extends SankeyGraph {
3
- constructor();
4
- }
5
- //# sourceMappingURL=test3.d.ts.map
@@ -1,5 +0,0 @@
1
- import { Test2 } from "./test2";
2
- export declare class Test4 extends Test2 {
3
- constructor();
4
- }
5
- //# sourceMappingURL=test4.d.ts.map
@@ -1,30 +0,0 @@
1
- import { Graph2 } from "../graph2/graph";
2
- export declare const EDGE_ARR_UPDATE: {
3
- id: number;
4
- source: {
5
- id: number;
6
- text: string;
7
- iconFontFamily: string;
8
- centroid?: undefined;
9
- } | {
10
- centroid: boolean;
11
- id: number;
12
- text: string;
13
- iconFontFamily?: undefined;
14
- };
15
- target: {
16
- id: number;
17
- text: string;
18
- iconFontFamily: string;
19
- centroid?: undefined;
20
- } | {
21
- centroid: boolean;
22
- id: number;
23
- text: string;
24
- iconFontFamily?: undefined;
25
- };
26
- }[];
27
- export declare class Test5 extends Graph2 {
28
- constructor();
29
- }
30
- //# sourceMappingURL=test5.d.ts.map
@@ -1,66 +0,0 @@
1
- import { PropertyExt, publish, Widget } from "@hpcc-js/common";
2
- import { Vertex3Props, EdgeProps } from "@hpcc-js/react";
3
- import { Graph2 } from "./graph";
4
- export type IVertex3 = Vertex3Props;
5
- export declare function toJsonObj<T>(row: any, columns: any): T;
6
- export declare class AnnotationColumn extends PropertyExt {
7
- columnID: publish<this, string>;
8
- annotationID: publish<this, string>;
9
- protected _owner: DataGraph;
10
- owner(): DataGraph;
11
- owner(_: DataGraph): this;
12
- valid(): boolean;
13
- }
14
- export declare class DataGraph extends Graph2 {
15
- subgraphColumns: publish<this, string[]>;
16
- subgraphs: publish<this, Array<Array<string | number | boolean>>>;
17
- subgraphIDColumn: publish<this, string>;
18
- subgraphLabelColumn: publish<this, string>;
19
- vertexColumns: publish<this, string[]>;
20
- vertices: publish<this, Array<Array<string | number | boolean>>>;
21
- vertexCategoryColumn: publish<this, string>;
22
- vertexIDColumn: publish<this, string>;
23
- vertexLabelColumn: publish<this, string>;
24
- vertexCentroidColumn: publish<this, string>;
25
- vertexImageUrl: publish<this, string>;
26
- vertexImageUrlColumn: publish<this, string>;
27
- vertexFAChar: publish<this, string>;
28
- vertexFACharColumn: publish<this, string>;
29
- vertexTooltipColumn: publish<this, string>;
30
- vertexAnnotationColumns: publish<this, AnnotationColumn[]>;
31
- vertexExpansionFACharColumn: publish<this, string>;
32
- edgeColumns: publish<this, string[]>;
33
- edges: publish<this, Array<Array<string | number | boolean>>>;
34
- edgeIDColumn: publish<this, string>;
35
- edgeLabelColumn: publish<this, string>;
36
- edgeSourceColumn: publish<this, string>;
37
- edgeTargetColumn: publish<this, string>;
38
- edgeWeightColumn: publish<this, string>;
39
- edgeColorColumn: publish<this, string>;
40
- hierarchyColumns: publish<this, string[]>;
41
- hierarchy: publish<this, Array<Array<string | number | boolean>>>;
42
- hierarchyParentIDColumn: publish<this, string>;
43
- hierarchyChildIDColumn: publish<this, string>;
44
- constructor();
45
- clear(): void;
46
- indexOf(columns: readonly string[], column: string, defColumn?: string): number;
47
- private _prevSubgraphs;
48
- private _masterSubgraphs;
49
- private _masterSubgraphsMap;
50
- mergeSubgraphs(): void;
51
- private _prevVertices;
52
- private _masterVertices;
53
- private _masterVerticesMap;
54
- mergeVertices(): void;
55
- protected _prevEdges: readonly EdgeProps<IVertex3>[];
56
- protected _masterEdges: EdgeProps<IVertex3>[];
57
- private _masterEdgesMap;
58
- mergeEdges(): void;
59
- private _prevHierarchy;
60
- private _masterHierarchy;
61
- private _masterHierarchyMap;
62
- mergeHierarchy(): void;
63
- update(domNode: any, element: any): void;
64
- render(callback?: (w: Widget) => void): this;
65
- }
66
- //# sourceMappingURL=dataGraph.d.ts.map
@@ -1,55 +0,0 @@
1
- import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
2
- import { GraphReactT } from "./graphReactT";
3
- import { GraphDataProps, HierarchyBase } from "./graphT";
4
- export type ISubgraph = SubgraphProps;
5
- export type IVertex = VertexProps;
6
- export type IEdge = EdgeProps;
7
- export type IHierarchy = HierarchyBase<ISubgraph, IVertex>;
8
- export type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
9
- export declare class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
10
- constructor();
11
- calcProps(_props: VertexProps): VertexProps;
12
- protected _reactVertexRenderer2: React.FunctionComponent<VertexProps>;
13
- vertexRenderer(): React.FunctionComponent<VertexProps>;
14
- vertexRenderer(_: React.FunctionComponent<VertexProps>): this;
15
- protected _reactCentroidRenderer: React.FunctionComponent<VertexProps>;
16
- centroidRenderer(): React.FunctionComponent<VertexProps>;
17
- centroidRenderer(_: React.FunctionComponent<VertexProps>): this;
18
- enter(domNode: any, element: any): void;
19
- update(domNode: any, element: any): void;
20
- }
21
- export interface Graph2 {
22
- vertexTextHeight(): number;
23
- vertexTextHeight(_: number): this;
24
- vertexTextPadding(): number;
25
- vertexTextPadding(_: number): this;
26
- vertexIconHeight(): number;
27
- vertexIconHeight(_: number): this;
28
- vertexIconPadding(): number;
29
- vertexIconPadding(_: number): this;
30
- vertexIconStrokeWidth(): number;
31
- vertexIconStrokeWidth(_: number): this;
32
- vertexIconFontFamily(): string;
33
- vertexIconFontFamily(_: string): this;
34
- vertexLabelFontFamily(): string;
35
- vertexLabelFontFamily(_: string): this;
36
- centroidColor(): string;
37
- centroidColor(_: string): this;
38
- centroidScale(): number;
39
- centroidScale(_: number): this;
40
- centroidTextHeight(): number;
41
- centroidTextHeight(_: number): this;
42
- centroidTextPadding(): number;
43
- centroidTextPadding(_: number): this;
44
- centroidIconHeight(): number;
45
- centroidIconHeight(_: number): this;
46
- centroidIconPadding(): number;
47
- centroidIconPadding(_: number): this;
48
- centroidIconStrokeWidth(): number;
49
- centroidIconStrokeWidth(_: number): this;
50
- centroidIconFontFamily(): string;
51
- centroidIconFontFamily(_: string): this;
52
- centroidLabelFontFamily(): string;
53
- centroidLabelFontFamily(_: string): this;
54
- }
55
- //# sourceMappingURL=graph.d.ts.map
@@ -1,15 +0,0 @@
1
- import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
2
- import { GraphT } from "./graphT";
3
- export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps<V>> extends GraphT<SG, V, E> {
4
- constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>);
5
- private _reactSubgraphRenderer;
6
- subgraphRenderer(): React.FunctionComponent<SG>;
7
- subgraphRenderer(_: React.FunctionComponent<SG>): this;
8
- private _reactVertexRenderer;
9
- vertexRenderer(): React.FunctionComponent<V>;
10
- vertexRenderer(_: React.FunctionComponent<V>): this;
11
- private _reactEdgeRenderer;
12
- edgeRenderer(): React.FunctionComponent<E>;
13
- edgeRenderer(_: React.FunctionComponent<E>): this;
14
- }
15
- //# sourceMappingURL=graphReactT.d.ts.map