@fusion.dev/helix-graph 0.121.0 → 0.123.0

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 (37) hide show
  1. package/README.md +75 -2
  2. package/dist/connect-graph/arrange.d.ts +4 -2
  3. package/dist/connect-graph/arrange.js +45 -12
  4. package/dist/connect-graph/connect-graph.d.ts +10 -1
  5. package/dist/connect-graph/connect-graph.js +13 -4
  6. package/dist/connect-graph/diff.d.ts +2 -0
  7. package/dist/connect-graph/diff.js +2 -1
  8. package/dist/connect-graph/seed.d.ts +3 -0
  9. package/dist/connect-graph/seed.js +10 -2
  10. package/dist/connect-graph/shape-field.d.ts +61 -0
  11. package/dist/connect-graph/shape-field.js +172 -0
  12. package/dist/connect-graph/stencil.d.ts +56 -17
  13. package/dist/connect-graph/stencil.js +160 -79
  14. package/dist/connect-graph/surface-web.d.ts +18 -0
  15. package/dist/connect-graph/surface-web.js +99 -0
  16. package/dist/cosmos/cosmos-driver.js +8 -56
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/overlay/overlay.d.ts +18 -0
  20. package/dist/overlay/overlay.js +63 -1
  21. package/dist/shapes/flat.d.ts +28 -0
  22. package/dist/shapes/flat.js +63 -0
  23. package/dist/shapes/index.d.ts +5 -0
  24. package/dist/shapes/index.js +5 -0
  25. package/dist/shapes/model.d.ts +12 -0
  26. package/dist/shapes/model.js +31 -0
  27. package/dist/shapes/solids.d.ts +28 -0
  28. package/dist/shapes/solids.js +47 -0
  29. package/dist/shapes/triangles.d.ts +20 -0
  30. package/dist/shapes/triangles.js +78 -0
  31. package/dist/three/index.d.ts +1 -0
  32. package/dist/three/index.js +1 -0
  33. package/dist/three/surface.d.ts +13 -0
  34. package/dist/three/surface.js +112 -0
  35. package/dist/three/three-driver.d.ts +32 -0
  36. package/dist/three/three-driver.js +797 -0
  37. package/package.json +28 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-graph",
3
- "description": "Connects the Helix Graph frame to a graph renderer: Sigma.js, cosmos.gl, or a driver of your own.",
4
- "version": "0.121.0",
3
+ "description": "Connects the Helix Graph frame to a graph renderer: Sigma.js, cosmos.gl, three.js, or a driver of your own.",
4
+ "version": "0.123.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -21,9 +21,17 @@
21
21
  "types": "./dist/cosmos/index.d.ts",
22
22
  "default": "./dist/cosmos/index.js"
23
23
  },
24
+ "./shapes": {
25
+ "types": "./dist/shapes/index.d.ts",
26
+ "default": "./dist/shapes/index.js"
27
+ },
24
28
  "./sigma": {
25
29
  "types": "./dist/sigma/index.d.ts",
26
30
  "default": "./dist/sigma/index.js"
31
+ },
32
+ "./three": {
33
+ "types": "./dist/three/index.d.ts",
34
+ "default": "./dist/three/index.js"
27
35
  }
28
36
  },
29
37
  "files": [
@@ -39,37 +47,50 @@
39
47
  },
40
48
  "bugs": "https://github.com/project-fusion/fusion/issues",
41
49
  "dependencies": {
42
- "@fusion.dev/helix-core": "0.121.0"
50
+ "@fusion.dev/helix-core": "0.123.0"
43
51
  },
44
52
  "devDependencies": {
45
53
  "@cosmos.gl/graph": "^3.4.2",
46
- "@fusion.dev/helix-headless": "0.121.0",
47
- "@fusion.dev/helix-testing": "0.121.0",
54
+ "@fusion.dev/helix-headless": "0.123.0",
55
+ "@fusion.dev/helix-testing": "0.123.0",
48
56
  "@types/bun": "^1.3.0",
57
+ "@types/three": "^0.186.0",
58
+ "d3-force-3d": "^3.0.6",
49
59
  "graphology": "^0.26.0",
50
60
  "graphology-layout-forceatlas2": "^0.10.1",
51
61
  "graphology-types": "^0.24.8",
52
- "sigma": "^3.0.3"
62
+ "sigma": "^3.0.3",
63
+ "three": "^0.186.1"
53
64
  },
54
65
  "homepage": "https://fusion.dev",
55
66
  "keywords": [
67
+ "3d",
56
68
  "accessibility",
57
69
  "cosmos.gl",
58
70
  "graph",
59
71
  "network",
60
72
  "sigma",
73
+ "three.js",
61
74
  "webgl"
62
75
  ],
63
76
  "peerDependencies": {
64
77
  "@cosmos.gl/graph": "^3.4.0",
65
- "sigma": "^3.0.0"
78
+ "d3-force-3d": "^3.0.0",
79
+ "sigma": "^3.0.0",
80
+ "three": ">=0.160.0"
66
81
  },
67
82
  "peerDependenciesMeta": {
68
83
  "@cosmos.gl/graph": {
69
84
  "optional": true
70
85
  },
86
+ "d3-force-3d": {
87
+ "optional": true
88
+ },
71
89
  "sigma": {
72
90
  "optional": true
91
+ },
92
+ "three": {
93
+ "optional": true
73
94
  }
74
95
  },
75
96
  "publishConfig": {