@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.
Files changed (53) hide show
  1. package/dist/index.es6.js +8 -18
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +6 -17
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/package.json +9 -9
  8. package/src/__package__.ts +2 -2
  9. package/src/__tests__/index.ts +1 -1
  10. package/src/graph2/dataGraph.ts +9 -7
  11. package/src/graph2/graph.ts +12 -4
  12. package/src/graph2/graphReactT.ts +3 -3
  13. package/src/graph2/graphT.ts +23 -23
  14. package/src/graph2/index.ts +0 -1
  15. package/src/graph2/layouts/placeholders.ts +15 -15
  16. package/src/graph2/sankeyGraph.ts +8 -8
  17. package/src/graph2/subgraph.tsx +2 -2
  18. package/src/graph2/vertex.tsx +2 -2
  19. package/types/__package__.d.ts +2 -2
  20. package/types/__tests__/index.d.ts +1 -1
  21. package/types/graph2/dataGraph.d.ts +4 -3
  22. package/types/graph2/dataGraph.d.ts.map +1 -1
  23. package/types/graph2/graph.d.ts +8 -3
  24. package/types/graph2/graph.d.ts.map +1 -1
  25. package/types/graph2/graphReactT.d.ts +3 -3
  26. package/types/graph2/graphReactT.d.ts.map +1 -1
  27. package/types/graph2/graphT.d.ts +10 -10
  28. package/types/graph2/graphT.d.ts.map +1 -1
  29. package/types/graph2/index.d.ts +0 -1
  30. package/types/graph2/index.d.ts.map +1 -1
  31. package/types/graph2/layouts/placeholders.d.ts +15 -15
  32. package/types/graph2/layouts/placeholders.d.ts.map +1 -1
  33. package/types/graph2/sankeyGraph.d.ts +5 -5
  34. package/types/graph2/sankeyGraph.d.ts.map +1 -1
  35. package/types/graph2/subgraph.d.ts +2 -2
  36. package/types/graph2/subgraph.d.ts.map +1 -1
  37. package/types/graph2/vertex.d.ts +2 -2
  38. package/types/graph2/vertex.d.ts.map +1 -1
  39. package/types-3.4/__package__.d.ts +2 -2
  40. package/types-3.4/__tests__/index.d.ts +1 -1
  41. package/types-3.4/graph2/dataGraph.d.ts +4 -3
  42. package/types-3.4/graph2/graph.d.ts +8 -3
  43. package/types-3.4/graph2/graphReactT.d.ts +3 -3
  44. package/types-3.4/graph2/graphT.d.ts +10 -10
  45. package/types-3.4/graph2/index.d.ts +0 -1
  46. package/types-3.4/graph2/layouts/placeholders.d.ts +15 -15
  47. package/types-3.4/graph2/sankeyGraph.d.ts +5 -5
  48. package/types-3.4/graph2/subgraph.d.ts +2 -2
  49. package/types-3.4/graph2/vertex.d.ts +2 -2
  50. package/src/graph2/edge.tsx +0 -30
  51. package/types/graph2/edge.d.ts +0 -9
  52. package/types/graph2/edge.d.ts.map +0 -1
  53. 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",
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.6",
55
- "@hpcc-js/common": "^2.71.6",
56
- "@hpcc-js/html": "^2.42.7",
57
- "@hpcc-js/react": "^2.53.2",
58
- "@hpcc-js/util": "^2.50.1"
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.1",
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.0"
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": "b5b4cf9ee4257885b41a3f90c11cbe6609704d0d"
91
+ "gitHead": "cec45fe4a28dff27d43cf0bb9238d751534c8e88"
92
92
  }
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/graph";
2
- export const PKG_VERSION = "2.84.3";
3
- export const BUILD_VERSION = "2.104.13";
2
+ export const PKG_VERSION = "2.84.4";
3
+ export const BUILD_VERSION = "2.104.14";
@@ -1 +1 @@
1
- export { Test5 as Test } from "./test5";
1
+ export { Test4 as Test } from "./test4";
@@ -1,9 +1,11 @@
1
1
  import { PropertyExt, publish, Widget } from "@hpcc-js/common";
