@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
|
@@ -36,23 +36,25 @@ const N = {
|
|
|
36
36
|
E_NO_WEBGPU: "E_NO_WEBGPU",
|
|
37
37
|
E_NO_ADAPTER: "E_NO_ADAPTER",
|
|
38
38
|
E_SOFTWARE_ONLY: "E_SOFTWARE_ONLY",
|
|
39
|
+
E_DEVICE_INCORRECT: "E_DEVICE_INCORRECT",
|
|
39
40
|
E_DEVICE_LOST: "E_DEVICE_LOST",
|
|
40
41
|
E_NO_WEBGL: "E_NO_WEBGL",
|
|
41
42
|
E_UNSUPPORTED: "E_UNSUPPORTED",
|
|
42
43
|
E_READONLY: "E_READONLY",
|
|
43
44
|
E_DISPOSED: "E_DISPOSED",
|
|
44
45
|
E_INTERNAL: "E_INTERNAL"
|
|
45
|
-
}, U = Object.freeze(Object.values(N)),
|
|
46
|
+
}, U = Object.freeze(Object.values(N)), C = Object.freeze([
|
|
46
47
|
N.E_NO_WEBGPU,
|
|
47
48
|
N.E_NO_ADAPTER,
|
|
48
49
|
N.E_SOFTWARE_ONLY,
|
|
50
|
+
N.E_DEVICE_INCORRECT,
|
|
49
51
|
N.E_DEVICE_LOST,
|
|
50
52
|
N.E_TOO_LARGE
|
|
51
53
|
]);
|
|
52
54
|
function s(_) {
|
|
53
55
|
return typeof _ == "string" && Object.hasOwn(N, _);
|
|
54
56
|
}
|
|
55
|
-
const
|
|
57
|
+
const r = Object.freeze({});
|
|
56
58
|
function D(_) {
|
|
57
59
|
if (typeof _ != "object" || _ === null || !("code" in _))
|
|
58
60
|
return;
|
|
@@ -72,7 +74,7 @@ class e extends Error {
|
|
|
72
74
|
* failure.
|
|
73
75
|
*/
|
|
74
76
|
constructor(E) {
|
|
75
|
-
super(E.message, E.cause === void 0 ? void 0 : { cause: E.cause }), this.name = "GraphtyError", Object.setPrototypeOf(this, new.target.prototype), this.code = E.code, this.source = E.source, this.recoverable = E.recoverable ?? !1, this.details = E.details === void 0 ?
|
|
77
|
+
super(E.message, E.cause === void 0 ? void 0 : { cause: E.cause }), this.name = "GraphtyError", Object.setPrototypeOf(this, new.target.prototype), this.code = E.code, this.source = E.source, this.recoverable = E.recoverable ?? !1, this.details = E.details === void 0 ? r : Object.freeze({ ...E.details }), E.target !== void 0 && (this.target = E.target);
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Re-reports a failure from somewhere else as a `GraphtyError`.
|
|
@@ -90,12 +92,12 @@ class e extends Error {
|
|
|
90
92
|
static wrap(E, O) {
|
|
91
93
|
if (E instanceof e)
|
|
92
94
|
return E;
|
|
93
|
-
const A = D(E), t = R(E), o = O.message ?? (E instanceof Error ? E.message : String(E)),
|
|
95
|
+
const A = D(E), t = R(E), o = O.message ?? (E instanceof Error ? E.message : String(E)), T = t === void 0 ? O.details : { ...O.details, sourceCode: t };
|
|
94
96
|
return new e({
|
|
95
97
|
...O,
|
|
96
98
|
code: A ?? O.code,
|
|
97
99
|
message: o,
|
|
98
|
-
details:
|
|
100
|
+
details: T,
|
|
99
101
|
cause: E
|
|
100
102
|
});
|
|
101
103
|
}
|
|
@@ -118,13 +120,13 @@ class e extends Error {
|
|
|
118
120
|
return this.target !== void 0 && (E.target = this.target), this.cause instanceof Error && (E.causeMessage = this.cause.message), E;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
|
-
function
|
|
123
|
+
function L(_) {
|
|
122
124
|
return _ instanceof e;
|
|
123
125
|
}
|
|
124
126
|
export {
|
|
125
|
-
|
|
127
|
+
C as A,
|
|
126
128
|
e as G,
|
|
127
129
|
U as a,
|
|
128
130
|
s as b,
|
|
129
|
-
|
|
131
|
+
L as i
|
|
130
132
|
};
|