@graphty/graphty-element 2.0.0 → 2.2.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 (77) hide show
  1. package/README.md +3 -3
  2. package/dist/ai.js +4 -4
  3. package/dist/catalog.js +5 -5
  4. package/dist/chunks/{AiManager-D22fxCNb.js → AiManager-DWwQiBQu.js} +5 -5
  5. package/dist/chunks/{Algorithm-BhwPK-aS.js → Algorithm-RQ629NLb.js} +210 -92
  6. package/dist/chunks/{DataSource-7S-7S3M1.js → DataSource-DEg3igzS.js} +3 -3
  7. package/dist/chunks/{GraphSession-DwlThkoy.js → GraphSession-CtqyVNsw.js} +2518 -2239
  8. package/dist/chunks/{GraphtyError-B3eKs4yg.js → GraphtyError-BwcnblTH.js} +10 -8
  9. package/dist/chunks/GraphtyLogger-5KEttFUo.js +752 -0
  10. package/dist/chunks/{NodeStyle-CS7dj20m.js → NodeStyle-Cup9O1lu.js} +2 -1
  11. package/dist/chunks/{VoiceInputAdapter-BrCQEMf0.js → VoiceInputAdapter-mD0x3z7t.js} +1 -1
  12. package/dist/chunks/{XRPivotCameraController-BE1pfwMC.js → XRPivotCameraController-Clil9NhV.js} +2 -2
  13. package/dist/chunks/{cameras-D5LX3ttm.js → cameras-DFXNYBze.js} +2 -2
  14. package/dist/chunks/{capability-check-MH9salUj.js → capability-check-dXwQ_z5B.js} +1 -1
  15. package/dist/chunks/{detect-5cVtGFHg.js → detect-CqN0mC6u.js} +3 -3
  16. package/dist/chunks/{format-detection-Bos-Q387.js → format-detection-C8vbCSlS.js} +1 -1
  17. package/dist/chunks/{index-CqZp3iwq.js → index-2VIpMJZP.js} +1576 -1211
  18. package/dist/chunks/{paletteRegistry-BSjlD98O.js → paletteRegistry-NrWOKT-A.js} +17 -17
  19. package/dist/chunks/{registry-DU-e49Y2.js → registry-CSba5QGJ.js} +1 -1
  20. package/dist/chunks/{scales-DPUY-fFk.js → scales-BUS7NWy2.js} +2206 -1357
  21. package/dist/custom-elements.json +1 -1
  22. package/dist/extend.js +26 -27
  23. package/dist/graphty-catalog.json +7 -4
  24. package/dist/graphty.bundle.js +36288 -34368
  25. package/dist/graphty.js +66 -64
  26. package/dist/index.d.ts +1 -1
  27. package/dist/logging.js +2 -2
  28. package/dist/schema.js +1 -1
  29. package/dist/session.d.ts +2 -1
  30. package/dist/session.js +37 -33
  31. package/dist/src/Edge.d.ts +1 -1
  32. package/dist/src/Graph.d.ts +41 -7
  33. package/dist/src/Node.d.ts +1 -1
  34. package/dist/src/acceleration/AccelerationController.d.ts +27 -0
  35. package/dist/src/acceleration/index.d.ts +1 -1
  36. package/dist/src/acceleration/narrow.d.ts +56 -0
  37. package/dist/src/acceleration/types.d.ts +88 -7
  38. package/dist/src/algorithms/Algorithm.d.ts +96 -2
  39. package/dist/src/algorithms/BFSAlgorithm.d.ts +9 -0
  40. package/dist/src/algorithms/DijkstraAlgorithm.d.ts +2 -8
  41. package/dist/src/algorithms/PageRankAlgorithm.d.ts +8 -0
  42. package/dist/src/algorithms/utils/graphUtils.d.ts +13 -0
  43. package/dist/src/cameras/OrbitCameraController.d.ts +1 -0
  44. package/dist/src/catalog/layouts.d.ts +13 -1
  45. package/dist/src/config/GraphBehavior.d.ts +13 -0
  46. package/dist/src/config/GraphStyle.d.ts +1 -1
  47. package/dist/src/config/StyleTemplate.d.ts +4 -0
  48. package/dist/src/data/CSVDataSource.d.ts +1 -0
  49. package/dist/src/data/csv-variant-detection.d.ts +11 -0
  50. package/dist/src/errors/codes.d.ts +14 -1
  51. package/dist/src/events.d.ts +17 -4
  52. package/dist/src/graphty-element.d.ts +48 -3
  53. package/dist/src/layout/ForceAtlas2LayoutEngine.d.ts +28 -45
  54. package/dist/src/layout/LayoutEngine.d.ts +7 -7
  55. package/dist/src/layout/SimulationLayoutEngine.d.ts +458 -0
  56. package/dist/src/layout/SpringElectricalLayoutEngine.d.ts +32 -0
  57. package/dist/src/layout/SpringLayoutEngine.d.ts +22 -32
  58. package/dist/src/managers/EventManager.d.ts +7 -0
  59. package/dist/src/managers/GraphContext.d.ts +6 -0
  60. package/dist/src/managers/LayoutManager.d.ts +98 -4
  61. package/dist/src/managers/RenderManager.d.ts +7 -0
  62. package/dist/src/managers/UpdateManager.d.ts +1 -1
  63. package/dist/src/session/catalog.d.ts +2 -2
  64. package/dist/src/session/query.d.ts +83 -0
  65. package/dist/src/session/runs/types.d.ts +10 -4
  66. package/dist/src/session/selection/targets.d.ts +20 -3
  67. package/dist/src/session/styles/StylesApi.d.ts +18 -0
  68. package/dist/src/session/styles/legend.d.ts +9 -0
  69. package/dist/src/session/styles/predicate.d.ts +11 -0
  70. package/dist/src/session/styles/sources.d.ts +16 -0
  71. package/dist/src/session/types.d.ts +38 -2
  72. package/dist/src/testing/fakeAccelerator.d.ts +323 -0
  73. package/dist/webgpu.d.ts +23 -1
  74. package/dist/webgpu.js +70 -32
  75. package/package.json +15 -11
  76. package/dist/chunks/GraphtyLogger-DoYeIghs.js +0 -609
  77. package/dist/chunks/types-Dwm9waL2.js +0 -7
