@graphty/graphty-element 2.6.2 → 3.0.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 (163) hide show
  1. package/dist/ai.js +3 -3
  2. package/dist/catalog.js +53 -54
  3. package/dist/chunks/{AiManager-4iQpsJW1.js → AiManager-Bhh0rR_p.js} +706 -655
  4. package/dist/chunks/GraphSession-DPoTaT3b.js +21175 -0
  5. package/dist/chunks/{GraphtyLogger-B_O67a6c.js → GraphtyLogger-BtcBJQPL.js} +1 -1
  6. package/dist/chunks/{VoiceInputAdapter-Cc6mHXTI.js → VoiceInputAdapter-CdLsJ_nG.js} +1 -1
  7. package/dist/chunks/{XRPivotCameraController-BLa89LXn.js → XRPivotCameraController-CiLJ9Gz6.js} +2 -2
  8. package/dist/chunks/algorithms-qij74zEN.js +6811 -0
  9. package/dist/chunks/{capability-check-Am2zliFj.js → capability-check-BbgTejS3.js} +1 -1
  10. package/dist/chunks/definePalette-BYt2Llxs.js +1333 -0
  11. package/dist/chunks/fields-5uVC1Pll.js +4999 -0
  12. package/dist/chunks/{format-detection-BHwrAVzW.js → format-detection-FKaDMshR.js} +1 -1
  13. package/dist/chunks/{index-BkBLbvui.js → index-Cc_6D9hV.js} +6034 -7127
  14. package/dist/chunks/interpolation-Dk206AhZ.js +105 -0
  15. package/dist/chunks/paletteRegistry-De3CGdst.js +357 -0
  16. package/dist/chunks/parse-SVp77JbE.js +669 -0
  17. package/dist/chunks/{pluginRegistry-Bs8bEkz9.js → pluginRegistry-Ddfl6Mv2.js} +27 -24
  18. package/dist/chunks/{registry-BdGvyZou.js → registry-CgMqldp4.js} +1 -1
  19. package/dist/chunks/{DataSource-BL2UzPff.js → sources-BbAJCDIH.js} +279 -108
  20. package/dist/commands.d.ts +128 -19
  21. package/dist/commands.js +49 -1
  22. package/dist/custom-elements.json +1 -1
  23. package/dist/extend.d.ts +10 -2
  24. package/dist/extend.js +64 -57
  25. package/dist/graphty-catalog.json +6 -3
  26. package/dist/graphty.bundle.js +267177 -240648
  27. package/dist/graphty.js +84 -78
  28. package/dist/index.d.ts +4 -0
  29. package/dist/logging.js +2 -2
  30. package/dist/schema.js +70 -71
  31. package/dist/session.d.ts +5 -6
  32. package/dist/session.js +40 -86
  33. package/dist/src/Edge.d.ts +31 -67
  34. package/dist/src/Graph.d.ts +335 -77
  35. package/dist/src/Node.d.ts +36 -3
  36. package/dist/src/NodeBehavior.d.ts +28 -0
  37. package/dist/src/Styles.d.ts +15 -4
  38. package/dist/src/acceleration/AccelerationController.d.ts +8 -0
  39. package/dist/src/acceleration/narrow.d.ts +9 -1
  40. package/dist/src/acceleration/types.d.ts +10 -0
  41. package/dist/src/ai/AiController.d.ts +12 -0
  42. package/dist/src/ai/AiManager.d.ts +7 -0
  43. package/dist/src/ai/commands/AlgorithmCommands.d.ts +1 -1
  44. package/dist/src/ai/commands/LayoutCommands.d.ts +1 -1
  45. package/dist/src/ai/commands/StyleCommands.d.ts +1 -1
  46. package/dist/src/ai/commands/types.d.ts +20 -1
  47. package/dist/src/algorithms/Algorithm.d.ts +21 -4
  48. package/dist/src/algorithms/BFSAlgorithm.d.ts +0 -9
  49. package/dist/src/algorithms/BellmanFordAlgorithm.d.ts +0 -14
  50. package/dist/src/algorithms/DFSAlgorithm.d.ts +1 -1
  51. package/dist/src/algorithms/FloydWarshallAlgorithm.d.ts +5 -0
  52. package/dist/src/algorithms/GirvanNewmanAlgorithm.d.ts +5 -0
  53. package/dist/src/algorithms/LeidenAlgorithm.d.ts +5 -0
  54. package/dist/src/algorithms/PageRankAlgorithm.d.ts +1 -1
  55. package/dist/src/algorithms/StronglyConnectedComponentsAlgorithm.d.ts +1 -1
  56. package/dist/src/algorithms/metrics/fields.d.ts +23 -1
  57. package/dist/src/algorithms/utils/graphUtils.d.ts +13 -1
  58. package/dist/src/catalog/paletteRegistry.d.ts +4 -4
  59. package/dist/src/catalog/registry.d.ts +3 -2
  60. package/dist/src/catalog/types.d.ts +18 -1
  61. package/dist/src/config/GraphStyle.d.ts +1 -1
  62. package/dist/src/config/StyleTemplate.d.ts +2 -2
  63. package/dist/src/config/xr-config-schema.d.ts +4 -4
  64. package/dist/src/data/CSVDataSource.d.ts +77 -22
  65. package/dist/src/data/ErrorAggregator.d.ts +5 -0
  66. package/dist/src/data/GEXFDataSource.d.ts +12 -61
  67. package/dist/src/data/GraphMLDataSource.d.ts +3 -44
  68. package/dist/src/data/GraphStore.d.ts +322 -15
  69. package/dist/src/data/JsonDataSource.d.ts +43 -1
  70. package/dist/src/data/graph-io-import.d.ts +89 -0
  71. package/dist/src/data/graph-io-records.d.ts +64 -0
  72. package/dist/src/data/lane.d.ts +23 -0
  73. package/dist/src/data/positions.d.ts +13 -0
  74. package/dist/src/data/seedPosition.d.ts +16 -0
  75. package/dist/src/errors/GraphtyError.d.ts +3 -1
  76. package/dist/src/errors/codes.d.ts +23 -0
  77. package/dist/src/events.d.ts +12 -0
  78. package/dist/src/graphty-element.d.ts +149 -54
  79. package/dist/src/input/types.d.ts +2 -0
  80. package/dist/src/layout/D3GraphLayoutEngine.d.ts +17 -3
  81. package/dist/src/layout/FixedLayoutEngine.d.ts +20 -4
  82. package/dist/src/layout/KamadaKawaiLayoutEngine.d.ts +6 -0
  83. package/dist/src/layout/LayoutEngine.d.ts +214 -116
  84. package/dist/src/layout/NGraphLayoutEngine.d.ts +10 -3
  85. package/dist/src/layout/SimulationLayoutEngine.d.ts +8 -3
  86. package/dist/src/managers/AlgorithmManager.d.ts +24 -5
  87. package/dist/src/managers/DataManager.d.ts +258 -181
  88. package/dist/src/managers/EventManager.d.ts +5 -2
  89. package/dist/src/managers/GraphContext.d.ts +7 -0
  90. package/dist/src/managers/InputManager.d.ts +11 -0
  91. package/dist/src/managers/LayoutManager.d.ts +129 -50
  92. package/dist/src/managers/RenderManager.d.ts +14 -1
  93. package/dist/src/managers/UpdateManager.d.ts +20 -0
  94. package/dist/src/screenshot/ScreenshotCapture.d.ts +1 -1
  95. package/dist/src/session/GraphSession.d.ts +83 -6
  96. package/dist/src/session/commands/algo.d.ts +169 -0
  97. package/dist/src/session/commands/config.d.ts +45 -0
  98. package/dist/src/session/commands/data.d.ts +178 -0
  99. package/dist/src/session/commands/doors.d.ts +93 -0
  100. package/dist/src/session/commands/index.d.ts +20 -0
  101. package/dist/src/session/commands/layout.d.ts +104 -0
  102. package/dist/src/session/commands/positions.d.ts +30 -0
  103. package/dist/src/session/commands/sets.d.ts +113 -0
  104. package/dist/src/session/commands/style.d.ts +92 -0
  105. package/dist/src/session/commands/view.d.ts +57 -0
  106. package/dist/src/session/commands/visibility.d.ts +41 -0
  107. package/dist/src/session/data.d.ts +131 -4
  108. package/dist/src/session/index.d.ts +1 -1
  109. package/dist/src/session/planning.d.ts +25 -8
  110. package/dist/src/session/project/Dispatcher.d.ts +905 -0
  111. package/dist/src/session/project/History.d.ts +382 -0
  112. package/dist/src/session/project/arrangement.d.ts +247 -0
  113. package/dist/src/session/project/derive.d.ts +132 -0
  114. package/dist/src/session/project/digest.d.ts +33 -0
  115. package/dist/src/session/project/draft.d.ts +194 -0
  116. package/dist/src/session/project/graphOps.d.ts +304 -0
  117. package/dist/src/session/project/ingest.d.ts +364 -0
  118. package/dist/src/session/project/state.d.ts +145 -0
  119. package/dist/src/session/project/strict.d.ts +68 -0
  120. package/dist/src/session/results/RunResult.d.ts +48 -0
  121. package/dist/src/session/results/statistics.d.ts +20 -0
  122. package/dist/src/session/runs/Run.d.ts +80 -4
  123. package/dist/src/session/runs/RunsApi.d.ts +23 -6
  124. package/dist/src/session/runs/types.d.ts +25 -6
  125. package/dist/src/session/scope/ElementMask.d.ts +14 -0
  126. package/dist/src/session/scope/ScopeApi.d.ts +3 -22
  127. package/dist/src/session/scope/spaces.d.ts +29 -0
  128. package/dist/src/session/sealed.d.ts +22 -0
  129. package/dist/src/session/selection/SelectionApi.d.ts +14 -4
  130. package/dist/src/session/sets/SetsApi.d.ts +13 -5
  131. package/dist/src/session/sets/store.d.ts +54 -53
  132. package/dist/src/session/sets/types.d.ts +5 -2
  133. package/dist/src/session/styles/Layer.d.ts +5 -0
  134. package/dist/src/session/styles/StylesApi.d.ts +68 -17
  135. package/dist/src/session/styles/autoApply.d.ts +64 -53
  136. package/dist/src/session/styles/index.d.ts +3 -3
  137. package/dist/src/session/styles/predicate.d.ts +7 -0
  138. package/dist/src/session/styles/repaint.d.ts +16 -1
  139. package/dist/src/session/styles/sources.d.ts +1 -1
  140. package/dist/src/session/types.d.ts +625 -54
  141. package/dist/src/session/visibility/VisibilityApi.d.ts +38 -18
  142. package/dist/src/session/visibility/filter.d.ts +10 -0
  143. package/dist/src/simple/defineAlgorithm.d.ts +28 -0
  144. package/dist/src/simple/defineLayout.d.ts +35 -0
  145. package/dist/src/simple/defineLogDestination.d.ts +31 -0
  146. package/dist/src/simple/definePalette.d.ts +26 -0
  147. package/dist/src/simple/definition.d.ts +106 -0
  148. package/dist/src/simple/options.d.ts +33 -0
  149. package/dist/src/simple/source.d.ts +49 -0
  150. package/dist/src/simple/types.d.ts +366 -0
  151. package/dist/src/simple/view.d.ts +107 -0
  152. package/dist/webgpu.js +2 -2
  153. package/package.json +10 -12
  154. package/dist/chunks/GraphSession-BhuHSXIo.js +0 -12819
  155. package/dist/chunks/GraphStyle-Cwr55SAE.js +0 -65
  156. package/dist/chunks/algorithms-BJ6DQMOe.js +0 -3777
  157. package/dist/chunks/detect-fyuVnlCT.js +0 -88
  158. package/dist/chunks/interpolation-DY-PNpqX.js +0 -43
  159. package/dist/chunks/optionsFromZod-CKMYSwTz.js +0 -3636
  160. package/dist/chunks/paletteRegistry-BCFSwJGK.js +0 -1196
  161. package/dist/chunks/parse-BMTqt4SS.js +0 -3658
  162. package/dist/src/data/csv-variant-detection.d.ts +0 -29
  163. package/dist/src/data/ingest.d.ts +0 -104
