@graphty/graphty-element 2.2.1 → 2.2.2
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.js +2 -2
- package/dist/chunks/{AiManager-Dp1mOkPm.js → AiManager-DC3JWPeM.js} +2 -2
- package/dist/chunks/{GraphSession-D3AV8tpF.js → GraphSession-DDrQWABb.js} +3 -3
- package/dist/chunks/{NodeStyle-Cup9O1lu.js → NodeStyle-DKj7HjMJ.js} +4 -0
- package/dist/chunks/{VoiceInputAdapter-Bbze1r8k.js → VoiceInputAdapter-BueUG885.js} +1 -1
- package/dist/chunks/{XRPivotCameraController-8Il3KxFm.js → XRPivotCameraController-SqoNytFf.js} +1 -1
- package/dist/chunks/{cameras-CeJYi-Na.js → cameras-ii4vngYY.js} +16 -16
- package/dist/chunks/{capability-check-EUCOfQLP.js → capability-check-Gdo5o38b.js} +1 -1
- package/dist/chunks/{index-Cz47b_vU.js → index-DnKqD4ge.js} +2224 -2203
- package/dist/chunks/{scales-ulKMZPfG.js → scales-DKsbJE2L.js} +1 -1
- package/dist/graphty-catalog.json +1 -1
- package/dist/graphty.bundle.js +36703 -36671
- package/dist/graphty.js +2 -2
- package/dist/schema.js +1 -1
- package/dist/session.js +3 -3
- package/dist/src/config/EdgeStyle.d.ts +4 -0
- package/dist/src/graphty-element.d.ts +7 -0
- package/dist/src/session/styles/channels.d.ts +2 -1
- package/package.json +7 -7
package/dist/graphty.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as e, a as E, b as r, D as O, E as o, d as S, G as R, e as _, I as t, L, N as C, O as A, R as N, S as n, f as I, g as T, h as g, U as i, i as l } from "./chunks/index-
|
|
1
|
+
import { A as e, a as E, b as r, D as O, E as o, d as S, G as R, e as _, I as t, L, N as C, O as A, R as N, S as n, f as I, g as T, h as g, U as i, i as l } from "./chunks/index-DnKqD4ge.js";
|
|
2
2
|
import { a as p, S as G, b as f } from "./chunks/paletteRegistry-NrWOKT-A.js";
|
|
3
3
|
import { D as y, E as D } from "./chunks/DataSource-DEg3igzS.js";
|
|
4
4
|
import { k as P, l as U, g as c, h as m, A as u, C as x, i as B } from "./chunks/Algorithm-RQ629NLb.js";
|
|
5
|
-
import { e as H, E as b, N as Y, a as F, P as W, R as k, S as K, d as v, b as w, c as Q } from "./chunks/NodeStyle-
|
|
5
|
+
import { e as H, E as b, N as Y, a as F, P as W, R as k, S as K, d as v, b as w, c as Q } from "./chunks/NodeStyle-DKj7HjMJ.js";
|
|
6
6
|
import { A as j, a as q, G as z, i as J, b as Z } from "./chunks/GraphtyError-BwcnblTH.js";
|
|
7
7
|
import { B as aa, a as sa, b as ea, C as Ea, G as ra, c as Oa, I as oa, O as Sa, d as Ra, e as _a, f as ta, P as La, g as Ca, h as Aa, R as Na, T as na, i as Ia, V as Ta, Y as ga } from "./chunks/sequential-Zym81qm7.js";
|
|
8
8
|
import { a as la, G as da, V as pa, i as Ga } from "./chunks/GraphStyle-D0PXnZKu.js";
|
package/dist/schema.js
CHANGED
|
@@ -2,7 +2,7 @@ import { R as N, e as x } from "./chunks/types-B7bX5c0K.js";
|
|
|
2
2
|
import { M as A, h as y, i as M } from "./chunks/interpolation-DY-PNpqX.js";
|
|
3
3
|
import { B as D, a as U, b as B, C as P, G as H, c as V, I as $, O as w, d as F, e as W, f as Y, P as j, g as k, h as q, R as K, T as v, i as z, V as J, Y as Q } from "./chunks/sequential-Zym81qm7.js";
|
|
4
4
|
import { D as Z, a as tt, G as nt, b as at, V as st, i as et } from "./chunks/GraphStyle-D0PXnZKu.js";
|
|
5
|
-
import { E as rt, N as ct, a as it, R as Ot, d as St, b as Rt, c as lt } from "./chunks/NodeStyle-
|
|
5
|
+
import { E as rt, N as ct, a as it, R as Ot, d as St, b as Rt, c as lt } from "./chunks/NodeStyle-DKj7HjMJ.js";
|
|
6
6
|
import { c as ft } from "./chunks/common-DWNKjpH_.js";
|
|
7
7
|
function l(t) {
|
|
8
8
|
const n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
package/dist/session.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { R as A, e as R } from "./chunks/types-B7bX5c0K.js";
|
|
2
2
|
import { A as _, a as C, G as g, i as m, b as L } from "./chunks/GraphtyError-BwcnblTH.js";
|
|
3
3
|
import { g as U, h as I, i as N } from "./chunks/Algorithm-RQ629NLb.js";
|
|
4
|
-
import { D as h } from "./chunks/GraphSession-
|
|
5
|
-
import { a as y, b as D, c as w, Q as b, R as v, d as G, e as x, S as z, T as F, f as M, i as j, g as H, h as Y, j as k } from "./chunks/GraphSession-
|
|
4
|
+
import { D as h } from "./chunks/GraphSession-DDrQWABb.js";
|
|
5
|
+
import { a as y, b as D, c as w, Q as b, R as v, d as G, e as x, S as z, T as F, f as M, i as j, g as H, h as Y, j as k } from "./chunks/GraphSession-DDrQWABb.js";
|
|
6
6
|
import { R as Q, w as X, x as B, y as J, z as K, A as V } from "./chunks/paletteRegistry-NrWOKT-A.js";
|
|
7
|
-
import { a as n } from "./chunks/scales-
|
|
7
|
+
import { a as n } from "./chunks/scales-DKsbJE2L.js";
|
|
8
8
|
const u = Object.freeze({
|
|
9
9
|
/** Above this node count the element draws less visual detail. A shipped default, not measured. */
|
|
10
10
|
largeGraphThreshold: 1e4,
|
|
@@ -390,6 +390,10 @@ export declare const EdgeStyle: z.ZodObject<{
|
|
|
390
390
|
* thousands and the frame rate collapses. Set this to cap it: the elements are then
|
|
391
391
|
* spread evenly over the edge whatever its length or width.
|
|
392
392
|
*
|
|
393
|
+
* It applies to the discrete patterns only (dot, star, box, dash, diamond, dash-dot).
|
|
394
|
+
* Zigzag and sinewave are drawn as fixed-length connected segments that always tile the
|
|
395
|
+
* whole edge, so they ignore it.
|
|
396
|
+
*
|
|
393
397
|
* This is a USER choice, deliberately. The renderer does not silently impose a ceiling,
|
|
394
398
|
* because that would change how a graph looks to buy performance the caller never asked
|
|
395
399
|
* for -- the same reason an algorithm's style layer never mutes another layer.
|
|
@@ -15,6 +15,13 @@ import type { SelectionDelta, SelectionTarget, SetOp } from "./session/selection
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class Graphty extends LitElement {
|
|
17
17
|
#private;
|
|
18
|
+
/**
|
|
19
|
+
* The host is a block that fills its parent's width. Its height is the parent's when the
|
|
20
|
+
* parent has a definite height, the element's own when the page sets one, and otherwise half
|
|
21
|
+
* its width: `aspect-ratio` only applies while the used height is `auto`, so a bare tag keeps
|
|
22
|
+
* the 2:1 canvas it always had. Every rule here can be overridden from the page.
|
|
23
|
+
*/
|
|
24
|
+
static styles: import("lit").CSSResult;
|
|
18
25
|
/**
|
|
19
26
|
* Creates a new Graphty element instance.
|
|
20
27
|
*/
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
* is drawn by a highlight LAYER whose blur size belongs to the layer, so every outline on
|
|
26
26
|
* screen is one width. This is the sentence the element's natural-language layer reads out
|
|
27
27
|
* when someone asks for an outline width, so it answers with a reason rather than a refusal.
|
|
28
|
-
* - `edge.patternCount` counts the elements of a PATTERNED line. A solid line has none to count
|
|
28
|
+
* - `edge.patternCount` counts the elements of a PATTERNED line. A solid line has none to count,
|
|
29
|
+
* and zigzag and sinewave ignore it because they always tile the whole edge.
|
|
29
30
|
* - The four arrow caption channels draw words at ONE END of an edge, hanging from the cap
|
|
30
31
|
* there. An end with no cap carries no caption, and the words are what switch one on.
|
|
31
32
|
* - The two node tooltip channels draw on HOVER and only on hover, so a graph at rest carries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphty/graphty-element",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "A Web Component library for 3D/2D graph visualization built with Lit and Babylon.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"customElements": "./dist/custom-elements.json",
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
"vite-plugin-eslint": "^1.8.1",
|
|
134
134
|
"vitepress": "^1.6.3",
|
|
135
135
|
"vitest": "^3.2.4",
|
|
136
|
-
"@graphty/
|
|
137
|
-
"@graphty/
|
|
136
|
+
"@graphty/webgpu-graph-algorithms": "^0.6.4",
|
|
137
|
+
"@graphty/remote-logger": "^1.3.7"
|
|
138
138
|
},
|
|
139
139
|
"peerDependencies": {
|
|
140
140
|
"@ai-sdk/anthropic": "^2.0.50",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"ai": "^5.0.104",
|
|
147
147
|
"encrypt-storage": "^2.14.7",
|
|
148
148
|
"lit": "^3.0.0",
|
|
149
|
-
"@graphty/webgpu-graph-algorithms": "^0.6.
|
|
149
|
+
"@graphty/webgpu-graph-algorithms": "^0.6.4"
|
|
150
150
|
},
|
|
151
151
|
"peerDependenciesMeta": {
|
|
152
152
|
"@ai-sdk/anthropic": {
|
|
@@ -184,9 +184,9 @@
|
|
|
184
184
|
"papaparse": "^5.5.3",
|
|
185
185
|
"toposort": "^2.0.2",
|
|
186
186
|
"zod": "^3.25.28",
|
|
187
|
-
"@graphty/algorithms": "^2.0.
|
|
188
|
-
"@graphty/
|
|
189
|
-
"@graphty/
|
|
187
|
+
"@graphty/algorithms": "^2.0.3",
|
|
188
|
+
"@graphty/graph-format": "^1.0.5",
|
|
189
|
+
"@graphty/layout": "^1.9.1"
|
|
190
190
|
},
|
|
191
191
|
"overrides": {
|
|
192
192
|
"storybook": "$storybook"
|