@hpcc-js/graph 2.79.4 → 2.80.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/graph",
3
- "version": "2.79.4",
3
+ "version": "2.80.1",
4
4
  "description": "hpcc-js - Viz Graph",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -46,21 +46,21 @@
46
46
  "build": "run-s build-workers copy-resources build-package",
47
47
  "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
48
48
  "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
49
- "lint": "eslint src/**/*.ts",
49
+ "lint": "eslint ./src",
50
50
  "docs": "typedoc --options tdoptions.json .",
51
51
  "ddd": "downlevel-dts . ts3.4",
52
52
  "update": "npx npm-check-updates -u -t minor"
53
53
  },
54
54
  "dependencies": {
55
- "@hpcc-js/api": "^2.9.1",
56
- "@hpcc-js/common": "^2.66.1",
57
- "@hpcc-js/html": "^2.41.2",
58
- "@hpcc-js/react": "^2.49.2",
59
- "@hpcc-js/util": "^2.46.1"
55
+ "@hpcc-js/api": "^2.10.1",
56
+ "@hpcc-js/common": "^2.68.1",
57
+ "@hpcc-js/html": "^2.41.5",
58
+ "@hpcc-js/react": "^2.49.5",
59
+ "@hpcc-js/util": "^2.47.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@hpcc-js/bundle": "^2.11.1",
63
- "@hpcc-js/wasm": "1.13.0",
63
+ "@hpcc-js/wasm": "1.14.1",
64
64
  "@types/d3-transition": "1.3.2",
65
65
  "@types/dagre": "0.7.47",
66
66
  "d3-array": "^1",
@@ -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": "49135594596eb830ff9f0e04e5e88c4cb41ed3c3"
91
+ "gitHead": "b7c5d9a853196b53078d665df4368629a1a87903"
92
92
  }
@@ -160,7 +160,7 @@ export class AdjacencyGraph extends Graph {
160
160
  .data(childRow)
161
161
  ;
162
162
  } else {
163
- console.log("Missing vertices for edge: " + edgeID);
163
+ console.warn("Missing vertices for edge: " + edgeID);
164
164
  }
165
165
  }
166
166
  if (retVal) {
@@ -195,7 +195,6 @@ export class AdjacencyGraph extends Graph {
195
195
  }
196
196
 
197
197
  click(row, col, sel) {
198
- console.log("click");
199
198
  }
200
199
  }
201
200
  AdjacencyGraph.prototype._class += " graph_AdjacencyGraph";
package/src/Graph.ts CHANGED
@@ -641,12 +641,9 @@ export class Graph extends SVGZoomWidget {
641
641
  const context = this;
642
642
  const layoutEngine = this.getLayoutEngine();
643
643
  if (this.layout() === "ForceDirected2") {
644
- let total = 0;
645
- let count = 0;
646
644
  this.forceLayout = layoutEngine;
647
645
  this.forceLayout.force
648
646
  .on("tick", function (this: SVGElement) {
649
- const start = performance.now();
650
647
  context.progress("layout-tick");
651
648
  layoutEngine.vertices.forEach(function (item) {
652
649
  if (item.fixed) {
@@ -674,9 +671,6 @@ export class Graph extends SVGZoomWidget {
674
671
  // const vBounds = context.getVertexBounds(layoutEngine);
675
672
  // context.shrinkToFit(vBounds);
676
673
  }
677
- total += performance.now() - start;
678
- ++count;
679
- console.log("tick:" + (total / count));
680
674
  })
681
675
  .on("end", function (this: SVGElement) {
682
676
  context.progress("layout-end");
package/src/GraphData.ts CHANGED
@@ -84,7 +84,7 @@ export class GraphData {
84
84
  this._g.setEdge(edge._sourceVertex._id, edge._targetVertex._id, edge, edge._id);
85
85
  retVal.addedEdges.push(edge);
86
86
  } else {
87
- console.log("Bad edge definition");
87
+ console.warn("Bad edge definition");
88
88
  }
89
89
  }
90
90
  }
package/src/Sankey.ts CHANGED
@@ -197,9 +197,9 @@ export class Sankey extends SVGWidget {
197
197
  .attr("transform", function (d) {
198
198
  let _x = 0;
199
199
  let _y = 0;
200
- if(d.x0)_x=d.x0;
201
- if(d.y0)_y=d.y0;
202
- return "translate(" + (_x+strokeWidth) + "," + (_y+strokeWidth) + ")";
200
+ if (d.x0) _x = d.x0;
201
+ if (d.y0) _y = d.y0;
202
+ return "translate(" + (_x + strokeWidth) + "," + (_y + strokeWidth) + ")";
203
203
  })
204
204
  .each(function () {
205
205
  const n = d3Select(this);
@@ -214,7 +214,7 @@ export class Sankey extends SVGWidget {
214
214
  n.select("text")
215
215
  .attr("x", -6)
216
216
  .attr("y", function (d: any) {
217
- return (d.y1 - d.y0)/2;
217
+ return (d.y1 - d.y0) / 2;
218
218
  })
219
219
  .attr("dy", ".35em")
220
220
  .attr("text-anchor", "end")
@@ -270,11 +270,9 @@ export class Sankey extends SVGWidget {
270
270
 
271
271
  // Events ---
272
272
  click(row, column, selected) {
273
- console.log("Click: " + JSON.stringify(row) + ", " + column + "," + selected);
274
273
  }
275
274
 
276
275
  dblclick(row, column, selected) {
277
- console.log("Double Click: " + JSON.stringify(row) + ", " + column + "," + selected);
278
276
  }
279
277
  }
280
278
  Sankey.prototype._class += " graph_Sankey";
package/src/Subgraph.ts CHANGED
@@ -118,7 +118,6 @@ export class Subgraph extends SVGWidget {
118
118
  }
119
119
 
120
120
  click(d) {
121
- console.log("Clicked: " + d.id);
122
121
  }
123
122
 
124
123
  minClick() {
package/src/Vertex.ts CHANGED
@@ -148,7 +148,7 @@ export class Vertex extends SVGWidget {
148
148
  if (annotationWidget[key]) {
149
149
  annotationWidget[key](d[key]);
150
150
  } else if (globalThis.__hpcc_debug) {
151
- console.log("Invalid annotation property: " + key);
151
+ console.warn("Invalid annotation property: " + key);
152
152
  }
153
153
  }
154
154
  annotationWidget.render();
@@ -1,3 +1,3 @@
1
1
  export const PKG_NAME = "@hpcc-js/graph";
2
- export const PKG_VERSION = "2.79.4";
3
- export const BUILD_VERSION = "2.102.10";
2
+ export const PKG_VERSION = "2.80.1";
3
+ export const BUILD_VERSION = "2.103.1";