@graphty/graphty-element 2.5.2 → 2.6.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 (135) hide show
  1. package/dist/ai.js +3 -3
  2. package/dist/catalog.d.ts +16 -0
  3. package/dist/catalog.js +34 -32
  4. package/dist/chunks/{AiManager-CrbvKdEK.js → AiManager-4iQpsJW1.js} +4 -4
  5. package/dist/chunks/{DataSource-qU-nLhXN.js → DataSource-BL2UzPff.js} +2 -2
  6. package/dist/chunks/GraphSession-BhuHSXIo.js +12819 -0
  7. package/dist/chunks/{GraphtyLogger-DOTwCiMR.js → GraphtyLogger-B_O67a6c.js} +1 -1
  8. package/dist/chunks/{VoiceInputAdapter-D4NrRL_1.js → VoiceInputAdapter-Cc6mHXTI.js} +1 -1
  9. package/dist/chunks/{XRPivotCameraController-Uqa47vmo.js → XRPivotCameraController-BLa89LXn.js} +2 -2
  10. package/dist/chunks/{algorithms-D-ab-Auu.js → algorithms-BJ6DQMOe.js} +931 -781
  11. package/dist/chunks/{capability-check-Vw3IcqiE.js → capability-check-Am2zliFj.js} +1 -1
  12. package/dist/chunks/{detect-B4Qrw976.js → detect-fyuVnlCT.js} +1 -1
  13. package/dist/chunks/{format-detection-r2IfNFXO.js → format-detection-BHwrAVzW.js} +1 -1
  14. package/dist/chunks/{index-J9MgLio9.js → index-BkBLbvui.js} +2691 -2434
  15. package/dist/chunks/optionsFromZod-CKMYSwTz.js +3636 -0
  16. package/dist/chunks/{paletteRegistry-Kt-6CeoN.js → paletteRegistry-BCFSwJGK.js} +224 -189
  17. package/dist/chunks/parse-BMTqt4SS.js +3658 -0
  18. package/dist/chunks/{types-C_c53VgR.js → types-DFchv4Ny.js} +4 -1
  19. package/dist/custom-elements.json +1 -1
  20. package/dist/extend.d.ts +10 -8
  21. package/dist/extend.js +6 -6
  22. package/dist/graphty-catalog.json +75 -38
  23. package/dist/graphty.bundle.js +55368 -48970
  24. package/dist/graphty.js +19 -19
  25. package/dist/index.d.ts +1 -1
  26. package/dist/logging.js +2 -2
  27. package/dist/schema.d.ts +15 -1
  28. package/dist/schema.js +1 -1
  29. package/dist/session.d.ts +30 -7
  30. package/dist/session.js +40 -37
  31. package/dist/src/Graph.d.ts +35 -7
  32. package/dist/src/acceleration/types.d.ts +79 -43
  33. package/dist/src/algorithms/Algorithm.d.ts +52 -4
  34. package/dist/src/algorithms/BFSAlgorithm.d.ts +3 -0
  35. package/dist/src/algorithms/BellmanFordAlgorithm.d.ts +3 -0
  36. package/dist/src/algorithms/BetweennessCentralityAlgorithm.d.ts +3 -0
  37. package/dist/src/algorithms/BipartiteMatchingAlgorithm.d.ts +3 -0
  38. package/dist/src/algorithms/ClosenessCentralityAlgorithm.d.ts +3 -0
  39. package/dist/src/algorithms/ConnectedComponentsAlgorithm.d.ts +4 -1
  40. package/dist/src/algorithms/DFSAlgorithm.d.ts +3 -0
  41. package/dist/src/algorithms/DegreeAlgorithm.d.ts +3 -0
  42. package/dist/src/algorithms/DijkstraAlgorithm.d.ts +6 -0
  43. package/dist/src/algorithms/EigenvectorCentralityAlgorithm.d.ts +2 -0
  44. package/dist/src/algorithms/FloydWarshallAlgorithm.d.ts +3 -0
  45. package/dist/src/algorithms/GirvanNewmanAlgorithm.d.ts +3 -0
  46. package/dist/src/algorithms/HITSAlgorithm.d.ts +3 -0
  47. package/dist/src/algorithms/KCoreAlgorithm.d.ts +3 -0
  48. package/dist/src/algorithms/KatzCentralityAlgorithm.d.ts +3 -0
  49. package/dist/src/algorithms/KruskalAlgorithm.d.ts +4 -1
  50. package/dist/src/algorithms/LabelPropagationAlgorithm.d.ts +3 -0
  51. package/dist/src/algorithms/LeidenAlgorithm.d.ts +3 -0
  52. package/dist/src/algorithms/LinkPredictionAlgorithm.d.ts +4 -1
  53. package/dist/src/algorithms/LouvainAlgorithm.d.ts +3 -0
  54. package/dist/src/algorithms/MaxFlowAlgorithm.d.ts +3 -0
  55. package/dist/src/algorithms/MinCutAlgorithm.d.ts +3 -0
  56. package/dist/src/algorithms/PageRankAlgorithm.d.ts +3 -0
  57. package/dist/src/algorithms/PrimAlgorithm.d.ts +3 -0
  58. package/dist/src/algorithms/StronglyConnectedComponentsAlgorithm.d.ts +3 -0
  59. package/dist/src/algorithms/input/ScopedInput.d.ts +185 -0
  60. package/dist/src/algorithms/input/derivedInputs.d.ts +199 -0
  61. package/dist/src/algorithms/input/maskBack.d.ts +37 -0
  62. package/dist/src/algorithms/metrics/MetricAlgorithm.d.ts +3 -3
  63. package/dist/src/algorithms/results/DeclaredAlgorithm.d.ts +4 -3
  64. package/dist/src/algorithms/results/types.d.ts +28 -6
  65. package/dist/src/algorithms/utils/communityUtils.d.ts +0 -48
  66. package/dist/src/algorithms/utils/graphUtils.d.ts +2 -68
  67. package/dist/src/algorithms/utils/snapshotGraph.d.ts +3 -1
  68. package/dist/src/catalog/algorithms.d.ts +3 -0
  69. package/dist/src/catalog/layouts.d.ts +2 -0
  70. package/dist/src/catalog/sets/canonical.d.ts +68 -0
  71. package/dist/src/catalog/sets/hash.d.ts +126 -0
  72. package/dist/src/catalog/sets/parse.d.ts +115 -0
  73. package/dist/src/catalog/types.d.ts +329 -8
  74. package/dist/src/data/GraphStore.d.ts +73 -1
  75. package/dist/src/data/edgeIdentity.d.ts +202 -1
  76. package/dist/src/data/ingest.d.ts +3 -1
  77. package/dist/src/data/report.d.ts +20 -0
  78. package/dist/src/graphty-element.d.ts +42 -6
  79. package/dist/src/layout/D3GraphLayoutEngine.d.ts +11 -0
  80. package/dist/src/layout/LayoutEngine.d.ts +56 -0
  81. package/dist/src/layout/NGraphLayoutEngine.d.ts +10 -0
  82. package/dist/src/layout/SimulationLayoutEngine.d.ts +11 -0
  83. package/dist/src/managers/AlgorithmManager.d.ts +8 -0
  84. package/dist/src/managers/DataManager.d.ts +11 -0
  85. package/dist/src/managers/LayoutManager.d.ts +126 -2
  86. package/dist/src/managers/StatsManager.d.ts +1 -0
  87. package/dist/src/session/GraphSession.d.ts +48 -0
  88. package/dist/src/session/attributes.d.ts +121 -1
  89. package/dist/src/session/cost/estimate.d.ts +20 -0
  90. package/dist/src/session/cost/index.d.ts +1 -1
  91. package/dist/src/session/planning.d.ts +32 -2
  92. package/dist/src/session/query.d.ts +7 -0
  93. package/dist/src/session/results/ResultsApi.d.ts +14 -1
  94. package/dist/src/session/runs/Run.d.ts +65 -4
  95. package/dist/src/session/runs/RunsApi.d.ts +58 -2
  96. package/dist/src/session/runs/runId.d.ts +55 -6
  97. package/dist/src/session/runs/types.d.ts +36 -8
  98. package/dist/src/session/scope/ElementMask.d.ts +14 -1
  99. package/dist/src/session/scope/ScopeApi.d.ts +160 -31
  100. package/dist/src/session/scope/index.d.ts +1 -1
  101. package/dist/src/session/selection/SelectionApi.d.ts +15 -10
  102. package/dist/src/session/selection/index.d.ts +1 -1
  103. package/dist/src/session/selection/targets.d.ts +6 -7
  104. package/dist/src/session/sets/SetsApi.d.ts +110 -0
  105. package/dist/src/session/sets/algebra.d.ts +124 -0
  106. package/dist/src/session/sets/cache.d.ts +197 -0
  107. package/dist/src/session/sets/captures.d.ts +83 -0
  108. package/dist/src/session/sets/dependencies.d.ts +167 -0
  109. package/dist/src/session/sets/layers.d.ts +101 -0
  110. package/dist/src/session/sets/notify.d.ts +122 -0
  111. package/dist/src/session/sets/offers.d.ts +103 -0
  112. package/dist/src/session/sets/path.d.ts +37 -0
  113. package/dist/src/session/sets/prepare.d.ts +209 -0
  114. package/dist/src/session/sets/resolve.d.ts +311 -0
  115. package/dist/src/session/sets/signature.d.ts +77 -0
  116. package/dist/src/session/sets/status.d.ts +98 -0
  117. package/dist/src/session/sets/store.d.ts +196 -0
  118. package/dist/src/session/sets/types.d.ts +386 -0
  119. package/dist/src/session/styles/Layer.d.ts +9 -2
  120. package/dist/src/session/styles/StylesApi.d.ts +5 -2
  121. package/dist/src/session/styles/explain.d.ts +5 -2
  122. package/dist/src/session/styles/predicate.d.ts +41 -2
  123. package/dist/src/session/styles/repaint.d.ts +19 -0
  124. package/dist/src/session/styles/selector.d.ts +16 -5
  125. package/dist/src/session/types.d.ts +18 -0
  126. package/dist/src/session/visibility/VisibilityApi.d.ts +47 -3
  127. package/dist/src/session/visibility/filter.d.ts +86 -51
  128. package/dist/src/session/visibility/index.d.ts +1 -1
  129. package/dist/src/testing/fakeAccelerator.d.ts +5 -0
  130. package/dist/src/utils/queue-migration.d.ts +17 -0
  131. package/package.json +15 -9
  132. package/dist/chunks/GraphSession-DuAhRgCd.js +0 -8622
  133. package/dist/chunks/optionsFromZod-B9RncoTX.js +0 -2578
  134. package/dist/chunks/scales-CJCRwi2J.js +0 -3220
  135. package/dist/src/algorithms/utils/index.d.ts +0 -6
