@hpcc-js/graph 2.86.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 (158) 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 +4 -3
  19. package/src/graph2/layouts/forceDirected.ts +2 -2
  20. package/src/graph2/layouts/forceDirectedWorker.ts +2 -2
  21. package/src/graph2/layouts/graphviz.ts +3 -3
  22. package/src/graph2/layouts/graphvizWorker.ts +1 -1
  23. package/src/graph2/layouts/index.ts +7 -7
  24. package/src/graph2/layouts/layout.ts +2 -2
  25. package/src/graph2/layouts/null.ts +5 -1
  26. package/src/graph2/layouts/tree.ts +3 -3
  27. package/src/graph2/liteMap.ts +1 -1
  28. package/src/graph2/sankeyGraph.ts +85 -56
  29. package/src/graph2/subgraph.tsx +3 -3
  30. package/src/graph2/vertex.tsx +4 -4
  31. package/src/index.ts +8 -8
  32. package/types/AdjacencyGraph.d.ts +2 -3
  33. package/types/Edge.d.ts +0 -1
  34. package/types/Graph.d.ts +10 -10
  35. package/types/GraphData.d.ts +2 -3
  36. package/types/GraphLayouts.d.ts +45 -6
  37. package/types/Sankey.d.ts +27 -46
  38. package/types/Subgraph.d.ts +0 -1
  39. package/types/Vertex.d.ts +0 -1
  40. package/types/__package__.d.ts +2 -3
  41. package/types/graph2/dataGraph.d.ts +68 -34
  42. package/types/graph2/graph.d.ts +10 -10
  43. package/types/graph2/graphReactT.d.ts +3 -3
  44. package/types/graph2/graphT.d.ts +5 -6
  45. package/types/graph2/index.d.ts +7 -8
  46. package/types/graph2/layouts/circle.d.ts +1 -2
  47. package/types/graph2/layouts/dagre.d.ts +3 -4
  48. package/types/graph2/layouts/dagreWorker.d.ts +0 -1
  49. package/types/graph2/layouts/forceDirected.d.ts +2 -3
  50. package/types/graph2/layouts/forceDirectedWorker.d.ts +0 -1
  51. package/types/graph2/layouts/geoForceDirected.d.ts +0 -1
  52. package/types/graph2/layouts/graphviz.d.ts +2 -3
  53. package/types/graph2/layouts/graphvizWorker.d.ts +0 -1
  54. package/types/graph2/layouts/index.d.ts +7 -8
  55. package/types/graph2/layouts/layout.d.ts +2 -3
  56. package/types/graph2/layouts/null.d.ts +2 -2
  57. package/types/graph2/layouts/placeholders.d.ts +0 -1
  58. package/types/graph2/layouts/tree.d.ts +3 -4
  59. package/types/graph2/sankeyGraph.d.ts +54 -50
  60. package/types/graph2/subgraph.d.ts +2 -3
  61. package/types/graph2/vertex.d.ts +2 -3
  62. package/types/index.d.ts +8 -9
  63. package/dist/index.es6.js +0 -21516
  64. package/dist/index.es6.js.map +0 -1
  65. package/dist/index.min.js +0 -2
  66. package/dist/index.min.js.map +0 -1
  67. package/types/AdjacencyGraph.d.ts.map +0 -1
  68. package/types/Edge.d.ts.map +0 -1
  69. package/types/Graph.d.ts.map +0 -1
  70. package/types/GraphData.d.ts.map +0 -1
  71. package/types/GraphLayouts.d.ts.map +0 -1
  72. package/types/Sankey.d.ts.map +0 -1
  73. package/types/Subgraph.d.ts.map +0 -1
  74. package/types/Vertex.d.ts.map +0 -1
  75. package/types/__package__.d.ts.map +0 -1
  76. package/types/__tests__/data.d.ts +0 -9
  77. package/types/__tests__/data.d.ts.map +0 -1
  78. package/types/__tests__/index.d.ts +0 -2
  79. package/types/__tests__/index.d.ts.map +0 -1
  80. package/types/__tests__/test1.d.ts +0 -5
  81. package/types/__tests__/test1.d.ts.map +0 -1
  82. package/types/__tests__/test2.d.ts +0 -5
  83. package/types/__tests__/test2.d.ts.map +0 -1
  84. package/types/__tests__/test3.d.ts +0 -5
  85. package/types/__tests__/test3.d.ts.map +0 -1
  86. package/types/__tests__/test4.d.ts +0 -5
  87. package/types/__tests__/test4.d.ts.map +0 -1
  88. package/types/__tests__/test5.d.ts +0 -30
  89. package/types/__tests__/test5.d.ts.map +0 -1
  90. package/types/graph2/dataGraph.d.ts.map +0 -1
  91. package/types/graph2/graph.d.ts.map +0 -1
  92. package/types/graph2/graphReactT.d.ts.map +0 -1
  93. package/types/graph2/graphT.d.ts.map +0 -1
  94. package/types/graph2/index.d.ts.map +0 -1
  95. package/types/graph2/layouts/circle.d.ts.map +0 -1
  96. package/types/graph2/layouts/dagre.d.ts.map +0 -1
  97. package/types/graph2/layouts/dagreWorker.d.ts.map +0 -1
  98. package/types/graph2/layouts/forceDirected.d.ts.map +0 -1
  99. package/types/graph2/layouts/forceDirectedWorker.d.ts.map +0 -1
  100. package/types/graph2/layouts/geoForceDirected.d.ts.map +0 -1
  101. package/types/graph2/layouts/graphviz.d.ts.map +0 -1
  102. package/types/graph2/layouts/graphvizWorker.d.ts.map +0 -1
  103. package/types/graph2/layouts/index.d.ts.map +0 -1
  104. package/types/graph2/layouts/layout.d.ts.map +0 -1
  105. package/types/graph2/layouts/null.d.ts.map +0 -1
  106. package/types/graph2/layouts/placeholders.d.ts.map +0 -1
  107. package/types/graph2/layouts/tree.d.ts.map +0 -1
  108. package/types/graph2/liteMap.d.ts +0 -13
  109. package/types/graph2/liteMap.d.ts.map +0 -1
  110. package/types/graph2/liteSVGZooom.d.ts +0 -16
  111. package/types/graph2/liteSVGZooom.d.ts.map +0 -1
  112. package/types/graph2/sankeyGraph.d.ts.map +0 -1
  113. package/types/graph2/subgraph.d.ts.map +0 -1
  114. package/types/graph2/vertex.d.ts.map +0 -1
  115. package/types/index.d.ts.map +0 -1
  116. package/types/test.d.ts +0 -17
  117. package/types/test.d.ts.map +0 -1
  118. package/types-3.4/AdjacencyGraph.d.ts +0 -69
  119. package/types-3.4/Edge.d.ts +0 -60
  120. package/types-3.4/Graph.d.ts +0 -159
  121. package/types-3.4/GraphData.d.ts +0 -33
  122. package/types-3.4/GraphLayouts.d.ts +0 -6
  123. package/types-3.4/Sankey.d.ts +0 -72
  124. package/types-3.4/Subgraph.d.ts +0 -45
  125. package/types-3.4/Vertex.d.ts +0 -83
  126. package/types-3.4/__package__.d.ts +0 -4
  127. package/types-3.4/__tests__/data.d.ts +0 -9
  128. package/types-3.4/__tests__/index.d.ts +0 -2
  129. package/types-3.4/__tests__/test1.d.ts +0 -5
  130. package/types-3.4/__tests__/test2.d.ts +0 -5
  131. package/types-3.4/__tests__/test3.d.ts +0 -5
  132. package/types-3.4/__tests__/test4.d.ts +0 -5
  133. package/types-3.4/__tests__/test5.d.ts +0 -30
  134. package/types-3.4/graph2/dataGraph.d.ts +0 -66
  135. package/types-3.4/graph2/graph.d.ts +0 -55
  136. package/types-3.4/graph2/graphReactT.d.ts +0 -15
  137. package/types-3.4/graph2/graphT.d.ts +0 -234
  138. package/types-3.4/graph2/index.d.ts +0 -8
  139. package/types-3.4/graph2/layouts/circle.d.ts +0 -7
  140. package/types-3.4/graph2/layouts/dagre.d.ts +0 -13
  141. package/types-3.4/graph2/layouts/dagreWorker.d.ts +0 -35
  142. package/types-3.4/graph2/layouts/forceDirected.d.ts +0 -19
  143. package/types-3.4/graph2/layouts/forceDirectedWorker.d.ts +0 -32
  144. package/types-3.4/graph2/layouts/geoForceDirected.d.ts +0 -2
  145. package/types-3.4/graph2/layouts/graphviz.d.ts +0 -15
  146. package/types-3.4/graph2/layouts/graphvizWorker.d.ts +0 -59
  147. package/types-3.4/graph2/layouts/index.d.ts +0 -8
  148. package/types-3.4/graph2/layouts/layout.d.ts +0 -43
  149. package/types-3.4/graph2/layouts/null.d.ts +0 -8
  150. package/types-3.4/graph2/layouts/placeholders.d.ts +0 -83
  151. package/types-3.4/graph2/layouts/tree.d.ts +0 -51
  152. package/types-3.4/graph2/liteMap.d.ts +0 -16
  153. package/types-3.4/graph2/liteSVGZooom.d.ts +0 -16
  154. package/types-3.4/graph2/sankeyGraph.d.ts +0 -73
  155. package/types-3.4/graph2/subgraph.d.ts +0 -12
  156. package/types-3.4/graph2/vertex.d.ts +0 -13
  157. package/types-3.4/index.d.ts +0 -9
  158. package/types-3.4/test.d.ts +0 -17
