@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,28 +1,10 @@
1
- import { publish, SVGWidget } from "@hpcc-js/common";
2
- import { AnnotationColumn } from "./dataGraph";
1
+ import { SVGWidget } from "@hpcc-js/common";
2
+ import { AnnotationColumn } from "./dataGraph.ts";
3
3
  import "../../src/graph2/sankeyGraph.css";
4
- import { EdgeBaseProps, VertexBaseProps } from "./graphT";
4
+ import { EdgeBaseProps, VertexBaseProps } from "./graphT.ts";
5
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
6
  protected _d3Sankey: any;
24
7
  protected _selection: any;
25
- _palette: any;
26
8
  constructor();
27
9
  private _prevVertices;
28
10
  private _masterVertices;
@@ -38,36 +20,58 @@ export declare class SankeyGraph extends SVGWidget {
38
20
  };
39
21
  enter(domNode: any, element: any): void;
40
22
  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
23
  exit(domNode: any, element: any): void;
70
24
  click(row: any, column: any, selected: any): void;
71
25
  dblclick(row: any, column: any, selected: any): void;
72
26
  }
73
- //# sourceMappingURL=sankeyGraph.d.ts.map
27
+ export interface SankeyGraph {
28
+ _palette: any;
29
+ vertexColumns(): string[];
30
+ vertexColumns(_: string[]): this;
31
+ vertices(): Array<Array<string | number | boolean>>;
32
+ vertices(_: Array<Array<string | number | boolean>>): this;
33
+ vertexCategoryColumn(): string;
34
+ vertexCategoryColumn(_: string): this;
35
+ vertexIDColumn(): string;
36
+ vertexIDColumn(_: string): this;
37
+ vertexLabelColumn(): string;
38
+ vertexLabelColumn(_: string): this;
39
+ vertexCentroidColumn(): string;
40
+ vertexCentroidColumn(_: string): this;
41
+ vertexFAChar(): string;
42
+ vertexFAChar(_: string): this;
43
+ vertexFACharColumn(): string;
44
+ vertexFACharColumn(_: string): this;
45
+ vertexTooltipColumn(): string;
46
+ vertexTooltipColumn(_: string): this;
47
+ vertexAnnotationColumns(): AnnotationColumn[];
48
+ vertexAnnotationColumns(_: AnnotationColumn[]): this;
49
+ edgeColumns(): string[];
50
+ edgeColumns(_: string[]): this;
51
+ edges(): Array<Array<string | number | boolean>>;
52
+ edges(_: Array<Array<string | number | boolean>>): this;
53
+ edgeIDColumn(): string;
54
+ edgeIDColumn(_: string): this;
55
+ edgeLabelColumn(): string;
56
+ edgeLabelColumn(_: string): this;
57
+ edgeSourceColumn(): string;
58
+ edgeSourceColumn(_: string): this;
59
+ edgeTargetColumn(): string;
60
+ edgeTargetColumn(_: string): this;
61
+ edgeWeightColumn(): string;
62
+ edgeWeightColumn(_: string): this;
63
+ paletteID(): string;
64
+ paletteID(_: string): this;
65
+ vertexStrokeWidth(): number;
66
+ vertexStrokeWidth(_: number): this;
67
+ vertexStrokeColor(): string;
68
+ vertexStrokeColor(_: string): this;
69
+ vertexWidth(): number;
70
+ vertexWidth(_: number): this;
71
+ vertexPadding(): number;
72
+ vertexPadding(_: number): this;
73
+ xAxisMovement(): boolean;
74
+ xAxisMovement(_: boolean): this;
75
+ yAxisMovement(): boolean;
76
+ yAxisMovement(_: boolean): this;
77
+ }
@@ -1,5 +1,5 @@
1
- import { React } from "@hpcc-js/react";
2
- import { SubgraphBaseProps } from "./layouts/placeholders";
1
+ import React from "react";
2
+ import { SubgraphBaseProps } from "./layouts/placeholders.ts";
3
3
  export interface BasicSubgraphProps extends SubgraphBaseProps {
4
4
  label?: string;
5
5
  labelFill?: string;
@@ -9,4 +9,3 @@ export interface BasicSubgraphProps extends SubgraphBaseProps {
9
9
  rectStrokeWidth?: number;
10
10
  }
11
11
  export declare const BasicSubgraph: React.FunctionComponent<BasicSubgraphProps>;
12
- //# sourceMappingURL=subgraph.d.ts.map
@@ -1,5 +1,5 @@
1
- import { React } from "@hpcc-js/react";
2
- import { VertexBaseProps } from "./layouts/placeholders";
1
+ import React from "react";
2
+ import { VertexBaseProps } from "./layouts/placeholders.ts";
3
3
  export interface BasicVertexProps extends VertexBaseProps {
4
4
  textFill?: string;
5
5
  textHeight?: number;
@@ -10,4 +10,3 @@ export interface BasicVertexProps extends VertexBaseProps {
10
10
  circleStrokeWidth?: number;
11
11
  }
12
12
  export declare const BasicVertex: React.FunctionComponent<BasicVertexProps>;
13
- //# sourceMappingURL=vertex.d.ts.map
package/types/index.d.ts CHANGED
@@ -1,9 +1,8 @@
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
+ export * from "./__package__.ts";
2
+ export * from "./AdjacencyGraph.ts";
3
+ export * from "./Edge.ts";
4
+ export * from "./Graph.ts";
5
+ export * from "./Sankey.ts";
6
+ export * from "./Subgraph.ts";
7
+ export * from "./Vertex.ts";
8
+ export * from "./graph2/index.ts";