@hpcc-js/graph 3.7.5 → 3.7.7

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": "3.7.5",
3
+ "version": "3.7.7",
4
4
  "description": "hpcc-js - Viz Graph",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -24,10 +24,12 @@
24
24
  "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo ./workers/dist ./workers/lib-es6 ./workers/types",
25
25
  "bundle": "vite build",
26
26
  "bundle-workers": "vite build -c ./workers/vite.config.ts",
27
- "bundle-watch": "vite --port 5509",
27
+ "bundle-watch": "vite build --watch",
28
+ "bundle-serve": "vite --port 5509",
28
29
  "gen-types": "tsc --project tsconfig.json",
29
30
  "gen-types-watch": "npm run gen-types -- --watch",
30
31
  "build": "run-p gen-types bundle",
32
+ "watch": "run-p gen-types-watch bundle-watch",
31
33
  "lint": "eslint ./src",
32
34
  "lint-fix": "eslint --fix src/**/*.ts",
33
35
  "docs": "typedoc --options tdoptions.json .",
@@ -38,18 +40,18 @@
38
40
  "update-major": "npx --yes npm-check-updates -u"
39
41
  },
40
42
  "dependencies": {
41
- "@hpcc-js/api": "^3.4.16",
42
- "@hpcc-js/common": "^3.7.6",
43
- "@hpcc-js/html": "^3.3.16",
44
- "@hpcc-js/react": "^3.4.16",
45
- "@hpcc-js/util": "^3.5.5"
43
+ "@hpcc-js/api": "^3.4.18",
44
+ "@hpcc-js/common": "^3.7.8",
45
+ "@hpcc-js/html": "^3.3.18",
46
+ "@hpcc-js/react": "^3.4.18",
47
+ "@hpcc-js/util": "^3.5.7"
46
48
  },
47
49
  "optionalPeerDependencies": {
48
50
  "react": ">=17.0.0"
49
51
  },
50
52
  "devDependencies": {
51
- "@hpcc-js/esbuild-plugins": "^1.8.7",
52
- "@hpcc-js/wasm-graphviz": "1.21.2",
53
+ "@hpcc-js/esbuild-plugins": "^1.8.9",
54
+ "@hpcc-js/wasm-graphviz": "1.21.5",
53
55
  "@types/d3-transition": "1.3.6",
54
56
  "@types/dagre": "0.7.54",
55
57
  "d3-force": "^1",
@@ -73,5 +75,5 @@
73
75
  "url": "https://github.com/hpcc-systems/Visualization/issues"
74
76
  },
75
77
  "homepage": "https://github.com/hpcc-systems/Visualization",
76
- "gitHead": "6f134126379fe058a052986758b792d7b4ddb84b"
78
+ "gitHead": "6695c9be7e44c9a4dd50e36fad2044b287685e2e"
77
79
  }
@@ -113,8 +113,8 @@ export class Dagre extends Layout {
113
113
  if (ep.points) {
114
114
  const line = this.edgeLine(ep);
115
115
  points = ep.points.map((p, idx) => {
116
- let x = NaN;
117
- let y = NaN;
116
+ let x: number;
117
+ let y: number;
118
118
  if (idx === 0) {
119
119
  x = this._graph.rproject(line.source.x);
120
120
  y = this._graph.rproject(line.source.y);
@@ -104,8 +104,8 @@ export class Graphviz extends Layout {
104
104
  if (ep.points) {
105
105
  const line = this.edgeLine(ep);
106
106
  points = ep.points.map((p, idx) => {
107
- let x = NaN;
108
- let y = NaN;
107
+ let x: number;
108
+ let y: number;
109
109
  if (idx === 0) {
110
110
  x = this._graph.rproject(line.source.x);
111
111
  y = this._graph.rproject(line.source.y);