@@ -274,7 +274,8 @@ const u = {
274
274
  "geodesic"
275
275
  ]), U = t.strictObject({
276
276
  shape: t.strictObject({
277
- size: t.number().positive().optional(),
277
+ // 0 is legal and draws the smallest visible node; hide a node with `visible: false`.
278
+ size: t.number().nonnegative().optional(),
278
279
  type: f.optional()
279
280
  // custom mesh https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/custom/custom
280
281
  // import mesh https://doc.babylonjs.com/typedoc/functions/BABYLON.ImportMeshAsync
@@ -1,4 +1,4 @@
1
- import { g as ke, h as up } from "./cameras-D5LX3ttm.js";
1
+ import { g as ke, h as up } from "./cameras-DFXNYBze.js";
2
2
  var ee = { exports: {} };
3
3
  var fp = ee.exports, oo;
4
4
  function op() {
@@ -1,7 +1,7 @@
1
1
  import { Vector3 as f, Quaternion as E, Ray as R, WebXRState as T } from "@babylonjs/core";
2
- import { P as M } from "./index-CqZp3iwq.js";
2
+ import { P as M } from "./index-2VIpMJZP.js";
3
3
  import "@babylonjs/core/Culling/ray";
4
- import { G as x } from "./GraphtyLogger-DoYeIghs.js";
4
+ import { G as x } from "./GraphtyLogger-5KEttFUo.js";
5
5
  function v(H, t = 0.15) {
6
6
  if (Math.abs(H) < t)
7
7
  return 0;
@@ -1,6 +1,6 @@
1
1
  import { c as y } from "./common-DWNKjpH_.js";
2
- import { N as b, E as g } from "./NodeStyle-CS7dj20m.js";
3
- import { g as f, e as N } from "./Algorithm-BhwPK-aS.js";
2
+ import { N as b, E as g } from "./NodeStyle-Cup9O1lu.js";
3
+ import { j as f, e as N } from "./Algorithm-RQ629NLb.js";
4
4
  var L = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function z(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1,4 +1,4 @@
1
- import { c as i, B as m } from "./index-CqZp3iwq.js";
1
+ import { c as i, B as m } from "./index-2VIpMJZP.js";
2
2
  async function p(n, e) {
3
3
  let s;
4
4
  try {
@@ -1,5 +1,5 @@
1
- import { F as u, q as p } from "./paletteRegistry-BSjlD98O.js";
2
- import { G as h } from "./GraphtyError-B3eKs4yg.js";
1
+ import { F as u, q as p } from "./paletteRegistry-NrWOKT-A.js";
2
+ import { G as h } from "./GraphtyError-BwcnblTH.js";
3
3
  function f(e) {
4
4
  return e.startsWith("<");
5
5
  }
@@ -10,7 +10,7 @@ const m = [
10
10
  { id: "gml", detect: (e) => !f(e) && /graph\s*\[/i.test(e) },
11
11
  { id: "pajek", detect: (e) => /^\*vertices/i.test(e) },
12
12
  { id: "dot", detect: (e) => /^\s*(strict\s+)?(di)?graph\s+/i.test(e) },
13
- { id: "csv", detect: (e) => !f(e) && /^[\w-]+\s*,\s*[\w-]+/m.test(e) }
13
+ { id: "csv", detect: (e) => !f(e) && /^[\w-]+[ \t]*[,\t;|][ \t]*[\w-]+/m.test(e) }
14
14
  ];
15
15
  function d(e, r) {
16
16
  try {
@@ -1,4 +1,4 @@
1
- import { d as r } from "./detect-5cVtGFHg.js";
1
+ import { d as r } from "./detect-CqN0mC6u.js";
2
2
  function m(t, e) {
3
3
  return r({ filename: t, sample: e });
4
4
  }