2
- import { CentroidVertex3, IVertex3, SubgraphProps, Vertex3 } from "@hpcc-js/react";
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
- import { BasicEdgeProps } from "./edge";
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 BasicEdgeProps[] = [];
210
- protected _masterEdges: BasicEdgeProps[] = [];
211
- private _masterEdgesMap: { [key: string]: BasicEdgeProps } = {};
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: BasicEdgeProps[] = this.edges().map((e): BasicEdgeProps => {
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
- color: e[colorIdx] as string,
232
+ stroke: e[colorIdx] as string,
231
233
  label: labelIdx >= 0 ? ("" + e[labelIdx]) : "",
232
234
  origData: toJsonObj(e, columns),
233
235
  labelPos: [0, 0],
@@ -1,11 +1,19 @@
1
- import { React, Subgraph, SubgraphProps, Vertex, VertexProps } from "@hpcc-js/react";
2
- import { BasicEdge, BasicEdgeProps } from "./edge";
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
- export class Graph2 extends GraphReactT<SubgraphProps, VertexProps, BasicEdgeProps> {
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, BasicEdge);
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 { EdgeProps, GraphT, RendererT } from "./graphT";
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> extends GraphT<SG, V, E> {
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));
@@ -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 { VertexProps, EdgeProps, IGraphData2, HierarchyBase, SubgraphProps } from "./layouts/placeholders";
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
- IGraphData2,
22
- SubgraphProps,
23
- VertexProps,
24
- EdgeProps,
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 VertexProps>(n: VertexPlaceholder<V>) {
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<VertexProps>, d: VertexPlaceholder<VertexProps>) {
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 VertexProps>(n: VertexPlaceholder<V>) {
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 SubgraphProps, V extends VertexProps, E extends EdgeProps> extends SVGZoomWidget {
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<E, V>, SubgraphPlaceholder<SG>>()
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<E, V> | SubgraphPlaceholder<SG>, a: VertexPlaceholder<V> | EdgePlaceholder<E, V> | SubgraphPlaceholder<SG>) => {
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: IGraphData2<SG, V, E> = {
262
+ private _origData: GraphDataProps<SG, V, E> = {
263
263
  subgraphs: [],
264
264
  vertices: [],
265
265
  edges: [],
266
266
  hierarchy: []
267
267
  };
268
- data(): IGraphData2<SG, V, E>;
269
- data(_: IGraphData2<SG, V, E>, merge?: boolean): this;
270
- data(_?: IGraphData2<SG, V, E>, merge?: boolean): IGraphData2<SG, V, E> | this {
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<E, V>> {
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<E, V>>(".graphEdge");
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<E, V>) {
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<E, V>, transition: boolean): this {
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.color ?? context.edgeColor()
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<E, V>, SVGGElement, any> : vp.element)
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<E, V>) => d.id)
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 SubgraphProps = any, V extends VertexProps = any, E extends EdgeProps = any> {
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;
@@ -5,4 +5,3 @@ export * from "./dataGraph";
5
5
  export * from "./sankeyGraph";
6
6
  export * from "./subgraph";
7
7
  export * from "./vertex";
8
- export * from "./edge";
@@ -5,7 +5,7 @@ export interface BaseProps {
5
5
  origData?: any;
6
6
  }
7
7
 
8
- export interface VertexProps extends BaseProps {
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 SubgraphProps extends BaseProps {
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 EdgeProps extends BaseProps {
26
- source: VertexProps;
27
- target: VertexProps;
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
- color?: string;
33
+ stroke?: string;
34
34
  fontFamily?: string;
35
35
  }
36
36
 
37
- export interface HierarchyBase<SG extends SubgraphProps, V extends VertexProps> {
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 IGraphData2<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps> {
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 SubgraphProps = SubgraphProps> {
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 VertexProps = VertexProps> {
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<E extends EdgeProps = EdgeProps, V extends VertexProps = VertexProps> {
85
+ export interface EdgePlaceholder<V extends VertexBaseProps = VertexBaseProps, E extends EdgeBaseProps<V> = EdgeBaseProps<V>> {
86
86
  id: string | number;
87
- element?: Selection<SVGGElement, EdgePlaceholder<E, V>, SVGGElement, any>;
88
- elementPath?: Selection<SVGPathElement, EdgePlaceholder<E, V>, SVGGElement, any>;
89
- elementText?: Selection<SVGTextElement, EdgePlaceholder<E, V>, SVGGElement, any>;
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<E extends EdgeProps = EdgeProps, V extends VertexProps = VertexProps>(item): item is EdgePlaceholder<E, V> {
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 { EdgeProps, VertexProps } from "./graphT";
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 VertexProps[] = [];
59
- private _masterVertices: VertexProps[] = [];
60
- private _masterVerticesMap: { [key: string]: VertexProps } = {};
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: VertexProps[] = this.vertices().map((v): VertexProps => {
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 EdgeProps[] = [];
98
- protected _masterEdges: EdgeProps[] = [];
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: EdgeProps[] = this.edges().map(e => {
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]];
@@ -1,8 +1,8 @@
1
1
  // , Shape, Text,
2
2
  import { React, Text } from "@hpcc-js/react";
3
- import { SubgraphProps } from "./layouts/placeholders";
3
+ import { SubgraphBaseProps } from "./layouts/placeholders";
4
4
 
5
- export interface BasicSubgraphProps extends SubgraphProps {
5
+ export interface BasicSubgraphProps extends SubgraphBaseProps {
6
6
  label?: string;
7
7
  labelFill?: string;
8
8
  labelHeight?: number,
@@ -1,8 +1,8 @@
1
1
  // , Shape, Text,
2
2
  import { React, Text } from "@hpcc-js/react";
3
- import { VertexProps } from "./layouts/placeholders";
3
+ import { VertexBaseProps } from "./layouts/placeholders";
4
4
 
5
- export interface BasicVertexProps extends VertexProps {
5
+ export interface BasicVertexProps extends VertexBaseProps {
6
6
  textFill?: string;
7
7
  textHeight?: number,
8
8
  scale?: number,
@@ -1,4 +1,4 @@
1
1
  export declare const PKG_NAME = "@hpcc-js/graph";
2
- export declare const PKG_VERSION = "2.84.3";
3
- export declare const BUILD_VERSION = "2.104.13";
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 { Test5 as Test } from "./test5";
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
- import { BasicEdgeProps } from "./edge";
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 BasicEdgeProps[];
53
- protected _masterEdges: BasicEdgeProps[];
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":[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CAAC,cAAc,CAAgC;IACtD,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,mBAAmB,CAAwC;IACnE,cAAc;IA0Bd,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,kBAAkB,CAAmC;IAC7D,aAAa;IA6Cb,SAAS,CAAC,UAAU,EAAE,SAAS,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAM;IAC1D,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,QAAQ,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"}
@@ -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
- export declare class Graph2 extends GraphReactT<SubgraphProps, VertexProps, BasicEdgeProps> {
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>;
@@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,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 { EdgeProps, GraphT } from "./graphT";
3
- export declare class GraphReactT<SG extends SubgraphProps, V extends VertexProps, E extends EdgeProps> extends GraphT<SG, V, E> {
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;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,EAAa,MAAM,UAAU,CAAC;AAMxD,qBAAa,WAAW,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,SAAS,CAAE,SAAQ,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;gBAEvG,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,E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