@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
package/src/graph2/vertex.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { VertexBaseProps } from "./layouts/placeholders";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Text } from "@hpcc-js/react";
|
|
3
|
+
import { VertexBaseProps } from "./layouts/placeholders.ts";
|
|
4
4
|
|
|
5
5
|
export interface BasicVertexProps extends VertexBaseProps {
|
|
6
6
|
textFill?: string;
|
|
@@ -25,7 +25,7 @@ export const BasicVertex: React.FunctionComponent<BasicVertexProps> = ({
|
|
|
25
25
|
return <g transform={`scale(${scale})`}>
|
|
26
26
|
<circle cx="0" cy="0" r={circleRadius} fill={circleFill} stroke={circleStroke} style={{ strokeWidth: circleStrokeWidth }} />
|
|
27
27
|
<g transform={`translate(0 ${circleRadius + textHeight})`}>
|
|
28
|
-
<Text text={text} fill={textFill} height={textHeight}
|
|
28
|
+
<Text text={text} fill={textFill} height={textHeight} />
|
|
29
29
|
</g>
|
|
30
30
|
</g>;
|
|
31
31
|
};
|
package/src/index.ts
CHANGED
|
@@ -1,8 +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";
|
|
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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyExt } from "@hpcc-js/common";
|
|
2
|
-
import { Graph, IGraphData } from "./Graph";
|
|
3
|
-
import { IAnnotation } from "./Vertex";
|
|
2
|
+
import { Graph, IGraphData } from "./Graph.ts";
|
|
3
|
+
import { IAnnotation } from "./Vertex.ts";
|
|
4
4
|
interface IAnnotationIndexes {
|
|
5
5
|
iconCol: number;
|
|
6
6
|
iconFillCol: number;
|
|
@@ -66,4 +66,3 @@ export interface AdjacencyGraph {
|
|
|
66
66
|
annotations(_: Annotation[]): this;
|
|
67
67
|
}
|
|
68
68
|
export {};
|
|
69
|
-
//# sourceMappingURL=AdjacencyGraph.d.ts.map
|
package/types/Edge.d.ts
CHANGED
package/types/Graph.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ISize, SVGGlowFilter, SVGZoomWidget, Widget } from "@hpcc-js/common";
|
|
2
2
|
import "d3-transition";
|
|
3
|
-
import { Edge } from "./Edge";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import { Edge } from "./Edge.ts";
|
|
4
|
+
import * as GraphLayouts from "./GraphLayouts.ts";
|
|
5
|
+
import { Subgraph } from "./Subgraph.ts";
|
|
6
|
+
import { Vertex } from "./Vertex.ts";
|
|
6
7
|
import "../src/Graph.css";
|
|
7
8
|
export interface Lineage {
|
|
8
9
|
parent: Widget;
|
|
@@ -77,7 +78,7 @@ export declare class Graph extends SVGZoomWidget {
|
|
|
77
78
|
_prevDataHash: any;
|
|
78
79
|
doLayout(transitionDuration?: number): Promise<void>;
|
|
79
80
|
_doLayout(transitionDuration?: number): Promise<void>;
|
|
80
|
-
getLayoutEngine():
|
|
81
|
+
getLayoutEngine(): GraphLayouts.Circle | GraphLayouts.ForceDirected | GraphLayouts.Hierarchy;
|
|
81
82
|
getNeighborMap(vertex: any): {
|
|
82
83
|
vertices: {};
|
|
83
84
|
edges: {};
|
|
@@ -99,11 +100,6 @@ export declare class Graph extends SVGZoomWidget {
|
|
|
99
100
|
edge_mouseover(element: any, d: any): void;
|
|
100
101
|
edge_mouseout(_element: any, _d: any): void;
|
|
101
102
|
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
103
|
progress(what: "start" | "end" | "layout-start" | "layout-tick" | "layout-end"): void;
|
|
108
104
|
}
|
|
109
105
|
export interface Graph {
|
|
@@ -155,5 +151,9 @@ export interface Graph {
|
|
|
155
151
|
forceDirectedTheta(_: number): this;
|
|
156
152
|
forceDirectedGravity(): number;
|
|
157
153
|
forceDirectedGravity(_: number): this;
|
|
154
|
+
edge_click(_row: any, _col: any, _sel: any, _more: any): void;
|
|
155
|
+
edge_dblclick(_row: any, _col: any, _sel: any, _more: any): void;
|
|
156
|
+
tooltip: any;
|
|
157
|
+
tooltipHTML(_: any): string;
|
|
158
|
+
tooltipFormat(_: any): string;
|
|
158
159
|
}
|
|
159
|
-
//# sourceMappingURL=Graph.d.ts.map
|
package/types/GraphData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Edge as GLEdge, GraphEdge, Node } from "dagre";
|
|
2
|
-
import { Vertex } from "./Vertex";
|
|
1
|
+
import { Edge as GLEdge, GraphEdge, Node } from "@dagrejs/dagre";
|
|
2
|
+
import { Vertex } from "./Vertex.ts";
|
|
3
3
|
type GLNode = Node<Vertex>;
|
|
4
4
|
export interface GraphLabel {
|
|
5
5
|
debugTiming?: boolean;
|
|
@@ -30,4 +30,3 @@ export declare class GraphData {
|
|
|
30
30
|
getJSON(): string;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
33
|
-
//# sourceMappingURL=GraphData.d.ts.map
|
package/types/GraphLayouts.d.ts
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
|
-
import { GraphData } from "./GraphData";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { GraphData } from "./GraphData.ts";
|
|
2
|
+
interface Pos {
|
|
3
|
+
x?: number;
|
|
4
|
+
y?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class Circle {
|
|
9
|
+
protected pos: {
|
|
10
|
+
[id: string]: Pos;
|
|
11
|
+
};
|
|
12
|
+
constructor(graphData: GraphData, width?: any, height?: any, radius?: any);
|
|
13
|
+
nodePos(u: any): Pos;
|
|
14
|
+
edgePoints(_e: any): any[];
|
|
15
|
+
}
|
|
16
|
+
export declare class None {
|
|
17
|
+
protected pos: {
|
|
18
|
+
[id: string]: Pos;
|
|
19
|
+
};
|
|
20
|
+
constructor(graphData: GraphData, _width: any, _height: any, _radius: any);
|
|
21
|
+
nodePos(u: any): Pos;
|
|
22
|
+
edgePoints(_e: any): any[];
|
|
23
|
+
}
|
|
24
|
+
export declare class ForceDirected {
|
|
25
|
+
protected pos: {
|
|
26
|
+
[id: string]: Pos;
|
|
27
|
+
};
|
|
28
|
+
vertices: any[];
|
|
29
|
+
protected vertexMap: {
|
|
30
|
+
[id: string]: any;
|
|
31
|
+
};
|
|
32
|
+
protected edges: any[];
|
|
33
|
+
protected force: any;
|
|
34
|
+
constructor(graphData: GraphData, width: any, height: any, options: any);
|
|
35
|
+
nodePos(u: any): any;
|
|
36
|
+
edgePoints(_e: any): any[];
|
|
37
|
+
}
|
|
38
|
+
export declare class Hierarchy {
|
|
39
|
+
protected digraph: any;
|
|
40
|
+
protected dagreLayout: any;
|
|
41
|
+
constructor(graphData: GraphData, _width: any, _height: any, options: any);
|
|
42
|
+
nodePos(u: any): any;
|
|
43
|
+
edgePoints(edge: any): any;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
package/types/Sankey.d.ts
CHANGED
|
@@ -7,22 +7,17 @@ export declare class SankeyColumn extends PropertyExt {
|
|
|
7
7
|
owner(_: Sankey): this;
|
|
8
8
|
valid(): boolean;
|
|
9
9
|
aggregate(values: any): any;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
aggrType:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
aggrColumn: {
|
|
19
|
-
(): string;
|
|
20
|
-
(_: string): SankeyColumn;
|
|
21
|
-
};
|
|
10
|
+
}
|
|
11
|
+
export interface SankeyColumn {
|
|
12
|
+
column(): string;
|
|
13
|
+
column(_: string): this;
|
|
14
|
+
aggrType(): string;
|
|
15
|
+
aggrType(_: string): this;
|
|
16
|
+
aggrColumn(): string;
|
|
17
|
+
aggrColumn(_: string): this;
|
|
22
18
|
}
|
|
23
19
|
export declare class Sankey extends SVGWidget {
|
|
24
20
|
Column: any;
|
|
25
|
-
_palette: any;
|
|
26
21
|
_d3Sankey: any;
|
|
27
22
|
_d3SankeyPath: any;
|
|
28
23
|
_selection: any;
|
|
@@ -33,40 +28,26 @@ export declare class Sankey extends SVGWidget {
|
|
|
33
28
|
};
|
|
34
29
|
enter(domNode: any, element: any): void;
|
|
35
30
|
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
31
|
exit(domNode: any, element: any): void;
|
|
69
32
|
click(row: any, column: any, selected: any): void;
|
|
70
33
|
dblclick(row: any, column: any, selected: any): void;
|
|
71
34
|
}
|
|
72
|
-
|
|
35
|
+
export interface Sankey {
|
|
36
|
+
_palette: any;
|
|
37
|
+
paletteID(): string;
|
|
38
|
+
paletteID(_: string): this;
|
|
39
|
+
mappings(): SankeyColumn[];
|
|
40
|
+
mappings(_: SankeyColumn[]): this;
|
|
41
|
+
vertexStrokeWidth(): number;
|
|
42
|
+
vertexStrokeWidth(_: number): this;
|
|
43
|
+
vertexStrokeColor(): string;
|
|
44
|
+
vertexStrokeColor(_: string): this;
|
|
45
|
+
vertexWidth(): number;
|
|
46
|
+
vertexWidth(_: number): this;
|
|
47
|
+
vertexPadding(): number;
|
|
48
|
+
vertexPadding(_: number): this;
|
|
49
|
+
xAxisMovement(): boolean;
|
|
50
|
+
xAxisMovement(_: boolean): this;
|
|
51
|
+
yAxisMovement(): boolean;
|
|
52
|
+
yAxisMovement(_: boolean): this;
|
|
53
|
+
}
|
package/types/Subgraph.d.ts
CHANGED
package/types/Vertex.d.ts
CHANGED
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/graph";
|
|
2
|
-
export declare const PKG_VERSION = "
|
|
3
|
-
export declare const BUILD_VERSION = "2.
|
|
4
|
-
//# sourceMappingURL=__package__.d.ts.map
|
|
2
|
+
export declare const PKG_VERSION = "3.1.0";
|
|
3
|
+
export declare const BUILD_VERSION = "3.2.0";
|
|
@@ -1,46 +1,21 @@
|
|
|
1
|
-
import { PropertyExt,
|
|
1
|
+
import { PropertyExt, Widget } from "@hpcc-js/common";
|
|
2
2
|
import { Vertex3Props, EdgeProps } from "@hpcc-js/react";
|
|
3
|
-
import { Graph2 } from "./graph";
|
|
3
|
+
import { Graph2 } from "./graph.ts";
|
|
4
4
|
export type IVertex3 = Vertex3Props;
|
|
5
5
|
export declare function toJsonObj<T>(row: any, columns: any): T;
|
|
6
6
|
export declare class AnnotationColumn extends PropertyExt {
|
|
7
|
-
columnID: publish<this, string>;
|
|
8
|
-
annotationID: publish<this, string>;
|
|
9
7
|
protected _owner: DataGraph;
|
|
10
8
|
owner(): DataGraph;
|
|
11
9
|
owner(_: DataGraph): this;
|
|
12
10
|
valid(): boolean;
|
|
13
11
|
}
|
|
12
|
+
export interface AnnotationColumn {
|
|
13
|
+
columnID(): string;
|
|
14
|
+
columnID(_: string): this;
|
|
15
|
+
annotationID(): string;
|
|
16
|
+
annotationID(_: string): this;
|
|
17
|
+
}
|
|
14
18
|
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
19
|
constructor();
|
|
45
20
|
clear(): void;
|
|
46
21
|
indexOf(columns: readonly string[], column: string, defColumn?: string): number;
|
|
@@ -63,4 +38,63 @@ export declare class DataGraph extends Graph2 {
|
|
|
63
38
|
update(domNode: any, element: any): void;
|
|
64
39
|
render(callback?: (w: Widget) => void): this;
|
|
65
40
|
}
|
|
66
|
-
|
|
41
|
+
export interface DataGraph {
|
|
42
|
+
subgraphColumns(): string[];
|
|
43
|
+
subgraphColumns(_: string[]): this;
|
|
44
|
+
subgraphs(): Array<Array<string | number | boolean>>;
|
|
45
|
+
subgraphs(_: Array<Array<string | number | boolean>>): this;
|
|
46
|
+
subgraphIDColumn(): string;
|
|
47
|
+
subgraphIDColumn(_: string): this;
|
|
48
|
+
subgraphLabelColumn(): string;
|
|
49
|
+
subgraphLabelColumn(_: string): this;
|
|
50
|
+
vertexColumns(): string[];
|
|
51
|
+
vertexColumns(_: string[]): this;
|
|
52
|
+
vertices(): Array<Array<string | number | boolean>>;
|
|
53
|
+
vertices(_: Array<Array<string | number | boolean>>): this;
|
|
54
|
+
vertexCategoryColumn(): string;
|
|
55
|
+
vertexCategoryColumn(_: string): this;
|
|
56
|
+
vertexIDColumn(): string;
|
|
57
|
+
vertexIDColumn(_: string): this;
|
|
58
|
+
vertexLabelColumn(): string;
|
|
59
|
+
vertexLabelColumn(_: string): this;
|
|
60
|
+
vertexCentroidColumn(): string;
|
|
61
|
+
vertexCentroidColumn(_: string): this;
|
|
62
|
+
vertexImageUrl(): string;
|
|
63
|
+
vertexImageUrl(_: string): this;
|
|
64
|
+
vertexImageUrlColumn(): string;
|
|
65
|
+
vertexImageUrlColumn(_: string): this;
|
|
66
|
+
vertexFAChar(): string;
|
|
67
|
+
vertexFAChar(_: string): this;
|
|
68
|
+
vertexFACharColumn(): string;
|
|
69
|
+
vertexFACharColumn(_: string): this;
|
|
70
|
+
vertexTooltipColumn(): string;
|
|
71
|
+
vertexTooltipColumn(_: string): this;
|
|
72
|
+
vertexAnnotationColumns(): AnnotationColumn[];
|
|
73
|
+
vertexAnnotationColumns(_: AnnotationColumn[]): this;
|
|
74
|
+
vertexExpansionFACharColumn(): string;
|
|
75
|
+
vertexExpansionFACharColumn(_: string): this;
|
|
76
|
+
edgeColumns(): string[];
|
|
77
|
+
edgeColumns(_: string[]): this;
|
|
78
|
+
edges(): Array<Array<string | number | boolean>>;
|
|
79
|
+
edges(_: Array<Array<string | number | boolean>>): this;
|
|
80
|
+
edgeIDColumn(): string;
|
|
81
|
+
edgeIDColumn(_: string): this;
|
|
82
|
+
edgeLabelColumn(): string;
|
|
83
|
+
edgeLabelColumn(_: string): this;
|
|
84
|
+
edgeSourceColumn(): string;
|
|
85
|
+
edgeSourceColumn(_: string): this;
|
|
86
|
+
edgeTargetColumn(): string;
|
|
87
|
+
edgeTargetColumn(_: string): this;
|
|
88
|
+
edgeWeightColumn(): string;
|
|
89
|
+
edgeWeightColumn(_: string): this;
|
|
90
|
+
edgeColorColumn(): string;
|
|
91
|
+
edgeColorColumn(_: string): this;
|
|
92
|
+
hierarchyColumns(): string[];
|
|
93
|
+
hierarchyColumns(_: string[]): this;
|
|
94
|
+
hierarchy(): Array<Array<string | number | boolean>>;
|
|
95
|
+
hierarchy(_: Array<Array<string | number | boolean>>): this;
|
|
96
|
+
hierarchyParentIDColumn(): string;
|
|
97
|
+
hierarchyParentIDColumn(_: string): this;
|
|
98
|
+
hierarchyChildIDColumn(): string;
|
|
99
|
+
hierarchyChildIDColumn(_: string): this;
|
|
100
|
+
}
|
package/types/graph2/graph.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
3
|
+
import { GraphReactT } from "./graphReactT.ts";
|
|
4
|
+
import { GraphDataProps, HierarchyBase } from "./graphT.ts";
|
|
4
5
|
export type ISubgraph = SubgraphProps;
|
|
5
6
|
export type IVertex = VertexProps;
|
|
6
7
|
export type IEdge = EdgeProps;
|
|
@@ -9,12 +10,12 @@ export type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
|
|
|
9
10
|
export declare class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
|
|
10
11
|
constructor();
|
|
11
12
|
calcProps(_props: VertexProps): VertexProps;
|
|
12
|
-
protected _reactVertexRenderer2: React.FunctionComponent<
|
|
13
|
-
vertexRenderer(): React.FunctionComponent<
|
|
14
|
-
vertexRenderer(_: React.FunctionComponent<
|
|
15
|
-
protected _reactCentroidRenderer: React.FunctionComponent<
|
|
16
|
-
centroidRenderer(): React.FunctionComponent<
|
|
17
|
-
centroidRenderer(_: React.FunctionComponent<
|
|
13
|
+
protected _reactVertexRenderer2: React.FunctionComponent<any>;
|
|
14
|
+
vertexRenderer<T extends VertexProps>(): React.FunctionComponent<T>;
|
|
15
|
+
vertexRenderer<T extends VertexProps>(_: React.FunctionComponent<T>): this;
|
|
16
|
+
protected _reactCentroidRenderer: React.FunctionComponent<any>;
|
|
17
|
+
centroidRenderer<T extends VertexProps>(): React.FunctionComponent<T>;
|
|
18
|
+
centroidRenderer<T extends VertexProps>(_: React.FunctionComponent<T>): this;
|
|
18
19
|
enter(domNode: any, element: any): void;
|
|
19
20
|
update(domNode: any, element: any): void;
|
|
20
21
|
}
|
|
@@ -52,4 +53,3 @@ export interface Graph2 {
|
|
|
52
53
|
centroidLabelFontFamily(): string;
|
|
53
54
|
centroidLabelFontFamily(_: string): this;
|
|
54
55
|
}
|
|
55
|
-
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
3
|
+
import { GraphT } from "./graphT.ts";
|
|
3
4
|
export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps<V>> extends GraphT<SG, V, E> {
|
|
4
5
|
constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>);
|
|
5
6
|
private _reactSubgraphRenderer;
|
|
@@ -12,4 +13,3 @@ export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps
|
|
|
12
13
|
edgeRenderer(): React.FunctionComponent<E>;
|
|
13
14
|
edgeRenderer(_: React.FunctionComponent<E>): this;
|
|
14
15
|
}
|
|
15
|
-
//# sourceMappingURL=graphReactT.d.ts.map
|
package/types/graph2/graphT.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { IconEx } from "@hpcc-js/react";
|
|
|
3
3
|
import { Graph2 as GraphCollection } from "@hpcc-js/util";
|
|
4
4
|
import { HTMLTooltip } from "@hpcc-js/html";
|
|
5
5
|
import "d3-transition";
|
|
6
|
-
import { ILayout } from "./layouts/index";
|
|
7
|
-
import { Options as FDOptions } from "./layouts/forceDirectedWorker";
|
|
8
|
-
import type { VertexBaseProps, EdgeBaseProps, GraphDataProps, HierarchyBase, SubgraphBaseProps } from "./layouts/placeholders";
|
|
9
|
-
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./layouts/placeholders";
|
|
10
|
-
import { Engine } from "./layouts/graphvizWorker";
|
|
6
|
+
import { ILayout } from "./layouts/index.ts";
|
|
7
|
+
import { Options as FDOptions } from "./layouts/forceDirectedWorker.ts";
|
|
8
|
+
import type { VertexBaseProps, EdgeBaseProps, GraphDataProps, HierarchyBase, SubgraphBaseProps } from "./layouts/placeholders.ts";
|
|
9
|
+
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./layouts/placeholders.ts";
|
|
10
|
+
import { Engine } from "./layouts/graphvizWorker.ts";
|
|
11
11
|
import "../../src/graph2/graph.css";
|
|
12
12
|
export { GraphDataProps, SubgraphBaseProps, VertexBaseProps, EdgeBaseProps, HierarchyBase };
|
|
13
13
|
type GraphLayoutType = "Hierarchy" | "DOT" | "Tree" | "Dendrogram" | "RadialTree" | "RadialDendrogram" | "ForceDirected" | "ForceDirected2" | "ForceDirectedHybrid" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
|
|
@@ -231,4 +231,3 @@ export declare function graphviz(dot: string, engine?: Engine, _scriptDir?: stri
|
|
|
231
231
|
terminate: () => void;
|
|
232
232
|
response: Promise<string>;
|
|
233
233
|
};
|
|
234
|
-
//# sourceMappingURL=graphT.d.ts.map
|
package/types/graph2/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "./graphT";
|
|
2
|
-
export * from "./graphReactT";
|
|
3
|
-
export * from "./graph";
|
|
4
|
-
export * from "./dataGraph";
|
|
5
|
-
export * from "./sankeyGraph";
|
|
6
|
-
export * from "./subgraph";
|
|
7
|
-
export * from "./vertex";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./graphT.ts";
|
|
2
|
+
export * from "./graphReactT.ts";
|
|
3
|
+
export * from "./graph.ts";
|
|
4
|
+
export * from "./dataGraph.ts";
|
|
5
|
+
export * from "./sankeyGraph.ts";
|
|
6
|
+
export * from "./subgraph.tsx";
|
|
7
|
+
export * from "./vertex.tsx";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Layout } from "./layout";
|
|
1
|
+
import { Layout } from "./layout.ts";
|
|
2
2
|
export declare class Circle extends Layout {
|
|
3
3
|
readonly sideLength: number;
|
|
4
4
|
constructor(graph: any, sideLength?: number);
|
|
5
5
|
start(): Promise<this>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Options } from "./dagreWorker";
|
|
2
|
-
import { Layout, Point } from "./layout";
|
|
3
|
-
import { EdgePlaceholder } from "./placeholders";
|
|
1
|
+
import { Options } from "./dagreWorker.ts";
|
|
2
|
+
import { Layout, Point } from "./layout.ts";
|
|
3
|
+
import { EdgePlaceholder } from "./placeholders.ts";
|
|
4
4
|
export declare class Dagre extends Layout {
|
|
5
5
|
readonly _options: Options;
|
|
6
6
|
constructor(graph: any, _options: Options);
|
|
@@ -10,4 +10,3 @@ export declare class Dagre extends Layout {
|
|
|
10
10
|
labelPos: Point;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=dagre.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Layout } from "./layout";
|
|
2
|
-
import { Options } from "./forceDirectedWorker";
|
|
1
|
+
import { Layout } from "./layout.ts";
|
|
2
|
+
import { Options } from "./forceDirectedWorker.ts";
|
|
3
3
|
export declare class ForceDirectedBase extends Layout {
|
|
4
4
|
readonly _options: Options;
|
|
5
5
|
protected _links: any;
|
|
@@ -16,4 +16,3 @@ export declare class ForceDirected extends ForceDirectedBase {
|
|
|
16
16
|
export declare class ForceDirectedAnimated extends ForceDirectedBase {
|
|
17
17
|
start(): Promise<this>;
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=forceDirected.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Layout, Point } from "./layout";
|
|
2
|
-
import { EdgePlaceholder } from "./placeholders";
|
|
1
|
+
import { Layout, Point } from "./layout.ts";
|
|
2
|
+
import { EdgePlaceholder } from "./placeholders.ts";
|
|
3
3
|
type Engine = "circo" | "dot" | "fdp" | "neato" | "osage" | "patchwork" | "twopi";
|
|
4
4
|
export declare class Graphviz extends Layout {
|
|
5
5
|
_engine: Engine;
|
|
@@ -12,4 +12,3 @@ export declare class Graphviz extends Layout {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
15
|
-
//# sourceMappingURL=graphviz.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "./circle";
|
|
2
|
-
export * from "./dagre";
|
|
3
|
-
export * from "./forceDirected";
|
|
4
|
-
export * from "./geoForceDirected";
|
|
5
|
-
export * from "./graphviz";
|
|
6
|
-
export type { ILayout } from "./layout";
|
|
7
|
-
export * from "./null";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from "./circle.ts";
|
|
2
|
+
export * from "./dagre.ts";
|
|
3
|
+
export * from "./forceDirected.ts";
|
|
4
|
+
export * from "./geoForceDirected.ts";
|
|
5
|
+
export * from "./graphviz.ts";
|
|
6
|
+
export type { ILayout } from "./layout.ts";
|
|
7
|
+
export * from "./null.ts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Graph2 as GraphCollection } from "@hpcc-js/util";
|
|
2
|
-
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./placeholders";
|
|
3
|
-
import { EdgeLayout } from "./tree";
|
|
2
|
+
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./placeholders.ts";
|
|
3
|
+
import { EdgeLayout } from "./tree.ts";
|
|
4
4
|
export type Point = [number, number];
|
|
5
5
|
export interface ILayout {
|
|
6
6
|
start(): Promise<this>;
|
|
@@ -37,4 +37,3 @@ export declare class Layout implements ILayout {
|
|
|
37
37
|
labelPos: Point;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Layout } from "./layout";
|
|
1
|
+
import { Layout } from "./layout.ts";
|
|
2
2
|
export declare class Null extends Layout {
|
|
3
|
+
constructor(graph: any);
|
|
3
4
|
start(): Promise<this>;
|
|
4
5
|
}
|
|
5
6
|
export declare class Initial extends Layout {
|
|
6
7
|
start(): Promise<this>;
|
|
7
8
|
}
|
|
8
|
-
//# sourceMappingURL=null.d.ts.map
|
|
@@ -74,4 +74,3 @@ export interface EdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E
|
|
|
74
74
|
points?: Array<[number, number]>;
|
|
75
75
|
}
|
|
76
76
|
export declare function isEdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>>(item: any): item is EdgePlaceholder<V, E>;
|
|
77
|
-
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Graph2 } from "@hpcc-js/util";
|
|
2
|
-
import { Hierarchy } from "./dagreWorker";
|
|
3
|
-
import { Layout, Point } from "./layout";
|
|
4
|
-
import { VertexPlaceholder, EdgePlaceholder, SubgraphPlaceholder } from "./placeholders";
|
|
2
|
+
import { Hierarchy } from "./dagreWorker.ts";
|
|
3
|
+
import { Layout, Point } from "./layout.ts";
|
|
4
|
+
import { VertexPlaceholder, EdgePlaceholder, SubgraphPlaceholder } from "./placeholders.ts";
|
|
5
5
|
interface Node {
|
|
6
6
|
origData: VertexPlaceholder;
|
|
7
7
|
children: Node[];
|
|
@@ -48,4 +48,3 @@ export declare class RadialDendrogram extends TidyTreeBase {
|
|
|
48
48
|
start(): Promise<this>;
|
|
49
49
|
}
|
|
50
50
|
export {};
|
|
51
|
-
//# sourceMappingURL=tree.d.ts.map
|