@graphysdk/react-renderer 1.8.1-beta.1786548285802 → 1.8.1-beta.1786626875304
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/editable.cjs +1 -1
- package/dist/editable.css +1 -1
- package/dist/editable.mjs +2075 -1841
- package/dist/{font-values-CPxYeqns.js → font-values-BZDSyJGS.js} +1 -1
- package/dist/font-values-B_MGX5Fo.cjs +2 -0
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.mjs +1 -1
- package/dist/history-chords-Ch2Waaba.cjs +1 -0
- package/dist/{history-chords-ac4BYzSp.js → history-chords-D_Rvl7hX.js} +2198 -2061
- package/dist/history-chords.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +104 -104
- package/package.json +2 -2
- package/dist/font-values-CStAZ2d1.cjs +0 -2
- package/dist/font-values.css +0 -1
- package/dist/history-chords-BgYclR70.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { g as tr } from "./font-values-
|
|
3
|
-
import { COMPILER_STAGE_KEYS as Y, Geom as me, GraphCompilationSession as ge, areEditTargetsEqual as he, buildDiagnostic as
|
|
4
|
-
import { Component as Te, useCallback as f, useEffect as $, useId as Ce, useImperativeHandle as Ne, useMemo as
|
|
1
|
+
import { $ as ae, C as It, G as kt, H as wt, I as _t, K as Dt, L as $t, Q as K, S as Ht, V as xt, X as Mt, Y as Lt, a as Pt, at as Kt, et as Bt, ft as Ot, g as At, h as Yt, i as jt, it as ce, mt as te, n as Ft, nt as de, ot as Ut, pt as le, r as Vt, rt as Wt, st as Xt, t as ue, tt as A, u as Qt, ut as zt, x as Jt, z as Zt } from "./history-chords-D_Rvl7hX.js";
|
|
2
|
+
import { g as tr } from "./font-values-BZDSyJGS.js";
|
|
3
|
+
import { COMPILER_STAGE_KEYS as Y, Geom as me, GraphCompilationSession as ge, areEditTargetsEqual as he, buildDiagnostic as V, createAnchorResolver as pe, createCompiler as fe, createGraphyBuilder as ve, findAnnotation as ye, isCompilerCachingEnabled as be, resolveDefinition as Se, setCompilerCachingEnabled as Ee } from "@graphysdk/viz-engine";
|
|
4
|
+
import { Component as Te, useCallback as f, useEffect as $, useId as Ce, useImperativeHandle as Ne, useMemo as L, useRef as W, useState as T, useSyncExternalStore as Re } from "react";
|
|
5
5
|
import { Fragment as qe, jsx as c, jsxs as v } from "react/jsx-runtime";
|
|
6
6
|
import { useStore as X } from "zustand";
|
|
7
7
|
import { createStore as j } from "zustand/vanilla";
|
|
8
8
|
import Ge from "clsx";
|
|
9
|
-
import './index.css';function
|
|
9
|
+
import './index.css';function O(e) {
|
|
10
10
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
11
11
|
}
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var Ie = "_1a5iqpb0", ke = "_1a5iqpb1";
|
|
13
|
+
var we = "_1a5iqpb3", _e = "_1a5iqpb4", De = "_1a5iqpb5";
|
|
14
|
+
var Q = ({ errors: e }) => {
|
|
15
15
|
const [t, ...r] = e;
|
|
16
16
|
return /* @__PURE__ */ v("div", {
|
|
17
17
|
role: "alert",
|
|
18
|
-
className:
|
|
18
|
+
className: Ie,
|
|
19
19
|
children: [
|
|
20
20
|
/* @__PURE__ */ c("strong", {
|
|
21
|
-
className:
|
|
21
|
+
className: ke,
|
|
22
22
|
children: "This chart could not be rendered."
|
|
23
23
|
}),
|
|
24
|
-
t && /* @__PURE__ */ c(
|
|
24
|
+
t && /* @__PURE__ */ c(z, { diagnostic: t }),
|
|
25
25
|
r.length > 0 && /* @__PURE__ */ c("ul", {
|
|
26
26
|
className: "_1a5iqpb2",
|
|
27
|
-
children: r.map((n, o) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(
|
|
27
|
+
children: r.map((n, o) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(z, { diagnostic: n }) }, `${n.code}-${o}`))
|
|
28
28
|
})
|
|
29
29
|
]
|
|
30
30
|
});
|
|
31
|
-
},
|
|
32
|
-
className:
|
|
31
|
+
}, z = ({ diagnostic: e }) => /* @__PURE__ */ v("div", {
|
|
32
|
+
className: we,
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ c("span", {
|
|
35
|
-
className:
|
|
35
|
+
className: _e,
|
|
36
36
|
children: e.code
|
|
37
37
|
}),
|
|
38
38
|
/* @__PURE__ */ c("p", {
|
|
@@ -53,35 +53,35 @@ var He = class extends Te {
|
|
|
53
53
|
super(...e), this.state = { caughtDiagnostic: null };
|
|
54
54
|
}
|
|
55
55
|
static getDerivedStateFromError(e) {
|
|
56
|
-
return { caughtDiagnostic:
|
|
56
|
+
return { caughtDiagnostic: V(e) };
|
|
57
57
|
}
|
|
58
58
|
componentDidCatch(e, t) {
|
|
59
|
-
const r =
|
|
60
|
-
|
|
59
|
+
const r = V(e);
|
|
60
|
+
O([r]), this.props.onError?.([r]), console.error("Chart render component stack:", t.componentStack);
|
|
61
61
|
}
|
|
62
62
|
componentDidUpdate(e) {
|
|
63
63
|
this.state.caughtDiagnostic && !$e(e.resetKeys, this.props.resetKeys) && this.setState({ caughtDiagnostic: null });
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
const { caughtDiagnostic: e } = this.state;
|
|
67
|
-
if (e) return /* @__PURE__ */ c(
|
|
67
|
+
if (e) return /* @__PURE__ */ c(Q, { errors: [e] });
|
|
68
68
|
const { forcedErrors: t, children: r } = this.props;
|
|
69
|
-
return t && t.length > 0 ? /* @__PURE__ */ c(
|
|
69
|
+
return t && t.length > 0 ? /* @__PURE__ */ c(Q, { errors: t }) : r;
|
|
70
70
|
}
|
|
71
71
|
}, re = (e) => typeof e == "object" && "geom" in e && "render" in e, xe = (e) => {
|
|
72
72
|
const t = Se(e);
|
|
73
73
|
return t instanceof me ? t : null;
|
|
74
74
|
}, Me = (e, t) => {
|
|
75
|
-
const r = e.filter((n) =>
|
|
75
|
+
const r = e.filter((n) => Le(n, t));
|
|
76
76
|
return r.length === e.length ? e : r;
|
|
77
|
-
},
|
|
78
|
-
selection:
|
|
77
|
+
}, Le = (e, t) => e.kind !== "annotation" ? !0 : ye(t.annotations, e.id) !== null, J = [], Pe = () => j((e) => ({
|
|
78
|
+
selection: J,
|
|
79
79
|
setSelection: (t) => e((r) => Ke(r.selection, t) ? r : { selection: t }),
|
|
80
|
-
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection:
|
|
80
|
+
clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: J })
|
|
81
81
|
})), Ke = (e, t) => e === t ? !0 : e.length !== t.length ? !1 : e.every((r, n) => {
|
|
82
82
|
const o = t[n];
|
|
83
83
|
return o !== void 0 && he(r, o);
|
|
84
|
-
}),
|
|
84
|
+
}), Be = 5, Oe = (e) => {
|
|
85
85
|
if (process.env.NODE_ENV === "production") return {
|
|
86
86
|
emit: () => {
|
|
87
87
|
},
|
|
@@ -122,7 +122,7 @@ var He = class extends Te {
|
|
|
122
122
|
};
|
|
123
123
|
return {
|
|
124
124
|
lastCompile: o,
|
|
125
|
-
history: Fe(n.history, o,
|
|
125
|
+
history: Fe(n.history, o, Be),
|
|
126
126
|
nextId: n.nextId + 1,
|
|
127
127
|
lastSnapshot: r
|
|
128
128
|
};
|
|
@@ -144,7 +144,7 @@ var He = class extends Te {
|
|
|
144
144
|
return [...e.slice(n), t];
|
|
145
145
|
};
|
|
146
146
|
function Ue(e) {
|
|
147
|
-
const t = e.filter(re), r = /* @__PURE__ */ new Set([...Object.keys(
|
|
147
|
+
const t = e.filter(re), r = /* @__PURE__ */ new Set([...Object.keys(de), ...t.map((a) => a.geom)]), n = [], o = /* @__PURE__ */ new Set();
|
|
148
148
|
for (const a of e) {
|
|
149
149
|
const l = xe(a);
|
|
150
150
|
l === null || r.has(l.type) || o.has(l.type) || (o.add(l.type), n.push({
|
|
@@ -187,7 +187,7 @@ function Ue(e) {
|
|
|
187
187
|
warnings: i
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Ve(e, t) {
|
|
191
191
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), d = [];
|
|
192
192
|
for (const i of n)
|
|
193
193
|
t(i.geom, r.type) !== null || o.has(i.geom) || (o.add(i.geom), d.push({
|
|
@@ -203,7 +203,7 @@ function We(e, t) {
|
|
|
203
203
|
}));
|
|
204
204
|
return d;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function We(e, t) {
|
|
207
207
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), d = [];
|
|
208
208
|
for (const i of n) {
|
|
209
209
|
if (i.interactive === !1 || i.spatialKind !== "render-hit-test" || o.has(i.geom)) continue;
|
|
@@ -240,7 +240,7 @@ function Xe(e) {
|
|
|
240
240
|
}
|
|
241
241
|
return r;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Qe(e, t) {
|
|
244
244
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), d = [];
|
|
245
245
|
for (const i of n) {
|
|
246
246
|
if (i.interactive === !1 || i.spatialKind !== "render-hit-test" || o.has(i.geom)) continue;
|
|
@@ -259,7 +259,7 @@ function ze(e, t) {
|
|
|
259
259
|
}
|
|
260
260
|
return d;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function ze(e, t) {
|
|
263
263
|
const r = /* @__PURE__ */ new Set(), n = [];
|
|
264
264
|
for (const o of e.layers)
|
|
265
265
|
o.interactive !== !1 && (o.spatialKind !== "render-hit-test" || r.has(o.geom) || t.hasCapability(o.geom) || (r.add(o.geom), n.push({
|
|
@@ -275,7 +275,7 @@ function Je(e, t) {
|
|
|
275
275
|
})));
|
|
276
276
|
return n;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Je(e, t) {
|
|
279
279
|
const { coordSystem: r, layers: n } = e, o = /* @__PURE__ */ new Set(), d = [];
|
|
280
280
|
for (const i of n) {
|
|
281
281
|
if (i.interactive === !1 || i.spatialKind === "render-hit-test" || o.has(i.geom)) continue;
|
|
@@ -298,13 +298,13 @@ var Ze = (e) => j((t) => ({
|
|
|
298
298
|
compiled: e,
|
|
299
299
|
setCompiled: (r) => t((n) => n.compiled === r ? n : { compiled: r })
|
|
300
300
|
})), et = ({ input: e, data: t, customPalettes: r, plugins: n, resolveRenderer: o, anchorResolver: d, onChange: i, onError: a, onWarnings: l }) => {
|
|
301
|
-
const m = K(i), q = K(a),
|
|
301
|
+
const m = K(i), q = K(a), w = K(l), [{ session: g, compileBus: b }] = T(() => {
|
|
302
302
|
const s = fe({ plugins: n });
|
|
303
303
|
return {
|
|
304
304
|
session: new ge(s),
|
|
305
|
-
compileBus:
|
|
305
|
+
compileBus: Oe(s)
|
|
306
306
|
};
|
|
307
|
-
}), [u] = T(() => Ue(n ?? [])), h =
|
|
307
|
+
}), [u] = T(() => Ue(n ?? [])), h = W(null), [y] = T(tt), C = W(null), G = f((s) => u.errors.length === 0 ? s : [...u.errors, ...s ?? []], [u]), N = f((s) => {
|
|
308
308
|
if (!s.ok) return s.errors;
|
|
309
309
|
if (C.current) C.current.getState().setCompiled(s.compiled);
|
|
310
310
|
else {
|
|
@@ -312,7 +312,7 @@ var Ze = (e) => j((t) => ({
|
|
|
312
312
|
p.subscribe(y.notify), C.current = p, y.notify();
|
|
313
313
|
}
|
|
314
314
|
return null;
|
|
315
|
-
}, [y]), [H,
|
|
315
|
+
}, [y]), [H, _] = T(() => {
|
|
316
316
|
const s = g.compile({
|
|
317
317
|
input: e,
|
|
318
318
|
data: t,
|
|
@@ -321,23 +321,23 @@ var Ze = (e) => j((t) => ({
|
|
|
321
321
|
return h.current = s, G(N(s));
|
|
322
322
|
}), R = f((s) => s.ok ? [
|
|
323
323
|
...s.warnings,
|
|
324
|
-
...We(s.compiled, o),
|
|
325
324
|
...Ve(s.compiled, o),
|
|
325
|
+
...We(s.compiled, o),
|
|
326
326
|
...Xe(s.compiled),
|
|
327
|
-
...ze(s.compiled, o),
|
|
328
327
|
...Qe(s.compiled, o),
|
|
329
|
-
...Je(s.compiled,
|
|
330
|
-
|
|
331
|
-
|
|
328
|
+
...Je(s.compiled, o),
|
|
329
|
+
...ze(s.compiled, d)
|
|
330
|
+
] : s.warnings, [o, d]), I = f((s) => {
|
|
331
|
+
s.length !== 0 && (O(s), q.current?.(s));
|
|
332
332
|
}, [q]), S = f((s) => {
|
|
333
|
-
s.length !== 0 && (
|
|
334
|
-
}, [
|
|
333
|
+
s.length !== 0 && (O(s), w.current?.(s));
|
|
334
|
+
}, [w]);
|
|
335
335
|
$(() => {
|
|
336
336
|
const s = h.current;
|
|
337
|
-
s && (
|
|
337
|
+
s && (I([...u.errors, ...s.ok ? [] : s.errors]), S([...u.warnings, ...R(s)]), s.ok && b.emit({ kind: "init" }));
|
|
338
338
|
}, [
|
|
339
339
|
b,
|
|
340
|
-
|
|
340
|
+
I,
|
|
341
341
|
S,
|
|
342
342
|
u,
|
|
343
343
|
R
|
|
@@ -350,7 +350,7 @@ var Ze = (e) => j((t) => ({
|
|
|
350
350
|
if (!s) return;
|
|
351
351
|
s.sealedInput && m.current?.(s.sealedInput);
|
|
352
352
|
const p = N(s.result);
|
|
353
|
-
|
|
353
|
+
_(G(p)), p && I(p), S(R(s.result)), p || b.emit({ kind: s.inputChanged ? "input" : "data" });
|
|
354
354
|
}, [
|
|
355
355
|
e,
|
|
356
356
|
t,
|
|
@@ -358,36 +358,36 @@ var Ze = (e) => j((t) => ({
|
|
|
358
358
|
g,
|
|
359
359
|
b,
|
|
360
360
|
N,
|
|
361
|
-
|
|
361
|
+
I,
|
|
362
362
|
S,
|
|
363
363
|
G,
|
|
364
364
|
R,
|
|
365
365
|
m
|
|
366
366
|
]);
|
|
367
367
|
const D = f((s) => {
|
|
368
|
-
|
|
368
|
+
_((p) => p === null ? p : G(null)), S(R(s));
|
|
369
369
|
}, [
|
|
370
370
|
G,
|
|
371
371
|
S,
|
|
372
372
|
R
|
|
373
|
-
]),
|
|
373
|
+
]), k = f((s) => {
|
|
374
374
|
s.compiled && C.current?.getState().setCompiled(s.compiled), s.result && D(s.result), s.command && b.emit({
|
|
375
375
|
kind: "command",
|
|
376
376
|
command: s.command
|
|
377
|
-
}), s.input && m.current?.(s.input), s.errors &&
|
|
377
|
+
}), s.input && m.current?.(s.input), s.errors && I([...s.errors]);
|
|
378
378
|
}, [
|
|
379
379
|
D,
|
|
380
380
|
b,
|
|
381
381
|
m,
|
|
382
|
-
|
|
382
|
+
I
|
|
383
383
|
]), E = f((s) => {
|
|
384
|
-
for (const p of s)
|
|
384
|
+
for (const p of s) k(p);
|
|
385
385
|
return s.some((p) => !!p.compiled);
|
|
386
|
-
}, [
|
|
386
|
+
}, [k]), x = f((s, p) => {
|
|
387
387
|
E(g.applyCommand(s, p));
|
|
388
|
-
}, [g, E]),
|
|
388
|
+
}, [g, E]), P = f(() => {
|
|
389
389
|
E(g.seal());
|
|
390
|
-
}, [g, E]), F = f(() => E(g.undo()), [g, E]), U = f(() => E(g.redo()), [g, E]), oe =
|
|
390
|
+
}, [g, E]), F = f(() => E(g.undo()), [g, E]), U = f(() => E(g.redo()), [g, E]), oe = L(() => ({
|
|
391
391
|
stack: g.history,
|
|
392
392
|
undo: F,
|
|
393
393
|
redo: U
|
|
@@ -399,7 +399,7 @@ var Ze = (e) => j((t) => ({
|
|
|
399
399
|
return {
|
|
400
400
|
store: C.current,
|
|
401
401
|
dispatch: x,
|
|
402
|
-
seal:
|
|
402
|
+
seal: P,
|
|
403
403
|
history: oe,
|
|
404
404
|
subscribe: y.subscribe,
|
|
405
405
|
getCompiled: ie,
|
|
@@ -414,8 +414,8 @@ var Ze = (e) => j((t) => ({
|
|
|
414
414
|
}),
|
|
415
415
|
notify: () => e.forEach((t) => t())
|
|
416
416
|
};
|
|
417
|
-
}, rt = {}, nt = ({ data: e, input: t, plugins: r = [], formattingLocale: n, handleRef: o, onChange: d, onError: i, onWarnings: a, customPalettes: l, colorScheme: m = "light", themeOverrides: q = rt, children:
|
|
418
|
-
const [g] = T(() =>
|
|
417
|
+
}, rt = {}, nt = ({ data: e, input: t, plugins: r = [], formattingLocale: n, handleRef: o, onChange: d, onError: i, onWarnings: a, customPalettes: l, colorScheme: m = "light", themeOverrides: q = rt, children: w }) => {
|
|
418
|
+
const [g] = T(() => ae(r.filter(re))), b = Ce(), [u] = T(() => pe(r)), [h] = T(() => Pe()), { store: y, dispatch: C, seal: G, history: N, subscribe: H, getCompiled: _, compileBus: R, compileErrors: I } = et({
|
|
419
419
|
input: t,
|
|
420
420
|
data: e,
|
|
421
421
|
customPalettes: l,
|
|
@@ -428,13 +428,13 @@ var Ze = (e) => j((t) => ({
|
|
|
428
428
|
});
|
|
429
429
|
$(() => {
|
|
430
430
|
if (y)
|
|
431
|
-
return y.subscribe((
|
|
432
|
-
if (
|
|
433
|
-
const { selection: x, setSelection:
|
|
434
|
-
x.length !== 0 &&
|
|
431
|
+
return y.subscribe((k, E) => {
|
|
432
|
+
if (k.compiled.spec === E.compiled.spec) return;
|
|
433
|
+
const { selection: x, setSelection: P } = h.getState();
|
|
434
|
+
x.length !== 0 && P(Me(x, k.compiled.spec));
|
|
435
435
|
});
|
|
436
436
|
}, [y, h]);
|
|
437
|
-
const S =
|
|
437
|
+
const S = L(() => ({
|
|
438
438
|
dispatch: C,
|
|
439
439
|
seal: G
|
|
440
440
|
}), [C, G]);
|
|
@@ -443,18 +443,18 @@ var Ze = (e) => j((t) => ({
|
|
|
443
443
|
undo: N.undo,
|
|
444
444
|
redo: N.redo,
|
|
445
445
|
subscribe: H,
|
|
446
|
-
getCompiled:
|
|
446
|
+
getCompiled: _,
|
|
447
447
|
getSelection: () => h.getState().selection,
|
|
448
|
-
setSelection: (
|
|
448
|
+
setSelection: (k) => h.getState().setSelection(k),
|
|
449
449
|
subscribeSelection: h.subscribe
|
|
450
450
|
}), [
|
|
451
451
|
S,
|
|
452
452
|
N,
|
|
453
453
|
H,
|
|
454
|
-
|
|
454
|
+
_,
|
|
455
455
|
h
|
|
456
456
|
]);
|
|
457
|
-
const D =
|
|
457
|
+
const D = L(() => y ? {
|
|
458
458
|
chartId: b,
|
|
459
459
|
store: y,
|
|
460
460
|
selectionStore: h,
|
|
@@ -478,14 +478,14 @@ var Ze = (e) => j((t) => ({
|
|
|
478
478
|
u
|
|
479
479
|
]);
|
|
480
480
|
return /* @__PURE__ */ c(He, {
|
|
481
|
-
forcedErrors:
|
|
481
|
+
forcedErrors: I,
|
|
482
482
|
onError: i,
|
|
483
483
|
resetKeys: [t, e],
|
|
484
|
-
children: D ? /* @__PURE__ */ c(
|
|
484
|
+
children: D ? /* @__PURE__ */ c(le.Provider, {
|
|
485
485
|
value: D,
|
|
486
|
-
children: /* @__PURE__ */ c(
|
|
486
|
+
children: /* @__PURE__ */ c(ce, {
|
|
487
487
|
value: g,
|
|
488
|
-
children:
|
|
488
|
+
children: w
|
|
489
489
|
})
|
|
490
490
|
}) : null
|
|
491
491
|
});
|
|
@@ -508,7 +508,7 @@ var dr = ({ children: e, ...t }) => /* @__PURE__ */ c("svg", {
|
|
|
508
508
|
pointerEvents: "none",
|
|
509
509
|
...t,
|
|
510
510
|
children: e
|
|
511
|
-
}), st = "drqe3u0", ot = "drqe3u1", it = "drqe3u2", at = "drqe3u3", M = "drqe3u4", ct = "drqe3u5", dt = "drqe3u6", lt = "drqe3u7",
|
|
511
|
+
}), st = "drqe3u0", ot = "drqe3u1", it = "drqe3u2", at = "drqe3u3", M = "drqe3u4", ct = "drqe3u5", dt = "drqe3u6", lt = "drqe3u7", B = "drqe3u8", ut = "drqe3u9", mt = "drqe3ua";
|
|
512
512
|
var gt = "drqe3uc", ht = "drqe3ud", pt = "drqe3ue", ft = "drqe3uf";
|
|
513
513
|
var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
514
514
|
enabled: "drqe3uk drqe3uj",
|
|
@@ -526,7 +526,7 @@ var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
|
526
526
|
const { recordCompile: u } = o.getState(), h = n.getLastTrigger(), y = n.getLastCompile();
|
|
527
527
|
return h && y && u(h, y), n.subscribe(u);
|
|
528
528
|
}, [o, n]);
|
|
529
|
-
const m = X(o, (u) => u.lastCompile), q = X(o, (u) => u.history),
|
|
529
|
+
const m = X(o, (u) => u.lastCompile), q = X(o, (u) => u.history), w = n.getCacheStats(), g = m === null && q.length === 0, b = () => {
|
|
530
530
|
l((u) => {
|
|
531
531
|
const h = !u;
|
|
532
532
|
return Ee(h), h;
|
|
@@ -569,7 +569,7 @@ var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
|
569
569
|
}),
|
|
570
570
|
!d && !g && /* @__PURE__ */ v(qe, { children: [/* @__PURE__ */ c(bt, {
|
|
571
571
|
delta: m?.stages,
|
|
572
|
-
cumulative:
|
|
572
|
+
cumulative: w
|
|
573
573
|
}), /* @__PURE__ */ c(St, { entries: q })] })
|
|
574
574
|
]
|
|
575
575
|
});
|
|
@@ -620,15 +620,15 @@ var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
|
620
620
|
children: n?.misses ?? 0
|
|
621
621
|
}),
|
|
622
622
|
/* @__PURE__ */ c("td", {
|
|
623
|
-
className:
|
|
623
|
+
className: B,
|
|
624
624
|
children: n?.hits ?? 0
|
|
625
625
|
}),
|
|
626
626
|
/* @__PURE__ */ c("td", {
|
|
627
|
-
className:
|
|
627
|
+
className: B,
|
|
628
628
|
children: t[r].misses
|
|
629
629
|
}),
|
|
630
630
|
/* @__PURE__ */ c("td", {
|
|
631
|
-
className:
|
|
631
|
+
className: B,
|
|
632
632
|
children: t[r].hits
|
|
633
633
|
})
|
|
634
634
|
]
|
|
@@ -672,7 +672,7 @@ var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
|
672
672
|
return r;
|
|
673
673
|
}, se = (e) => e >= 10 ? `${e.toFixed(0)}ms` : `${e.toFixed(2)}ms`, ur = () => {
|
|
674
674
|
const { history: e } = te(), { stack: t, undo: r, redo: n } = e, o = f((a) => t.subscribe(a), [t]), d = f(() => t.getSnapshot(), [t]), i = Re(o, d, d);
|
|
675
|
-
return
|
|
675
|
+
return L(() => ({
|
|
676
676
|
...i,
|
|
677
677
|
undo: r,
|
|
678
678
|
redo: n
|
|
@@ -712,40 +712,40 @@ var vt = "drqe3uh", yt = "drqe3ui", Z = {
|
|
|
712
712
|
]);
|
|
713
713
|
}, Nt = (e) => e === void 0 ? window : e !== null && "current" in e ? e.current : e, Rt = (e) => "key" in e, qt = (e) => e instanceof HTMLInputElement ? !Ct.has(e.type) : e instanceof HTMLElement ? e.isContentEditable || e.tagName === "TEXTAREA" : !1;
|
|
714
714
|
export {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
715
|
+
Ht as BrandMark,
|
|
716
|
+
Xt as CanvasTextMeasurer,
|
|
717
|
+
At as DefaultFooter,
|
|
718
|
+
Pt as DefaultGrid,
|
|
719
|
+
Yt as DefaultHeader,
|
|
720
|
+
Wt as DefaultSwatch,
|
|
721
|
+
_t as DefaultTooltip,
|
|
722
722
|
lr as DevToolsPanel,
|
|
723
723
|
He as GraphErrorBoundary,
|
|
724
|
-
|
|
724
|
+
Q as GraphErrorPanel,
|
|
725
725
|
nt as GraphProvider,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
726
|
+
jt as GraphRenderer,
|
|
727
|
+
Mt as HoverProvider,
|
|
728
|
+
Kt as TextMeasurerProvider,
|
|
729
|
+
Zt as ThemeProvider,
|
|
730
730
|
dr as UnitSpaceSvg,
|
|
731
731
|
cr as createGraphyKit,
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
732
|
+
xt as darkTheme,
|
|
733
|
+
Bt as defineGeomRenderer,
|
|
734
|
+
wt as lightTheme,
|
|
735
|
+
zt as lightenCss,
|
|
736
736
|
Me as pruneSelection,
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
It as resolveBrandMarkVisual,
|
|
738
|
+
Ot as useCompiledSelector,
|
|
739
739
|
Dt as useElementScreenRect,
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
740
|
+
Lt as useGeomHitTest,
|
|
741
|
+
kt as useGeomHover,
|
|
742
|
+
Jt as useGraphCommands,
|
|
743
|
+
Vt as useGraphHandle,
|
|
744
744
|
ur as useGraphHistory,
|
|
745
745
|
mr as useGraphHistoryShortcuts,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
746
|
+
Qt as useGraphSelection,
|
|
747
|
+
Ft as useHandleCompiled,
|
|
748
|
+
$t as useHoverState,
|
|
749
|
+
Ut as useTextMeasurer,
|
|
750
750
|
tr as vars
|
|
751
751
|
};
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"visualization",
|
|
12
12
|
"renderer"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.8.1-beta.
|
|
14
|
+
"version": "1.8.1-beta.1786626875304",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"sideEffects": [
|
|
17
17
|
"**/*.css.ts",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-colorful": "^5.6.1",
|
|
50
50
|
"react-intl": "^8.1.3",
|
|
51
51
|
"zustand": "^5.0.12",
|
|
52
|
-
"@graphysdk/viz-engine": "1.8.1-beta.
|
|
52
|
+
"@graphysdk/viz-engine": "1.8.1-beta.1786626875304"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@tiptap/core": "^3.0.0",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require('./font-values.css');let d=require("@graphysdk/viz-engine");var m=["canvasDefault","canvasBlue","canvasCyan","canvasGreen","canvasYellow","canvasOrange","canvasRed","canvasPink","canvasPurple","canvasGray","canvasInverse"],e={white:"var(--graphy-white)",black:"var(--graphy-black)",transparent:"var(--graphy-transparent)",grey100:"var(--graphy-grey-100)",grey95:"var(--graphy-grey-95)",grey90:"var(--graphy-grey-90)",grey85:"var(--graphy-grey-85)",grey80:"var(--graphy-grey-80)",grey75:"var(--graphy-grey-75)",grey70:"var(--graphy-grey-70)",grey60:"var(--graphy-grey-60)",grey50:"var(--graphy-grey-50)",grey0:"var(--graphy-grey-0)",greyGradient80:"var(--graphy-grey-gradient-80)",green60:"var(--graphy-green-60)",green50:"var(--graphy-green-50)",red60:"var(--graphy-red-60)",red50:"var(--graphy-red-50)",amber70:"var(--graphy-amber-70)",amber50:"var(--graphy-amber-50)",amber40:"var(--graphy-amber-40)",amber30:"var(--graphy-amber-30)",blue80:"var(--graphy-blue-80)",blue60:"var(--graphy-blue-60)",purple50:"var(--graphy-purple-50)",purple30:"var(--graphy-purple-30)",brand:"var(--graphy-brand)",success:"var(--graphy-success)",warning:"var(--graphy-warning)",alert:"var(--graphy-alert)",textPrimary:"var(--graphy-text-primary)",textSecondary:"var(--graphy-text-secondary)",textDisabled:"var(--graphy-text-disabled)",iconPrimary:"var(--graphy-icon-primary)",iconSecondary:"var(--graphy-icon-secondary)",iconStickerBackground:"var(--graphy-icon-sticker-background)",border100:"var(--graphy-border-100)",border50:"var(--graphy-border-50)",border10:"var(--graphy-border-10)",sunkenBackground:"var(--graphy-sunken-background)",defaultBackground:"var(--graphy-default-background)",raisedBackground:"var(--graphy-raised-background)",overlayBackground:"var(--graphy-overlay-background)",overlayBorderGradient:"var(--graphy-overlay-border-gradient)",graphBackground:"var(--graphy-graph-background)",gridLineColor:"var(--graphy-grid-line-color)",axisTickColor:"var(--graphy-axis-tick-color)",originLineColor:"var(--graphy-origin-line-color)",legendBackground:"var(--graphy-legend-background)",legendBorderColor:"var(--graphy-legend-border-color)",legendFocusOutlineColor:"var(--graphy-legend-focus-outline-color)",legendTextColor:"var(--graphy-legend-text-color)",dimmedSeriesLabelTextColor:"var(--graphy-dimmed-series-label-text-color)",dimmedSeriesLabelLineColor:"var(--graphy-dimmed-series-label-line-color)",trendNegativeColor:"var(--graphy-trend-negative-color)",trendPositiveColor:"var(--graphy-trend-positive-color)",trendNeutralColor:"var(--graphy-trend-neutral-color)",defaultAnnotationArrowStroke:"var(--graphy-default-annotation-arrow-stroke)",defaultAnnotationShapeStroke:"var(--graphy-default-annotation-shape-stroke)",defaultAnnotationShapeFill:"var(--graphy-default-annotation-shape-fill)",arrowAnnotationStickerOutlineColor:"var(--graphy-arrow-annotation-sticker-outline-color)",arrowAnnotationStickerOutlineColorInverse:"var(--graphy-arrow-annotation-sticker-outline-color-inverse)",annotationFrameBorderColor:"var(--graphy-annotation-frame-border-color)",editMenuTriggerIconColor:"var(--graphy-edit-menu-trigger-icon-color)",heatmapEmptyTileBackground:"var(--graphy-heatmap-empty-tile-background)",dataLabelOutsideBackground:"var(--graphy-data-label-outside-background)",dataLabelTextColor:"var(--graphy-data-label-text-color)",dataLabelInsideTextColor:"var(--graphy-data-label-inside-text-color)",stackTotalTextColor:"var(--graphy-stack-total-text-color)",stackTotalBackground:"var(--graphy-stack-total-background)",stackTotalStroke:"var(--graphy-stack-total-stroke)",gridLineWidth:"var(--graphy-grid-line-width)",gridLineDash:"var(--graphy-grid-line-dash)",gridLineDotted:"var(--graphy-grid-line-dotted)",tooltipBorderRadius:"var(--graphy-tooltip-border-radius)",tooltipBorderWidth:"var(--graphy-tooltip-border-width)",tooltipPaddingBlock:"var(--graphy-tooltip-padding-block)",tooltipPaddingInline:"var(--graphy-tooltip-padding-inline)",tooltipRowGap:"var(--graphy-tooltip-row-gap)",tooltipShadow:"var(--graphy-tooltip-shadow)",editorControlHeight:"var(--graphy-editor-control-height)",tickLabelOffset:"var(--graphy-tick-label-offset)",legendItemGap:"var(--graphy-legend-item-gap)",legendSwatchGap:"var(--graphy-legend-swatch-gap)",legendSwatchWidth:"var(--graphy-legend-swatch-width)",legendSwatchHeight:"var(--graphy-legend-swatch-height)",legendPillPaddingInline:"var(--graphy-legend-pill-padding-inline)",legendPillPaddingBlock:"var(--graphy-legend-pill-padding-block)",legendPillBorderWidth:"var(--graphy-legend-pill-border-width)",headlineRowGap:"var(--graphy-headline-row-gap)",headlineItemGap:"var(--graphy-headline-item-gap)",canvasDefault:"var(--graphy-canvas-default)",canvasBlue:"var(--graphy-canvas-blue)",canvasCyan:"var(--graphy-canvas-cyan)",canvasGreen:"var(--graphy-canvas-green)",canvasYellow:"var(--graphy-canvas-yellow)",canvasOrange:"var(--graphy-canvas-orange)",canvasRed:"var(--graphy-canvas-red)",canvasPink:"var(--graphy-canvas-pink)",canvasPurple:"var(--graphy-canvas-purple)",canvasGray:"var(--graphy-canvas-gray)",canvasInverse:"var(--graphy-canvas-inverse)",elevationXs:"var(--graphy-elevation-xs)",elevationSm:"var(--graphy-elevation-sm)",elevationMd:"var(--graphy-elevation-md)",elevationLg:"var(--graphy-elevation-lg)",radiiXs:"var(--graphy-radii-xs)",radiiSm:"var(--graphy-radii-sm)",radiiMd:"var(--graphy-radii-md)",radiiLg:"var(--graphy-radii-lg)",spaceXxs:"var(--graphy-space-xxs)",spaceXs:"var(--graphy-space-xs)",spaceSm:"var(--graphy-space-sm)",spaceMd:"var(--graphy-space-md)",spaceLg:"var(--graphy-space-lg)",spaceXl:"var(--graphy-space-xl)",zIndexToolbar:"var(--graphy-z-index-toolbar)",zIndexToolbarTooltip:"var(--graphy-z-index-toolbar-tooltip)",zIndexToolbarPopover:"var(--graphy-z-index-toolbar-popover)",zIndexEditorPopover:"var(--graphy-z-index-editor-popover)",toolbarBackgroundColor:"var(--graphy-toolbar-background-color)",toolbarButtonBackgroundColor:"var(--graphy-toolbar-button-background-color)",toolbarButtonBackgroundColorHovered:"var(--graphy-toolbar-button-background-color-hovered)",toolbarButtonBackgroundColorSelected:"var(--graphy-toolbar-button-background-color-selected)",toolbarSeparatorColor:"var(--graphy-toolbar-separator-color)",tooltipBackground:"var(--graphy-tooltip-background)",tooltipBorderColor:"var(--graphy-tooltip-border-color)",tooltipHeadingTextColor:"var(--graphy-tooltip-heading-text-color)",tooltipLabelTextColor:"var(--graphy-tooltip-label-text-color)",tooltipValueTextColor:"var(--graphy-tooltip-value-text-color)",tooltipPrimaryRowColor:"var(--graphy-tooltip-primary-row-color)",hoverGuideLineColor:"var(--graphy-hover-guide-line-color)",hoverGuideFillColor:"var(--graphy-hover-guide-fill-color)",fontFamilyDefault:"var(--graphy-font-family-default)",fontFamilyHeading:"var(--graphy-font-family-heading)",fontWeightRegular:"var(--graphy-font-weight-regular)",fontWeightMedium:"var(--graphy-font-weight-medium)",fontWeightSemibold:"var(--graphy-font-weight-semibold)",fontWeightBold:"var(--graphy-font-weight-bold)",fontWeightExtraBold:"var(--graphy-font-weight-extra-bold)",fontWeightBlack:"var(--graphy-font-weight-black)",textScale:"var(--graphy-text-scale)",fontSizeXxs:"var(--graphy-font-size-xxs)",fontSizeXs:"var(--graphy-font-size-xs)",fontSizeSm:"var(--graphy-font-size-sm)",fontSizeMd:"var(--graphy-font-size-md)",fontSizeLg:"var(--graphy-font-size-lg)",fontSizeXl:"var(--graphy-font-size-xl)",fontLineHeightXxs:"var(--graphy-font-line-height-xxs)",fontLineHeightXs:"var(--graphy-font-line-height-xs)",fontLineHeightSm:"var(--graphy-font-line-height-sm)",fontLineHeightMd:"var(--graphy-font-line-height-md)",fontLineHeightLg:"var(--graphy-font-line-height-lg)",fontLineHeightXl:"var(--graphy-font-line-height-xl)",fontSizeEditorBody:"var(--graphy-font-size-editor-body)",fontSizeHeadingSm:"var(--graphy-font-size-heading-sm)",fontSizeHeadingMd:"var(--graphy-font-size-heading-md)",fontSizeHeadingLg:"var(--graphy-font-size-heading-lg)",fontLineHeightEditorBody:"var(--graphy-font-line-height-editor-body)",fontLineHeightHeadingSm:"var(--graphy-font-line-height-heading-sm)",fontLineHeightHeadingMd:"var(--graphy-font-line-height-heading-md)",fontLineHeightHeadingLg:"var(--graphy-font-line-height-heading-lg)",fontTickLabel:"var(--graphy-font-tick-label)",fontAxisLabel:"var(--graphy-font-axis-label)",fontDataLabel:"var(--graphy-font-data-label)",fontStackTotal:"var(--graphy-font-stack-total)",fontCategoryLabel:"var(--graphy-font-category-label)",fontLegendLabel:"var(--graphy-font-legend-label)",fontSeriesLabel:"var(--graphy-font-series-label)",fontTooltipLabel:"var(--graphy-font-tooltip-label)",fontTooltipHeading:"var(--graphy-font-tooltip-heading)",fontTooltipFooter:"var(--graphy-font-tooltip-footer)",fontJumboTooltipLabel:"var(--graphy-font-jumbo-tooltip-label)",fontJumboTooltip:"var(--graphy-font-jumbo-tooltip)",fontMiniTooltipLabel:"var(--graphy-font-mini-tooltip-label)",fontMiniTooltipFooter:"var(--graphy-font-mini-tooltip-footer)",fontTooltipCaption:"var(--graphy-font-tooltip-caption)",fontTooltipCaptionSmall:"var(--graphy-font-tooltip-caption-small)",fontTrendTag:"var(--graphy-font-trend-tag)",fontTrendTagSmall:"var(--graphy-font-trend-tag-small)",fontGoalLineLabel:"var(--graphy-font-goal-line-label)",fontPieLabel:"var(--graphy-font-pie-label)",fontPieChartTotal:"var(--graphy-font-pie-chart-total)",fontDifferenceArrowSmall:"var(--graphy-font-difference-arrow-small)",fontDifferenceArrowMedium:"var(--graphy-font-difference-arrow-medium)",fontDifferenceArrowLarge:"var(--graphy-font-difference-arrow-large)",fontButton:"var(--graphy-font-button)",fontInput:"var(--graphy-font-input)",fontInputLabel:"var(--graphy-font-input-label)",fontSelectLabel:"var(--graphy-font-select-label)",fontSelectDescription:"var(--graphy-font-select-description)",fontColorSelectLabel:"var(--graphy-font-color-select-label)",fontMenuTitle:"var(--graphy-font-menu-title)",fontMenuGroupTitle:"var(--graphy-font-menu-group-title)",fontMenuItemLabel:"var(--graphy-font-menu-item-label)",fontMenuItemLabelSecondary:"var(--graphy-font-menu-item-label-secondary)",fontUITooltip:"var(--graphy-font-uitooltip)",fontUITooltipSecondary:"var(--graphy-font-uitooltip-secondary)",fontErrorBoundaryTitle:"var(--graphy-font-error-boundary-title)",fontErrorBoundaryMessage:"var(--graphy-font-error-boundary-message)",fontTableCell:"var(--graphy-font-table-cell)",fontTableHeaderCell:"var(--graphy-font-table-header-cell)",fontSourceLabel:"var(--graphy-font-source-label)",fontSourceLink:"var(--graphy-font-source-link)",fontTextEditorH1:"var(--graphy-font-text-editor-h1)",fontTextEditorH2:"var(--graphy-font-text-editor-h2)",fontTextEditorH3:"var(--graphy-font-text-editor-h3)",fontTextEditorH6:"var(--graphy-font-text-editor-h6)",fontTextEditorBody:"var(--graphy-font-text-editor-body)",fontTextEditorLink:"var(--graphy-font-text-editor-link)",fontHighlightModeTitle:"var(--graphy-font-highlight-mode-title)",fontHighlightModeSubtitle:"var(--graphy-font-highlight-mode-subtitle)",fontEditorControlLabel:"var(--graphy-font-editor-control-label)",fontEditorControlValue:"var(--graphy-font-editor-control-value)",fontEditorSectionTitle:"var(--graphy-font-editor-section-title)",fontEditorCaption:"var(--graphy-font-editor-caption)"},v=`'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
|
|
2
|
-
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,c=v,p={regular:d.NAMED_WEIGHTS.regular,medium:d.NAMED_WEIGHTS.medium,semibold:d.NAMED_WEIGHTS.semiBold,bold:d.NAMED_WEIGHTS.bold,extraBold:d.NAMED_WEIGHTS.extraBold,black:d.NAMED_WEIGHTS.black},a={xxs:1,xs:1.1,sm:1.2,md:1.4,lg:1.6,xl:2,editorBody:1.5,headingSm:1.8,headingMd:2.2,headingLg:2.8},n={xxs:1,xs:1,sm:1.3,md:1.43,lg:1,xl:1,editorBody:1.47,headingSm:1.25,headingMd:1.41,headingLg:1.29},g={fontTickLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontAxisLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontDataLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontStackTotal:{weight:"fontWeightSemibold",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontCategoryLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontLegendLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontGoalLineLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"}},u=`var(--typography-chart-font-family, ${e.fontFamilyDefault})`,y=`var(--typography-chart-heading-font-family, ${e.fontFamilyHeading})`,S=r=>r in g,b=(r,o)=>{const i=g[r],f=t(o.weight?.toString()??e[i.weight],o.size===void 0?e[i.size]:`${o.size.value}${o.size.unit}`,o.lineHeight?.toString()??e[i.lineHeight],o.family??u);return o.style===void 0||o.style==="normal"?f:`${o.style} ${f}`},l=r=>`${r}em`,L={textScale:"1",fontFamilyDefault:v,fontFamilyHeading:c,fontWeightRegular:p.regular.toString(),fontWeightMedium:p.medium.toString(),fontWeightSemibold:p.semibold.toString(),fontWeightBold:p.bold.toString(),fontWeightExtraBold:p.extraBold.toString(),fontWeightBlack:p.black.toString(),fontSizeXxs:l(a.xxs),fontSizeXs:l(a.xs),fontSizeSm:l(a.sm),fontSizeMd:l(a.md),fontSizeLg:l(a.lg),fontSizeXl:l(a.xl),fontLineHeightXxs:n.xxs.toString(),fontLineHeightXs:n.xs.toString(),fontLineHeightSm:n.sm.toString(),fontLineHeightMd:n.md.toString(),fontLineHeightLg:n.lg.toString(),fontLineHeightXl:n.xl.toString()},H={fontSizeEditorBody:l(a.editorBody),fontSizeHeadingSm:l(a.headingSm),fontSizeHeadingMd:l(a.headingMd),fontSizeHeadingLg:l(a.headingLg),fontLineHeightEditorBody:n.editorBody.toString(),fontLineHeightHeadingSm:n.headingSm.toString(),fontLineHeightHeadingMd:n.headingMd.toString(),fontLineHeightHeadingLg:n.headingLg.toString()},t=(r,o,i,f=u)=>`${r} ${o}/${i} ${f}`,h=({weight:r,size:o,lineHeight:i})=>t(e[r],e[o],e[i]),T={fontTickLabel:h(g.fontTickLabel),fontAxisLabel:h(g.fontAxisLabel),fontDataLabel:h(g.fontDataLabel),fontStackTotal:h(g.fontStackTotal),fontCategoryLabel:h(g.fontCategoryLabel),fontLegendLabel:h(g.fontLegendLabel),fontSeriesLabel:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontTooltipLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTooltipHeading:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltipLabel:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltip:t(e.fontWeightMedium,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd),fontMiniTooltipLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMiniTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaption:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaptionSmall:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontUITooltip:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontUITooltipSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTrendTag:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTrendTagSmall:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontGoalLineLabel:h(g.fontGoalLineLabel),fontPieLabel:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontPieChartTotal:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg),fontDifferenceArrowSmall:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontDifferenceArrowMedium:t(e.fontWeightMedium,e.fontSizeLg,e.fontLineHeightLg),fontDifferenceArrowLarge:t(e.fontWeightSemibold,e.fontSizeXl,e.fontLineHeightXl),fontButton:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInput:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInputLabel:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontSelectLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontSelectDescription:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontColorSelectLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuTitle:t(e.fontWeightSemibold,e.fontSizeMd,e.fontLineHeightMd),fontMenuGroupTitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuItemLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontMenuItemLabelSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontErrorBoundaryTitle:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm),fontErrorBoundaryMessage:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableCell:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableHeaderCell:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontSourceLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontSourceLink:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorH1:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg,y),fontTextEditorH2:t(e.fontWeightBold,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd,y),fontTextEditorH3:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm,y),fontTextEditorH6:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorBody:t(e.fontWeightMedium,e.fontSizeEditorBody,e.fontLineHeightEditorBody),fontTextEditorLink:t(e.fontWeightRegular,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeTitle:t(e.fontWeightBold,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeSubtitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlValue:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorSectionTitle:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontEditorCaption:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs)},M=["normal","italic","oblique"],x=/^(\d*\.?\d+)(px|em)$/,s=/^\d*\.?\d+$/,z={normal:d.NAMED_WEIGHTS.normal,bold:d.NAMED_WEIGHTS.bold},k=r=>M.includes(r),E=r=>{const o=x.exec(r.trim());return o===null||o[1]===void 0||o[2]===void 0?null:{value:Number.parseFloat(o[1]),unit:o[2]==="px"?"px":"em"}},W=r=>{const o=r.trim(),i=z[o];if(i!==void 0)return i;if(!s.test(o))return null;const f=Number.parseFloat(o);return f>=1&&f<=1e3?f:null},B=r=>{const o=r.trim();return s.test(o)?Number.parseFloat(o):null};Object.defineProperty(exports,"CANVAS_COLOR_KEYS",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"DEFAULT_FONT_FAMILY",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"FONT_LINE_HEIGHT",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"FONT_SIZE_EM",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"FONT_WEIGHT",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"MEASURED_ELEMENT_FONT_DEFINITIONS",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"baseTypographyTokens",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"buildFontShorthand",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"elementTypographyTokens",{enumerable:!0,get:function(){return T}});Object.defineProperty(exports,"isFontStyle",{enumerable:!0,get:function(){return k}});Object.defineProperty(exports,"isMeasuredFontTokenKey",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"parseFontLength",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"parseFontWeight",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"parseUnitlessLineHeight",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"semanticTypographyTokens",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"vars",{enumerable:!0,get:function(){return e}});
|
package/dist/font-values.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|