@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.
- package/AGENTS.md +4 -3
- package/dist/ai.js +3 -3
- package/dist/catalog.js +28 -27
- package/dist/chunks/{AiManager-BBmGJbH4.js → AiManager-BD9XK30e.js} +5 -5
- package/dist/chunks/{DataSource-OeN3NeyD.js → DataSource-B8vf2uhW.js} +3 -3
- package/dist/chunks/{GraphSession-Bef1AYw9.js → GraphSession-dcwOjGJh.js} +2821 -2743
- package/dist/chunks/{GraphtyError-BwcnblTH.js → GraphtyError-B93WRH3e.js} +8 -6
- package/dist/chunks/{GraphtyLogger-5KEttFUo.js → GraphtyLogger-CqOVV13Y.js} +2 -2
- package/dist/chunks/{NodeStyle-DKj7HjMJ.js → NodeStyle-CtmA7dXi.js} +16 -14
- package/dist/chunks/{VoiceInputAdapter-Dr9Gcmds.js → VoiceInputAdapter-D0tHHi9G.js} +1 -1
- package/dist/chunks/{XRPivotCameraController-BbfgZWpS.js → XRPivotCameraController-DTfhvhHz.js} +2 -2
- package/dist/chunks/{algorithms-CpX56sUB.js → algorithms-BF0X6RPw.js} +780 -635
- package/dist/chunks/{capability-check-Blhb2aBB.js → capability-check-BJzlK4oL.js} +1 -1
- package/dist/chunks/{detect-Cqwshr9a.js → detect-vJxK7n0D.js} +2 -2
- package/dist/chunks/{format-detection-BXGO1lSn.js → format-detection-C80TLQ2e.js} +1 -1
- package/dist/chunks/{index-C0mIoumR.js → index-2xkq7wyD.js} +2623 -2241
- package/dist/chunks/{optionsFromZod-17lkrAJs.js → optionsFromZod-BuTOFgVM.js} +146 -139
- package/dist/chunks/{paletteRegistry-x7WOEKZY.js → paletteRegistry-A63C71Gn.js} +8 -6
- package/dist/chunks/{registry-CSba5QGJ.js → registry-jB46Gmeb.js} +1 -1
- package/dist/chunks/{scales-BRwl51k8.js → scales-B2d-7Bf0.js} +572 -399
- package/dist/chunks/{types-B7bX5c0K.js → types-C_c53VgR.js} +31 -26
- package/dist/commands.d.ts +4 -0
- package/dist/custom-elements.json +1 -1
- package/dist/extend.js +8 -8
- package/dist/graphty-catalog.json +245 -12
- package/dist/graphty.bundle.js +37836 -36835
- package/dist/graphty.js +11 -11
- package/dist/logging.js +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +42 -40
- package/dist/session.js +6 -6
- package/dist/src/Graph.d.ts +79 -7
- package/dist/src/acceleration/AccelerationController.d.ts +14 -3
- package/dist/src/acceleration/types.d.ts +78 -0
- package/dist/src/algorithms/KCoreAlgorithm.d.ts +26 -0
- package/dist/src/algorithms/LinkPredictionAlgorithm.d.ts +41 -0
- package/dist/src/catalog/algorithms.d.ts +5 -5
- package/dist/src/catalog/index.d.ts +2 -2
- package/dist/src/catalog/layouts.d.ts +7 -6
- package/dist/src/catalog/types.d.ts +77 -6
- package/dist/src/config/EdgeStyle.d.ts +35 -0
- package/dist/src/config/index.d.ts +1 -1
- package/dist/src/data/GEXFDataSource.d.ts +23 -0
- package/dist/src/errors/codes.d.ts +14 -0
- package/dist/src/events.d.ts +30 -0
- package/dist/src/graphty-element.d.ts +66 -26
- package/dist/src/layout/GridLayoutEngine.d.ts +37 -0
- package/dist/src/layout/LayoutEngine.d.ts +7 -7
- package/dist/src/layout/NGraphLayoutEngine.d.ts +2 -0
- package/dist/src/layout/RadialLayoutEngine.d.ts +37 -0
- package/dist/src/layout/SimulationLayoutEngine.d.ts +12 -0
- package/dist/src/managers/DataManager.d.ts +69 -2
- package/dist/src/managers/EventManager.d.ts +10 -4
- package/dist/src/managers/GraphContext.d.ts +2 -1
- package/dist/src/managers/LayoutManager.d.ts +30 -3
- package/dist/src/meshes/MeshCache.d.ts +18 -0
- package/dist/src/meshes/NodeEffects.d.ts +16 -11
- package/dist/src/meshes/NodeMesh.d.ts +2 -2
- package/dist/src/meshes/RichTextParser.d.ts +26 -0
- package/dist/src/meshes/RichTextRenderer.d.ts +0 -1
- package/dist/src/session/cost/estimate.d.ts +1 -1
- package/dist/src/session/layout.d.ts +3 -3
- package/dist/src/session/runs/RunsApi.d.ts +1 -1
- package/dist/src/session/styles/StylesApi.d.ts +6 -0
- package/dist/src/session/styles/intern.d.ts +26 -5
- package/dist/src/session/styles/repaint.d.ts +2 -1
- package/dist/src/session/types.d.ts +6 -6
- package/dist/webgpu.js +2 -2
- package/package.json +6 -6
package/AGENTS.md
CHANGED
|
@@ -68,7 +68,7 @@ needs no import map.
|
|
|
68
68
|
| Import | What it carries | Runs in Node |
|
|
69
69
|
| --- | --- | --- |
|
|
70
70
|
| `@graphty/graphty-element` | The custom element. Importing it defines the tag and registers the built-in layouts, data sources and algorithms. Pulls in Babylon.js and Lit. | No |
|
|
71
|
-
| `@graphty/graphty-element/schema` | Palettes, `NodeShapes`, `defaultNodeStyle`, `defaultEdgeStyle`, `defaultRichTextLabelStyle`, the style config types and the colour helpers (`interpolatePalette`, `hexToRgb`, the colour-vision simulators). | Yes |
|
|
71
|
+
| `@graphty/graphty-element/schema` | Palettes, `NodeShapes`, `EdgeLineTypes`, `EdgeArrowTypes`, `defaultNodeStyle`, `defaultEdgeStyle`, `defaultRichTextLabelStyle`, the style config types and the colour helpers (`interpolatePalette`, `hexToRgb`, the colour-vision simulators). | Yes |
|
|
72
72
|
| `@graphty/graphty-element/catalog` | Plain-JSON descriptors for every algorithm, layout, file format, palette and scale, with the options each accepts. Build an options form from these instead of hard-coding a list. | Yes |
|
|
73
73
|
| `@graphty/graphty-element/extend` | The registration surface: `Algorithm`, `LayoutEngine`, `DataSource`, `registerAccelerator`, `registerLogSink`, `GraphtyError`. | Yes |
|
|
74
74
|
| `@graphty/graphty-element/format` | The read-only half of the graph-format vocabulary: `isGraphSnapshot`, the mask helpers, `expandEdges`, `foldArcs`, the gather/scatter/remap helpers. | Yes |
|
|
@@ -117,8 +117,9 @@ silently do nothing:
|
|
|
117
117
|
rather than resolved, so "how many nodes would this selector pick" has no answer.
|
|
118
118
|
- **A time role.** Nothing infers that an attribute is a timestamp, so there is no way to ask
|
|
119
119
|
whether a graph can be played over time.
|
|
120
|
-
- **The command union and the journal.** `@graphty/graphty-element/commands`
|
|
121
|
-
|
|
120
|
+
- **The command union and the journal.** `@graphty/graphty-element/commands` exports nothing
|
|
121
|
+
and is deprecated: it is removed at the next major release unless the command union lands
|
|
122
|
+
there first. Do not import it; read `@graphty/graphty-element/catalog` for the vocabulary.
|
|
122
123
|
- **The React wrappers.** `@graphty/graphty-element/react` currently exports nothing. In React 19
|
|
123
124
|
use the tag directly, which assigns matching props as properties.
|
|
124
125
|
|
package/dist/ai.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as d } from "./chunks/AiManager-
|
|
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-
|
|
1
|
+
import { f as d } from "./chunks/AiManager-BD9XK30e.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-BD9XK30e.js";
|
|
3
3
|
import { A as O } from "./chunks/ApiKeyManager-C0ac91dE.js";
|
|
4
|
-
import { V as Z } from "./chunks/VoiceInputAdapter-
|
|
4
|
+
import { V as Z } from "./chunks/VoiceInputAdapter-D0tHHi9G.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,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-
|
|
2
|
-
import { d as
|
|
3
|
-
import { F as
|
|
4
|
-
import { a as W, L as U, P as F, S as
|
|
5
|
-
import { L as X, l as Z } from "./chunks/GraphtyLogger-
|
|
6
|
-
import { A as J, C as Q,
|
|
7
|
-
import { o as
|
|
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-BF0X6RPw.js";
|
|
2
|
+
import { d as I, a as k } from "./chunks/detect-vJxK7n0D.js";
|
|
3
|
+
import { F as x, U as _, i as C, j as L } from "./chunks/paletteRegistry-A63C71Gn.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-B2d-7Bf0.js";
|
|
5
|
+
import { L as X, l as Z } from "./chunks/GraphtyLogger-CqOVV13Y.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-BuTOFgVM.js";
|
|
8
8
|
const d = Object.keys({
|
|
9
9
|
enabled: 0,
|
|
10
10
|
font: 0,
|
|
@@ -175,26 +175,27 @@ export {
|
|
|
175
175
|
m as CHANNELS,
|
|
176
176
|
T as CHANNEL_DESCRIPTORS,
|
|
177
177
|
Q as COST_CLASSES,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
te as
|
|
181
|
-
ae as
|
|
182
|
-
oe as
|
|
183
|
-
ne as
|
|
184
|
-
re as
|
|
178
|
+
ee as DEPRECATED_ALGORITHMS,
|
|
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,
|
|
185
186
|
d as LABEL_STYLE_FIELDS,
|
|
186
187
|
W as LAYOUT_CATALOG,
|
|
187
188
|
U as LAYOUT_DESCRIPTORS,
|
|
188
189
|
X as LOG_SINK_DESCRIPTORS,
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
se as OPTION_BOUND_SOURCES,
|
|
191
|
+
he as OPTION_TYPES,
|
|
191
192
|
F as PALETTE_DESCRIPTORS,
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
le as RESULT_SHAPES,
|
|
194
|
+
H as SCALE_DESCRIPTORS,
|
|
194
195
|
p as UNPAINTED_CHANNELS,
|
|
195
196
|
w as UNREACHABLE_STYLE_FIELDS,
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
_ as UNSERVED_FORMAT_IDS,
|
|
198
|
+
B as UNSERVED_LAYOUT_IDS,
|
|
198
199
|
l as WAIVER_EXPIRY_UNSET,
|
|
199
200
|
c as WAIVER_HORIZON_DAYS,
|
|
200
201
|
h as WAIVER_OWNER_UNASSIGNED,
|
|
@@ -205,20 +206,20 @@ export {
|
|
|
205
206
|
E as camerasForMode,
|
|
206
207
|
A as channelDescriptor,
|
|
207
208
|
N as channelsFor,
|
|
208
|
-
|
|
209
|
+
I as detectFormat,
|
|
209
210
|
k as detectFormats,
|
|
210
211
|
C as formatDescriptor,
|
|
211
212
|
L as formatsForExtension,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
de as isAttributeType,
|
|
214
|
+
ce as isCostClass,
|
|
215
|
+
we as isOptionBound,
|
|
216
|
+
pe as isOptionType,
|
|
217
|
+
ue as isResultShape,
|
|
217
218
|
M as layoutDescriptor,
|
|
218
219
|
j as layoutEntry,
|
|
219
220
|
K as layoutIdForEngine,
|
|
220
221
|
Z as logSinkDescriptor,
|
|
221
|
-
|
|
222
|
+
be as optionsFromZod,
|
|
222
223
|
Y as paletteDescriptor,
|
|
223
224
|
G as palettesOfKind,
|
|
224
225
|
z as scaleDescriptor,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as Y } from "./VoiceInputAdapter-
|
|
2
|
-
import { G as J } from "./GraphtyLogger-
|
|
1
|
+
import { l as Y } from "./VoiceInputAdapter-D0tHHi9G.js";
|
|
2
|
+
import { G as J } from "./GraphtyLogger-CqOVV13Y.js";
|
|
3
3
|
import { z as c } from "zod";
|
|
4
|
-
import { k as Q, A as x, B as P } from "./optionsFromZod-
|
|
5
|
-
import { N as ee, e as te, C as se, d as re } from "./algorithms-
|
|
4
|
+
import { k as Q, A as x, B as P } from "./optionsFromZod-BuTOFgVM.js";
|
|
5
|
+
import { N as ee, e as te, C as se, d as re } from "./algorithms-BF0X6RPw.js";
|
|
6
6
|
import ae from "jmespath";
|
|
7
7
|
import { inferSchema as A } from "@jsonhero/schema-infer";
|
|
8
|
-
import { i as oe } from "./GraphtyError-
|
|
8
|
+
import { i as oe } from "./GraphtyError-B93WRH3e.js";
|
|
9
9
|
import { createAnthropic as ne } from "@ai-sdk/anthropic";
|
|
10
10
|
import { createGoogleGenerativeAI as ie } from "@ai-sdk/google";
|
|
11
11
|
import { createOpenAI as le } from "@ai-sdk/openai";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z as p } from "zod/v4";
|
|
2
2
|
import * as $ from "zod/v4/core";
|
|
3
|
-
import { F as w, p as E } from "./paletteRegistry-
|
|
4
|
-
import { b as F } from "./GraphtyLogger-
|
|
5
|
-
import { G as f } from "./GraphtyError-
|
|
3
|
+
import { F as w, p as E } from "./paletteRegistry-A63C71Gn.js";
|
|
4
|
+
import { b as F } from "./GraphtyLogger-CqOVV13Y.js";
|
|
5
|
+
import { G as f } from "./GraphtyError-B93WRH3e.js";
|
|
6
6
|
class C {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new ErrorAggregator instance.
|