@hpcc-js/graph 2.78.0 → 2.79.3
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/README.md +210 -1
- package/dist/graphvizlib.wasm +0 -0
- package/dist/index.es6.js +822 -8435
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +828 -8441
- 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 +13 -30
- package/src/Graph.ts +1 -1
- package/src/GraphData.ts +6 -4
- package/src/Vertex.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/graph2/layouts/dagreWorker.ts +8 -1
- package/src/graph2/layouts/forceDirectedWorker.ts +8 -1
- package/src/graph2/layouts/graphviz.ts +0 -2
- package/src/graph2/layouts/graphvizWorker.ts +22 -1
- package/src/test.ts +2 -2
- package/types/GraphData.d.ts +6 -3
- package/types/GraphData.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/graph2/layouts/dagreWorker.d.ts.map +1 -1
- package/types/graph2/layouts/forceDirectedWorker.d.ts.map +1 -1
- package/types/graph2/layouts/graphviz.d.ts.map +1 -1
- package/types/graph2/layouts/graphvizWorker.d.ts.map +1 -1
- package/types/test.d.ts +1 -1
- package/types-3.4/GraphData.d.ts +6 -3
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/test.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.79.3",
|
|
4
4
|
"description": "hpcc-js - Viz Graph",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -45,30 +45,25 @@
|
|
|
45
45
|
"gen-legacy-types": "downlevel-dts ./types ./types-3.4",
|
|
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
|
-
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
48
|
+
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
49
49
|
"lint": "eslint src/**/*.ts",
|
|
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.
|
|
58
|
-
"@hpcc-js/react": "^2.
|
|
59
|
-
"@hpcc-js/util": "^2.
|
|
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",
|
|
60
|
+
"dagre": "0.8.5"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@hpcc-js/bundle": "^2.
|
|
63
|
-
"@hpcc-js/wasm": "1.
|
|
64
|
-
"@rollup/plugin-alias": "3.1.0",
|
|
65
|
-
"@rollup/plugin-commonjs": "12.0.0",
|
|
66
|
-
"@rollup/plugin-node-resolve": "8.0.0",
|
|
63
|
+
"@hpcc-js/bundle": "^2.11.1",
|
|
64
|
+
"@hpcc-js/wasm": "1.13.0",
|
|
67
65
|
"@types/d3-transition": "1.3.2",
|
|
68
|
-
"@types/dagre": "0.7.
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "4.31.0",
|
|
70
|
-
"@typescript-eslint/parser": "4.31.0",
|
|
71
|
-
"cpx": "1.5.0",
|
|
66
|
+
"@types/dagre": "0.7.47",
|
|
72
67
|
"d3-array": "^1",
|
|
73
68
|
"d3-drag": "^1",
|
|
74
69
|
"d3-force": "^1",
|
|
@@ -79,20 +74,8 @@
|
|
|
79
74
|
"d3-shape": "^1",
|
|
80
75
|
"d3-tile": "^1",
|
|
81
76
|
"d3-transition": "^1",
|
|
82
|
-
"dagre": "0.8.5",
|
|
83
|
-
"downlevel-dts": "0.6.0",
|
|
84
77
|
"es6-promise": "4.2.8",
|
|
85
|
-
"
|
|
86
|
-
"eslint-plugin-react-hooks": "^4.3.0",
|
|
87
|
-
"npm-run-all": "4.1.5",
|
|
88
|
-
"rimraf": "2.6.3",
|
|
89
|
-
"rollup": "2.10.7",
|
|
90
|
-
"rollup-plugin-postcss": "3.1.1",
|
|
91
|
-
"rollup-plugin-sourcemaps": "0.6.2",
|
|
92
|
-
"terser": "4.0.0",
|
|
93
|
-
"tslib": "2.3.0",
|
|
94
|
-
"typedoc": "0.14.2",
|
|
95
|
-
"typescript": "4.3.4"
|
|
78
|
+
"tslib": "2.3.1"
|
|
96
79
|
},
|
|
97
80
|
"repository": {
|
|
98
81
|
"type": "git",
|
|
@@ -105,5 +88,5 @@
|
|
|
105
88
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
106
89
|
},
|
|
107
90
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
108
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "a60063f97e3d02385d18fbcf6848c503c1c5c57b"
|
|
109
92
|
}
|
package/src/Graph.ts
CHANGED
|
@@ -688,7 +688,7 @@ export class Graph extends SVGZoomWidget {
|
|
|
688
688
|
this.forceLayout = null;
|
|
689
689
|
context._dragging = true;
|
|
690
690
|
context._graphData.nodes().forEach(function (item) {
|
|
691
|
-
const pos = layoutEngine.nodePos(item.
|
|
691
|
+
const pos = layoutEngine.nodePos(item.id());
|
|
692
692
|
if (item instanceof Graph.Subgraph) {
|
|
693
693
|
item
|
|
694
694
|
.pos({ x: pos.x, y: pos.y })
|
package/src/GraphData.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { Edge as GLEdge, GraphEdge, graphlib, Node
|
|
1
|
+
import { Edge as GLEdge, GraphEdge, graphlib, Node } from "dagre";
|
|
2
|
+
import { Vertex } from "./Vertex";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
type GLNode = Node<Vertex>;
|
|
5
|
+
|
|
6
|
+
class GraphlibGraph extends graphlib.Graph<Vertex> {
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
interface GraphlibGraph {
|
|
7
10
|
nodeEdges(outNodeName: string, inNodeName?: string): GLEdge[] | undefined;
|
|
8
|
-
removeEdge(outNodeName: string, inNodeName: string, name?: string): graphlib.Graph;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export interface GraphLabel {
|
|
@@ -99,7 +101,7 @@ export class GraphData {
|
|
|
99
101
|
});
|
|
100
102
|
this
|
|
101
103
|
.filterEdges(item => edgeIDs.indexOf(item.name) < 0)
|
|
102
|
-
.forEach(item => this._g.removeEdge(item.v, item.w
|
|
104
|
+
.forEach(item => this._g.removeEdge(item.v, item.w))
|
|
103
105
|
;
|
|
104
106
|
|
|
105
107
|
const vertexIDs = allVertices.map(function (item) {
|
package/src/Vertex.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Vertex extends SVGWidget {
|
|
|
147
147
|
for (const key in d) {
|
|
148
148
|
if (annotationWidget[key]) {
|
|
149
149
|
annotationWidget[key](d[key]);
|
|
150
|
-
} else if (
|
|
150
|
+
} else if (globalThis.__hpcc_debug) {
|
|
151
151
|
console.log("Invalid annotation property: " + key);
|
|
152
152
|
}
|
|
153
153
|
}
|
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.79.3";
|
|
3
|
+
export const BUILD_VERSION = "2.102.9";
|