@graphty/graphty-element 2.5.1 → 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.
- package/dist/ai.js +3 -3
- package/dist/catalog.d.ts +16 -0
- package/dist/catalog.js +34 -32
- package/dist/chunks/{AiManager-CrbvKdEK.js → AiManager-4iQpsJW1.js} +4 -4
- package/dist/chunks/{DataSource-qU-nLhXN.js → DataSource-BL2UzPff.js} +2 -2
- package/dist/chunks/GraphSession-BhuHSXIo.js +12819 -0
- package/dist/chunks/{GraphtyLogger-DOTwCiMR.js → GraphtyLogger-B_O67a6c.js} +1 -1
- package/dist/chunks/{VoiceInputAdapter-D4NrRL_1.js → VoiceInputAdapter-Cc6mHXTI.js} +1 -1
- package/dist/chunks/{XRPivotCameraController-Uqa47vmo.js → XRPivotCameraController-BLa89LXn.js} +2 -2
- package/dist/chunks/{algorithms-D-ab-Auu.js → algorithms-BJ6DQMOe.js} +931 -781
- package/dist/chunks/{capability-check-Vw3IcqiE.js → capability-check-Am2zliFj.js} +1 -1
- package/dist/chunks/{detect-B4Qrw976.js → detect-fyuVnlCT.js} +1 -1
- package/dist/chunks/{format-detection-r2IfNFXO.js → format-detection-BHwrAVzW.js} +1 -1
- package/dist/chunks/{index-J9MgLio9.js → index-BkBLbvui.js} +2691 -2434
- package/dist/chunks/optionsFromZod-CKMYSwTz.js +3636 -0
- package/dist/chunks/{paletteRegistry-Kt-6CeoN.js → paletteRegistry-BCFSwJGK.js} +224 -189
- package/dist/chunks/parse-BMTqt4SS.js +3658 -0
- package/dist/chunks/{types-C_c53VgR.js → types-DFchv4Ny.js} +4 -1
- package/dist/custom-elements.json +1 -1
- package/dist/extend.d.ts +10 -8
- package/dist/extend.js +6 -6
- package/dist/graphty-catalog.json +75 -38
- package/dist/graphty.bundle.js +55368 -48970
- package/dist/graphty.js +19 -19
- package/dist/index.d.ts +1 -1
- package/dist/logging.js +2 -2
- package/dist/schema.d.ts +15 -1
- package/dist/schema.js +1 -1
- package/dist/session.d.ts +30 -7
- package/dist/session.js +40 -37
- package/dist/src/Graph.d.ts +35 -7
- package/dist/src/acceleration/types.d.ts +79 -43
- package/dist/src/algorithms/Algorithm.d.ts +52 -4
- package/dist/src/algorithms/BFSAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/BellmanFordAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/BetweennessCentralityAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/BipartiteMatchingAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/ClosenessCentralityAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/ConnectedComponentsAlgorithm.d.ts +4 -1
- package/dist/src/algorithms/DFSAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/DegreeAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/DijkstraAlgorithm.d.ts +6 -0
- package/dist/src/algorithms/EigenvectorCentralityAlgorithm.d.ts +2 -0
- package/dist/src/algorithms/FloydWarshallAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/GirvanNewmanAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/HITSAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/KCoreAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/KatzCentralityAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/KruskalAlgorithm.d.ts +4 -1
- package/dist/src/algorithms/LabelPropagationAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/LeidenAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/LinkPredictionAlgorithm.d.ts +4 -1
- package/dist/src/algorithms/LouvainAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/MaxFlowAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/MinCutAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/PageRankAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/PrimAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/StronglyConnectedComponentsAlgorithm.d.ts +3 -0
- package/dist/src/algorithms/input/ScopedInput.d.ts +185 -0
- package/dist/src/algorithms/input/derivedInputs.d.ts +199 -0
- package/dist/src/algorithms/input/maskBack.d.ts +37 -0
- package/dist/src/algorithms/metrics/MetricAlgorithm.d.ts +3 -3
- package/dist/src/algorithms/results/DeclaredAlgorithm.d.ts +4 -3
- package/dist/src/algorithms/results/types.d.ts +28 -6
- package/dist/src/algorithms/utils/communityUtils.d.ts +0 -48
- package/dist/src/algorithms/utils/graphUtils.d.ts +2 -68
- package/dist/src/algorithms/utils/snapshotGraph.d.ts +3 -1
- package/dist/src/catalog/algorithms.d.ts +3 -0
- package/dist/src/catalog/layouts.d.ts +2 -0
- package/dist/src/catalog/sets/canonical.d.ts +68 -0
- package/dist/src/catalog/sets/hash.d.ts +126 -0
- package/dist/src/catalog/sets/parse.d.ts +115 -0
- package/dist/src/catalog/types.d.ts +329 -8
- package/dist/src/data/GraphStore.d.ts +73 -1
- package/dist/src/data/edgeIdentity.d.ts +202 -1
- package/dist/src/data/ingest.d.ts +3 -1
- package/dist/src/data/report.d.ts +20 -0
- package/dist/src/graphty-element.d.ts +42 -6
- package/dist/src/layout/D3GraphLayoutEngine.d.ts +11 -0
- package/dist/src/layout/LayoutEngine.d.ts +56 -0
- package/dist/src/layout/NGraphLayoutEngine.d.ts +10 -0
- package/dist/src/layout/SimulationLayoutEngine.d.ts +11 -0
- package/dist/src/managers/AlgorithmManager.d.ts +8 -0
- package/dist/src/managers/DataManager.d.ts +11 -0
- package/dist/src/managers/LayoutManager.d.ts +126 -2
- package/dist/src/managers/StatsManager.d.ts +1 -0
- package/dist/src/session/GraphSession.d.ts +48 -0
- package/dist/src/session/attributes.d.ts +121 -1
- package/dist/src/session/cost/estimate.d.ts +20 -0
- package/dist/src/session/cost/index.d.ts +1 -1
- package/dist/src/session/planning.d.ts +32 -2
- package/dist/src/session/query.d.ts +7 -0
- package/dist/src/session/results/ResultsApi.d.ts +14 -1
- package/dist/src/session/runs/Run.d.ts +65 -4
- package/dist/src/session/runs/RunsApi.d.ts +58 -2
- package/dist/src/session/runs/runId.d.ts +55 -6
- package/dist/src/session/runs/types.d.ts +36 -8
- package/dist/src/session/scope/ElementMask.d.ts +14 -1
- package/dist/src/session/scope/ScopeApi.d.ts +160 -31
- package/dist/src/session/scope/index.d.ts +1 -1
- package/dist/src/session/selection/SelectionApi.d.ts +15 -10
- package/dist/src/session/selection/index.d.ts +1 -1
- package/dist/src/session/selection/targets.d.ts +6 -7
- package/dist/src/session/sets/SetsApi.d.ts +110 -0
- package/dist/src/session/sets/algebra.d.ts +124 -0
- package/dist/src/session/sets/cache.d.ts +197 -0
- package/dist/src/session/sets/captures.d.ts +83 -0
- package/dist/src/session/sets/dependencies.d.ts +167 -0
- package/dist/src/session/sets/layers.d.ts +101 -0
- package/dist/src/session/sets/notify.d.ts +122 -0
- package/dist/src/session/sets/offers.d.ts +103 -0
- package/dist/src/session/sets/path.d.ts +37 -0
- package/dist/src/session/sets/prepare.d.ts +209 -0
- package/dist/src/session/sets/resolve.d.ts +311 -0
- package/dist/src/session/sets/signature.d.ts +77 -0
- package/dist/src/session/sets/status.d.ts +98 -0
- package/dist/src/session/sets/store.d.ts +196 -0
- package/dist/src/session/sets/types.d.ts +386 -0
- package/dist/src/session/styles/Layer.d.ts +9 -2
- package/dist/src/session/styles/StylesApi.d.ts +5 -2
- package/dist/src/session/styles/explain.d.ts +5 -2
- package/dist/src/session/styles/predicate.d.ts +41 -2
- package/dist/src/session/styles/repaint.d.ts +19 -0
- package/dist/src/session/styles/selector.d.ts +16 -5
- package/dist/src/session/types.d.ts +18 -0
- package/dist/src/session/visibility/VisibilityApi.d.ts +47 -3
- package/dist/src/session/visibility/filter.d.ts +86 -51
- package/dist/src/session/visibility/index.d.ts +1 -1
- package/dist/src/testing/fakeAccelerator.d.ts +5 -0
- package/dist/src/utils/queue-migration.d.ts +17 -0
- package/package.json +15 -9
- package/dist/chunks/GraphSession-DuAhRgCd.js +0 -8622
- package/dist/chunks/optionsFromZod-B9RncoTX.js +0 -2578
- package/dist/chunks/scales-CJCRwi2J.js +0 -3220
- 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-
|
|
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-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-
|
|
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
|
|
2
|
-
import { d as I, a as
|
|
3
|
-
import { F as x, U as _, i as C, j as L } from "./chunks/paletteRegistry-
|
|
4
|
-
import {
|
|
5
|
-
import { L as
|
|
6
|
-
import { A as
|
|
7
|
-
import { o as
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
-
|
|
178
|
-
|
|
177
|
+
te as COST_CLASSES,
|
|
178
|
+
ae as DEPRECATED_ALGORITHMS,
|
|
179
179
|
x as FORMAT_DESCRIPTORS,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
$ as LOG_SINK_DESCRIPTORS,
|
|
190
|
+
le as OPTION_BOUND_SOURCES,
|
|
191
|
+
de as OPTION_TYPES,
|
|
192
192
|
F as PALETTE_DESCRIPTORS,
|
|
193
|
-
|
|
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
|
-
|
|
210
|
+
D as detectFormats,
|
|
211
211
|
C as formatDescriptor,
|
|
212
212
|
L as formatsForExtension,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
222
|
-
|
|
221
|
+
J as logSinkDescriptor,
|
|
222
|
+
ye as optionsFromZod,
|
|
223
223
|
Y as paletteDescriptor,
|
|
224
224
|
G as palettesOfKind,
|
|
225
|
-
z as
|
|
226
|
-
V as
|
|
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-
|
|
2
|
-
import { G as J } from "./GraphtyLogger-
|
|
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-
|
|
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-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-
|
|
4
|
-
import { b as F } from "./GraphtyLogger-
|
|
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
|
/**
|