package/dist/ai.js CHANGED
@@ -1,7 +1,7 @@
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";
1
+ import { f as d } from "./chunks/AiManager-Bhh0rR_p.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-Bhh0rR_p.js";
3
3
  import { A as O } from "./chunks/ApiKeyManager-C0ac91dE.js";
4
- import { V as Z } from "./chunks/VoiceInputAdapter-Cc6mHXTI.js";
4
+ import { V as Z } from "./chunks/VoiceInputAdapter-CdLsJ_nG.js";
5
5
  import { z as o } from "zod";
6
6
  const y = {
7
7
  name: "captureScreenshot",
package/dist/catalog.js CHANGED
@@ -1,10 +1,9 @@
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";
1
+ import { B as y, C as f, a as m, b as T, L as S, c as v, U as O, d as E, e as A, f as N, g as R, h as I, i as k, l as D, j as _, k as x } from "./chunks/algorithms-qij74zEN.js";
2
+ import { F as L, U as P, d as W, b as U, g as F, h as H } from "./chunks/paletteRegistry-De3CGdst.js";
3
+ import { L as M, l as j } from "./chunks/GraphtyLogger-BtcBJQPL.js";
4
+ import { P as Y, S as G, b as z, c as V, p as q, a as X, s as Z, d as $ } from "./chunks/parse-SVp77JbE.js";
5
+ import { A as Q, C as ee, D as te, f as ae, K as oe, a as ne, b as re, c as ie, d as se, g as he, O as le, R as de, h as ce, j as we, k as pe, i as ue, e as ge } from "./chunks/types-DFchv4Ny.js";
6
+ import { q as ye } from "./chunks/fields-5uVC1Pll.js";
8
7
  const d = Object.keys({
9
8
  enabled: 0,
10
9
  font: 0,
@@ -169,61 +168,61 @@ const w = [
169
168
  }
170
169
  ];
171
170
  export {
172
- ee as ATTRIBUTE_TYPES,
173
- f as BUILT_IN_ALGORITHMS,
174
- y as CAMERA_DESCRIPTORS,
171
+ Q as ATTRIBUTE_TYPES,
172
+ y as BUILT_IN_ALGORITHMS,
173
+ f as CAMERA_DESCRIPTORS,
175
174
  m as CHANNELS,
176
175
  T as CHANNEL_DESCRIPTORS,
177
- te as COST_CLASSES,
178
- ae as DEPRECATED_ALGORITHMS,
179
- x as FORMAT_DESCRIPTORS,
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,
176
+ ee as COST_CLASSES,
177
+ te as DEPRECATED_ALGORITHMS,
178
+ L as FORMAT_DESCRIPTORS,
179
+ ae as KNOWN_ALGORITHMS,
180
+ oe as KNOWN_CAMERA_IDS,
181
+ ne as KNOWN_FORMAT_IDS,
182
+ re as KNOWN_LAYOUT_IDS,
183
+ ie as KNOWN_LOG_SINK_IDS,
184
+ se as KNOWN_PALETTE_IDS,
186
185
  d as LABEL_STYLE_FIELDS,
187
- W as LAYOUT_CATALOG,
188
- U as LAYOUT_DESCRIPTORS,
189
- $ as LOG_SINK_DESCRIPTORS,
190
- le as OPTION_BOUND_SOURCES,
191
- de as OPTION_TYPES,
192
- F as PALETTE_DESCRIPTORS,
193
- ce as RESULT_SHAPES,
194
- H as SCALE_DESCRIPTORS,
186
+ S as LAYOUT_CATALOG,
187
+ v as LAYOUT_DESCRIPTORS,
188
+ M as LOG_SINK_DESCRIPTORS,
189
+ he as OPTION_BOUND_SOURCES,
190
+ le as OPTION_TYPES,
191
+ Y as PALETTE_DESCRIPTORS,
192
+ de as RESULT_SHAPES,
193
+ G as SCALE_DESCRIPTORS,
195
194
  p as UNPAINTED_CHANNELS,
196
195
  w as UNREACHABLE_STYLE_FIELDS,
197
- _ as UNSERVED_FORMAT_IDS,
198
- B as UNSERVED_LAYOUT_IDS,
196
+ P as UNSERVED_FORMAT_IDS,
197
+ O as UNSERVED_LAYOUT_IDS,
199
198
  l as WAIVER_EXPIRY_UNSET,
200
199
  c as WAIVER_HORIZON_DAYS,
201
200
  h as WAIVER_OWNER_UNASSIGNED,
202
201
  u as WITHDRAWN_CAPABILITIES,
203
- S as algorithmByKey,
204
- v as algorithmByLegacyKey,
205
- O as cameraDescriptor,
206
- E as camerasForMode,
207
- A as channelDescriptor,
208
- N as channelsFor,
209
- I as detectFormat,
210
- D as detectFormats,
211
- C as formatDescriptor,
212
- L as formatsForExtension,
213
- we as isAttributeType,
214
- pe as isCostClass,
215
- ue as isOptionBound,
216
- ge as isOptionType,
217
- be as isResultShape,
218
- M as layoutDescriptor,
219
- j as layoutEntry,
220
- K as layoutIdForEngine,
221
- J as logSinkDescriptor,
202
+ E as algorithmByKey,
203
+ A as algorithmByLegacyKey,
204
+ N as cameraDescriptor,
205
+ R as camerasForMode,
206
+ I as channelDescriptor,
207
+ k as channelsFor,
208
+ W as detectFormat,
209
+ U as detectFormats,
210
+ F as formatDescriptor,
211
+ H as formatsForExtension,
212
+ ce as isAttributeType,
213
+ we as isCostClass,
214
+ pe as isOptionBound,
215
+ ue as isOptionType,
216
+ ge as isResultShape,
217
+ D as layoutDescriptor,
218
+ _ as layoutEntry,
219
+ x as layoutIdForEngine,
220
+ j as logSinkDescriptor,
222
221
  ye as optionsFromZod,
223
- Y as paletteDescriptor,
224
- G as palettesOfKind,
225
- z as parseScope,
226
- V as parseSetDefinition,
227
- q as scaleDescriptor,
228
- X as scalesForDomain
222
+ z as paletteDescriptor,
223
+ V as palettesOfKind,
224
+ q as parseScope,
225
+ X as parseSetDefinition,
226
+ Z as scaleDescriptor,
227
+ $ as scalesForDomain
229
228
  };