package/dist/ai.js CHANGED
@@ -1,7 +1,7 @@
1
- import { f as d } from "./chunks/AiManager-CrbvKdEK.js";
2
- import { A as C, a as P, b as I, C as L, M as $, S as D, c as R, V as k, d as M, e as V, g as q, h as z, i as E, j as G, k as W, l as j, m as N, n as T, q as U, r as _, s as B, o as F, p as J, t as Y, u as H, z as Q } from "./chunks/AiManager-CrbvKdEK.js";
1
+ import { f as d } from "./chunks/AiManager-4iQpsJW1.js";
2
+ import { A as C, a as P, b as I, C as L, M as $, S as D, c as R, V as k, d as M, e as V, g as q, h as z, i as E, j as G, k as W, l as j, m as N, n as T, q as U, r as _, s as B, o as F, p as J, t as Y, u as H, z as Q } from "./chunks/AiManager-4iQpsJW1.js";
3
3
  import { A as O } from "./chunks/ApiKeyManager-C0ac91dE.js";
4
- import { V as Z } from "./chunks/VoiceInputAdapter-D4NrRL_1.js";
4
+ import { V as Z } from "./chunks/VoiceInputAdapter-Cc6mHXTI.js";
5
5
  import { z as o } from "zod";
6
6
  const y = {
7
7
  name: "captureScreenshot",
package/dist/catalog.d.ts CHANGED
@@ -25,6 +25,7 @@
25
25
  * Node-safety is enforced by a test: `test/packaging/node-safe-entries.test.ts` resolves this
26
26
  * module's import graph and fails if Babylon.js, Lit or a DOM global appears in it.
27
27
  */
28
+ import type { RuleTree, SelectionDirection } from "./src/catalog/types";
28
29
  export * from "./src/catalog/index";
29
30
  export type { BuiltInAlgorithmDescriptor, LegacyAlgorithmKey, LegacyAlgorithmMapping } from "./src/catalog/algorithms";
30
31
  export { algorithmByKey, algorithmByLegacyKey, BUILT_IN_ALGORITHMS } from "./src/catalog/algorithms";
@@ -40,3 +41,18 @@ export { PALETTE_DESCRIPTORS, paletteDescriptor, palettesOfKind } from "./src/ca
40
41
  export { SCALE_DESCRIPTORS, scaleDescriptor, scalesForDomain } from "./src/catalog/scales";
41
42
  export type { ChannelDescriptor, ChannelValueKind } from "./src/session/styles/channels";
42
43
  export { CHANNEL_DESCRIPTORS, channelDescriptor, CHANNELS, channelsFor } from "./src/session/styles/channels";
44
+ export { parseScope, parseSetDefinition } from "./src/catalog/sets/parse";
45
+ export type { EdgeMember, EdgeReading, EdgeRef, ItemKey, PathKind, ResultId, ResultItem, RuleTree, Scope, ScopeId, ScopeInput, SelectionDirection, SetCombine, SetCreatedFrom, SetDefinition, SetDefinitionInput, SetId, SetOperand, } from "./src/catalog/types";
46
+ /**
47
+ * A rule tree: what the visibility filter keeps.
48
+ * @deprecated Use {@link RuleTree}, the same type under the name the rule grammar uses: a rule
49
+ * tree is also what a rule set holds, not only what the visibility filter keeps. Removed in the
50
+ * major version that ships the project file.
51
+ */
52
+ export type Filter = RuleTree;
53
+ /**
54
+ * Which arcs a degree filter counts.
55
+ * @deprecated Use {@link SelectionDirection}, the same type under the name the rule grammar uses.
56
+ * Removed in the major version that ships the project file.
57
+ */
58
+ export type FilterDirection = SelectionDirection;
package/dist/catalog.js CHANGED
@@ -1,10 +1,10 @@
1
- import { B as y, C as f, a as m, b as T, c as S, d as v, e as O, f as E, g as A, h as N } from "./chunks/algorithms-D-ab-Auu.js";
2
- import { d as I, a as k } from "./chunks/detect-B4Qrw976.js";
3
- import { F as x, U as _, i as C, j as L } from "./chunks/paletteRegistry-Kt-6CeoN.js";
4
- import { a as W, L as U, P as F, S as H, U as B, l as M, b as j, c as K, p as Y, d as G, s as z, e as V } from "./chunks/scales-CJCRwi2J.js";
5
- import { L as X, l as Z } from "./chunks/GraphtyLogger-DOTwCiMR.js";
6
- import { A as J, C as Q, D as ee, f as te, K as ae, a as oe, b as ne, c as re, d as ie, g as se, O as he, R as le, h as de, j as ce, k as we, i as pe, e as ue } from "./chunks/types-C_c53VgR.js";
7
- import { o as be } from "./chunks/optionsFromZod-B9RncoTX.js";
1
+ import { B as f, C as y, a as m, b as T, c as S, d as v, e as O, f as E, g as A, h as N } from "./chunks/algorithms-BJ6DQMOe.js";
2
+ import { d as I, a as D } from "./chunks/detect-fyuVnlCT.js";
3
+ import { F as x, U as _, i as C, j as L } from "./chunks/paletteRegistry-BCFSwJGK.js";
4
+ import { b as W, L as U, P as F, S as H, U as B, l as M, c as j, d as K, e as Y, f as G, p as z, a as V, s as q, g as X } from "./chunks/parse-BMTqt4SS.js";
5
+ import { L as $, l as J } from "./chunks/GraphtyLogger-B_O67a6c.js";
6
+ import { A as ee, C as te, D as ae, f as oe, K as ne, a as re, b as ie, c as se, d as he, g as le, O as de, R as ce, h as we, j as pe, k as ue, i as ge, e as be } from "./chunks/types-DFchv4Ny.js";
7
+ import { o as ye } from "./chunks/optionsFromZod-CKMYSwTz.js";
8
8
  const d = Object.keys({
9
9
  enabled: 0,
10
10
  font: 0,
@@ -169,28 +169,28 @@ const w = [
169
169
  }
170
170
  ];
171
171
  export {
172
- J as ATTRIBUTE_TYPES,
173
- y as BUILT_IN_ALGORITHMS,
174
- f as CAMERA_DESCRIPTORS,
172
+ ee as ATTRIBUTE_TYPES,
173
+ f as BUILT_IN_ALGORITHMS,
174
+ y as CAMERA_DESCRIPTORS,
175
175
  m as CHANNELS,
176
176
  T as CHANNEL_DESCRIPTORS,
177
- Q as COST_CLASSES,
178
- ee as DEPRECATED_ALGORITHMS,
177
+ te as COST_CLASSES,
178
+ ae as DEPRECATED_ALGORITHMS,
179
179
  x as FORMAT_DESCRIPTORS,
180
- te as KNOWN_ALGORITHMS,
181
- ae as KNOWN_CAMERA_IDS,
182
- oe as KNOWN_FORMAT_IDS,
183
- ne as KNOWN_LAYOUT_IDS,
184
- re as KNOWN_LOG_SINK_IDS,
185
- ie as KNOWN_PALETTE_IDS,
180
+ oe as KNOWN_ALGORITHMS,
181
+ ne as KNOWN_CAMERA_IDS,
182
+ re as KNOWN_FORMAT_IDS,
183
+ ie as KNOWN_LAYOUT_IDS,
184
+ se as KNOWN_LOG_SINK_IDS,
185
+ he as KNOWN_PALETTE_IDS,
186
186
  d as LABEL_STYLE_FIELDS,
187
187
  W as LAYOUT_CATALOG,
188
188
  U as LAYOUT_DESCRIPTORS,
189
- X as LOG_SINK_DESCRIPTORS,
190
- se as OPTION_BOUND_SOURCES,
191
- he as OPTION_TYPES,
189
+ $ as LOG_SINK_DESCRIPTORS,
190
+ le as OPTION_BOUND_SOURCES,
191
+ de as OPTION_TYPES,
192
192
  F as PALETTE_DESCRIPTORS,
193
- le as RESULT_SHAPES,
193
+ ce as RESULT_SHAPES,
194
194
  H as SCALE_DESCRIPTORS,
195
195
  p as UNPAINTED_CHANNELS,
196
196
  w as UNREACHABLE_STYLE_FIELDS,
@@ -207,21 +207,23 @@ export {
207
207
  A as channelDescriptor,
208
208
  N as channelsFor,
209
209
  I as detectFormat,
210
- k as detectFormats,
210
+ D as detectFormats,
211
211
  C as formatDescriptor,
212
212
  L as formatsForExtension,
213
- de as isAttributeType,
214
- ce as isCostClass,
215
- we as isOptionBound,
216
- pe as isOptionType,
217
- ue as isResultShape,
213
+ we as isAttributeType,
214
+ pe as isCostClass,
215
+ ue as isOptionBound,
216
+ ge as isOptionType,
217
+ be as isResultShape,
218
218
  M as layoutDescriptor,
219
219
  j as layoutEntry,
220
220
  K as layoutIdForEngine,
221
- Z as logSinkDescriptor,
222
- be as optionsFromZod,
221
+ J as logSinkDescriptor,
222
+ ye as optionsFromZod,
223
223
  Y as paletteDescriptor,
224
224
  G as palettesOfKind,
225
- z as scaleDescriptor,
226
- V as scalesForDomain
225
+ z as parseScope,
226
+ V as parseSetDefinition,
227
+ q as scaleDescriptor,
228
+ X as scalesForDomain
227
229
  };
@@ -1,8 +1,8 @@
1
- import { l as Y } from "./VoiceInputAdapter-D4NrRL_1.js";
2
- import { G as J } from "./GraphtyLogger-DOTwCiMR.js";
1
+ import { l as Y } from "./VoiceInputAdapter-Cc6mHXTI.js";
2
+ import { G as J } from "./GraphtyLogger-B_O67a6c.js";
3
3
  import { z as c } from "zod";
4
- import { k as Q, A as x, B as P } from "./optionsFromZod-B9RncoTX.js";
5
- import { N as ee, e as te, C as se, d as re } from "./algorithms-D-ab-Auu.js";
4
+ import { k as Q, A as x, B as P } from "./optionsFromZod-CKMYSwTz.js";
5
+ import { N as ee, e as te, C as se, d as re } from "./algorithms-BJ6DQMOe.js";
6
6
  import ae from "jmespath";
7
7
  import { inferSchema as A } from "@jsonhero/schema-infer";
8
8
  import { i as oe } from "./pluginRegistry-Bs8bEkz9.js";
@@ -1,7 +1,7 @@
1
1
  import { z as y } from "zod/v4";
2
2
  import * as w from "zod/v4/core";
3
- import { F as $, p as E } from "./paletteRegistry-Kt-6CeoN.js";
4
- import { b as F } from "./GraphtyLogger-DOTwCiMR.js";
3
+ import { F as $, p as E } from "./paletteRegistry-BCFSwJGK.js";
4
+ import { b as F } from "./GraphtyLogger-B_O67a6c.js";
5
5
  import { G as g, S as C } from "./pluginRegistry-Bs8bEkz9.js";
6
6
  class S {
7
7
  /**