@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.
- package/dist/index.js +191 -21537
- package/dist/index.js.map +7 -1
- package/package.json +41 -58
- package/src/AdjacencyGraph.ts +3 -3
- package/src/Graph.ts +22 -20
- package/src/GraphData.ts +6 -6
- package/src/GraphLayouts.ts +203 -162
- package/src/Sankey.ts +42 -29
- package/src/Vertex.ts +2 -2
- package/src/__package__.ts +2 -2
- package/src/graph2/dataGraph.ts +109 -69
- package/src/graph2/graph.ts +12 -12
- package/src/graph2/graphReactT.ts +4 -3
- package/src/graph2/graphT.ts +26 -23
- package/src/graph2/index.ts +7 -7
- package/src/graph2/layouts/circle.ts +1 -1
- package/src/graph2/layouts/dagre.ts +3 -3
- package/src/graph2/layouts/dagreWorker.ts +1 -1
- package/src/graph2/layouts/forceDirected.ts +2 -2
- package/src/graph2/layouts/graphviz.ts +3 -3
- package/src/graph2/layouts/index.ts +7 -7
- package/src/graph2/layouts/layout.ts +2 -2
- package/src/graph2/layouts/null.ts +5 -1
- package/src/graph2/layouts/tree.ts +3 -3
- package/src/graph2/liteMap.ts +1 -1
- package/src/graph2/sankeyGraph.ts +85 -56
- package/src/graph2/subgraph.tsx +3 -3
- package/src/graph2/vertex.tsx +4 -4
- package/src/index.ts +8 -8
- package/types/AdjacencyGraph.d.ts +2 -3
- package/types/Edge.d.ts +0 -1
- package/types/Graph.d.ts +10 -10
- package/types/GraphData.d.ts +2 -3
- package/types/GraphLayouts.d.ts +45 -6
- package/types/Sankey.d.ts +27 -46
- package/types/Subgraph.d.ts +0 -1
- package/types/Vertex.d.ts +0 -1
- package/types/__package__.d.ts +2 -3
- package/types/graph2/dataGraph.d.ts +68 -34
- package/types/graph2/graph.d.ts +10 -10
- package/types/graph2/graphReactT.d.ts +3 -3
- package/types/graph2/graphT.d.ts +5 -6
- package/types/graph2/index.d.ts +7 -8
- package/types/graph2/layouts/circle.d.ts +1 -2
- package/types/graph2/layouts/dagre.d.ts +3 -4
- package/types/graph2/layouts/dagreWorker.d.ts +0 -1
- package/types/graph2/layouts/forceDirected.d.ts +2 -3
- package/types/graph2/layouts/forceDirectedWorker.d.ts +0 -1
- package/types/graph2/layouts/geoForceDirected.d.ts +0 -1
- package/types/graph2/layouts/graphviz.d.ts +2 -3
- package/types/graph2/layouts/graphvizWorker.d.ts +0 -1
- package/types/graph2/layouts/index.d.ts +7 -8
- package/types/graph2/layouts/layout.d.ts +2 -3
- package/types/graph2/layouts/null.d.ts +2 -2
- package/types/graph2/layouts/placeholders.d.ts +0 -1
- package/types/graph2/layouts/tree.d.ts +3 -4
- package/types/graph2/sankeyGraph.d.ts +54 -50
- package/types/graph2/subgraph.d.ts +2 -3
- package/types/graph2/vertex.d.ts +2 -3
- package/types/index.d.ts +8 -9
- package/dist/index.es6.js +0 -21516
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/AdjacencyGraph.d.ts.map +0 -1
- package/types/Edge.d.ts.map +0 -1
- package/types/Graph.d.ts.map +0 -1
- package/types/GraphData.d.ts.map +0 -1
- package/types/GraphLayouts.d.ts.map +0 -1
- package/types/Sankey.d.ts.map +0 -1
- package/types/Subgraph.d.ts.map +0 -1
- package/types/Vertex.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/__tests__/data.d.ts +0 -9
- package/types/__tests__/data.d.ts.map +0 -1
- package/types/__tests__/index.d.ts +0 -2
- package/types/__tests__/index.d.ts.map +0 -1
- package/types/__tests__/test1.d.ts +0 -5
- package/types/__tests__/test1.d.ts.map +0 -1
- package/types/__tests__/test2.d.ts +0 -5
- package/types/__tests__/test2.d.ts.map +0 -1
- package/types/__tests__/test3.d.ts +0 -5
- package/types/__tests__/test3.d.ts.map +0 -1
- package/types/__tests__/test4.d.ts +0 -5
- package/types/__tests__/test4.d.ts.map +0 -1
- package/types/__tests__/test5.d.ts +0 -30
- package/types/__tests__/test5.d.ts.map +0 -1
- package/types/graph2/dataGraph.d.ts.map +0 -1
- package/types/graph2/graph.d.ts.map +0 -1
- package/types/graph2/graphReactT.d.ts.map +0 -1
- package/types/graph2/graphT.d.ts.map +0 -1
- package/types/graph2/index.d.ts.map +0 -1
- package/types/graph2/layouts/circle.d.ts.map +0 -1
- package/types/graph2/layouts/dagre.d.ts.map +0 -1
- package/types/graph2/layouts/dagreWorker.d.ts.map +0 -1
- package/types/graph2/layouts/forceDirected.d.ts.map +0 -1
- package/types/graph2/layouts/forceDirectedWorker.d.ts.map +0 -1
- package/types/graph2/layouts/geoForceDirected.d.ts.map +0 -1
- package/types/graph2/layouts/graphviz.d.ts.map +0 -1
- package/types/graph2/layouts/graphvizWorker.d.ts.map +0 -1
- package/types/graph2/layouts/index.d.ts.map +0 -1
- package/types/graph2/layouts/layout.d.ts.map +0 -1
- package/types/graph2/layouts/null.d.ts.map +0 -1
- package/types/graph2/layouts/placeholders.d.ts.map +0 -1
- package/types/graph2/layouts/tree.d.ts.map +0 -1
- package/types/graph2/liteMap.d.ts +0 -13
- package/types/graph2/liteMap.d.ts.map +0 -1
- package/types/graph2/liteSVGZooom.d.ts +0 -16
- package/types/graph2/liteSVGZooom.d.ts.map +0 -1
- package/types/graph2/sankeyGraph.d.ts.map +0 -1
- package/types/graph2/subgraph.d.ts.map +0 -1
- package/types/graph2/vertex.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/test.d.ts +0 -17
- package/types/test.d.ts.map +0 -1
- package/types-3.4/AdjacencyGraph.d.ts +0 -69
- package/types-3.4/Edge.d.ts +0 -60
- package/types-3.4/Graph.d.ts +0 -159
- package/types-3.4/GraphData.d.ts +0 -33
- package/types-3.4/GraphLayouts.d.ts +0 -6
- package/types-3.4/Sankey.d.ts +0 -72
- package/types-3.4/Subgraph.d.ts +0 -45
- package/types-3.4/Vertex.d.ts +0 -83
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/__tests__/data.d.ts +0 -9
- package/types-3.4/__tests__/index.d.ts +0 -2
- package/types-3.4/__tests__/test1.d.ts +0 -5
- package/types-3.4/__tests__/test2.d.ts +0 -5
- package/types-3.4/__tests__/test3.d.ts +0 -5
- package/types-3.4/__tests__/test4.d.ts +0 -5
- package/types-3.4/__tests__/test5.d.ts +0 -30
- package/types-3.4/graph2/dataGraph.d.ts +0 -66
- package/types-3.4/graph2/graph.d.ts +0 -55
- package/types-3.4/graph2/graphReactT.d.ts +0 -15
- package/types-3.4/graph2/graphT.d.ts +0 -234
- package/types-3.4/graph2/index.d.ts +0 -8
- package/types-3.4/graph2/layouts/circle.d.ts +0 -7
- package/types-3.4/graph2/layouts/dagre.d.ts +0 -13
- package/types-3.4/graph2/layouts/dagreWorker.d.ts +0 -35
- package/types-3.4/graph2/layouts/forceDirected.d.ts +0 -19
- package/types-3.4/graph2/layouts/forceDirectedWorker.d.ts +0 -32
- package/types-3.4/graph2/layouts/geoForceDirected.d.ts +0 -2
- package/types-3.4/graph2/layouts/graphviz.d.ts +0 -15
- package/types-3.4/graph2/layouts/graphvizWorker.d.ts +0 -59
- package/types-3.4/graph2/layouts/index.d.ts +0 -8
- package/types-3.4/graph2/layouts/layout.d.ts +0 -43
- package/types-3.4/graph2/layouts/null.d.ts +0 -8
- package/types-3.4/graph2/layouts/placeholders.d.ts +0 -83
- package/types-3.4/graph2/layouts/tree.d.ts +0 -51
- package/types-3.4/graph2/liteMap.d.ts +0 -16
- package/types-3.4/graph2/liteSVGZooom.d.ts +0 -16
- package/types-3.4/graph2/sankeyGraph.d.ts +0 -73
- package/types-3.4/graph2/subgraph.d.ts +0 -12
- package/types-3.4/graph2/vertex.d.ts +0 -13
- package/types-3.4/index.d.ts +0 -9
- package/types-3.4/test.d.ts +0 -17
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
|
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
|
package/types/graph2/vertex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
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";
|