@hpcc-js/graph 2.84.3 → 2.84.4
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.es6.js +8 -18
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +6 -17
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +9 -9
- package/src/__package__.ts +2 -2
- package/src/__tests__/index.ts +1 -1
- package/src/graph2/dataGraph.ts +9 -7
- package/src/graph2/graph.ts +12 -4
- package/src/graph2/graphReactT.ts +3 -3
- package/src/graph2/graphT.ts +23 -23
- package/src/graph2/index.ts +0 -1
- package/src/graph2/layouts/placeholders.ts +15 -15
- package/src/graph2/sankeyGraph.ts +8 -8
- package/src/graph2/subgraph.tsx +2 -2
- package/src/graph2/vertex.tsx +2 -2
- package/types/__package__.d.ts +2 -2
- package/types/__tests__/index.d.ts +1 -1
- package/types/graph2/dataGraph.d.ts +4 -3
- package/types/graph2/dataGraph.d.ts.map +1 -1
- package/types/graph2/graph.d.ts +8 -3
- package/types/graph2/graph.d.ts.map +1 -1
- package/types/graph2/graphReactT.d.ts +3 -3
- package/types/graph2/graphReactT.d.ts.map +1 -1
- package/types/graph2/graphT.d.ts +10 -10
- package/types/graph2/graphT.d.ts.map +1 -1
- package/types/graph2/index.d.ts +0 -1
- package/types/graph2/index.d.ts.map +1 -1
- package/types/graph2/layouts/placeholders.d.ts +15 -15
- package/types/graph2/layouts/placeholders.d.ts.map +1 -1
- package/types/graph2/sankeyGraph.d.ts +5 -5
- package/types/graph2/sankeyGraph.d.ts.map +1 -1
- package/types/graph2/subgraph.d.ts +2 -2
- package/types/graph2/subgraph.d.ts.map +1 -1
- package/types/graph2/vertex.d.ts +2 -2
- package/types/graph2/vertex.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/__tests__/index.d.ts +1 -1
- package/types-3.4/graph2/dataGraph.d.ts +4 -3
- package/types-3.4/graph2/graph.d.ts +8 -3
- package/types-3.4/graph2/graphReactT.d.ts +3 -3
- package/types-3.4/graph2/graphT.d.ts +10 -10
- package/types-3.4/graph2/index.d.ts +0 -1
- package/types-3.4/graph2/layouts/placeholders.d.ts +15 -15
- package/types-3.4/graph2/sankeyGraph.d.ts +5 -5
- package/types-3.4/graph2/subgraph.d.ts +2 -2
- package/types-3.4/graph2/vertex.d.ts +2 -2
- package/src/graph2/edge.tsx +0 -30
- package/types/graph2/edge.d.ts +0 -9
- package/types/graph2/edge.d.ts.map +0 -1
- package/types-3.4/graph2/edge.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/graph",
|
|
3
|
-
"version": "2.84.
|
|
3
|
+
"version": "2.84.4",
|
|
4
4
|
"description": "hpcc-js - Viz Graph",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
"update": "npx --yes npm-check-updates -u -t minor"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@hpcc-js/api": "^2.12.
|
|
55
|
-
"@hpcc-js/common": "^2.71.
|
|
56
|
-
"@hpcc-js/html": "^2.42.
|
|
57
|
-
"@hpcc-js/react": "^2.53.
|
|
58
|
-
"@hpcc-js/util": "^2.50.
|
|
54
|
+
"@hpcc-js/api": "^2.12.7",
|
|
55
|
+
"@hpcc-js/common": "^2.71.7",
|
|
56
|
+
"@hpcc-js/html": "^2.42.8",
|
|
57
|
+
"@hpcc-js/react": "^2.53.3",
|
|
58
|
+
"@hpcc-js/util": "^2.50.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@hpcc-js/bundle": "^2.11.3",
|
|
62
|
-
"@hpcc-js/wasm": "2.0
|
|
62
|
+
"@hpcc-js/wasm": "2.1.0",
|
|
63
63
|
"@types/d3-transition": "1.3.2",
|
|
64
64
|
"@types/dagre": "0.7.48",
|
|
65
65
|
"d3-array": "^1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"d3-transition": "^1",
|
|
76
76
|
"dagre": "0.8.5",
|
|
77
77
|
"es6-promise": "4.2.8",
|
|
78
|
-
"tslib": "2.4.
|
|
78
|
+
"tslib": "2.4.1"
|
|
79
79
|
},
|
|
80
80
|
"repository": {
|
|
81
81
|
"type": "git",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cec45fe4a28dff27d43cf0bb9238d751534c8e88"
|
|
92
92
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/graph";
|
|
2
|
-
export const PKG_VERSION = "2.84.
|
|
3
|
-
export const BUILD_VERSION = "2.104.
|
|
2
|
+
export const PKG_VERSION = "2.84.4";
|
|
3
|
+
export const BUILD_VERSION = "2.104.14";
|
package/src/__tests__/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Test4 as Test } from "./test4";
|
package/src/graph2/dataGraph.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { PropertyExt, publish, Widget } from "@hpcc-js/common";
|
|
2
|
-
import { CentroidVertex3,
|
|
2
|
+
import { Vertex3, CentroidVertex3, Vertex3Props, EdgeProps, SubgraphProps } from "@hpcc-js/react";
|
|
3
3
|
import { compare2 } from "@hpcc-js/util";
|
|
4
4
|
import { Graph2 } from "./graph";
|
|
5
5
|
import { HierarchyBase } from "./layouts/placeholders";
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
// Backward compatibility layer ---
|
|
8
|
+
export type IVertex3 = Vertex3Props;
|
|
7
9
|
|
|
8
10
|
export function toJsonObj<T>(row, columns): T {
|
|
9
11
|
const retVal: T = {} as T;
|
|
@@ -206,9 +208,9 @@ export class DataGraph extends Graph2 {
|
|
|
206
208
|
this._prevVertices = vertices;
|
|
207
209
|
}
|
|
208
210
|
|
|
209
|
-
protected _prevEdges: readonly
|
|
210
|
-
protected _masterEdges:
|
|
211
|
-
private _masterEdgesMap: { [key: string]:
|
|
211
|
+
protected _prevEdges: readonly EdgeProps<IVertex3>[] = [];
|
|
212
|
+
protected _masterEdges: EdgeProps<IVertex3>[] = [];
|
|
213
|
+
private _masterEdgesMap: { [key: string]: EdgeProps<IVertex3> } = {};
|
|
212
214
|
mergeEdges() {
|
|
213
215
|
const columns = this.edgeColumns();
|
|
214
216
|
const idIdx = this.indexOf(columns, this.edgeIDColumn(), "id");
|
|
@@ -217,7 +219,7 @@ export class DataGraph extends Graph2 {
|
|
|
217
219
|
const labelIdx = this.indexOf(columns, this.edgeLabelColumn(), "label");
|
|
218
220
|
const weightIdx = this.indexOf(columns, this.edgeWeightColumn(), "weight");
|
|
219
221
|
const colorIdx = this.indexOf(columns, this.edgeColorColumn(), "color");
|
|
220
|
-
const edges:
|
|
222
|
+
const edges: EdgeProps<IVertex3>[] = this.edges().map((e): EdgeProps<IVertex3> => {
|
|
221
223
|
const source = this._masterVerticesMap["" + e[sourceIdx]];
|
|
222
224
|
if (!source) console.error(`Invalid edge source entity "${e[sourceIdx]}" does not exist.`);
|
|
223
225
|
const target = this._masterVerticesMap["" + e[targetIdx]];
|
|
@@ -227,7 +229,7 @@ export class DataGraph extends Graph2 {
|
|
|
227
229
|
source,
|
|
228
230
|
target,
|
|
229
231
|
weight: +e[weightIdx] || 1,
|
|
230
|
-
|
|
232
|
+
stroke: e[colorIdx] as string,
|
|
231
233
|
label: labelIdx >= 0 ? ("" + e[labelIdx]) : "",
|
|
232
234
|
origData: toJsonObj(e, columns),
|
|
233
235
|
labelPos: [0, 0],
|
package/src/graph2/graph.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { React, Subgraph, SubgraphProps, Vertex, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
1
|
+
import { React, Subgraph, SubgraphProps, Vertex, VertexProps, Edge, EdgeProps } from "@hpcc-js/react";
|
|
2
|
+
// import { IVertexEdgeProps, VertexEdge } from "./edge";
|
|
3
3
|
import { GraphReactT } from "./graphReactT";
|
|
4
|
+
import { GraphDataProps, HierarchyBase } from "./graphT";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
// Backward compatibility layer ---
|
|
7
|
+
export type ISubgraph = SubgraphProps;
|
|
8
|
+
export type IVertex = VertexProps;
|
|
9
|
+
export type IEdge = EdgeProps;
|
|
10
|
+
export type IHierarchy = HierarchyBase<ISubgraph, IVertex>;
|
|
11
|
+
export type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
|
|
12
|
+
|
|
13
|
+
export class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
|
|
6
14
|
|
|
7
15
|
constructor() {
|
|
8
|
-
super(Subgraph, Vertex,
|
|
16
|
+
super(Subgraph, Vertex, Edge);
|
|
9
17
|
this._reactCentroidRenderer = Vertex;
|
|
10
18
|
this._reactVertexRenderer2 = Vertex;
|
|
11
19
|
super.vertexRenderer((props) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { render, React, SubgraphProps, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
1
|
+
import { render, React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
2
|
+
import { GraphT, RendererT } from "./graphT";
|
|
3
3
|
|
|
4
4
|
function adapter<T>(reactRenderer: React.FunctionComponent<T>): RendererT<T> {
|
|
5
5
|
return (props: T, element: SVGGElement) => render(reactRenderer, props, element);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps
|
|
8
|
+
export class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps<V>> extends GraphT<SG, V, E> {
|
|
9
9
|
|
|
10
10
|
constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>) {
|
|
11
11
|
super(adapter(subgraphRenderer), adapter(vertexRenderer), adapter(edgeRenderer));
|
package/src/graph2/graphT.ts
CHANGED
|
@@ -7,7 +7,7 @@ import "d3-transition";
|
|
|
7
7
|
import { interpolatePath as d3InterpolatePath } from "d3-interpolate-path";
|
|
8
8
|
import { Circle, Dagre, ForceDirected, ForceDirectedAnimated, Graphviz, ILayout, Null } from "./layouts/index";
|
|
9
9
|
import { Options as FDOptions } from "./layouts/forceDirectedWorker";
|
|
10
|
-
import type {
|
|
10
|
+
import type { VertexBaseProps, EdgeBaseProps, GraphDataProps, HierarchyBase, SubgraphBaseProps } from "./layouts/placeholders";
|
|
11
11
|
import { EdgePlaceholder, SubgraphPlaceholder, VertexPlaceholder, isEdgePlaceholder } from "./layouts/placeholders";
|
|
12
12
|
import { Engine, graphviz as gvWorker } from "./layouts/graphvizWorker";
|
|
13
13
|
import { Tree, RadialTree, Dendrogram, RadialDendrogram } from "./layouts/tree";
|
|
@@ -18,25 +18,25 @@ let scriptDir = (globalThis?.document?.currentScript as HTMLScriptElement)?.src
|
|
|
18
18
|
scriptDir = scriptDir.substring(0, scriptDir.replace(/[?#].*/, "").lastIndexOf("/") + 1);
|
|
19
19
|
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
GraphDataProps,
|
|
22
|
+
SubgraphBaseProps,
|
|
23
|
+
VertexBaseProps,
|
|
24
|
+
EdgeBaseProps,
|
|
25
25
|
HierarchyBase
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
type GraphLayoutType = "Hierarchy" | "DOT" | "Tree" | "Dendrogram" | "RadialTree" | "RadialDendrogram" | "ForceDirected" | "ForceDirected2" | "ForceDirectedHybrid" | "Neato" | "FDP" | "Circle" | "TwoPI" | "Circo" | "None";
|
|
29
29
|
const GraphLayoutTypeSet = ["Hierarchy", "DOT", "Tree", "Dendrogram", "RadialTree", "RadialDendrogram", "ForceDirected", "ForceDirected2", "ForceDirectedHybrid", "Neato", "FDP", "Circle", "TwoPI", "Circo", "None"];
|
|
30
30
|
|
|
31
|
-
function dragStart<V extends
|
|
31
|
+
function dragStart<V extends VertexBaseProps>(n: VertexPlaceholder<V>) {
|
|
32
32
|
n.fx = n.sx = n.x;
|
|
33
33
|
n.fy = n.sy = n.y;
|
|
34
34
|
}
|
|
35
|
-
function dragTick(n: VertexPlaceholder<
|
|
35
|
+
function dragTick(n: VertexPlaceholder<VertexBaseProps>, d: VertexPlaceholder<VertexBaseProps>) {
|
|
36
36
|
n.fx = n.sx + d.fx - d.sx;
|
|
37
37
|
n.fy = n.sy + d.fy - d.sy;
|
|
38
38
|
}
|
|
39
|
-
function dragEnd<V extends
|
|
39
|
+
function dragEnd<V extends VertexBaseProps>(n: VertexPlaceholder<V>) {
|
|
40
40
|
n.x = n.fx;
|
|
41
41
|
n.y = n.fy;
|
|
42
42
|
n.fx = n.sx = undefined;
|
|
@@ -45,7 +45,7 @@ function dragEnd<V extends VertexProps>(n: VertexPlaceholder<V>) {
|
|
|
45
45
|
|
|
46
46
|
export type RendererT<T> = (props: T, element: SVGGElement) => void;
|
|
47
47
|
|
|
48
|
-
export class GraphT<SG extends
|
|
48
|
+
export class GraphT<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> extends SVGZoomWidget {
|
|
49
49
|
|
|
50
50
|
protected _centroidFilter: SVGGlowFilter;
|
|
51
51
|
|
|
@@ -63,11 +63,11 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
63
63
|
private _toggleD = new ToggleButton().faChar("fa-sitemap fa-rotate-270").tooltip("Dendrogram").on("click", () => this.layoutClick("Dendrogram"));
|
|
64
64
|
private _toggleRD = new ToggleButton().faChar("fa-asterisk").tooltip("Radial Dendrogram").on("click", () => this.layoutClick("RadialDendrogram"));
|
|
65
65
|
|
|
66
|
-
protected _graphData = new GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<
|
|
66
|
+
protected _graphData = new GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>, SubgraphPlaceholder<SG>>()
|
|
67
67
|
.idFunc(d => d.id)
|
|
68
68
|
.sourceFunc(e => e.source.id)
|
|
69
69
|
.targetFunc(e => e.target.id)
|
|
70
|
-
.updateFunc((b: VertexPlaceholder<V> | EdgePlaceholder<
|
|
70
|
+
.updateFunc((b: VertexPlaceholder<V> | EdgePlaceholder<V, E> | SubgraphPlaceholder<SG>, a: VertexPlaceholder<V> | EdgePlaceholder<V, E> | SubgraphPlaceholder<SG>) => {
|
|
71
71
|
b.props = a.props;
|
|
72
72
|
if (isEdgePlaceholder(a) && isEdgePlaceholder(b)) {
|
|
73
73
|
b.source = a.source;
|
|
@@ -259,15 +259,15 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
259
259
|
return this;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
private _origData:
|
|
262
|
+
private _origData: GraphDataProps<SG, V, E> = {
|
|
263
263
|
subgraphs: [],
|
|
264
264
|
vertices: [],
|
|
265
265
|
edges: [],
|
|
266
266
|
hierarchy: []
|
|
267
267
|
};
|
|
268
|
-
data():
|
|
269
|
-
data(_:
|
|
270
|
-
data(_?:
|
|
268
|
+
data(): GraphDataProps<SG, V, E>;
|
|
269
|
+
data(_: GraphDataProps<SG, V, E>, merge?: boolean): this;
|
|
270
|
+
data(_?: GraphDataProps<SG, V, E>, merge?: boolean): GraphDataProps<SG, V, E> | this {
|
|
271
271
|
if (_ === void 0) return this._origData;
|
|
272
272
|
this._origData = _;
|
|
273
273
|
|
|
@@ -325,7 +325,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
325
325
|
return this;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
graphData(): GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<
|
|
328
|
+
graphData(): GraphCollection<VertexPlaceholder<V>, EdgePlaceholder<V, E>> {
|
|
329
329
|
return this._graphData;
|
|
330
330
|
}
|
|
331
331
|
|
|
@@ -509,7 +509,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
509
509
|
|
|
510
510
|
highlightEdges(edgeMap?: { [id: string]: boolean }) {
|
|
511
511
|
const context = this;
|
|
512
|
-
const edgeElements = this._edgeG.selectAll<SVGGElement, EdgePlaceholder<
|
|
512
|
+
const edgeElements = this._edgeG.selectAll<SVGGElement, EdgePlaceholder<V, E>>(".graphEdge");
|
|
513
513
|
edgeElements
|
|
514
514
|
.classed("graphEdge-highlighted", d => !edgeMap || edgeMap[d.id])
|
|
515
515
|
.style("stroke-width", function (o) {
|
|
@@ -543,7 +543,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
|
|
546
|
-
highlightEdge(_element, d?: EdgePlaceholder<
|
|
546
|
+
highlightEdge(_element, d?: EdgePlaceholder<V, E>) {
|
|
547
547
|
if (this.highlightOnMouseOverEdge()) {
|
|
548
548
|
if (d) {
|
|
549
549
|
const vertices = {};
|
|
@@ -577,7 +577,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
577
577
|
return this;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
moveEdgePlaceholder(ep: EdgePlaceholder<
|
|
580
|
+
moveEdgePlaceholder(ep: EdgePlaceholder<V, E>, transition: boolean): this {
|
|
581
581
|
const edgeLayout = {
|
|
582
582
|
...this._layoutAlgo.edgePath(ep, this.edgeArcDepth())
|
|
583
583
|
};
|
|
@@ -594,7 +594,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
594
594
|
path: pathInterpolator(t),
|
|
595
595
|
labelPos: labelPosInterpolator(t),
|
|
596
596
|
strokeWidth: ep.props.strokeWidth ?? context.edgeStrokeWidth(),
|
|
597
|
-
color: ep.props.
|
|
597
|
+
color: ep.props.stroke ?? context.edgeColor()
|
|
598
598
|
};
|
|
599
599
|
context._edgeRenderer({ ...edgeLayout, ...ep.props, ...updated }, ep.element.node());
|
|
600
600
|
};
|
|
@@ -605,7 +605,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
605
605
|
|
|
606
606
|
moveVertexPlaceholder(vp: VertexPlaceholder<V>, transition: boolean, moveNeighbours: boolean): this {
|
|
607
607
|
const { x, y } = this.projectPlacholder(vp);
|
|
608
|
-
vp.element && (transition ? vp.element.transition().duration(this.transitionDuration()) as unknown as Selection<SVGPathElement, EdgePlaceholder<
|
|
608
|
+
vp.element && (transition ? vp.element.transition().duration(this.transitionDuration()) as unknown as Selection<SVGPathElement, EdgePlaceholder<V, E>, SVGGElement, any> : vp.element)
|
|
609
609
|
.attr("transform", `translate(${x} ${y})`)
|
|
610
610
|
;
|
|
611
611
|
if (moveNeighbours) {
|
|
@@ -695,7 +695,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
695
695
|
updateEdges(): this {
|
|
696
696
|
const context = this;
|
|
697
697
|
this._edgeG.selectAll(".graphEdge")
|
|
698
|
-
.data(this._graphData.allEdges(), (d: EdgePlaceholder<
|
|
698
|
+
.data(this._graphData.allEdges(), (d: EdgePlaceholder<V, E>) => d.id)
|
|
699
699
|
.join(
|
|
700
700
|
enter => enter.append("g")
|
|
701
701
|
.attr("class", "graphEdge")
|
|
@@ -1168,7 +1168,7 @@ export class GraphT<SG extends SubgraphProps, V extends VertexProps, E extends E
|
|
|
1168
1168
|
}
|
|
1169
1169
|
GraphT.prototype._class += " graph_GraphT";
|
|
1170
1170
|
|
|
1171
|
-
export interface GraphT<SG extends
|
|
1171
|
+
export interface GraphT<SG extends SubgraphBaseProps = any, V extends VertexBaseProps = any, E extends EdgeBaseProps<V> = any> {
|
|
1172
1172
|
allowDragging(): boolean;
|
|
1173
1173
|
allowDragging(_: boolean): this;
|
|
1174
1174
|
dragSingleNeighbors(): boolean;
|
package/src/graph2/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface BaseProps {
|
|
|
5
5
|
origData?: any;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface VertexBaseProps extends BaseProps {
|
|
9
9
|
text: string;
|
|
10
10
|
categoryID?: string;
|
|
11
11
|
centroid?: boolean;
|
|
@@ -14,7 +14,7 @@ export interface VertexProps extends BaseProps {
|
|
|
14
14
|
annotationIDs?: string[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface SubgraphBaseProps extends BaseProps {
|
|
18
18
|
text: string;
|
|
19
19
|
width?: number;
|
|
20
20
|
height?: number;
|
|
@@ -22,32 +22,32 @@ export interface SubgraphProps extends BaseProps {
|
|
|
22
22
|
|
|
23
23
|
export type Point = [number, number];
|
|
24
24
|
|
|
25
|
-
export interface
|
|
26
|
-
source:
|
|
27
|
-
target:
|
|
25
|
+
export interface EdgeBaseProps<V extends VertexBaseProps = VertexBaseProps> extends BaseProps {
|
|
26
|
+
source: V;
|
|
27
|
+
target: V;
|
|
28
28
|
label?: string;
|
|
29
29
|
labelPos?: Point;
|
|
30
30
|
weight?: number;
|
|
31
31
|
strokeDasharray?: string;
|
|
32
32
|
strokeWidth?: number;
|
|
33
|
-
|
|
33
|
+
stroke?: string;
|
|
34
34
|
fontFamily?: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export interface HierarchyBase<SG extends
|
|
37
|
+
export interface HierarchyBase<SG extends SubgraphBaseProps, V extends VertexBaseProps> {
|
|
38
38
|
id: string | number;
|
|
39
39
|
parent: SG;
|
|
40
40
|
child: SG | V;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export interface
|
|
43
|
+
export interface GraphDataProps<SG extends SubgraphBaseProps, V extends VertexBaseProps, E extends EdgeBaseProps<V>> {
|
|
44
44
|
subgraphs?: SG[];
|
|
45
45
|
vertices: V[];
|
|
46
46
|
edges: E[];
|
|
47
47
|
hierarchy?: HierarchyBase<SG, V>[];
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export interface SubgraphPlaceholder<SG extends
|
|
50
|
+
export interface SubgraphPlaceholder<SG extends SubgraphBaseProps = SubgraphBaseProps> {
|
|
51
51
|
id: string | number;
|
|
52
52
|
element?: Selection<SVGGElement, SubgraphPlaceholder<SG>, SVGGElement, any>;
|
|
53
53
|
props: SG;
|
|
@@ -57,7 +57,7 @@ export interface SubgraphPlaceholder<SG extends SubgraphProps = SubgraphProps> {
|
|
|
57
57
|
y?: number; // The node’s current y-position
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export interface VertexPlaceholder<V extends
|
|
60
|
+
export interface VertexPlaceholder<V extends VertexBaseProps = VertexBaseProps> {
|
|
61
61
|
id: string | number;
|
|
62
62
|
element?: Selection<SVGGElement, VertexPlaceholder<V>, SVGGElement, any>;
|
|
63
63
|
props: V;
|
|
@@ -82,11 +82,11 @@ export interface VertexPlaceholder<V extends VertexProps = VertexProps> {
|
|
|
82
82
|
lng?: number;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export interface EdgePlaceholder<
|
|
85
|
+
export interface EdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>> {
|
|
86
86
|
id: string | number;
|
|
87
|
-
element?: Selection<SVGGElement, EdgePlaceholder<
|
|
88
|
-
elementPath?: Selection<SVGPathElement, EdgePlaceholder<
|
|
89
|
-
elementText?: Selection<SVGTextElement, EdgePlaceholder<
|
|
87
|
+
element?: Selection<SVGGElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
88
|
+
elementPath?: Selection<SVGPathElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
89
|
+
elementText?: Selection<SVGTextElement, EdgePlaceholder<V, E>, SVGGElement, any>;
|
|
90
90
|
props: E;
|
|
91
91
|
source: VertexPlaceholder<V>; // The link’s source node
|
|
92
92
|
target: VertexPlaceholder<V>; // The link’s target node
|
|
@@ -98,6 +98,6 @@ export interface EdgePlaceholder<E extends EdgeProps = EdgeProps, V extends Vert
|
|
|
98
98
|
points?: Array<[number, number]>;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export function isEdgePlaceholder<
|
|
101
|
+
export function isEdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>>(item): item is EdgePlaceholder<V, E> {
|
|
102
102
|
return item.id !== undefined && item.props !== undefined && item.source !== undefined && item.target !== undefined;
|
|
103
103
|
}
|
|
@@ -5,7 +5,7 @@ import { select as d3Select } from "d3-selection";
|
|
|
5
5
|
import { AnnotationColumn, toJsonObj } from "./dataGraph";
|
|
6
6
|
|
|
7
7
|
import "../../src/graph2/sankeyGraph.css";
|
|
8
|
-
import {
|
|
8
|
+
import { EdgeBaseProps, VertexBaseProps } from "./graphT";
|
|
9
9
|
|
|
10
10
|
export class SankeyGraph extends SVGWidget {
|
|
11
11
|
@publish([], "any", "Vertex Columns", null, { internal: true })
|
|
@@ -55,9 +55,9 @@ export class SankeyGraph extends SVGWidget {
|
|
|
55
55
|
this._drawStartPos = "origin";
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
private _prevVertices: readonly
|
|
59
|
-
private _masterVertices:
|
|
60
|
-
private _masterVerticesMap: { [key: string]:
|
|
58
|
+
private _prevVertices: readonly VertexBaseProps[] = [];
|
|
59
|
+
private _masterVertices: VertexBaseProps[] = [];
|
|
60
|
+
private _masterVerticesMap: { [key: string]: VertexBaseProps } = {};
|
|
61
61
|
mergeVertices() {
|
|
62
62
|
const columns = this.vertexColumns();
|
|
63
63
|
const annotationColumns = this.vertexAnnotationColumns();
|
|
@@ -67,7 +67,7 @@ export class SankeyGraph extends SVGWidget {
|
|
|
67
67
|
const centroidIdx = this.indexOf(columns, this.vertexCentroidColumn(), "centroid");
|
|
68
68
|
const vertexTooltipIdx = this.indexOf(columns, this.vertexTooltipColumn(), "tooltip");
|
|
69
69
|
const annotationIdxs = annotationColumns.map(ac => this.indexOf(columns, ac.columnID(), ""));
|
|
70
|
-
const vertices:
|
|
70
|
+
const vertices: VertexBaseProps[] = this.vertices().map((v): VertexBaseProps => {
|
|
71
71
|
return {
|
|
72
72
|
categoryID: "" + v[catIdx],
|
|
73
73
|
id: "" + v[idIdx],
|
|
@@ -94,8 +94,8 @@ export class SankeyGraph extends SVGWidget {
|
|
|
94
94
|
return retVal >= 0 ? retVal : columns.indexOf(defColumn);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
protected _prevEdges: readonly
|
|
98
|
-
protected _masterEdges:
|
|
97
|
+
protected _prevEdges: readonly EdgeBaseProps[] = [];
|
|
98
|
+
protected _masterEdges: EdgeBaseProps[] = [];
|
|
99
99
|
mergeEdges() {
|
|
100
100
|
const columns = this.edgeColumns();
|
|
101
101
|
const idIdx = this.indexOf(columns, this.edgeIDColumn(), "id");
|
|
@@ -103,7 +103,7 @@ export class SankeyGraph extends SVGWidget {
|
|
|
103
103
|
const targetIdx = this.indexOf(columns, this.edgeTargetColumn(), "target");
|
|
104
104
|
const labelIdx = this.indexOf(columns, this.edgeLabelColumn(), "label");
|
|
105
105
|
const weightIdx = this.indexOf(columns, this.edgeWeightColumn(), "weight");
|
|
106
|
-
const edges:
|
|
106
|
+
const edges: EdgeBaseProps[] = this.edges().map(e => {
|
|
107
107
|
const source = this._masterVerticesMap["" + e[sourceIdx]];
|
|
108
108
|
if (!source) console.error(`Invalid edge source entity "${e[sourceIdx]}" does not exist.`);
|
|
109
109
|
const target = this._masterVerticesMap["" + e[targetIdx]];
|
package/src/graph2/subgraph.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// , Shape, Text,
|
|
2
2
|
import { React, Text } from "@hpcc-js/react";
|
|
3
|
-
import {
|
|
3
|
+
import { SubgraphBaseProps } from "./layouts/placeholders";
|
|
4
4
|
|
|
5
|
-
export interface BasicSubgraphProps extends
|
|
5
|
+
export interface BasicSubgraphProps extends SubgraphBaseProps {
|
|
6
6
|
label?: string;
|
|
7
7
|
labelFill?: string;
|
|
8
8
|
labelHeight?: number,
|
package/src/graph2/vertex.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// , Shape, Text,
|
|
2
2
|
import { React, Text } from "@hpcc-js/react";
|
|
3
|
-
import {
|
|
3
|
+
import { VertexBaseProps } from "./layouts/placeholders";
|
|
4
4
|
|
|
5
|
-
export interface BasicVertexProps extends
|
|
5
|
+
export interface BasicVertexProps extends VertexBaseProps {
|
|
6
6
|
textFill?: string;
|
|
7
7
|
textHeight?: number,
|
|
8
8
|
scale?: number,
|
package/types/__package__.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const PKG_NAME = "@hpcc-js/graph";
|
|
2
|
-
export declare const PKG_VERSION = "2.84.
|
|
3
|
-
export declare const BUILD_VERSION = "2.104.
|
|
2
|
+
export declare const PKG_VERSION = "2.84.4";
|
|
3
|
+
export declare const BUILD_VERSION = "2.104.14";
|
|
4
4
|
//# sourceMappingURL=__package__.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Test4 as Test } from "./test4";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropertyExt, publish, Widget } from "@hpcc-js/common";
|
|
2
|
+
import { Vertex3Props, EdgeProps } from "@hpcc-js/react";
|
|
2
3
|
import { Graph2 } from "./graph";
|
|
3
|
-
|
|
4
|
+
export declare type IVertex3 = Vertex3Props;
|
|
4
5
|
export declare function toJsonObj<T>(row: any, columns: any): T;
|
|
5
6
|
export declare class AnnotationColumn extends PropertyExt {
|
|
6
7
|
columnID: publish<this, string>;
|
|
@@ -49,8 +50,8 @@ export declare class DataGraph extends Graph2 {
|
|
|
49
50
|
private _masterVertices;
|
|
50
51
|
private _masterVerticesMap;
|
|
51
52
|
mergeVertices(): void;
|
|
52
|
-
protected _prevEdges: readonly
|
|
53
|
-
protected _masterEdges:
|
|
53
|
+
protected _prevEdges: readonly EdgeProps<IVertex3>[];
|
|
54
|
+
protected _masterEdges: EdgeProps<IVertex3>[];
|
|
54
55
|
private _masterEdgesMap;
|
|
55
56
|
mergeEdges(): void;
|
|
56
57
|
private _prevHierarchy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataGraph.d.ts","sourceRoot":"","sources":["../../src/graph2/dataGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"dataGraph.d.ts","sourceRoot":"","sources":["../../src/graph2/dataGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAA4B,YAAY,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAElG,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,oBAAY,QAAQ,GAAG,YAAY,CAAC;AAEpC,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,KAAA,EAAE,OAAO,KAAA,GAAG,CAAC,CAI5C;AAED,qBAAa,gBAAiB,SAAQ,WAAW;IAG7C,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEhC,YAAY,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEpC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC;IAC5B,KAAK,IAAI,SAAS;IAClB,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI;IAOzB,KAAK,IAAI,OAAO;CAGnB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Q,CAAC,EAAE,CAAM;IACnD,OAAO,CAAC,eAAe,CAA8C;IACrE,UAAU;IAyCV,OAAO,CAAC,cAAc,CAAyD;IAC/E,OAAO,CAAC,gBAAgB,CAAgD;IACxE,OAAO,CAAC,mBAAmB,CAAiE;IAC5F,cAAc;IAuBd,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IASvB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;CAQ/C"}
|
package/types/graph2/graph.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import { BasicEdgeProps } from "./edge";
|
|
1
|
+
import { React, SubgraphProps, VertexProps, EdgeProps } from "@hpcc-js/react";
|
|
3
2
|
import { GraphReactT } from "./graphReactT";
|
|
4
|
-
|
|
3
|
+
import { GraphDataProps, HierarchyBase } from "./graphT";
|
|
4
|
+
export declare type ISubgraph = SubgraphProps;
|
|
5
|
+
export declare type IVertex = VertexProps;
|
|
6
|
+
export declare type IEdge = EdgeProps;
|
|
7
|
+
export declare type IHierarchy = HierarchyBase<ISubgraph, IVertex>;
|
|
8
|
+
export declare type IGraphData2 = GraphDataProps<ISubgraph, IVertex, IEdge>;
|
|
9
|
+
export declare class Graph2 extends GraphReactT<ISubgraph, IVertex, IEdge> {
|
|
5
10
|
constructor();
|
|
6
11
|
calcProps(_props: VertexProps): VertexProps;
|
|
7
12
|
protected _reactVertexRenderer2: React.FunctionComponent<VertexProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/graph2/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,aAAa,EAAU,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/graph2/graph.ts"],"names":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C,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,uBAAuB,IAAI,MAAM,CAAC;IAClC,uBAAuB,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { React, SubgraphProps, VertexProps } from "@hpcc-js/react";
|
|
2
|
-
import {
|
|
3
|
-
export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps
|
|
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
4
|
constructor(subgraphRenderer: React.FunctionComponent<SG>, vertexRenderer: React.FunctionComponent<V>, edgeRenderer: React.FunctionComponent<E>);
|
|
5
5
|
private _reactSubgraphRenderer;
|
|
6
6
|
subgraphRenderer(): React.FunctionComponent<SG>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphReactT.d.ts","sourceRoot":"","sources":["../../src/graph2/graphReactT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"graphReactT.d.ts","sourceRoot":"","sources":["../../src/graph2/graphReactT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,MAAM,EAAa,MAAM,UAAU,CAAC;AAM7C,qBAAa,WAAW,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,CAAE,SAAQ,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;gBAE1G,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAI/I,OAAO,CAAC,sBAAsB,CAA8B;IAC5D,gBAAgB,IAAI,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAC/C,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,IAAI;IAQtD,OAAO,CAAC,oBAAoB,CAA6B;IACzD,cAAc,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC5C,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,IAAI;IAQnD,OAAO,CAAC,kBAAkB,CAA6B;IACvD,YAAY,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC1C,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,IAAI;CAOpD"}
|