@graphty/graphty-element 2.2.5 → 2.3.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.
Files changed (50) hide show
  1. package/dist/ai.js +115 -222
  2. package/dist/catalog.js +56 -55
  3. package/dist/chunks/{AiManager-Bd_r1Hei.js → AiManager-BBmGJbH4.js} +793 -654
  4. package/dist/chunks/{DataSource-Dag8H5US.js → DataSource-OeN3NeyD.js} +1 -1
  5. package/dist/chunks/{GraphSession-mfo75G0q.js → GraphSession-Bef1AYw9.js} +2136 -2104
  6. package/dist/chunks/{GraphStyle-D0PXnZKu.js → GraphStyle-Cwr55SAE.js} +5 -2
  7. package/dist/chunks/{VoiceInputAdapter-DszYl6Ha.js → VoiceInputAdapter-Dr9Gcmds.js} +1 -1
  8. package/dist/chunks/{XRPivotCameraController-BdoMFcON.js → XRPivotCameraController-BbfgZWpS.js} +1 -1
  9. package/dist/chunks/algorithms-CpX56sUB.js +3482 -0
  10. package/dist/chunks/{capability-check-CdoqmrF0.js → capability-check-Blhb2aBB.js} +1 -1
  11. package/dist/chunks/{detect-LAOOaxY_.js → detect-Cqwshr9a.js} +1 -1
  12. package/dist/chunks/{format-detection-a0bD5PIB.js → format-detection-BXGO1lSn.js} +1 -1
  13. package/dist/chunks/{index-BY1gnMiZ.js → index-C0mIoumR.js} +2258 -2129
  14. package/dist/chunks/optionsFromZod-17lkrAJs.js +2565 -0
  15. package/dist/chunks/paletteRegistry-x7WOEKZY.js +1153 -0
  16. package/dist/chunks/scales-BRwl51k8.js +3047 -0
  17. package/dist/custom-elements.json +1 -1
  18. package/dist/extend.js +42 -42
  19. package/dist/graphty-catalog.json +1 -1
  20. package/dist/graphty.bundle.js +25816 -25456
  21. package/dist/graphty.js +29 -29
  22. package/dist/schema.js +1 -1
  23. package/dist/session.d.ts +1 -1
  24. package/dist/session.js +28 -29
  25. package/dist/src/Graph.d.ts +33 -3
  26. package/dist/src/algorithms/metrics/context.d.ts +7 -5
  27. package/dist/src/algorithms/results/types.d.ts +17 -1
  28. package/dist/src/camera/builtins.d.ts +14 -1
  29. package/dist/src/camera/types.d.ts +7 -0
  30. package/dist/src/cameras/CameraManager.d.ts +13 -0
  31. package/dist/src/cameras/OrbitCameraController.d.ts +9 -0
  32. package/dist/src/catalog/types.d.ts +10 -0
  33. package/dist/src/config/GraphStyle.d.ts +5 -1
  34. package/dist/src/config/StyleTemplate.d.ts +2 -2
  35. package/dist/src/graphty-element.d.ts +11 -6
  36. package/dist/src/managers/StylePainter.d.ts +9 -0
  37. package/dist/src/managers/UpdateManager.d.ts +5 -0
  38. package/dist/src/session/results/index.d.ts +1 -1
  39. package/dist/src/session/results/statistics.d.ts +8 -1
  40. package/dist/src/session/results/types.d.ts +33 -0
  41. package/dist/src/session/selection/targets.d.ts +4 -1
  42. package/dist/src/session/styles/predicate.d.ts +26 -1
  43. package/dist/src/session/styles/repaint.d.ts +11 -0
  44. package/dist/src/session/styles/selector.d.ts +13 -1
  45. package/dist/src/session/styles/sources.d.ts +9 -0
  46. package/package.json +1 -1
  47. package/dist/chunks/Algorithm-RQ629NLb.js +0 -494
  48. package/dist/chunks/cameras-ii4vngYY.js +0 -435
  49. package/dist/chunks/paletteRegistry-YSpPryiT.js +0 -3164
  50. package/dist/chunks/scales-DOpwlWuz.js +0 -6086
@@ -33,8 +33,11 @@ const l = o.strictObject({
33
33
  addDefaultStyle: o.boolean().default(!0),
34
34
  background: i.prefault({ backgroundType: "color", color: "whitesmoke" }),
35
35
  selection: t.optional(),
36
- startingCameraDistance: o.number().default(30),
37
- // TODO: replace with "zoomToFit: z.boolean()"
36
+ /**
37
+ * How far the camera starts from the graph, in scene units. Set, it places the camera and
38
+ * turns off the element's automatic zoom-to-fit; unset, the graph is framed to fit.
39
+ */
40
+ startingCameraDistance: o.number().optional(),
38
41
  layout: o.string().optional(),
39
42
  // No default - let Graph constructor set the default
40
43
  layoutOptions: o.looseObject({}).optional(),
@@ -1,4 +1,4 @@
1
- import { g as ke, h as up } from "./cameras-ii4vngYY.js";
1
+ import { i as ke, j as up } from "./algorithms-CpX56sUB.js";
2
2
  var ee = { exports: {} };
3
3
  var fp = ee.exports, oo;
4
4
  function op() {
@@ -1,5 +1,5 @@
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-BY1gnMiZ.js";
2
+ import { P as M } from "./index-C0mIoumR.js";
3
3
  import "@babylonjs/core/Culling/ray";
4
4
  import { G as x } from "./GraphtyLogger-5KEttFUo.js";
5
5
  function v(H, t = 0.15) {