@graphty/graphty-element 2.3.1 → 2.4.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 (69) hide show
  1. package/AGENTS.md +4 -3
  2. package/dist/ai.js +3 -3
  3. package/dist/catalog.js +28 -27
  4. package/dist/chunks/{AiManager-BBmGJbH4.js → AiManager-BD9XK30e.js} +5 -5
  5. package/dist/chunks/{DataSource-OeN3NeyD.js → DataSource-B8vf2uhW.js} +3 -3
  6. package/dist/chunks/{GraphSession-Bef1AYw9.js → GraphSession-dcwOjGJh.js} +2821 -2743
  7. package/dist/chunks/{GraphtyError-BwcnblTH.js → GraphtyError-B93WRH3e.js} +8 -6
  8. package/dist/chunks/{GraphtyLogger-5KEttFUo.js → GraphtyLogger-CqOVV13Y.js} +2 -2
  9. package/dist/chunks/{NodeStyle-DKj7HjMJ.js → NodeStyle-CtmA7dXi.js} +16 -14
  10. package/dist/chunks/{VoiceInputAdapter-Dr9Gcmds.js → VoiceInputAdapter-D0tHHi9G.js} +1 -1
  11. package/dist/chunks/{XRPivotCameraController-BbfgZWpS.js → XRPivotCameraController-DTfhvhHz.js} +2 -2
  12. package/dist/chunks/{algorithms-CpX56sUB.js → algorithms-BF0X6RPw.js} +780 -635
  13. package/dist/chunks/{capability-check-Blhb2aBB.js → capability-check-BJzlK4oL.js} +1 -1
  14. package/dist/chunks/{detect-Cqwshr9a.js → detect-vJxK7n0D.js} +2 -2
  15. package/dist/chunks/{format-detection-BXGO1lSn.js → format-detection-C80TLQ2e.js} +1 -1
  16. package/dist/chunks/{index-C0mIoumR.js → index-2xkq7wyD.js} +2623 -2241
  17. package/dist/chunks/{optionsFromZod-17lkrAJs.js → optionsFromZod-BuTOFgVM.js} +146 -139
  18. package/dist/chunks/{paletteRegistry-x7WOEKZY.js → paletteRegistry-A63C71Gn.js} +8 -6
  19. package/dist/chunks/{registry-CSba5QGJ.js → registry-jB46Gmeb.js} +1 -1
  20. package/dist/chunks/{scales-BRwl51k8.js → scales-B2d-7Bf0.js} +572 -399
  21. package/dist/chunks/{types-B7bX5c0K.js → types-C_c53VgR.js} +31 -26
  22. package/dist/commands.d.ts +4 -0
  23. package/dist/custom-elements.json +1 -1
  24. package/dist/extend.js +8 -8
  25. package/dist/graphty-catalog.json +245 -12
  26. package/dist/graphty.bundle.js +37836 -36835
  27. package/dist/graphty.js +11 -11
  28. package/dist/logging.js +2 -2
  29. package/dist/schema.d.ts +1 -1
  30. package/dist/schema.js +42 -40
  31. package/dist/session.js +6 -6
  32. package/dist/src/Graph.d.ts +79 -7
  33. package/dist/src/acceleration/AccelerationController.d.ts +14 -3
  34. package/dist/src/acceleration/types.d.ts +78 -0
  35. package/dist/src/algorithms/KCoreAlgorithm.d.ts +26 -0
  36. package/dist/src/algorithms/LinkPredictionAlgorithm.d.ts +41 -0
  37. package/dist/src/catalog/algorithms.d.ts +5 -5
  38. package/dist/src/catalog/index.d.ts +2 -2
  39. package/dist/src/catalog/layouts.d.ts +7 -6
  40. package/dist/src/catalog/types.d.ts +77 -6
  41. package/dist/src/config/EdgeStyle.d.ts +35 -0
  42. package/dist/src/config/index.d.ts +1 -1
  43. package/dist/src/data/GEXFDataSource.d.ts +23 -0
  44. package/dist/src/errors/codes.d.ts +14 -0
  45. package/dist/src/events.d.ts +30 -0
  46. package/dist/src/graphty-element.d.ts +66 -26
  47. package/dist/src/layout/GridLayoutEngine.d.ts +37 -0
  48. package/dist/src/layout/LayoutEngine.d.ts +7 -7
  49. package/dist/src/layout/NGraphLayoutEngine.d.ts +2 -0
  50. package/dist/src/layout/RadialLayoutEngine.d.ts +37 -0
  51. package/dist/src/layout/SimulationLayoutEngine.d.ts +12 -0
  52. package/dist/src/managers/DataManager.d.ts +69 -2
  53. package/dist/src/managers/EventManager.d.ts +10 -4
  54. package/dist/src/managers/GraphContext.d.ts +2 -1
  55. package/dist/src/managers/LayoutManager.d.ts +30 -3
  56. package/dist/src/meshes/MeshCache.d.ts +18 -0
  57. package/dist/src/meshes/NodeEffects.d.ts +16 -11
  58. package/dist/src/meshes/NodeMesh.d.ts +2 -2
  59. package/dist/src/meshes/RichTextParser.d.ts +26 -0
  60. package/dist/src/meshes/RichTextRenderer.d.ts +0 -1
  61. package/dist/src/session/cost/estimate.d.ts +1 -1
  62. package/dist/src/session/layout.d.ts +3 -3
  63. package/dist/src/session/runs/RunsApi.d.ts +1 -1
  64. package/dist/src/session/styles/StylesApi.d.ts +6 -0
  65. package/dist/src/session/styles/intern.d.ts +26 -5
  66. package/dist/src/session/styles/repaint.d.ts +2 -1
  67. package/dist/src/session/types.d.ts +6 -6
  68. package/dist/webgpu.js +2 -2
  69. package/package.json +6 -6
