@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/types-3.4/Graph.d.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { ISize, SVGGlowFilter, SVGZoomWidget, Widget } from "@hpcc-js/common";
|
|
2
|
-
import "d3-transition";
|
|
3
|
-
import { Edge } from "./Edge";
|
|
4
|
-
import { Subgraph } from "./Subgraph";
|
|
5
|
-
import { Vertex } from "./Vertex";
|
|
6
|
-
import "../src/Graph.css";
|
|
7
|
-
export interface Lineage {
|
|
8
|
-
parent: Widget;
|
|
9
|
-
child: Widget;
|
|
10
|
-
}
|
|
11
|
-
export interface IGraphData {
|
|
12
|
-
subgraphs?: Widget[];
|
|
13
|
-
vertices: Widget[];
|
|
14
|
-
edges: Edge[];
|
|
15
|
-
hierarchy?: Lineage[];
|
|
16
|
-
}
|
|
17
|
-
export type GraphLayoutType = "Hierarchy" | "DOT" | "ForceDirected" | "ForceDirected2" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
|
|
18
|
-
export declare class Graph extends SVGZoomWidget {
|
|
19
|
-
static Subgraph: typeof Subgraph;
|
|
20
|
-
static Vertex: typeof Vertex;
|
|
21
|
-
static Edge: typeof Edge;
|
|
22
|
-
private _toggleHierarchy;
|
|
23
|
-
private _toggleForceDirected;
|
|
24
|
-
private _toggleForceDirected2;
|
|
25
|
-
private _toggleCircle;
|
|
26
|
-
private _graphData;
|
|
27
|
-
protected highlight: any;
|
|
28
|
-
protected _selection: any;
|
|
29
|
-
protected _dragging: any;
|
|
30
|
-
protected forceLayout: any;
|
|
31
|
-
protected _d3Drag: any;
|
|
32
|
-
protected defs: any;
|
|
33
|
-
protected _centroidFilter: SVGGlowFilter;
|
|
34
|
-
protected svgFragment: any;
|
|
35
|
-
protected svg: any;
|
|
36
|
-
protected svgC: any;
|
|
37
|
-
protected svgE: any;
|
|
38
|
-
protected svgV: any;
|
|
39
|
-
constructor();
|
|
40
|
-
iconBarButtons(): Widget[];
|
|
41
|
-
layoutClick(layout: GraphLayoutType): void;
|
|
42
|
-
getOffsetPos(): {
|
|
43
|
-
x: number;
|
|
44
|
-
y: number;
|
|
45
|
-
};
|
|
46
|
-
size(): ISize;
|
|
47
|
-
size(_: any): this;
|
|
48
|
-
clear(): void;
|
|
49
|
-
_dataHash: number;
|
|
50
|
-
data(): IGraphData;
|
|
51
|
-
data(_: IGraphData, merge?: boolean): this;
|
|
52
|
-
graphData(): any;
|
|
53
|
-
selection(_: Widget[]): this;
|
|
54
|
-
selection(): Widget[];
|
|
55
|
-
private _linkcolor;
|
|
56
|
-
linkcolor_default(): string;
|
|
57
|
-
linkcolor_default(_: string): this;
|
|
58
|
-
private _linktooltip;
|
|
59
|
-
linktooltip_default(): string;
|
|
60
|
-
linktooltip_default(_: string): this;
|
|
61
|
-
private _neighborOffsets;
|
|
62
|
-
dragstart(d: any): void;
|
|
63
|
-
dragging(d: any): void;
|
|
64
|
-
dragend(d: any): void;
|
|
65
|
-
enter(domNode: any, element: any): void;
|
|
66
|
-
getBounds(items: any, layoutEngine?: any): any[][];
|
|
67
|
-
getVertexBounds(layoutEngine: any): any[][];
|
|
68
|
-
getSelectionBounds(layoutEngine: any): any[][];
|
|
69
|
-
centerOnItem(item: Widget): void;
|
|
70
|
-
zoomToItem(item: Widget): void;
|
|
71
|
-
updateVertices(rootElement: any, rootSuffix: any, data: any): void;
|
|
72
|
-
update(domNode: any, element: any): void;
|
|
73
|
-
exit(domNode: any, element: any): void;
|
|
74
|
-
static profileID: number;
|
|
75
|
-
render(callback?: (w: Widget) => void): this;
|
|
76
|
-
_prevLayout: any;
|
|
77
|
-
_prevDataHash: any;
|
|
78
|
-
doLayout(transitionDuration?: number): Promise<void>;
|
|
79
|
-
_doLayout(transitionDuration?: number): Promise<void>;
|
|
80
|
-
getLayoutEngine(): any;
|
|
81
|
-
getNeighborMap(vertex: any): {
|
|
82
|
-
vertices: {};
|
|
83
|
-
edges: {};
|
|
84
|
-
};
|
|
85
|
-
highlightVerticies(vertexMap?: {
|
|
86
|
-
[id: string]: boolean;
|
|
87
|
-
}): this;
|
|
88
|
-
highlightEdges(edgeMap: any): this;
|
|
89
|
-
highlightVertex(_element: any, d: any): void;
|
|
90
|
-
highlightEdge(_element: any, d: any): void;
|
|
91
|
-
refreshIncidentEdges(d: any, skipPushMarkers: any): void;
|
|
92
|
-
centroids(): Vertex[];
|
|
93
|
-
selectionChanged(): void;
|
|
94
|
-
vertex_click(_row: any, _col: any, _sel: any, more: any): void;
|
|
95
|
-
vertex_dblclick(_row: any, _col: any, _sel: any, _opts: any): void;
|
|
96
|
-
vertex_contextmenu(_row: any, _col: any, _sel: any, _opts: any): void;
|
|
97
|
-
vertex_mouseover(element: any, d: any): void;
|
|
98
|
-
vertex_mouseout(_element: any, _d: any): void;
|
|
99
|
-
edge_mouseover(element: any, d: any): void;
|
|
100
|
-
edge_mouseout(_element: any, _d: any): void;
|
|
101
|
-
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
|
-
progress(what: "start" | "end" | "layout-start" | "layout-tick" | "layout-end"): void;
|
|
108
|
-
}
|
|
109
|
-
export interface Graph {
|
|
110
|
-
allowDragging(): boolean;
|
|
111
|
-
allowDragging(_: boolean): this;
|
|
112
|
-
dragSingleNeighbors(): boolean;
|
|
113
|
-
dragSingleNeighbors(_: boolean): this;
|
|
114
|
-
layout(): GraphLayoutType;
|
|
115
|
-
layout(_: GraphLayoutType): this;
|
|
116
|
-
applyScaleOnLayout(): boolean;
|
|
117
|
-
applyScaleOnLayout(_: boolean): this;
|
|
118
|
-
highlightOnMouseOverVertex(): boolean;
|
|
119
|
-
highlightOnMouseOverVertex(_: boolean): this;
|
|
120
|
-
highlightOnMouseOverEdge(): boolean;
|
|
121
|
-
highlightOnMouseOverEdge(_: boolean): this;
|
|
122
|
-
transitionDuration(): number;
|
|
123
|
-
transitionDuration(_: number): this;
|
|
124
|
-
showEdges(): boolean;
|
|
125
|
-
showEdges(_: boolean): this;
|
|
126
|
-
snapToGrid(): number;
|
|
127
|
-
snapToGrid(_: number): this;
|
|
128
|
-
selectionClearOnBackgroundClick(): boolean;
|
|
129
|
-
selectionClearOnBackgroundClick(_: boolean): this;
|
|
130
|
-
centroidColor(): string;
|
|
131
|
-
centroidColor(_: string): this;
|
|
132
|
-
highlightSelectedPathToCentroid(): boolean;
|
|
133
|
-
highlightSelectedPathToCentroid(_: boolean): this;
|
|
134
|
-
hierarchyRankDirection(): string;
|
|
135
|
-
hierarchyRankDirection(_: string): this;
|
|
136
|
-
hierarchyNodeSeparation(): number;
|
|
137
|
-
hierarchyNodeSeparation(_: number): this;
|
|
138
|
-
hierarchyEdgeSeparation(): number;
|
|
139
|
-
hierarchyEdgeSeparation(_: number): this;
|
|
140
|
-
hierarchyRankSeparation(): number;
|
|
141
|
-
hierarchyRankSeparation(_: number): this;
|
|
142
|
-
hierarchyDigraph(): boolean;
|
|
143
|
-
hierarchyDigraph(_: boolean): this;
|
|
144
|
-
forceDirectedLinkDistance(): number;
|
|
145
|
-
forceDirectedLinkDistance(_: number): this;
|
|
146
|
-
forceDirectedLinkStrength(): number;
|
|
147
|
-
forceDirectedLinkStrength(_: number): this;
|
|
148
|
-
forceDirectedFriction(): number;
|
|
149
|
-
forceDirectedFriction(_: number): this;
|
|
150
|
-
forceDirectedCharge(): number;
|
|
151
|
-
forceDirectedCharge(_: number): this;
|
|
152
|
-
forceDirectedChargeDistance(): number;
|
|
153
|
-
forceDirectedChargeDistance(_: number): this;
|
|
154
|
-
forceDirectedTheta(): number;
|
|
155
|
-
forceDirectedTheta(_: number): this;
|
|
156
|
-
forceDirectedGravity(): number;
|
|
157
|
-
forceDirectedGravity(_: number): this;
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=Graph.d.ts.map
|
package/types-3.4/GraphData.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Edge as GLEdge, GraphEdge, Node } from "dagre";
|
|
2
|
-
import { Vertex } from "./Vertex";
|
|
3
|
-
type GLNode = Node<Vertex>;
|
|
4
|
-
export interface GraphLabel {
|
|
5
|
-
debugTiming?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class GraphData {
|
|
8
|
-
private _g;
|
|
9
|
-
constructor();
|
|
10
|
-
parent(cn: string): string;
|
|
11
|
-
private filterNodes;
|
|
12
|
-
eachNode(callback: any): void;
|
|
13
|
-
private filterEdges;
|
|
14
|
-
eachEdge(callback: any): void;
|
|
15
|
-
setData(subgraphs: any, vertices: any, edges: any, hierarchy: any, merge: any): {
|
|
16
|
-
addedVertices: any[];
|
|
17
|
-
addedEdges: any[];
|
|
18
|
-
};
|
|
19
|
-
node(id: string): GLNode;
|
|
20
|
-
nodeCount(): number;
|
|
21
|
-
nodes(): GLNode[];
|
|
22
|
-
nodeEdges(id: string): GLEdge[];
|
|
23
|
-
edge(glEdge: GLEdge): GraphEdge;
|
|
24
|
-
edges(): GraphEdge[];
|
|
25
|
-
neighbors(id: string): Node<Vertex>[];
|
|
26
|
-
singleNeighbors(id: string): Node<Vertex>[];
|
|
27
|
-
gatherShortestPath(pathObj: any, targetID: any): any[];
|
|
28
|
-
shortestPath(sourceID: string, targetID: string): any[];
|
|
29
|
-
undirectedShortestPath(sourceID: string, targetID: string): any[];
|
|
30
|
-
getJSON(): string;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=GraphData.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { GraphData } from "./GraphData";
|
|
2
|
-
export declare function Circle(graphData: GraphData, width?: any, height?: any, radius?: any): void;
|
|
3
|
-
export declare function None(graphData: GraphData, _width: any, _height: any, _radius: any): void;
|
|
4
|
-
export declare function ForceDirected(graphData: GraphData, width: any, height: any, options: any): void;
|
|
5
|
-
export declare function Hierarchy(graphData: GraphData, _width: any, _height: any, options: any): void;
|
|
6
|
-
//# sourceMappingURL=GraphLayouts.d.ts.map
|
package/types-3.4/Sankey.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { PropertyExt, SVGWidget } from "@hpcc-js/common";
|
|
2
|
-
import "../src/Sankey.css";
|
|
3
|
-
export declare class SankeyColumn extends PropertyExt {
|
|
4
|
-
_owner: Sankey;
|
|
5
|
-
constructor();
|
|
6
|
-
owner(): Sankey;
|
|
7
|
-
owner(_: Sankey): this;
|
|
8
|
-
valid(): boolean;
|
|
9
|
-
aggregate(values: any): any;
|
|
10
|
-
column: {
|
|
11
|
-
(): string;
|
|
12
|
-
(_: string): SankeyColumn;
|
|
13
|
-
};
|
|
14
|
-
aggrType: {
|
|
15
|
-
(): string;
|
|
16
|
-
(_: string): SankeyColumn;
|
|
17
|
-
};
|
|
18
|
-
aggrColumn: {
|
|
19
|
-
(): string;
|
|
20
|
-
(_: string): SankeyColumn;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare class Sankey extends SVGWidget {
|
|
24
|
-
Column: any;
|
|
25
|
-
_palette: any;
|
|
26
|
-
_d3Sankey: any;
|
|
27
|
-
_d3SankeyPath: any;
|
|
28
|
-
_selection: any;
|
|
29
|
-
constructor();
|
|
30
|
-
sankeyData(): {
|
|
31
|
-
vertices: any[];
|
|
32
|
-
edges: any[];
|
|
33
|
-
};
|
|
34
|
-
enter(domNode: any, element: any): void;
|
|
35
|
-
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
|
-
exit(domNode: any, element: any): void;
|
|
69
|
-
click(row: any, column: any, selected: any): void;
|
|
70
|
-
dblclick(row: any, column: any, selected: any): void;
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=Sankey.d.ts.map
|
package/types-3.4/Subgraph.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Icon, SVGWidget, Text } from "@hpcc-js/common";
|
|
2
|
-
import "d3-transition";
|
|
3
|
-
import "../src/Subgraph.css";
|
|
4
|
-
export type SubgraphMinState = "normal" | "partial";
|
|
5
|
-
export declare class Subgraph extends SVGWidget {
|
|
6
|
-
protected _border: any;
|
|
7
|
-
protected _textWidget: Text;
|
|
8
|
-
protected _buttonMin: Icon;
|
|
9
|
-
protected _minState: SubgraphMinState;
|
|
10
|
-
constructor();
|
|
11
|
-
minState(): SubgraphMinState;
|
|
12
|
-
minState(_: SubgraphMinState): this;
|
|
13
|
-
calcIcon(): "" | "";
|
|
14
|
-
getBBox(refresh?: boolean, round?: boolean): {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
};
|
|
20
|
-
enter(domNode: any, element: any): void;
|
|
21
|
-
update(domNode: any, element: any): void;
|
|
22
|
-
exit(domNode: any, element: any): void;
|
|
23
|
-
intersection(pointA: any, pointB: any): any;
|
|
24
|
-
click(d: any): void;
|
|
25
|
-
minClick(): void;
|
|
26
|
-
}
|
|
27
|
-
export interface Subgraph {
|
|
28
|
-
border_colorStroke(): string;
|
|
29
|
-
border_colorStroke(_: string): this;
|
|
30
|
-
border_colorFill(): string;
|
|
31
|
-
border_colorFill(_: string): this;
|
|
32
|
-
border_colorFill_exists: () => boolean;
|
|
33
|
-
showTitle(): boolean;
|
|
34
|
-
showTitle(_: boolean): this;
|
|
35
|
-
title(): string;
|
|
36
|
-
title(_: string): this;
|
|
37
|
-
titleFontSize(): string;
|
|
38
|
-
titleFontSize(_: string): this;
|
|
39
|
-
title_colorFill(): string;
|
|
40
|
-
title_colorFill(_: string): this;
|
|
41
|
-
title_colorFill_exists: () => boolean;
|
|
42
|
-
showMinMax(): boolean;
|
|
43
|
-
showMinMax(_: boolean): this;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=Subgraph.d.ts.map
|
package/types-3.4/Vertex.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Icon, SVGWidget, TextBox } from "@hpcc-js/common";
|
|
2
|
-
import "../src/Vertex.css";
|
|
3
|
-
export interface IAnnotation {
|
|
4
|
-
faChar?: string;
|
|
5
|
-
imageUrl?: string;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
diameter?: number;
|
|
8
|
-
paddingPercent?: number;
|
|
9
|
-
shape_colorFill?: string;
|
|
10
|
-
shape_colorStroke?: string;
|
|
11
|
-
image_colorFill?: string;
|
|
12
|
-
fontFamily?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class Vertex extends SVGWidget {
|
|
15
|
-
protected _icon: Icon;
|
|
16
|
-
protected _textBox: TextBox;
|
|
17
|
-
protected _annotationWidgets: object;
|
|
18
|
-
protected _graphID: any;
|
|
19
|
-
constructor();
|
|
20
|
-
getIconBBox(): {
|
|
21
|
-
x: number;
|
|
22
|
-
y: number;
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
};
|
|
26
|
-
getBBox(refresh?: boolean, round?: boolean): {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
enter(domNode: any, element: any): void;
|
|
33
|
-
_prevHash: any;
|
|
34
|
-
update(domNode: any, element: any): void;
|
|
35
|
-
exit(domNode: any, element: any): void;
|
|
36
|
-
contains(point: any): boolean;
|
|
37
|
-
intersection(pointA: any, pointB: any): any;
|
|
38
|
-
mouseover(d: any): void;
|
|
39
|
-
mouseout(d: any): void;
|
|
40
|
-
}
|
|
41
|
-
export interface Vertex {
|
|
42
|
-
faChar(): string;
|
|
43
|
-
faChar(_: string): this;
|
|
44
|
-
imageUrl(): string;
|
|
45
|
-
imageUrl(_: string): this;
|
|
46
|
-
icon_diameter(): number;
|
|
47
|
-
icon_diameter(_: number): this;
|
|
48
|
-
icon_paddingPercent(): number;
|
|
49
|
-
icon_paddingPercent(_: number): this;
|
|
50
|
-
icon_shape_colorFill(): string;
|
|
51
|
-
icon_shape_colorFill(_: string): this;
|
|
52
|
-
icon_shape_colorStroke(): string;
|
|
53
|
-
icon_shape_colorStroke(_: string): this;
|
|
54
|
-
icon_image_colorFill(): string;
|
|
55
|
-
icon_image_colorFill(_: string): this;
|
|
56
|
-
icon_fontFamily(): string;
|
|
57
|
-
icon_fontFamily(_: string): this;
|
|
58
|
-
centroid(): boolean;
|
|
59
|
-
centroid(_: boolean): this;
|
|
60
|
-
text(): string;
|
|
61
|
-
text(_: string): this;
|
|
62
|
-
anchor(): string;
|
|
63
|
-
anchor(_: string): this;
|
|
64
|
-
textbox_shape_colorStroke(): string;
|
|
65
|
-
textbox_shape_colorStroke(_: string): this;
|
|
66
|
-
textbox_shape_colorFill(): string;
|
|
67
|
-
textbox_shape_colorFill(_: string): this;
|
|
68
|
-
textbox_text_colorFill(): string;
|
|
69
|
-
textbox_text_colorFill(_: string): this;
|
|
70
|
-
iconAnchor(): "" | "start" | "middle" | "end" | "left";
|
|
71
|
-
iconAnchor(_: "" | "start" | "middle" | "end" | "left"): this;
|
|
72
|
-
iconTooltip(): string;
|
|
73
|
-
iconTooltip(_: string): this;
|
|
74
|
-
tooltip(): string;
|
|
75
|
-
tooltip(_: string): this;
|
|
76
|
-
annotationDiameter(): number;
|
|
77
|
-
annotationDiameter(_: number): this;
|
|
78
|
-
annotationSpacing(): number;
|
|
79
|
-
annotationSpacing(_: number): this;
|
|
80
|
-
annotationIcons(): IAnnotation[];
|
|
81
|
-
annotationIcons(_: IAnnotation[]): this;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=Vertex.d.ts.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Graph2 } from "../graph2/graph";
|
|
2
|
-
export declare const EDGE_ARR_UPDATE: {
|
|
3
|
-
id: number;
|
|
4
|
-
source: {
|
|
5
|
-
id: number;
|
|
6
|
-
text: string;
|
|
7
|
-
iconFontFamily: string;
|
|
8
|
-
centroid?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
centroid: boolean;
|
|
11
|
-
id: number;
|
|
12
|
-
text: string;
|
|
13
|
-
iconFontFamily?: undefined;
|
|
14
|
-
};
|
|
15
|
-
target: {
|
|
16
|
-
id: number;
|
|
17
|
-
text: string;
|
|
18
|
-
iconFontFamily: string;
|
|
19
|
-
centroid?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
centroid: boolean;
|
|
22
|
-
id: number;
|
|
23
|
-
text: string;
|
|
24
|
-
iconFontFamily?: undefined;
|
|
25
|
-
};
|
|
26
|
-
}[];
|
|
27
|
-
export declare class Test5 extends Graph2 {
|
|
28
|
-
constructor();
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=test5.d.ts.map
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { PropertyExt, publish, Widget } from "@hpcc-js/common";
|
|
2
|
-
import { Vertex3Props, EdgeProps } from "@hpcc-js/react";
|
|
3
|
-
import { Graph2 } from "./graph";
|
|
4
|
-
export type IVertex3 = Vertex3Props;
|
|
5
|
-
export declare function toJsonObj<T>(row: any, columns: any): T;
|
|
6
|
-
export declare class AnnotationColumn extends PropertyExt {
|
|
7
|
-
columnID: publish<this, string>;
|
|
8
|
-
annotationID: publish<this, string>;
|
|
9
|
-
protected _owner: DataGraph;
|
|
10
|
-
owner(): DataGraph;
|
|
11
|
-
owner(_: DataGraph): this;
|
|
12
|
-
valid(): boolean;
|
|
13
|
-
}
|
|
14
|
-
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
|
-
constructor();
|
|
45
|
-
clear(): void;
|
|
46
|
-
indexOf(columns: readonly string[], column: string, defColumn?: string): number;
|
|
47
|
-
private _prevSubgraphs;
|
|
48
|
-
private _masterSubgraphs;
|
|
49
|
-
private _masterSubgraphsMap;
|
|
50
|
-
mergeSubgraphs(): void;
|
|
51
|
-
private _prevVertices;
|
|
52
|
-
private _masterVertices;
|
|
53
|
-
private _masterVerticesMap;
|
|
54
|
-
mergeVertices(): void;
|
|
55
|
-
protected _prevEdges: readonly EdgeProps<IVertex3>[];
|
|
56
|
-
protected _masterEdges: EdgeProps<IVertex3>[];
|
|
57
|
-
private _masterEdgesMap;
|
|
58
|
-
mergeEdges(): void;
|
|
59
|
-
private _prevHierarchy;
|
|
60
|
-
private _masterHierarchy;
|
|
61
|
-
private _masterHierarchyMap;
|
|
62
|
-
mergeHierarchy(): void;
|
|
63
|
-
update(domNode: any, element: any): void;
|
|
64
|
-
render(callback?: (w: Widget) => void): this;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=dataGraph.d.ts.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
2
|
-
import { GraphReactT } from "./graphReactT";
|
|
3
|
-
import { GraphDataProps, HierarchyBase } from "./graphT";
|
|
4
|
-
export type ISubgraph = SubgraphProps;
|
|
5
|
-
export type IVertex = VertexProps;
|
|
6
|
-
export type IEdge = EdgeProps;
|
|
7
|
-
export type IHierarchy = HierarchyBase<ISubgraph, IVertex>;
|
|
8
|
-
export type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
|
|
9
|
-
export declare class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
|
|
10
|
-
constructor();
|
|
11
|
-
calcProps(_props: VertexProps): VertexProps;
|
|
12
|
-
protected _reactVertexRenderer2: React.FunctionComponent<VertexProps>;
|
|
13
|
-
vertexRenderer(): React.FunctionComponent<VertexProps>;
|
|
14
|
-
vertexRenderer(_: React.FunctionComponent<VertexProps>): this;
|
|
15
|
-
protected _reactCentroidRenderer: React.FunctionComponent<VertexProps>;
|
|
16
|
-
centroidRenderer(): React.FunctionComponent<VertexProps>;
|
|
17
|
-
centroidRenderer(_: React.FunctionComponent<VertexProps>): this;
|
|
18
|
-
enter(domNode: any, element: any): void;
|
|
19
|
-
update(domNode: any, element: any): void;
|
|
20
|
-
}
|
|
21
|
-
export interface Graph2 {
|
|
22
|
-
vertexTextHeight(): number;
|
|
23
|
-
vertexTextHeight(_: number): this;
|
|
24
|
-
vertexTextPadding(): number;
|
|
25
|
-
vertexTextPadding(_: number): this;
|
|
26
|
-
vertexIconHeight(): number;
|
|
27
|
-
vertexIconHeight(_: number): this;
|
|
28
|
-
vertexIconPadding(): number;
|
|
29
|
-
vertexIconPadding(_: number): this;
|
|
30
|
-
vertexIconStrokeWidth(): number;
|
|
31
|
-
vertexIconStrokeWidth(_: number): this;
|
|
32
|
-
vertexIconFontFamily(): string;
|
|
33
|
-
vertexIconFontFamily(_: string): this;
|
|
34
|
-
vertexLabelFontFamily(): string;
|
|
35
|
-
vertexLabelFontFamily(_: string): this;
|
|
36
|
-
centroidColor(): string;
|
|
37
|
-
centroidColor(_: string): this;
|
|
38
|
-
centroidScale(): number;
|
|
39
|
-
centroidScale(_: number): this;
|
|
40
|
-
centroidTextHeight(): number;
|
|
41
|
-
centroidTextHeight(_: number): this;
|
|
42
|
-
centroidTextPadding(): number;
|
|
43
|
-
centroidTextPadding(_: number): this;
|
|
44
|
-
centroidIconHeight(): number;
|
|
45
|
-
centroidIconHeight(_: number): this;
|
|
46
|
-
centroidIconPadding(): number;
|
|
47
|
-
centroidIconPadding(_: number): this;
|
|
48
|
-
centroidIconStrokeWidth(): number;
|
|
49
|
-
centroidIconStrokeWidth(_: number): this;
|
|
50
|
-
centroidIconFontFamily(): string;
|
|
51
|
-
centroidIconFontFamily(_: string): this;
|
|
52
|
-
centroidLabelFontFamily(): string;
|
|
53
|
-
centroidLabelFontFamily(_: string): this;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
2
|
-
import { GraphT } from "./graphT";
|
|
3
|
-
export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps<V>> extends GraphT<SG, V, E> {
|
|
4
|
-
constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>);
|
|
5
|
-
private _reactSubgraphRenderer;
|
|
6
|
-
subgraphRenderer(): React.FunctionComponent<SG>;
|
|
7
|
-
subgraphRenderer(_: React.FunctionComponent<SG>): this;
|
|
8
|
-
private _reactVertexRenderer;
|
|
9
|
-
vertexRenderer(): React.FunctionComponent<V>;
|
|
10
|
-
vertexRenderer(_: React.FunctionComponent<V>): this;
|
|
11
|
-
private _reactEdgeRenderer;
|
|
12
|
-
edgeRenderer(): React.FunctionComponent<E>;
|
|
13
|
-
edgeRenderer(_: React.FunctionComponent<E>): this;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=graphReactT.d.ts.map
|