@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/dist/graphvizlib.wasm +0 -0
- package/dist/index.es6.js +6 -18
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +6 -18
- 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/AdjacencyGraph.ts +1 -2
- package/src/Graph.ts +0 -6
- package/src/GraphData.ts +1 -1
- package/src/Sankey.ts +4 -6
- package/src/Subgraph.ts +0 -1
- package/src/Vertex.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/graph2/layouts/dagreWorker.ts +2 -2
- package/src/graph2/layouts/forceDirectedWorker.ts +2 -2
- package/src/graph2/layouts/graphvizWorker.ts +2 -2
- package/src/graph2/sankeyGraph.ts +0 -2
- package/src/test.ts +0 -3
- package/types/AdjacencyGraph.d.ts.map +1 -1
- package/types/Graph.d.ts.map +1 -1
- package/types/Sankey.d.ts.map +1 -1
- package/types/Subgraph.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/graph2/sankeyGraph.d.ts.map +1 -1
- package/types/test.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/graph",
|
|
3
|
-
"version": "2.
|
|
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
|
|
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.
|
|
56
|
-
"@hpcc-js/common": "^2.
|
|
57
|
-
"@hpcc-js/html": "^2.41.
|
|
58
|
-
"@hpcc-js/react": "^2.49.
|
|
59
|
-
"@hpcc-js/util": "^2.
|
|
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.
|
|
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": "
|
|
91
|
+
"gitHead": "b7c5d9a853196b53078d665df4368629a1a87903"
|
|
92
92
|
}
|
package/src/AdjacencyGraph.ts
CHANGED
|
@@ -160,7 +160,7 @@ export class AdjacencyGraph extends Graph {
|
|
|
160
160
|
.data(childRow)
|
|
161
161
|
;
|
|
162
162
|
} else {
|
|
163
|
-
console.
|
|
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
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
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.
|
|
151
|
+
console.warn("Invalid annotation property: " + key);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
annotationWidget.render();
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/graph";
|
|
2
|
-
export const PKG_VERSION = "2.
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "2.80.1";
|
|
3
|
+
export const BUILD_VERSION = "2.103.1";
|