@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,234 +0,0 @@
|
|
|
1
|
-
import { Palette, Selection, SVGGlowFilter, SVGZoomWidget, ToggleButton, Utility, Widget } from "@hpcc-js/common";
|
|
2
|
-
import { IconEx } from "@hpcc-js/react";
|
|
3
|
-
import { Graph2 as GraphCollection } from "@hpcc-js/util";
|
|
4
|
-
import { HTMLTooltip } from "@hpcc-js/html";
|
|
5
|
-
import "d3-transition";
|
|
6
|
-
import { ILayout } from "./layouts/index";
|
|
7
|
-
import { Options as FDOptions } from "./layouts/forceDirectedWorker";
|
|
8
|
-
import { VertexBaseProps, EdgeBaseProps, GraphDataProps, HierarchyBase, SubgraphBaseProps } from "./layouts/placeholders";
|
|
9
|
-
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./layouts/placeholders";
|
|
10
|
-
import { Engine } from "./layouts/graphvizWorker";
|
|
11
|
-
import "../../src/graph2/graph.css";
|
|
12
|
-
export { GraphDataProps, SubgraphBaseProps, VertexBaseProps, EdgeBaseProps, HierarchyBase };
|
|
13
|
-
type GraphLayoutType = "Hierarchy" | "DOT" | "Tree" | "Dendrogram" | "RadialTree" | "RadialDendrogram" | "ForceDirected" | "ForceDirected2" | "ForceDirectedHybrid" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
|
|
14
|
-
export type RendererT<T> = (props: T, element: SVGGElement) => void;
|
|
15
|
-
export declare class GraphT<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> extends SVGZoomWidget {
|
|
16
|
-
protected _centroidFilter: SVGGlowFilter;
|
|
17
|
-
private _toggleHierarchy;
|
|
18
|
-
private _toggleForceDirected;
|
|
19
|
-
private _toggleForceDirected2;
|
|
20
|
-
private _toggleCircle;
|
|
21
|
-
private _toggleDot;
|
|
22
|
-
private _toggleNeato;
|
|
23
|
-
private _toggleFDP;
|
|
24
|
-
private _toggleTwoPI;
|
|
25
|
-
private _toggleCirco;
|
|
26
|
-
private _toggleT;
|
|
27
|
-
private _toggleRT;
|
|
28
|
-
private _toggleD;
|
|
29
|
-
private _toggleRD;
|
|
30
|
-
protected _graphData: GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>, SubgraphPlaceholder<SG>>;
|
|
31
|
-
protected _prevDoClickTime: number;
|
|
32
|
-
protected _svgDefsAnn: any;
|
|
33
|
-
protected _svgDefsCat: any;
|
|
34
|
-
protected _subgraphG: Selection<SVGGElement, any, SVGGElement, any>;
|
|
35
|
-
protected _edgeG: Selection<SVGGElement, any, SVGGElement, any>;
|
|
36
|
-
protected _vertexG: Selection<SVGGElement, any, SVGGElement, any>;
|
|
37
|
-
protected _tooltip: HTMLTooltip;
|
|
38
|
-
protected _selection: Utility.SelectionBag;
|
|
39
|
-
private _dragHandler;
|
|
40
|
-
protected _catPalette: Palette.OrdinalPaletteFunc;
|
|
41
|
-
_svgDefs: any;
|
|
42
|
-
constructor(subgraphRenderer: RendererT<SG>, vertexRenderer: RendererT<V>, edgeRenderer: RendererT<E>);
|
|
43
|
-
resolveEventOrigin(): {
|
|
44
|
-
origin: string;
|
|
45
|
-
data?: SG | V | E;
|
|
46
|
-
};
|
|
47
|
-
iconBarButtons(): Widget[];
|
|
48
|
-
protected _categories: IconEx[];
|
|
49
|
-
categories(): IconEx[];
|
|
50
|
-
categories(_: IconEx[]): this;
|
|
51
|
-
protected _annotations: IconEx[];
|
|
52
|
-
annotations(): IconEx[];
|
|
53
|
-
annotations(_: IconEx[]): this;
|
|
54
|
-
private _origData;
|
|
55
|
-
data(): GraphDataProps<SG, V, E>;
|
|
56
|
-
data(_: GraphDataProps<SG, V, E>, merge?: boolean): this;
|
|
57
|
-
selected(vertex: V, _?: Array<V>): boolean;
|
|
58
|
-
selection(_: Array<V | SG | E>): this;
|
|
59
|
-
selection(): Array<V | SG | E>;
|
|
60
|
-
graphData(): GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>>;
|
|
61
|
-
resetLayout(): this;
|
|
62
|
-
layoutRunning(): boolean;
|
|
63
|
-
protected _layoutAlgo: ILayout;
|
|
64
|
-
layoutAlgo(layout: ILayout): Promise<void>;
|
|
65
|
-
layoutClick(layout: GraphLayoutType): void;
|
|
66
|
-
updateIconBarItem(tb: ToggleButton, tbLayout: GraphLayoutType): void;
|
|
67
|
-
updateIconBar(): void;
|
|
68
|
-
getNeighborMap(vertex: VertexPlaceholder<V>): {
|
|
69
|
-
vertices: {};
|
|
70
|
-
edges: {};
|
|
71
|
-
};
|
|
72
|
-
centerOnItem(id: string): void;
|
|
73
|
-
hideVertex(id: string): this;
|
|
74
|
-
showVertex(id: string): this;
|
|
75
|
-
protected highlight: {
|
|
76
|
-
zoom: number;
|
|
77
|
-
opacity: number;
|
|
78
|
-
edge: string;
|
|
79
|
-
};
|
|
80
|
-
highlightVerticies(vertexMap?: {
|
|
81
|
-
[id: string]: boolean;
|
|
82
|
-
}): this;
|
|
83
|
-
highlightEdges(edgeMap?: {
|
|
84
|
-
[id: string]: boolean;
|
|
85
|
-
}): this;
|
|
86
|
-
highlightVertex(_element: any, d?: VertexPlaceholder<V>): void;
|
|
87
|
-
highlightEdge(_element: any, d?: EdgePlaceholder<V, E>): void;
|
|
88
|
-
moveSubgraphPlaceholder(sp: SubgraphPlaceholder<SG>, transition: boolean): this;
|
|
89
|
-
moveEdgePlaceholder(ep: EdgePlaceholder<V, E>, transition: boolean): this;
|
|
90
|
-
moveVertexPlaceholder(vp: VertexPlaceholder<V>, transition: boolean, moveNeighbours: boolean): this;
|
|
91
|
-
moveSubgraphs(transition: boolean): this;
|
|
92
|
-
moveEdges(transition: boolean): this;
|
|
93
|
-
moveVertices(transition: boolean): this;
|
|
94
|
-
project(pos: number, clip?: boolean): number;
|
|
95
|
-
rproject(pos: number): number;
|
|
96
|
-
projectPlacholder(vp: VertexPlaceholder<V>): {
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
};
|
|
100
|
-
categoryID(id: string | number, prefix?: "cat" | "ann"): string;
|
|
101
|
-
updateCategories(): void;
|
|
102
|
-
updateAnnotations(): void;
|
|
103
|
-
private _edgeRenderer;
|
|
104
|
-
edgeRenderer(): RendererT<E>;
|
|
105
|
-
edgeRenderer(_: RendererT<E>): this;
|
|
106
|
-
updateEdges(): this;
|
|
107
|
-
private _vertexRenderer;
|
|
108
|
-
vertexRenderer(): RendererT<V>;
|
|
109
|
-
vertexRenderer(_: RendererT<V>): this;
|
|
110
|
-
vertexMapper(props: V, origRow: V): V;
|
|
111
|
-
updateVertices(): this;
|
|
112
|
-
calcProps(props: V): V;
|
|
113
|
-
hasSubgraphs(): boolean;
|
|
114
|
-
private _subgraphRenderer;
|
|
115
|
-
subgraphRenderer(): RendererT<SG>;
|
|
116
|
-
subgraphRenderer(_: RendererT<SG>): this;
|
|
117
|
-
updateSubgraphs(): this;
|
|
118
|
-
enter(domNode: any, element: any): void;
|
|
119
|
-
protected forceDirectedOptions(): FDOptions;
|
|
120
|
-
private layoutOptions;
|
|
121
|
-
private _prevLayout;
|
|
122
|
-
updateLayout(): void;
|
|
123
|
-
update(domNode: any, element: any): void;
|
|
124
|
-
exit(domNode: any, element: any): void;
|
|
125
|
-
render(callback?: (w: Widget) => void): this;
|
|
126
|
-
private _prevWidth;
|
|
127
|
-
private _prevHeight;
|
|
128
|
-
private _prevTransformScale;
|
|
129
|
-
private _transformScale;
|
|
130
|
-
zoomed(transform: any): void;
|
|
131
|
-
centroids(): VertexPlaceholder<V>[];
|
|
132
|
-
selectionChanged(): void;
|
|
133
|
-
tooltipHTML(data: any): any;
|
|
134
|
-
subgraph_click(row: any, _col: any, sel: any): void;
|
|
135
|
-
vertex_click(row: any, _col: any, sel: any, data: any): void;
|
|
136
|
-
vertex_dblclick(row: any, _col: any, sel: any, data: any): void;
|
|
137
|
-
vertex_contextmenu(row: any, _col: any, sel: any, data: any): void;
|
|
138
|
-
vertex_mousein(row: any, _col: any, sel: any, data: any): void;
|
|
139
|
-
vertex_mouseover(row: any, _col: any, sel: any, data: any): void;
|
|
140
|
-
vertex_mouseout(row: any, _col: any, sel: any, data: any): void;
|
|
141
|
-
edge_click(row: any, _col: any, sel: any): void;
|
|
142
|
-
edge_mouseover(element: any, d: any): void;
|
|
143
|
-
edge_mouseout(_element: any, _d: any): void;
|
|
144
|
-
progress(what: "start" | "stop" | "layout-start" | "layout-tick" | "layout-stop"): void;
|
|
145
|
-
}
|
|
146
|
-
export interface GraphT<SG extends SubgraphBaseProps = any, V extends VertexBaseProps = any, E extends EdgeBaseProps<V> = any> {
|
|
147
|
-
allowDragging(): boolean;
|
|
148
|
-
allowDragging(_: boolean): this;
|
|
149
|
-
dragSingleNeighbors(): boolean;
|
|
150
|
-
dragSingleNeighbors(_: boolean): this;
|
|
151
|
-
layout(): GraphLayoutType;
|
|
152
|
-
layout(_: GraphLayoutType): this;
|
|
153
|
-
applyScaleOnLayout(): boolean;
|
|
154
|
-
applyScaleOnLayout(_: boolean): this;
|
|
155
|
-
highlightOnMouseOverVertex(): boolean;
|
|
156
|
-
highlightOnMouseOverVertex(_: boolean): this;
|
|
157
|
-
highlightOnMouseOverEdge(): boolean;
|
|
158
|
-
highlightOnMouseOverEdge(_: boolean): this;
|
|
159
|
-
transitionDuration(): number;
|
|
160
|
-
transitionDuration(_: number): this;
|
|
161
|
-
highlightSelectedPathToCentroid(): boolean;
|
|
162
|
-
highlightSelectedPathToCentroid(_: boolean): this;
|
|
163
|
-
edgeArcDepth(): number;
|
|
164
|
-
edgeArcDepth(_: number): this;
|
|
165
|
-
minScale(): number;
|
|
166
|
-
minScale(_: number): this;
|
|
167
|
-
maxScale(): number;
|
|
168
|
-
maxScale(_: number): this;
|
|
169
|
-
showEdgeLabels(): boolean;
|
|
170
|
-
showEdgeLabels(_: boolean): this;
|
|
171
|
-
showEdgeLabelsOnHighlight(): boolean;
|
|
172
|
-
showEdgeLabelsOnHighlight(_: boolean): this;
|
|
173
|
-
showVertexLabels(): boolean;
|
|
174
|
-
showVertexLabels(_: boolean): this;
|
|
175
|
-
showVertexLabelsOnHighlight(): boolean;
|
|
176
|
-
showVertexLabelsOnHighlight(_: boolean): this;
|
|
177
|
-
hierarchyRankDirection(): "TB" | "BT" | "LR" | "RL";
|
|
178
|
-
hierarchyRankDirection(_: "TB" | "BT" | "LR" | "RL"): this;
|
|
179
|
-
hierarchyNodeSeparation(): number;
|
|
180
|
-
hierarchyNodeSeparation(_: number): this;
|
|
181
|
-
hierarchyEdgeSeparation(): number;
|
|
182
|
-
hierarchyEdgeSeparation(_: number): this;
|
|
183
|
-
hierarchyRankSeparation(): number;
|
|
184
|
-
hierarchyRankSeparation(_: number): this;
|
|
185
|
-
hierarchyDigraph(): boolean;
|
|
186
|
-
hierarchyDigraph(_: boolean): this;
|
|
187
|
-
forceDirectedAlpha(): number;
|
|
188
|
-
forceDirectedAlpha(_: number): this;
|
|
189
|
-
forceDirectedAlphaMin(): number;
|
|
190
|
-
forceDirectedAlphaMin(_: number): this;
|
|
191
|
-
forceDirectedAlphaDecay(): number;
|
|
192
|
-
forceDirectedAlphaDecay(_: number): this;
|
|
193
|
-
forceDirectedRepulsionStrength(): number;
|
|
194
|
-
forceDirectedRepulsionStrength(_: number): this;
|
|
195
|
-
forceDirectedVelocityDecay(): number;
|
|
196
|
-
forceDirectedVelocityDecay(_: number): this;
|
|
197
|
-
forceDirectedIterations(): number;
|
|
198
|
-
forceDirectedIterations(_: number): this;
|
|
199
|
-
forceDirectedLinkDistance(): number;
|
|
200
|
-
forceDirectedLinkDistance(_: number): this;
|
|
201
|
-
forceDirectedLinkStrength(): number;
|
|
202
|
-
forceDirectedLinkStrength(_: number): this;
|
|
203
|
-
forceDirectedPinCentroid(): boolean;
|
|
204
|
-
forceDirectedPinCentroid(_: boolean): this;
|
|
205
|
-
forceDirectedForceStrength(): number;
|
|
206
|
-
forceDirectedForceStrength(_: number): this;
|
|
207
|
-
forceDirectedMinDistance(): number;
|
|
208
|
-
forceDirectedMinDistance(_: number): this;
|
|
209
|
-
forceDirectedMaxDistance(): number;
|
|
210
|
-
forceDirectedMaxDistance(_: number): this;
|
|
211
|
-
treeRankDirection(): "TB" | "LR";
|
|
212
|
-
treeRankDirection(_: "TB" | "LR"): this;
|
|
213
|
-
edgeColor(): string;
|
|
214
|
-
edgeColor(_: string): this;
|
|
215
|
-
edgeStrokeWidth(): number;
|
|
216
|
-
edgeStrokeWidth(_: number): this;
|
|
217
|
-
tooltipWidth(): number;
|
|
218
|
-
tooltipWidth(_: number): this;
|
|
219
|
-
tooltipHeight(): number;
|
|
220
|
-
tooltipHeight(_: number): this;
|
|
221
|
-
enableTooltipPointerEvents(): boolean;
|
|
222
|
-
enableTooltipPointerEvents(_: boolean): this;
|
|
223
|
-
tooltipCloseDelay(): number;
|
|
224
|
-
tooltipCloseDelay(_: number): this;
|
|
225
|
-
doubleClickMaxDelay(): number;
|
|
226
|
-
doubleClickMaxDelay(_: number): this;
|
|
227
|
-
wasmFolder(): string;
|
|
228
|
-
wasmFolder(_: string): this;
|
|
229
|
-
}
|
|
230
|
-
export declare function graphviz(dot: string, engine?: Engine, _scriptDir?: string): {
|
|
231
|
-
terminate: () => void;
|
|
232
|
-
response: Promise<string>;
|
|
233
|
-
};
|
|
234
|
-
//# sourceMappingURL=graphT.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Options } from "./dagreWorker";
|
|
2
|
-
import { Layout, Point } from "./layout";
|
|
3
|
-
import { EdgePlaceholder } from "./placeholders";
|
|
4
|
-
export declare class Dagre extends Layout {
|
|
5
|
-
readonly _options: Options;
|
|
6
|
-
constructor(graph: any, _options: Options);
|
|
7
|
-
start(): Promise<this>;
|
|
8
|
-
edgePath(ep: EdgePlaceholder, curveDepth: number): {
|
|
9
|
-
path: string;
|
|
10
|
-
labelPos: Point;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=dagre.d.ts.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface Subgraph {
|
|
2
|
-
id: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Node {
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Link {
|
|
10
|
-
id: string;
|
|
11
|
-
source: Node;
|
|
12
|
-
target: Node;
|
|
13
|
-
}
|
|
14
|
-
export interface Hierarchy {
|
|
15
|
-
parent: string;
|
|
16
|
-
child: string;
|
|
17
|
-
}
|
|
18
|
-
export interface Data {
|
|
19
|
-
subgraphs: Subgraph[];
|
|
20
|
-
nodes: Node[];
|
|
21
|
-
links: Link[];
|
|
22
|
-
hierarchy: Hierarchy[];
|
|
23
|
-
}
|
|
24
|
-
export interface Options {
|
|
25
|
-
rankdir: "TB" | "BT" | "LR" | "RL";
|
|
26
|
-
nodesep: number;
|
|
27
|
-
edgesep: number;
|
|
28
|
-
ranksep: number;
|
|
29
|
-
digraph: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function dagre(data: Data, options: Options): {
|
|
32
|
-
terminate: () => void;
|
|
33
|
-
response: Promise<string>;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=dagreWorker.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Layout } from "./layout";
|
|
2
|
-
import { Options } from "./forceDirectedWorker";
|
|
3
|
-
export declare class ForceDirectedBase extends Layout {
|
|
4
|
-
readonly _options: Options;
|
|
5
|
-
protected _links: any;
|
|
6
|
-
protected _charge: any;
|
|
7
|
-
protected _center: any;
|
|
8
|
-
protected _simulation: any;
|
|
9
|
-
constructor(graph: any, _options: Options);
|
|
10
|
-
start(): Promise<this>;
|
|
11
|
-
stop(): this;
|
|
12
|
-
}
|
|
13
|
-
export declare class ForceDirected extends ForceDirectedBase {
|
|
14
|
-
start(): Promise<this>;
|
|
15
|
-
}
|
|
16
|
-
export declare class ForceDirectedAnimated extends ForceDirectedBase {
|
|
17
|
-
start(): Promise<this>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=forceDirected.d.ts.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface Node {
|
|
2
|
-
id: string;
|
|
3
|
-
text: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Link {
|
|
6
|
-
id: string;
|
|
7
|
-
source: Node;
|
|
8
|
-
target: Node;
|
|
9
|
-
}
|
|
10
|
-
export interface Data {
|
|
11
|
-
nodes: Node[];
|
|
12
|
-
links: Link[];
|
|
13
|
-
}
|
|
14
|
-
export interface Options {
|
|
15
|
-
alpha: number;
|
|
16
|
-
alphaMin: number;
|
|
17
|
-
alphaDecay: number;
|
|
18
|
-
velocityDecay: number;
|
|
19
|
-
repulsionStrength: number;
|
|
20
|
-
linkDistance: number;
|
|
21
|
-
linkStrength: number;
|
|
22
|
-
iterations: number;
|
|
23
|
-
pinCentroid: boolean;
|
|
24
|
-
forceStrength: number;
|
|
25
|
-
distanceMin: number;
|
|
26
|
-
distanceMax: number;
|
|
27
|
-
}
|
|
28
|
-
export declare function forceDirected(data: Data, options: Options): {
|
|
29
|
-
terminate: () => void;
|
|
30
|
-
response: Promise<string>;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=forceDirectedWorker.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Layout, Point } from "./layout";
|
|
2
|
-
import { EdgePlaceholder } from "./placeholders";
|
|
3
|
-
type Engine = "circo" | "dot" | "fdp" | "neato" | "osage" | "patchwork" | "twopi";
|
|
4
|
-
export declare class Graphviz extends Layout {
|
|
5
|
-
_engine: Engine;
|
|
6
|
-
_wasmFolder: string;
|
|
7
|
-
constructor(graph: any, engine: Engine, wasmFolder: string);
|
|
8
|
-
start(): Promise<this>;
|
|
9
|
-
edgePath(ep: EdgePlaceholder, curveDepth: number): {
|
|
10
|
-
path: string;
|
|
11
|
-
labelPos: Point;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=graphviz.d.ts.map
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export type Engine = "circo" | "dot" | "fdp" | "neato" | "osage" | "patchwork" | "twopi";
|
|
2
|
-
export interface Cluster {
|
|
3
|
-
id: string;
|
|
4
|
-
text: string;
|
|
5
|
-
children: Array<Cluster | Node>;
|
|
6
|
-
x?: number;
|
|
7
|
-
y?: number;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface Node {
|
|
12
|
-
id: string;
|
|
13
|
-
text: string;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
x?: number;
|
|
17
|
-
y?: number;
|
|
18
|
-
}
|
|
19
|
-
export declare function isCluster(item: Cluster | Node): item is Cluster;
|
|
20
|
-
export interface Link {
|
|
21
|
-
id: string;
|
|
22
|
-
source: Node;
|
|
23
|
-
target: Node;
|
|
24
|
-
text: string;
|
|
25
|
-
points?: Array<[
|
|
26
|
-
number,
|
|
27
|
-
number
|
|
28
|
-
]>;
|
|
29
|
-
}
|
|
30
|
-
export interface Data {
|
|
31
|
-
items: Array<Cluster | Node>;
|
|
32
|
-
links: Link[];
|
|
33
|
-
raw: string;
|
|
34
|
-
}
|
|
35
|
-
export interface Options {
|
|
36
|
-
engine: Engine;
|
|
37
|
-
}
|
|
38
|
-
export interface LayoutError {
|
|
39
|
-
error?: string;
|
|
40
|
-
errorDot?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface LayoutSVG extends LayoutError {
|
|
43
|
-
svg?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface LayoutJSON extends LayoutError {
|
|
46
|
-
json?: any;
|
|
47
|
-
}
|
|
48
|
-
export type LayoutSuccess = {
|
|
49
|
-
clusters: Cluster[];
|
|
50
|
-
nodes: Node[];
|
|
51
|
-
links: Link[];
|
|
52
|
-
};
|
|
53
|
-
export type Layout = LayoutSuccess | LayoutJSON | LayoutSVG;
|
|
54
|
-
export declare function isLayoutSuccess(item: any): item is LayoutSuccess;
|
|
55
|
-
export declare function graphviz(data: Data, options: Options): {
|
|
56
|
-
terminate: () => void;
|
|
57
|
-
response: Promise<string>;
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=graphvizWorker.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Graph2 as GraphCollection } from "@hpcc-js/util";
|
|
2
|
-
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder } from "./placeholders";
|
|
3
|
-
import { EdgeLayout } from "./tree";
|
|
4
|
-
export type Point = [
|
|
5
|
-
number,
|
|
6
|
-
number
|
|
7
|
-
];
|
|
8
|
-
export interface ILayout {
|
|
9
|
-
start(): Promise<this>;
|
|
10
|
-
stop(): this;
|
|
11
|
-
running(): boolean;
|
|
12
|
-
edgePath(e: EdgePlaceholder, curveDepth: number): EdgeLayout;
|
|
13
|
-
}
|
|
14
|
-
export type Size = {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
};
|
|
18
|
-
export interface IGraph {
|
|
19
|
-
size(): Size;
|
|
20
|
-
graphData(): GraphCollection<VertexPlaceholder, EdgePlaceholder, SubgraphPlaceholder>;
|
|
21
|
-
project(pos: number, clip: boolean): any;
|
|
22
|
-
projectPlacholder(vp: VertexPlaceholder): any;
|
|
23
|
-
moveSubgraphs(transition: boolean): this;
|
|
24
|
-
moveVertexPlaceholder(vp: VertexPlaceholder, transition: boolean, moveEdges: boolean): this;
|
|
25
|
-
moveVertices(transition: boolean): this;
|
|
26
|
-
moveEdgePlaceholder(ep: EdgePlaceholder, transition: boolean): this;
|
|
27
|
-
moveEdges(transition: boolean): this;
|
|
28
|
-
progress(what: "start" | "stop" | "layout-start" | "layout-tick" | "layout-stop"): any;
|
|
29
|
-
}
|
|
30
|
-
export declare class Layout implements ILayout {
|
|
31
|
-
protected _graph: IGraph;
|
|
32
|
-
protected _running: boolean;
|
|
33
|
-
constructor(graph: IGraph);
|
|
34
|
-
start(): Promise<this>;
|
|
35
|
-
stop(): this;
|
|
36
|
-
running(): boolean;
|
|
37
|
-
protected center(points: Point[]): Point;
|
|
38
|
-
edgePath(ep: EdgePlaceholder, curveDepth: number): {
|
|
39
|
-
path: string;
|
|
40
|
-
labelPos: Point;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Selection } from "@hpcc-js/common";
|
|
2
|
-
export interface BaseProps {
|
|
3
|
-
id: string | number;
|
|
4
|
-
origData?: any;
|
|
5
|
-
}
|
|
6
|
-
export interface VertexBaseProps extends BaseProps {
|
|
7
|
-
text: string;
|
|
8
|
-
categoryID?: string;
|
|
9
|
-
centroid?: boolean;
|
|
10
|
-
hidden?: boolean;
|
|
11
|
-
tooltip?: string;
|
|
12
|
-
annotationIDs?: string[];
|
|
13
|
-
}
|
|
14
|
-
export interface SubgraphBaseProps extends BaseProps {
|
|
15
|
-
text: string;
|
|
16
|
-
width?: number;
|
|
17
|
-
height?: number;
|
|
18
|
-
}
|
|
19
|
-
export type Point = [
|
|
20
|
-
number,
|
|
21
|
-
number
|
|
22
|
-
];
|
|
23
|
-
export interface EdgeBaseProps<V extends VertexBaseProps = VertexBaseProps> extends BaseProps {
|
|
24
|
-
source: V;
|
|
25
|
-
target: V;
|
|
26
|
-
label?: string;
|
|
27
|
-
labelPos?: Point;
|
|
28
|
-
weight?: number;
|
|
29
|
-
strokeDasharray?: string;
|
|
30
|
-
strokeWidth?: number;
|
|
31
|
-
stroke?: string;
|
|
32
|
-
fontFamily?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface HierarchyBase<SG extends SubgraphBaseProps, V extends VertexBaseProps> {
|
|
35
|
-
id: string | number;
|
|
36
|
-
parent: SG;
|
|
37
|
-
child: SG | V;
|
|
38
|
-
}
|
|
39
|
-
export interface GraphDataProps<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> {
|
|
40
|
-
subgraphs?: SG[];
|
|
41
|
-
vertices: V[];
|
|
42
|
-
edges: E[];
|
|
43
|
-
hierarchy?: HierarchyBase<SG, V>[];
|
|
44
|
-
}
|
|
45
|
-
export interface SubgraphPlaceholder<SG extends SubgraphBaseProps = SubgraphBaseProps> {
|
|
46
|
-
id: string | number;
|
|
47
|
-
element?: Selection<SVGGElement, SubgraphPlaceholder<SG>, SVGGElement, any>;
|
|
48
|
-
props: SG;
|
|
49
|
-
x?: number;
|
|
50
|
-
y?: number;
|
|
51
|
-
}
|
|
52
|
-
export interface VertexPlaceholder<V extends VertexBaseProps = VertexBaseProps> {
|
|
53
|
-
id: string | number;
|
|
54
|
-
element?: Selection<SVGGElement, VertexPlaceholder<V>, SVGGElement, any>;
|
|
55
|
-
props: V;
|
|
56
|
-
index?: number;
|
|
57
|
-
x?: number;
|
|
58
|
-
y?: number;
|
|
59
|
-
fx?: number;
|
|
60
|
-
fy?: number;
|
|
61
|
-
vx?: number;
|
|
62
|
-
vy?: number;
|
|
63
|
-
sx?: number;
|
|
64
|
-
sy?: number;
|
|
65
|
-
lat?: number;
|
|
66
|
-
lng?: number;
|
|
67
|
-
}
|
|
68
|
-
export interface EdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>> {
|
|
69
|
-
id: string | number;
|
|
70
|
-
element?: Selection<SVGGElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
71
|
-
elementPath?: Selection<SVGPathElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
72
|
-
elementText?: Selection<SVGTextElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
73
|
-
props: E;
|
|
74
|
-
source: VertexPlaceholder<V>;
|
|
75
|
-
target: VertexPlaceholder<V>;
|
|
76
|
-
index?: number;
|
|
77
|
-
points?: Array<[
|
|
78
|
-
number,
|
|
79
|
-
number
|
|
80
|
-
]>;
|
|
81
|
-
}
|
|
82
|
-
export declare function isEdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>>(item: any): item is EdgePlaceholder<V, E>;
|
|
83
|
-
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
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";
|
|
5
|
-
interface Node {
|
|
6
|
-
origData: VertexPlaceholder;
|
|
7
|
-
children: Node[];
|
|
8
|
-
}
|
|
9
|
-
export interface EdgeLayout {
|
|
10
|
-
path: string;
|
|
11
|
-
labelPos: Point;
|
|
12
|
-
}
|
|
13
|
-
export interface Options {
|
|
14
|
-
}
|
|
15
|
-
export interface TidyTreeOptions extends Options {
|
|
16
|
-
rankdir: "TB" | "LR";
|
|
17
|
-
}
|
|
18
|
-
export declare class TidyTreeBase extends Layout {
|
|
19
|
-
protected options: Options;
|
|
20
|
-
constructor(graph: any, options: Options);
|
|
21
|
-
private _visited;
|
|
22
|
-
protected _tree: Node;
|
|
23
|
-
protected _d3Hierarchy: Hierarchy;
|
|
24
|
-
protected sortTree(data: Graph2, node?: Node): void;
|
|
25
|
-
protected depthFirst(data: Graph2<VertexPlaceholder, EdgePlaceholder, SubgraphPlaceholder>, v: VertexPlaceholder, parent?: any): void;
|
|
26
|
-
protected breadthFirst(data: Graph2<VertexPlaceholder, EdgePlaceholder, SubgraphPlaceholder>, v: VertexPlaceholder): void;
|
|
27
|
-
start(): Promise<this>;
|
|
28
|
-
finalize(nodes: Node[]): void;
|
|
29
|
-
}
|
|
30
|
-
export declare class Tree extends TidyTreeBase {
|
|
31
|
-
protected options: TidyTreeOptions;
|
|
32
|
-
constructor(graph: any, options: TidyTreeOptions);
|
|
33
|
-
start(): Promise<this>;
|
|
34
|
-
edgePath(ep: EdgePlaceholder, curveDepth: number): EdgeLayout;
|
|
35
|
-
}
|
|
36
|
-
export declare class RadialTree extends TidyTreeBase {
|
|
37
|
-
constructor(graph: any);
|
|
38
|
-
start(): Promise<this>;
|
|
39
|
-
}
|
|
40
|
-
export declare class Dendrogram extends TidyTreeBase {
|
|
41
|
-
protected options: TidyTreeOptions;
|
|
42
|
-
constructor(graph: any, options: TidyTreeOptions);
|
|
43
|
-
start(): Promise<this>;
|
|
44
|
-
edgePath(ep: EdgePlaceholder, curveDepth: number): EdgeLayout;
|
|
45
|
-
}
|
|
46
|
-
export declare class RadialDendrogram extends TidyTreeBase {
|
|
47
|
-
constructor(graph: any);
|
|
48
|
-
start(): Promise<this>;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=tree.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LiteSVGZoomWidget } from "./liteSVGZooom";
|
|
2
|
-
export declare class LiteMapWidget extends LiteSVGZoomWidget {
|
|
3
|
-
protected _mapVisible: boolean;
|
|
4
|
-
private _mapScale;
|
|
5
|
-
protected _levels: any;
|
|
6
|
-
protected _projection: any;
|
|
7
|
-
protected _tile: any;
|
|
8
|
-
project(lat: number, lng: number): [
|
|
9
|
-
number,
|
|
10
|
-
number
|
|
11
|
-
];
|
|
12
|
-
enter(domNode: any, element: any): void;
|
|
13
|
-
mapZoomed(transform: any): void;
|
|
14
|
-
zoomed(transform: any): void;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=liteMap.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { HTMLWidget } from "@hpcc-js/common";
|
|
2
|
-
export declare class LiteSVGZoomWidget extends HTMLWidget {
|
|
3
|
-
protected _svgElement: any;
|
|
4
|
-
protected _svgDefs: any;
|
|
5
|
-
protected _zoomElement: any;
|
|
6
|
-
protected _zoom: import("d3-zoom").ZoomBehavior<Element, unknown>;
|
|
7
|
-
protected _zoomScale: number;
|
|
8
|
-
protected _zoomTranslate: number[];
|
|
9
|
-
constructor();
|
|
10
|
-
resize(size?: any): this;
|
|
11
|
-
zoomed(transform: any): void;
|
|
12
|
-
enter(domNode: any, element: any): void;
|
|
13
|
-
update(domNode: any, element: any): void;
|
|
14
|
-
exit(domNode: any, element: any): void;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=liteSVGZooom.d.ts.map
|