@graphty/graphty-element 2.0.0 → 2.2.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/README.md +3 -3
- package/dist/ai.js +4 -4
- package/dist/catalog.js +5 -5
- package/dist/chunks/{AiManager-D22fxCNb.js → AiManager-DWwQiBQu.js} +5 -5
- package/dist/chunks/{Algorithm-BhwPK-aS.js → Algorithm-RQ629NLb.js} +210 -92
- package/dist/chunks/{DataSource-7S-7S3M1.js → DataSource-DEg3igzS.js} +3 -3
- package/dist/chunks/{GraphSession-DwlThkoy.js → GraphSession-CtqyVNsw.js} +2518 -2239
- package/dist/chunks/{GraphtyError-B3eKs4yg.js → GraphtyError-BwcnblTH.js} +10 -8
- package/dist/chunks/GraphtyLogger-5KEttFUo.js +752 -0
- package/dist/chunks/{NodeStyle-CS7dj20m.js → NodeStyle-Cup9O1lu.js} +2 -1
- package/dist/chunks/{VoiceInputAdapter-BrCQEMf0.js → VoiceInputAdapter-mD0x3z7t.js} +1 -1
- package/dist/chunks/{XRPivotCameraController-BE1pfwMC.js → XRPivotCameraController-Clil9NhV.js} +2 -2
- package/dist/chunks/{cameras-D5LX3ttm.js → cameras-DFXNYBze.js} +2 -2
- package/dist/chunks/{capability-check-MH9salUj.js → capability-check-dXwQ_z5B.js} +1 -1
- package/dist/chunks/{detect-5cVtGFHg.js → detect-CqN0mC6u.js} +3 -3
- package/dist/chunks/{format-detection-Bos-Q387.js → format-detection-C8vbCSlS.js} +1 -1
- package/dist/chunks/{index-CqZp3iwq.js → index-2VIpMJZP.js} +1576 -1211
- package/dist/chunks/{paletteRegistry-BSjlD98O.js → paletteRegistry-NrWOKT-A.js} +17 -17
- package/dist/chunks/{registry-DU-e49Y2.js → registry-CSba5QGJ.js} +1 -1
- package/dist/chunks/{scales-DPUY-fFk.js → scales-BUS7NWy2.js} +2206 -1357
- package/dist/custom-elements.json +1 -1
- package/dist/extend.js +26 -27
- package/dist/graphty-catalog.json +7 -4
- package/dist/graphty.bundle.js +36288 -34368
- package/dist/graphty.js +66 -64
- package/dist/index.d.ts +1 -1
- package/dist/logging.js +2 -2
- package/dist/schema.js +1 -1
- package/dist/session.d.ts +2 -1
- package/dist/session.js +37 -33
- package/dist/src/Edge.d.ts +1 -1
- package/dist/src/Graph.d.ts +41 -7
- package/dist/src/Node.d.ts +1 -1
- package/dist/src/acceleration/AccelerationController.d.ts +27 -0
- package/dist/src/acceleration/index.d.ts +1 -1
- package/dist/src/acceleration/narrow.d.ts +56 -0
- package/dist/src/acceleration/types.d.ts +88 -7
- package/dist/src/algorithms/Algorithm.d.ts +96 -2
- package/dist/src/algorithms/BFSAlgorithm.d.ts +9 -0
- package/dist/src/algorithms/DijkstraAlgorithm.d.ts +2 -8
- package/dist/src/algorithms/PageRankAlgorithm.d.ts +8 -0
- package/dist/src/algorithms/utils/graphUtils.d.ts +13 -0
- package/dist/src/cameras/OrbitCameraController.d.ts +1 -0
- package/dist/src/catalog/layouts.d.ts +13 -1
- package/dist/src/config/GraphBehavior.d.ts +13 -0
- package/dist/src/config/GraphStyle.d.ts +1 -1
- package/dist/src/config/StyleTemplate.d.ts +4 -0
- package/dist/src/data/CSVDataSource.d.ts +1 -0
- package/dist/src/data/csv-variant-detection.d.ts +11 -0
- package/dist/src/errors/codes.d.ts +14 -1
- package/dist/src/events.d.ts +17 -4
- package/dist/src/graphty-element.d.ts +48 -3
- package/dist/src/layout/ForceAtlas2LayoutEngine.d.ts +28 -45
- package/dist/src/layout/LayoutEngine.d.ts +7 -7
- package/dist/src/layout/SimulationLayoutEngine.d.ts +458 -0
- package/dist/src/layout/SpringElectricalLayoutEngine.d.ts +32 -0
- package/dist/src/layout/SpringLayoutEngine.d.ts +22 -32
- package/dist/src/managers/EventManager.d.ts +7 -0
- package/dist/src/managers/GraphContext.d.ts +6 -0
- package/dist/src/managers/LayoutManager.d.ts +98 -4
- package/dist/src/managers/RenderManager.d.ts +7 -0
- package/dist/src/managers/UpdateManager.d.ts +1 -1
- package/dist/src/session/catalog.d.ts +2 -2
- package/dist/src/session/query.d.ts +83 -0
- package/dist/src/session/runs/types.d.ts +10 -4
- package/dist/src/session/selection/targets.d.ts +20 -3
- package/dist/src/session/styles/StylesApi.d.ts +18 -0
- package/dist/src/session/styles/legend.d.ts +9 -0
- package/dist/src/session/styles/predicate.d.ts +11 -0
- package/dist/src/session/styles/sources.d.ts +16 -0
- package/dist/src/session/types.d.ts +38 -2
- package/dist/src/testing/fakeAccelerator.d.ts +323 -0
- package/dist/webgpu.d.ts +23 -1
- package/dist/webgpu.js +70 -32
- package/package.json +15 -11
- package/dist/chunks/GraphtyLogger-DoYeIghs.js +0 -609
- package/dist/chunks/types-Dwm9waL2.js +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z as j } from "zod/v4";
|
|
2
|
-
import { b as Le, q as Z, G as De } from "./GraphtyLogger-
|
|
3
|
-
import { A as Ce } from "./Algorithm-
|
|
4
|
-
import { G as w } from "./GraphtyError-
|
|
2
|
+
import { b as Le, q as Z, G as De } from "./GraphtyLogger-5KEttFUo.js";
|
|
3
|
+
import { A as Ce } from "./Algorithm-RQ629NLb.js";
|
|
4
|
+
import { G as w } from "./GraphtyError-BwcnblTH.js";
|
|
5
5
|
import { a as Ge, b as He, d as Ue } from "./types-B7bX5c0K.js";
|
|
6
6
|
import { remapArray as se, INVALID_INDEX as W } from "@graphty/graph-format";
|
|
7
7
|
import { c as Be } from "./common-DWNKjpH_.js";
|
|
@@ -2021,8 +2021,7 @@ const un = {
|
|
|
2021
2021
|
plainName: "Column Separator",
|
|
2022
2022
|
technicalName: "delimiter",
|
|
2023
2023
|
type: "string",
|
|
2024
|
-
|
|
2025
|
-
description: "The character between one column and the next."
|
|
2024
|
+
description: "The character between one column and the next. Worked out from the first line (comma, tab, semicolon or pipe) when it is not set."
|
|
2026
2025
|
},
|
|
2027
2026
|
{
|
|
2028
2027
|
name: "variant",
|
|
@@ -2075,8 +2074,8 @@ const un = {
|
|
|
2075
2074
|
{
|
|
2076
2075
|
id: "csv",
|
|
2077
2076
|
plainName: "CSV",
|
|
2078
|
-
extensions: [".csv", ".edges", ".edgelist"],
|
|
2079
|
-
mimeTypes: ["text/csv", "text/plain"],
|
|
2077
|
+
extensions: [".csv", ".tsv", ".tab", ".edges", ".edgelist"],
|
|
2078
|
+
mimeTypes: ["text/csv", "text/tab-separated-values", "text/plain"],
|
|
2080
2079
|
canImport: !0,
|
|
2081
2080
|
canExport: !1,
|
|
2082
2081
|
options: [...dn, ...S]
|
|
@@ -2443,7 +2442,8 @@ const k = /* @__PURE__ */ new Map(), mn = Object.freeze([
|
|
|
2443
2442
|
"shell",
|
|
2444
2443
|
"spectral",
|
|
2445
2444
|
"spiral",
|
|
2446
|
-
"spring"
|
|
2445
|
+
"spring",
|
|
2446
|
+
"spring-electrical"
|
|
2447
2447
|
]), gn = De.getLogger(["graphty", "layout"]), ve = 1e-6;
|
|
2448
2448
|
function yn(t, e) {
|
|
2449
2449
|
return JSON.stringify([t, e]);
|
|
@@ -2481,7 +2481,7 @@ const ie = class ie {
|
|
|
2481
2481
|
* Take a node out of the layout, before the element disposes the mesh that drew it.
|
|
2482
2482
|
*
|
|
2483
2483
|
* Declared here, with a default that does nothing, because it used to be duck-typed by the
|
|
2484
|
-
* element's data manager and implemented by none of the
|
|
2484
|
+
* element's data manager and implemented by none of the seventeen engines that ship here: an
|
|
2485
2485
|
* author learned it existed by reading the element's source, and got no worked example. An
|
|
2486
2486
|
* engine that keeps its own node list must override this, or it holds every removed node --
|
|
2487
2487
|
* and everything that node references -- for as long as the engine lives.
|
|
@@ -2596,7 +2596,7 @@ const ie = class ie {
|
|
|
2596
2596
|
* freeze counts as placed, which is what makes a file's own coordinates yield to it.
|
|
2597
2597
|
*
|
|
2598
2598
|
* A PINNED ROW REFUSES A LAYOUT STEP. This is the whole of "a pin is meaningful under every
|
|
2599
|
-
* arrangement":
|
|
2599
|
+
* arrangement": twelve of the element's seventeen engines implement `pin()` as a no-op and
|
|
2600
2600
|
* `setNodePosition` as a no-op too, so before this guard a reader who dragged a node under a
|
|
2601
2601
|
* static layout watched it snap back the next time the layout recomputed. One refusal here
|
|
2602
2602
|
* covers every engine, including one written by a third party that has never heard of pinning,
|
|
@@ -2725,7 +2725,7 @@ const ie = class ie {
|
|
|
2725
2725
|
* offered by a picker, described in a reader's language, or found by `layoutIdForEngine`.
|
|
2726
2726
|
*
|
|
2727
2727
|
* A third party's class must declare a `static descriptor` whose `id` equals its
|
|
2728
|
-
* `static type`. The element's own
|
|
2728
|
+
* `static type`. The element's own seventeen are the one exemption, because their arrangements
|
|
2729
2729
|
* are authored centrally in the layout catalogue where several engines may sit behind one
|
|
2730
2730
|
* public name.
|
|
2731
2731
|
* @param cls - The layout engine class.
|
|
@@ -3114,13 +3114,13 @@ export {
|
|
|
3114
3114
|
Un as D,
|
|
3115
3115
|
we as E,
|
|
3116
3116
|
je as F,
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
$
|
|
3121
|
-
|
|
3117
|
+
Pn as G,
|
|
3118
|
+
Rn as H,
|
|
3119
|
+
X as I,
|
|
3120
|
+
$e as J,
|
|
3121
|
+
Cn as K,
|
|
3122
3122
|
Jn as L,
|
|
3123
|
-
|
|
3123
|
+
$t as M,
|
|
3124
3124
|
zn as N,
|
|
3125
3125
|
_n as O,
|
|
3126
3126
|
Vn as P,
|