@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,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
|
package/types-3.4/index.d.ts
DELETED
|
@@ -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
|
package/types-3.4/test.d.ts
DELETED
|
@@ -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
|