@@ -1,8 +1,8 @@
1
- import { q as b, G as F } from "./GraphtyLogger-5KEttFUo.js";
2
- import { a as T, b as D, d as k } from "./types-B7bX5c0K.js";
1
+ import { q as b, G as F } from "./GraphtyLogger-CqOVV13Y.js";
2
+ import { a as T, b as D, d as k } from "./types-C_c53VgR.js";
3
3
  import { remapArray as S, INVALID_INDEX as N } from "@graphty/graph-format";
4
4
  import { z as O } from "zod/v4";
5
- import { G as g } from "./GraphtyError-BwcnblTH.js";
5
+ import { G as g } from "./GraphtyError-B93WRH3e.js";
6
6
  import { c as v } from "./common-DWNKjpH_.js";
7
7
  const f = b({
8
8
  kind: "format",
@@ -453,10 +453,12 @@ const l = /* @__PURE__ */ new Map(), C = Object.freeze([
453
453
  "d3",
454
454
  "fixed",
455
455
  "forceatlas2",
456
+ "grid",
456
457
  "kamada-kawai",
457
458
  "multipartite",
458
459
  "ngraph",
459
460
  "planar",
461
+ "radial",
460
462
  "random",
461
463
  "shell",
462
464
  "spectral",
@@ -500,7 +502,7 @@ const E = class E {
500
502
  * Take a node out of the layout, before the element disposes the mesh that drew it.
501
503
  *
502
504
  * Declared here, with a default that does nothing, because it used to be duck-typed by the
503
- * element's data manager and implemented by none of the seventeen engines that ship here: an
505
+ * element's data manager and implemented by none of the nineteen engines that ship here: an
504
506
  * author learned it existed by reading the element's source, and got no worked example. An
505
507
  * engine that keeps its own node list must override this, or it holds every removed node --
506
508
  * and everything that node references -- for as long as the engine lives.
@@ -615,7 +617,7 @@ const E = class E {
615
617
  * freeze counts as placed, which is what makes a file's own coordinates yield to it.
616
618
  *
617
619
  * A PINNED ROW REFUSES A LAYOUT STEP. This is the whole of "a pin is meaningful under every
618
- * arrangement": twelve of the element's seventeen engines implement `pin()` as a no-op and
620
+ * arrangement": fourteen of the element's nineteen engines implement `pin()` as a no-op and
619
621
  * `setNodePosition` as a no-op too, so before this guard a reader who dragged a node under a
620
622
  * static layout watched it snap back the next time the layout recomputed. One refusal here
621
623
  * covers every engine, including one written by a third party that has never heard of pinning,
@@ -744,7 +746,7 @@ const E = class E {
744
746
  * offered by a picker, described in a reader's language, or found by `layoutIdForEngine`.
745
747
  *
746
748
  * A third party's class must declare a `static descriptor` whose `id` equals its
747
- * `static type`. The element's own seventeen are the one exemption, because their arrangements
749
+ * `static type`. The element's own nineteen are the one exemption, because their arrangements
748
750
  * are authored centrally in the layout catalogue where several engines may sit behind one
749
751
  * public name.
750
752
  * @param cls - The layout engine class.
@@ -1,4 +1,4 @@
1
- import { G as a } from "./GraphtyError-BwcnblTH.js";
1
+ import { G as a } from "./GraphtyError-B93WRH3e.js";
2
2
  class n {
3
3
  #e = /* @__PURE__ */ new Map();
4
4
  #t = /* @__PURE__ */ new Set();