@@ -1,73 +0,0 @@
1
- import { publish, SVGWidget } from "@hpcc-js/common";
2
- import { AnnotationColumn } from "./dataGraph";
3
- import "../../src/graph2/sankeyGraph.css";
4
- import { EdgeBaseProps, VertexBaseProps } from "./graphT";
5
- export declare class SankeyGraph extends SVGWidget {
6
- vertexColumns: publish<this, string[]>;
7
- vertices: publish<this, Array<Array<string | number | boolean>>>;
8
- vertexCategoryColumn: publish<this, string>;
9
- vertexIDColumn: publish<this, string>;
10
- vertexLabelColumn: publish<this, string>;
11
- vertexCentroidColumn: publish<this, string>;
12
- vertexFAChar: publish<this, string>;
13
- vertexFACharColumn: publish<this, string>;
14
- vertexTooltipColumn: publish<this, string>;
15
- vertexAnnotationColumns: publish<this, AnnotationColumn[]>;
16
- edgeColumns: publish<this, string[]>;
17
- edges: publish<this, Array<Array<string | number | boolean>>>;
18
- edgeIDColumn: publish<this, string>;
19
- edgeLabelColumn: publish<this, string>;
20
- edgeSourceColumn: publish<this, string>;
21
- edgeTargetColumn: publish<this, string>;
22
- edgeWeightColumn: publish<this, string>;
23
- protected _d3Sankey: any;
24
- protected _selection: any;
25
- _palette: any;
26
- constructor();
27
- private _prevVertices;
28
- private _masterVertices;
29
- private _masterVerticesMap;
30
- mergeVertices(): void;
31
- indexOf(columns: readonly string[], column: string, defColumn?: string): number;
32
- protected _prevEdges: readonly EdgeBaseProps[];
33
- protected _masterEdges: EdgeBaseProps[];
34
- mergeEdges(): void;
35
- sankeyData(): {
36
- vertices: VertexBaseProps[];
37
- edges: EdgeBaseProps<VertexBaseProps>[];
38
- };
39
- enter(domNode: any, element: any): void;
40
- update(domNode: any, element: any): void;
41
- paletteID: {
42
- (): string;
43
- (_: string): SankeyGraph;
44
- };
45
- vertexStrokeWidth: {
46
- (): number;
47
- (_: number): SankeyGraph;
48
- };
49
- vertexStrokeColor: {
50
- (): string;
51
- (_: string): SankeyGraph;
52
- };
53
- vertexWidth: {
54
- (): number;
55
- (_: number): SankeyGraph;
56
- };
57
- vertexPadding: {
58
- (): number;
59
- (_: number): SankeyGraph;
60
- };
61
- xAxisMovement: {
62
- (): boolean;
63
- (_: boolean): SankeyGraph;
64
- };
65
- yAxisMovement: {
66
- (): boolean;
67
- (_: boolean): SankeyGraph;
68
- };
69
- exit(domNode: any, element: any): void;
70
- click(row: any, column: any, selected: any): void;
71
- dblclick(row: any, column: any, selected: any): void;
72
- }
73
- //# sourceMappingURL=sankeyGraph.d.ts.map
@@ -1,12 +0,0 @@
1
- import { React } from "@hpcc-js/react";
2
- import { SubgraphBaseProps } from "./layouts/placeholders";
3
- export interface BasicSubgraphProps extends SubgraphBaseProps {
4
- label?: string;
5
- labelFill?: string;
6
- labelHeight?: number;
7
- rectFill?: string;
8
- rectStroke?: string;
9
- rectStrokeWidth?: number;
10
- }
11
- export declare const BasicSubgraph: React.FunctionComponent<BasicSubgraphProps>;
12
- //# sourceMappingURL=subgraph.d.ts.map
@@ -1,13 +0,0 @@
1
- import { React } from "@hpcc-js/react";
2
- import { VertexBaseProps } from "./layouts/placeholders";
3
- export interface BasicVertexProps extends VertexBaseProps {
4
- textFill?: string;
5
- textHeight?: number;
6
- scale?: number;
7
- circleRadius?: number;
8
- circleFill?: string;
9
- circleStroke?: string;
10
- circleStrokeWidth?: number;
11
- }
12
- export declare const BasicVertex: React.FunctionComponent<BasicVertexProps>;
13
- //# sourceMappingURL=vertex.d.ts.map
@@ -1,9 +0,0 @@
1
- export * from "./__package__";
2
- export * from "./AdjacencyGraph";
3
- export * from "./Edge";
4
- export * from "./Graph";
5
- export * from "./Sankey";
6
- export * from "./Subgraph";
7
- export * from "./Vertex";
8
- export * from "./graph2/index";
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- import { Graph } from "./Graph";
2
- import { DataGraph } from "./graph2/dataGraph";
3
- import { SankeyGraph } from "./graph2/sankeyGraph";
4
- export { Test4 as Test };
5
- export declare class Test1 extends Graph {
6
- constructor();
7
- }
8
- export declare class Test2 extends DataGraph {
9
- constructor();
10
- }
11
- export declare class Test3 extends SankeyGraph {
12
- constructor();
13
- }
14
- export declare class Test4 extends Test2 {
15
- constructor();
16
- }
17
- //# sourceMappingURL=test.d.ts.map