@graphysdk/react-renderer 1.9.0-beta.1790606620233 → 1.9.0-beta.1790607706146
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.mjs +42 -42
- package/dist/{history-chords-sGHetDJP.js → history-chords-DtVsr3wh.js} +18 -17
- package/dist/history-chords-UXho7u0a.cjs +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +85 -0
- package/dist/index.mjs +364 -331
- package/package.json +2 -2
- package/dist/history-chords-Crrwn8Bl.cjs +0 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Qo,
|
|
1
|
+
import { $ as Qo, C as ei, D as ti, Dt as ni, E as ri, Et as j, F as k, Ft as ai, G as oi, Gt as ii, H as li, It as Rr, J as Qt, K as Pn, Kt as si, N as ci, O as Dr, Ot as di, P as ui, Q as ut, R as hi, S as pi, St as ue, T as xe, Tt as Ue, U as X, Ut as mi, V as gi, W as $, Wt as vi, X as _r, Xt as en, Y as tn, Yt as Fr, Z as nn, Zt as De, _ as Ie, _t as Ee, at as In, b as zr, bt as fi, c as Br, cn as Q, d as bi, en as yi, et as Hr, f as Si, fn as z, ft as Ci, g as Gr, h as rn, ht as xi, i as wi, it as Ti, k as ht, l as Ai, lt as an, m as ki, mt as E, n as he, o as Li, on as Vr, ot as Pi, p as $r, pt as Ii, q as V, qt as Ei, r as U, rn as Oi, rt as Mi, st as re, t as Ni, tn as Ri, tt as Di, u as _i, un as _, v as Fi, x as zi, xt as Bi, y as Hi, yt as Gi, zt as Vi } from "./history-chords-DtVsr3wh.js";
|
|
2
2
|
import { n as ge, t as Ur } from "./theme.contract.css-AyXDNf0F.js";
|
|
3
3
|
import { ARROW_DEFAULTS as $i, ARROW_STICKER_DECLARATIONS as Ui, ARROW_STROKE_WIDTHS_PX as Pt, AddAnnotationCommand as ye, AddHighlightCommand as Wi, BORDER_RADIUS_TOKENS as En, COMBO_TYPES as On, CONSTANT_VARIABLES as Ki, DASH_PRESETS as qi, DEFAULT_BAR_CORNER_RADIUS as Xi, DEFAULT_GEOM_COLOR as Zi, DEFAULT_POINT_SIZE_PX as ji, DEFAULT_STROKE_WIDTH_PX as Yi, DIFFERENCE_ARROW_DEFAULTS as Wr, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Mn, InternalError as Ji, MAX_BAR_WIDTH_FRACTION as Qi, MIN_BAR_WIDTH_FRACTION as el, MoveAnnotationCommand as tl, RESTING_HOVER_STATE as on, RemoveAnnotationCommand as ze, RemoveHighlightCommand as nl, SHAPE_DEFAULTS as rl, SetAxisLabelCommand as al, SetAxisPositionCommand as ol, SetAxisTickModeCommand as il, SetAxisTicksVisibilityCommand as ll, SetAxisVisibilityCommand as sl, SetBarCornerRadiusCommand as cl, SetBarWidthCommand as dl, SetChartTypeCommand as Kr, SetContentCaptionCommand as qr, SetContentSourceCommand as ul, SetContentSubtitleCommand as Xr, SetContentTitleCommand as Zr, SetDataLabelsFormatCommand as hl, SetDifferenceArrowStyleCommand as pl, SetGridLineStyleCommand as ml, SetGridLineWidthCommand as gl, SetGridVisibilityCommand as vl, SetHeadlineCompareWithCommand as fl, SetHeadlinePositionCommand as bl, SetHeadlineShowCommand as Nn, SetHeadlineSizeCommand as yl, SetHighlightDimStyleCommand as Sl, SetLayerYScaleTypeCommand as Cl, SetLegendAlignCommand as xl, SetLegendDisplayCommand as wl, SetLegendPositionCommand as Tl, SetLineCurveCommand as Al, SetLineMissingValuesCommand as kl, SetLineWidthCommand as Rn, SetMappingCommand as Ll, SetNumberFormatAbbreviationCommand as Pl, SetNumberFormatDecimalsCommand as Dn, SetPointSizeCommand as Il, SetPolarInnerRadiusCommand as El, SetPolarStartAngleCommand as Ol, SetRuleLabelCommand as Ml, SetRuleValueCommand as Nl, SetScaleDomainCommand as It, SetScaleReverseCommand as Rl, SetScaleTransformCommand as Dl, SetStatLineCommand as _l, SetStyleRuleCommand as ke, TEXT_ANNOTATION_DEFAULTS as Fl, TEXT_ANNOTATION_FADE_ALPHA as zl, ToggleCategoryLabelsCommand as Bl, ToggleContentVisibilityCommand as pt, ToggleDataLabelsCommand as Hl, ToggleGoalLineCommand as Gl, ToggleLineFillCommand as Vl, ToggleLinePointsCommand as $l, ToggleStackTotalsCommand as Ul, UpdateAnnotationCommand as ie, alignUnitFractions as Wl, areAnchorsEqual as jr, areEditTargetsEqual as Kl, areEndpointsComparable as ql, buildEditMenuTriggerRegion as Xl, buildLayerStyleAddress as Zl, buildObservationPredicate as jl, buildObservationsTarget as ln, buildObservationsTargetAtValue as Yr, canAnchorDirectLabels as Yl, canBecomeCombo as Jl, canBecomeHeatmap as Ql, clampAnnotationTranslation as es, computeArrow as Jr, createObservationAnchorBuilder as ts, createObservationAnchorParser as ns, createStyleResolver as rs, createValueFormatter as as, filterLayersByGeoms as Dt, findAnnotation as os, findAverageLineLayer as is, findCompanionLayers as Qr, findGoalLineLayer as ls, findHighlightsAtObservation as ss, findKindStyleDeclarations as cs, findLayerByGeom as ea, findLayerById as ve, findObservationAttachment as ds, findStyleRule as Ce, findTrendLineLayer as us, formatDifferenceLabel as hs, getBoundingRect as _t, getX as ps, getY as ms, hasMultipleGroups as gs, inferDefaultDifferenceArrowEndpoints as vs, inferDifferenceArrowEndpoints as fs, isComboChartType as Ae, isCompanionLayer as sn, isObservationAttachmentKind as bs, isPointWithinEditMenuTrigger as cn, isSafeUrl as ys, isZeroAnchoredAxis as Ss, measureObservationsBoxes as ta, projectAnchorToPanel as nt, readBroadestObservationsScope as Cs, readChartType as na, readComboLineLayerId as xs, readCompanionRowsAtScopeKey as ws, readConstantValue as Ts, readEditTargetKey as mt, readGeomColor as As, readHighlightDimStyle as ks, readMainAxis as Ls, readMappableAesthetics as Ps, readMappedVariable as Is, readObservationIndex as ra, readRowScopeKey as Es, readRowsAtScopeKey as Os, readScopeXVariable as Ms, readVariableName as aa, resolveArrowAnnotationStyle as dn, resolveBarBandFraction as Ns, resolveComparisonBasis as Rs, resolveDifferenceArrowAnnotationStyle as Ds, resolveEditOutlineStyle as _s, resolveObservationPoint as oa, resolveObservationsTarget as _n, stepDifferenceArrowEndpoint as Fs, toDashPreset as Ft, toPaintColor as rt, toPanelCursor as gt } from "@graphysdk/viz-engine";
|
|
4
4
|
import { Fragment as zs, createContext as Be, memo as ia, useCallback as ae, useContext as we, useEffect as F, useId as Le, useLayoutEffect as Pe, useMemo as I, useRef as ne, useState as ee } from "react";
|
|
@@ -2387,7 +2387,7 @@ import './editable.css';var sc = {
|
|
|
2387
2387
|
"en-US": fc,
|
|
2388
2388
|
ar: uc,
|
|
2389
2389
|
"pt-PT": Cc
|
|
2390
|
-
}, wc = [xc,
|
|
2390
|
+
}, wc = [xc, xi], Tc = ({ children: e, ...t }) => /* @__PURE__ */ r(Ii, {
|
|
2391
2391
|
dictionaries: wc,
|
|
2392
2392
|
...t,
|
|
2393
2393
|
children: e
|
|
@@ -2558,7 +2558,7 @@ var va = "d0bl03", Oc = "d0bl04", fa = "d0bl05", zt = "d0bl06", Mc = "d0bl07", N
|
|
|
2558
2558
|
})]
|
|
2559
2559
|
});
|
|
2560
2560
|
}, Zc = ({ value: e, onChange: t, popupAttributes: n }) => {
|
|
2561
|
-
const a = E(), [o, i] = ee(!1), l =
|
|
2561
|
+
const a = E(), [o, i] = ee(!1), l = Ei(e) ? e : "#000000", s = Yc(l);
|
|
2562
2562
|
return /* @__PURE__ */ m(Z.Root, {
|
|
2563
2563
|
open: o,
|
|
2564
2564
|
onOpenChange: i,
|
|
@@ -2628,10 +2628,10 @@ var va = "d0bl03", Oc = "d0bl04", fa = "d0bl05", zt = "d0bl06", Mc = "d0bl07", N
|
|
|
2628
2628
|
border: `1px solid ${ge.border100}`
|
|
2629
2629
|
} : {
|
|
2630
2630
|
background: e,
|
|
2631
|
-
border: `1px solid ${
|
|
2631
|
+
border: `1px solid ${ii(e, 0.1)}`
|
|
2632
2632
|
}, Yc = (e) => {
|
|
2633
2633
|
const { themeValues: t } = an();
|
|
2634
|
-
if (
|
|
2634
|
+
if (si(e)) return e.toUpperCase();
|
|
2635
2635
|
const n = Kc[e];
|
|
2636
2636
|
return n ? t[n].toUpperCase() : "#000000";
|
|
2637
2637
|
}, Ca = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), Jc = "l9kff0", Qc = "l9kff1", ed = "l9kff2", td = "xn24px0", nd = "xn24px1", rd = "xn24px2", ad = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ r(B.Portal, {
|
|
@@ -3147,7 +3147,7 @@ var va = "d0bl03", Oc = "d0bl04", fa = "d0bl05", zt = "d0bl06", Mc = "d0bl07", N
|
|
|
3147
3147
|
"aria-label": t
|
|
3148
3148
|
})]
|
|
3149
3149
|
}), Gd = 200, pn = ({ content: e, extensions: t, isEditable: n, onUpdate: a, updateDebounceMs: o = Gd }) => {
|
|
3150
|
-
const i = ne($n(e)), l = ne(i.current), s =
|
|
3150
|
+
const i = ne($n(e)), l = ne(i.current), s = fi((u) => {
|
|
3151
3151
|
l.current = u, a?.(u);
|
|
3152
3152
|
}, o), c = nc({
|
|
3153
3153
|
extensions: t,
|
|
@@ -3238,12 +3238,12 @@ var va = "d0bl03", Oc = "d0bl04", fa = "d0bl05", zt = "d0bl06", Mc = "d0bl07", N
|
|
|
3238
3238
|
i?.commands.focus("end", { scrollIntoView: !1 });
|
|
3239
3239
|
}, [i]), /* @__PURE__ */ r(ua, {
|
|
3240
3240
|
"aria-label": t("graph.annotations.text.editLabel"),
|
|
3241
|
-
className:
|
|
3241
|
+
className: Si,
|
|
3242
3242
|
editor: i,
|
|
3243
3243
|
"data-testid": "text-annotation-editor"
|
|
3244
3244
|
});
|
|
3245
3245
|
}, Un = (e) => {
|
|
3246
|
-
const t =
|
|
3246
|
+
const t = Pi(e);
|
|
3247
3247
|
return t === void 0 ? {} : { style: `font-family: ${t}` };
|
|
3248
3248
|
}, qd = sa.create({
|
|
3249
3249
|
name: "annotationTextStyleAttributes",
|
|
@@ -3355,7 +3355,7 @@ var va = "d0bl03", Oc = "d0bl04", fa = "d0bl05", zt = "d0bl06", Mc = "d0bl07", N
|
|
|
3355
3355
|
"data-testid": "title-editor",
|
|
3356
3356
|
style: {
|
|
3357
3357
|
...Rr(o),
|
|
3358
|
-
...
|
|
3358
|
+
...ai(tu, i)
|
|
3359
3359
|
},
|
|
3360
3360
|
children: /* @__PURE__ */ r(Ma, {
|
|
3361
3361
|
editor: c,
|
|
@@ -3501,7 +3501,7 @@ var uu = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
3501
3501
|
return g.from < g.to ? g : p;
|
|
3502
3502
|
}, vu = (e) => {
|
|
3503
3503
|
const [t] = e;
|
|
3504
|
-
return t !== void 0 && e.some((n) => !
|
|
3504
|
+
return t !== void 0 && e.some((n) => !di(n, t));
|
|
3505
3505
|
}, Gt = (e) => ({
|
|
3506
3506
|
from: e.x,
|
|
3507
3507
|
to: e.x + e.width
|
|
@@ -3515,7 +3515,7 @@ var uu = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
3515
3515
|
const h = s.current, p = /* @__PURE__ */ new Map(), v = lu(u, {
|
|
3516
3516
|
panelRect: n,
|
|
3517
3517
|
look: a,
|
|
3518
|
-
readGridLineWidth: (w) =>
|
|
3518
|
+
readGridLineWidth: (w) => Br(i, w).strokeWidth,
|
|
3519
3519
|
measurePathBox: (w) => {
|
|
3520
3520
|
const y = h.get(w) ?? ou(t.ownerDocument, w);
|
|
3521
3521
|
return p.set(w, y), y;
|
|
@@ -3555,7 +3555,7 @@ var uu = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
3555
3555
|
d: e,
|
|
3556
3556
|
...a
|
|
3557
3557
|
}), Cu = ({ pathData: e, source: t, ...n }) => {
|
|
3558
|
-
const a =
|
|
3558
|
+
const a = yi(e, Ri, t);
|
|
3559
3559
|
return /* @__PURE__ */ r(Bs.path, {
|
|
3560
3560
|
d: a,
|
|
3561
3561
|
...n
|
|
@@ -3682,12 +3682,12 @@ var jn = (e, t) => {
|
|
|
3682
3682
|
});
|
|
3683
3683
|
}
|
|
3684
3684
|
}, Eu = (e) => {
|
|
3685
|
-
const t = `[${
|
|
3686
|
-
return e.kind !== "axis" ? t : `${t}[${
|
|
3685
|
+
const t = `[${ti}="${e.kind}"]`;
|
|
3686
|
+
return e.kind !== "axis" ? t : `${t}[${ri}="${e.axis}"]`;
|
|
3687
3687
|
}, Ou = (e) => {
|
|
3688
3688
|
const t = /* @__PURE__ */ new Map();
|
|
3689
3689
|
for (const n of e) {
|
|
3690
|
-
const a =
|
|
3690
|
+
const a = ci(n);
|
|
3691
3691
|
a !== null && t.set(a.legendIndex, [...t.get(a.legendIndex) ?? [], n]);
|
|
3692
3692
|
}
|
|
3693
3693
|
return t;
|
|
@@ -3750,7 +3750,7 @@ var jn = (e, t) => {
|
|
|
3750
3750
|
const t = (n) => Number(e?.getAttribute(n) ?? 0);
|
|
3751
3751
|
return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
|
|
3752
3752
|
}, Du = [], _u = (e, { frameElement: t, frameSize: n, panelRect: a, shouldAnimateTransitions: o }) => {
|
|
3753
|
-
const i = _((f) => f.coordSystem), l = Vi(), s =
|
|
3753
|
+
const i = _((f) => f.coordSystem), l = Vi(), s = Vr(), c = zu(e.kind === "guide" ? e.target : null, {
|
|
3754
3754
|
frameElement: t,
|
|
3755
3755
|
frameSize: n
|
|
3756
3756
|
}), u = Fu(t, n), d = I(() => ({
|
|
@@ -3976,7 +3976,7 @@ var jn = (e, t) => {
|
|
|
3976
3976
|
vertex: null
|
|
3977
3977
|
};
|
|
3978
3978
|
}, $u = ["x", "y"], Uu = ia(function({ frameElement: t, frameSize: n, panelRect: a, shouldAnimateTransitions: o }) {
|
|
3979
|
-
const i =
|
|
3979
|
+
const i = mi(_s, Q()), l = Hu(), s = ku(l?.outlined ?? null);
|
|
3980
3980
|
if (l === null && s === null) return null;
|
|
3981
3981
|
const c = {
|
|
3982
3982
|
frameElement: t,
|
|
@@ -4123,7 +4123,7 @@ var jn = (e, t) => {
|
|
|
4123
4123
|
}, o);
|
|
4124
4124
|
case "dots":
|
|
4125
4125
|
return n.centers.length === 0 ? null : /* @__PURE__ */ r("path", {
|
|
4126
|
-
d:
|
|
4126
|
+
d: Oi(n.centers),
|
|
4127
4127
|
"data-geom": t.geom,
|
|
4128
4128
|
...$t(n.size)
|
|
4129
4129
|
}, o);
|
|
@@ -4140,7 +4140,7 @@ var jn = (e, t) => {
|
|
|
4140
4140
|
const l = t.map((s) => ju(s, i)).join("");
|
|
4141
4141
|
return l === "" ? null : /* @__PURE__ */ r("path", {
|
|
4142
4142
|
d: l,
|
|
4143
|
-
...$t(
|
|
4143
|
+
...$t(Br(a, i).strokeWidth)
|
|
4144
4144
|
}, i);
|
|
4145
4145
|
});
|
|
4146
4146
|
const o = t.map((i) => i.kind === "box" ? en(i.rect, n) : "").join("");
|
|
@@ -4166,7 +4166,7 @@ var jn = (e, t) => {
|
|
|
4166
4166
|
height: n.height,
|
|
4167
4167
|
overflow: "visible",
|
|
4168
4168
|
children: /* @__PURE__ */ r("line", {
|
|
4169
|
-
...
|
|
4169
|
+
...ei(a, i, n),
|
|
4170
4170
|
stroke: t.stroke,
|
|
4171
4171
|
strokeWidth: t.strokeWidth,
|
|
4172
4172
|
strokeDasharray: "4 3",
|
|
@@ -4213,7 +4213,7 @@ var jn = (e, t) => {
|
|
|
4213
4213
|
return F(() => {
|
|
4214
4214
|
t(!0);
|
|
4215
4215
|
}, []), e;
|
|
4216
|
-
}, ih = (e) =>
|
|
4216
|
+
}, ih = (e) => ni.some((t) => t === e), tr = (e, t, n) => n === 0 ? 0 : e * t / n, lh = {
|
|
4217
4217
|
x: 8,
|
|
4218
4218
|
y: 8
|
|
4219
4219
|
}, sh = {
|
|
@@ -5196,7 +5196,7 @@ var _h = (e) => {
|
|
|
5196
5196
|
icon: /* @__PURE__ */ r(qa, {}),
|
|
5197
5197
|
children: /* @__PURE__ */ r("div", {
|
|
5198
5198
|
className: n1,
|
|
5199
|
-
children: Object.entries(
|
|
5199
|
+
children: Object.entries(Ai).map(([i, l]) => /* @__PURE__ */ r(Se.Item, {
|
|
5200
5200
|
className: r1,
|
|
5201
5201
|
"aria-label": i,
|
|
5202
5202
|
onClick: () => o(i),
|
|
@@ -5364,7 +5364,7 @@ var _h = (e) => {
|
|
|
5364
5364
|
},
|
|
5365
5365
|
"data-testid": "arrow-endpoint-preview",
|
|
5366
5366
|
"data-annotation-id": t.annotationId,
|
|
5367
|
-
children: /* @__PURE__ */ r(
|
|
5367
|
+
children: /* @__PURE__ */ r(Gr, {
|
|
5368
5368
|
computed: l,
|
|
5369
5369
|
style: i,
|
|
5370
5370
|
isAddressable: !1
|
|
@@ -5601,7 +5601,7 @@ var _h = (e) => {
|
|
|
5601
5601
|
}, {
|
|
5602
5602
|
value: "none",
|
|
5603
5603
|
key: "graph.annotations.arrowToolbar.arrowhead.none",
|
|
5604
|
-
Icon:
|
|
5604
|
+
Icon: ui
|
|
5605
5605
|
}], or = [
|
|
5606
5606
|
{
|
|
5607
5607
|
value: "solid",
|
|
@@ -6425,7 +6425,7 @@ var ip = "ydgo3h0", lp = "ydgo3h1", sp = "ydgo3h2", cp = ({ clientPoint: e, pane
|
|
|
6425
6425
|
...e
|
|
6426
6426
|
});
|
|
6427
6427
|
}, bp = ({ annotationId: e, ...t }) => {
|
|
6428
|
-
const n =
|
|
6428
|
+
const n = gi(), a = I(() => n.find((o) => o.id === e), [n, e]);
|
|
6429
6429
|
return a === void 0 ? null : /* @__PURE__ */ r(yp, {
|
|
6430
6430
|
committedArrow: a.committedArrow,
|
|
6431
6431
|
color: a.color,
|
|
@@ -6464,7 +6464,7 @@ var ip = "ydgo3h0", lp = "ydgo3h1", sp = "ydgo3h2", cp = ({ clientPoint: e, pane
|
|
|
6464
6464
|
top: s.y + o.y - 2,
|
|
6465
6465
|
width: o.width + 4,
|
|
6466
6466
|
height: o.height + 4,
|
|
6467
|
-
borderRadius:
|
|
6467
|
+
borderRadius: Ci(n, 2)
|
|
6468
6468
|
}
|
|
6469
6469
|
}),
|
|
6470
6470
|
/* @__PURE__ */ r(dr, {
|
|
@@ -6566,7 +6566,7 @@ var xp = {
|
|
|
6566
6566
|
hovered: "_1ee8fau4 _1ee8fau3",
|
|
6567
6567
|
selected: "_1ee8fau5 _1ee8fau3"
|
|
6568
6568
|
}, Tp = ({ panelRect: e }) => {
|
|
6569
|
-
const t = Ie(e), n =
|
|
6569
|
+
const t = Ie(e), n = Hr(), a = Q(), o = Ke(), i = X((f) => V(f, "move-drag")), l = X((f) => V(f, "shape-resize-drag")), s = X((f) => V(f, "arrow-endpoint-drag")), c = X((f) => V(f, "text-resize-drag")), u = X(oi), d = I(() => ({
|
|
6570
6570
|
panel: {
|
|
6571
6571
|
width: e.width,
|
|
6572
6572
|
height: e.height
|
|
@@ -6581,7 +6581,7 @@ var xp = {
|
|
|
6581
6581
|
]), h = ur(t, o, d), p = ur(t, u === o ? null : u, d), g = (f) => {
|
|
6582
6582
|
if (l?.annotationId === f.id) {
|
|
6583
6583
|
const x = t.shapes.find((w) => w.id === f.id);
|
|
6584
|
-
return x === void 0 ? f.geometry :
|
|
6584
|
+
return x === void 0 ? f.geometry : zr(yn(l.region), a.annotation.shape(x.id).get("strokeWidth"), d.panel);
|
|
6585
6585
|
}
|
|
6586
6586
|
if (s?.annotationId === f.id) {
|
|
6587
6587
|
const x = t.arrows.find((w) => w.id === f.id);
|
|
@@ -6609,7 +6609,7 @@ var xp = {
|
|
|
6609
6609
|
})] });
|
|
6610
6610
|
}, ur = (e, t, n) => {
|
|
6611
6611
|
if (t === null) return null;
|
|
6612
|
-
const a =
|
|
6612
|
+
const a = pi(e, t, n);
|
|
6613
6613
|
return a === null ? null : {
|
|
6614
6614
|
id: t,
|
|
6615
6615
|
geometry: a
|
|
@@ -6665,7 +6665,7 @@ var xp = {
|
|
|
6665
6665
|
});
|
|
6666
6666
|
}, kp = ({ annotation: e, panel: t }) => {
|
|
6667
6667
|
const n = Qo(e.id);
|
|
6668
|
-
return /* @__PURE__ */ r(
|
|
6668
|
+
return /* @__PURE__ */ r(bi, {
|
|
6669
6669
|
annotation: e,
|
|
6670
6670
|
panel: t,
|
|
6671
6671
|
style: Q().annotation.text(e.id).resolve(),
|
|
@@ -6704,7 +6704,7 @@ var xp = {
|
|
|
6704
6704
|
panelWidth: t.width,
|
|
6705
6705
|
panelHeight: t.height
|
|
6706
6706
|
});
|
|
6707
|
-
return a === null ? null : /* @__PURE__ */ r(
|
|
6707
|
+
return a === null ? null : /* @__PURE__ */ r(Gr, {
|
|
6708
6708
|
computed: a,
|
|
6709
6709
|
style: n,
|
|
6710
6710
|
isAddressable: !1
|
|
@@ -6713,7 +6713,7 @@ var xp = {
|
|
|
6713
6713
|
shape: e,
|
|
6714
6714
|
style: Q().annotation.shape(e.id).resolve(),
|
|
6715
6715
|
panel: t
|
|
6716
|
-
}), Op = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(
|
|
6716
|
+
}), Op = ({ image: e, panelSize: t }) => /* @__PURE__ */ r(ki, {
|
|
6717
6717
|
image: e,
|
|
6718
6718
|
panel: t,
|
|
6719
6719
|
style: Q().annotation.image(e.id).resolve()
|
|
@@ -7020,7 +7020,7 @@ var xp = {
|
|
|
7020
7020
|
}), u = Hp({
|
|
7021
7021
|
annotationId: e.id,
|
|
7022
7022
|
panelRect: o
|
|
7023
|
-
}), d = Q().annotation.shape(e.id).resolve(), { rect: h } =
|
|
7023
|
+
}), d = Q().annotation.shape(e.id).resolve(), { rect: h } = zr(yn(t), d.strokeWidth, o);
|
|
7024
7024
|
return /* @__PURE__ */ m("div", {
|
|
7025
7025
|
"data-testid": "shape-selection",
|
|
7026
7026
|
"data-annotation-id": e.id,
|
|
@@ -7130,7 +7130,7 @@ var vo = [
|
|
|
7130
7130
|
].map(({ id: e, key: t }) => ({
|
|
7131
7131
|
id: e,
|
|
7132
7132
|
key: t,
|
|
7133
|
-
fontFamily:
|
|
7133
|
+
fontFamily: Ti[e] ?? e
|
|
7134
7134
|
})), a2 = (e) => vo.find((t) => t.id === (e ?? "modern")) ?? null;
|
|
7135
7135
|
var fo = [
|
|
7136
7136
|
{
|
|
@@ -7472,7 +7472,7 @@ var bo = ({ width: e }) => oe(60, e), h2 = (e, t) => ({
|
|
|
7472
7472
|
resized: Qt(V(t, "text-resize-drag"), e),
|
|
7473
7473
|
isMoved: ut(V(t, "move-drag"), e) !== null
|
|
7474
7474
|
})), w2 = (e, t, n) => {
|
|
7475
|
-
const a = Ie(e), o =
|
|
7475
|
+
const a = Ie(e), o = Hr(), i = Q(), l = I(() => ({
|
|
7476
7476
|
panel: {
|
|
7477
7477
|
width: e.width,
|
|
7478
7478
|
height: e.height
|
|
@@ -7973,10 +7973,10 @@ var L2 = "_1tyillx1", P2 = {
|
|
|
7973
7973
|
a
|
|
7974
7974
|
]);
|
|
7975
7975
|
}, nm = () => {
|
|
7976
|
-
const e = Ee[xe()].observationMenu, t =
|
|
7976
|
+
const e = Ee[xe()].observationMenu, t = Mi((l) => e ? l.hover.primary : null), { layers: n, coordSystem: a } = _(pe((l) => ({
|
|
7977
7977
|
layers: l.layers,
|
|
7978
7978
|
coordSystem: l.coordSystem
|
|
7979
|
-
}))), { anchorResolver: o } = z(), i =
|
|
7979
|
+
}))), { anchorResolver: o } = z(), i = Vr();
|
|
7980
7980
|
return I(() => {
|
|
7981
7981
|
if (t === null) return null;
|
|
7982
7982
|
const l = n.find((u) => u.id === t.layerId);
|
|
@@ -8197,7 +8197,7 @@ var L2 = "_1tyillx1", P2 = {
|
|
|
8197
8197
|
shouldAnimateTransitions: i
|
|
8198
8198
|
}), /* @__PURE__ */ r(xh, { frameRect: t })] }), /* @__PURE__ */ r(Bi, {
|
|
8199
8199
|
rect: t,
|
|
8200
|
-
zIndex:
|
|
8200
|
+
zIndex: vi.editorOverlay,
|
|
8201
8201
|
container: l,
|
|
8202
8202
|
"data-testid": "editor-overlay",
|
|
8203
8203
|
boxRef: o,
|
|
@@ -8243,9 +8243,9 @@ var L2 = "_1tyillx1", P2 = {
|
|
|
8243
8243
|
})] });
|
|
8244
8244
|
}, W5 = ({ slots: e, mode: t, ...n }) => /* @__PURE__ */ r(Tc, {
|
|
8245
8245
|
locale: Di(),
|
|
8246
|
-
children: /* @__PURE__ */ r(
|
|
8246
|
+
children: /* @__PURE__ */ r(li, { children: /* @__PURE__ */ r(hi, {
|
|
8247
8247
|
editors: au,
|
|
8248
|
-
children: /* @__PURE__ */ r(
|
|
8248
|
+
children: /* @__PURE__ */ r(Li, {
|
|
8249
8249
|
slots: I(() => ({
|
|
8250
8250
|
EditorSurface: cm,
|
|
8251
8251
|
...e
|
|
@@ -8307,7 +8307,7 @@ var pm = {
|
|
|
8307
8307
|
return /* @__PURE__ */ r("div", {
|
|
8308
8308
|
onKeyDown: (i) => {
|
|
8309
8309
|
if (t?.(i), !a || i.defaultPrevented) return;
|
|
8310
|
-
const l =
|
|
8310
|
+
const l = Ni(i.nativeEvent);
|
|
8311
8311
|
l && (i.preventDefault(), l === "undo" ? a.undo() : a.redo());
|
|
8312
8312
|
},
|
|
8313
8313
|
...n,
|
|
@@ -8645,7 +8645,7 @@ function lg(e) {
|
|
|
8645
8645
|
return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
|
|
8646
8646
|
}
|
|
8647
8647
|
var sg = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
|
|
8648
|
-
const i =
|
|
8648
|
+
const i = wi(e), { themeClass: l, inlineVarsStyle: s } = an(), [c, u] = ee(() => a ? [a] : []), d = I(() => ({
|
|
8649
8649
|
expandSection: (h) => u([h]),
|
|
8650
8650
|
collapseAllSections: () => u([])
|
|
8651
8651
|
}), []);
|
|
@@ -23,7 +23,7 @@ import './history-chords.css';var Tn = Object.defineProperty, hl = (e, t) => {
|
|
|
23
23
|
});
|
|
24
24
|
return t || Tn(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
25
25
|
};
|
|
26
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
26
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1790607706146");
|
|
27
27
|
function vl(e) {
|
|
28
28
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
29
29
|
}
|
|
@@ -8089,7 +8089,7 @@ var nm = 4, om = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
8089
8089
|
};
|
|
8090
8090
|
export {
|
|
8091
8091
|
iv as $,
|
|
8092
|
-
|
|
8092
|
+
Ko as $t,
|
|
8093
8093
|
vn as A,
|
|
8094
8094
|
cu as At,
|
|
8095
8095
|
Gv as B,
|
|
@@ -8123,7 +8123,7 @@ export {
|
|
|
8123
8123
|
cg as P,
|
|
8124
8124
|
Md as Pt,
|
|
8125
8125
|
aA as Q,
|
|
8126
|
-
|
|
8126
|
+
ge as Qt,
|
|
8127
8127
|
vA as R,
|
|
8128
8128
|
tA as Rt,
|
|
8129
8129
|
pA as S,
|
|
@@ -8145,59 +8145,60 @@ export {
|
|
|
8145
8145
|
Et as _,
|
|
8146
8146
|
Me as _t,
|
|
8147
8147
|
yA as a,
|
|
8148
|
-
|
|
8148
|
+
Ge as an,
|
|
8149
8149
|
ah as at,
|
|
8150
8150
|
yf as b,
|
|
8151
8151
|
wu as bt,
|
|
8152
8152
|
Ut as c,
|
|
8153
|
-
|
|
8153
|
+
M as cn,
|
|
8154
8154
|
rh as ct,
|
|
8155
8155
|
AA as d,
|
|
8156
|
-
|
|
8156
|
+
Go as dn,
|
|
8157
8157
|
Fa as dt,
|
|
8158
|
-
|
|
8158
|
+
yr as en,
|
|
8159
8159
|
ov as et,
|
|
8160
8160
|
mA as f,
|
|
8161
|
-
|
|
8161
|
+
ne as fn,
|
|
8162
8162
|
wt as ft,
|
|
8163
8163
|
Nf as g,
|
|
8164
8164
|
Pe as gt,
|
|
8165
8165
|
Gf as h,
|
|
8166
8166
|
nn as ht,
|
|
8167
8167
|
xA as i,
|
|
8168
|
-
|
|
8168
|
+
Ot as in,
|
|
8169
8169
|
oh as it,
|
|
8170
8170
|
hi as j,
|
|
8171
8171
|
nA as jt,
|
|
8172
8172
|
fA as k,
|
|
8173
8173
|
oA as kt,
|
|
8174
8174
|
fp as l,
|
|
8175
|
-
|
|
8175
|
+
Wo as ln,
|
|
8176
8176
|
an as lt,
|
|
8177
8177
|
Qf as m,
|
|
8178
|
+
vl as mn,
|
|
8178
8179
|
Ha as mt,
|
|
8179
8180
|
wA as n,
|
|
8180
|
-
|
|
8181
|
+
bl as nn,
|
|
8181
8182
|
Ph as nt,
|
|
8182
8183
|
Rm as o,
|
|
8183
|
-
|
|
8184
|
+
mt as on,
|
|
8184
8185
|
_n as ot,
|
|
8185
8186
|
Xf as p,
|
|
8186
|
-
|
|
8187
|
+
Jm as pn,
|
|
8187
8188
|
Yu as pt,
|
|
8188
8189
|
ht as q,
|
|
8189
8190
|
eA as qt,
|
|
8190
8191
|
bA as r,
|
|
8191
|
-
|
|
8192
|
+
Zm as rn,
|
|
8192
8193
|
ut as rt,
|
|
8193
8194
|
Kp as s,
|
|
8194
|
-
|
|
8195
|
+
G as sn,
|
|
8195
8196
|
nh as st,
|
|
8196
8197
|
SA as t,
|
|
8197
|
-
|
|
8198
|
+
xe as tn,
|
|
8198
8199
|
rv as tt,
|
|
8199
8200
|
tp as u,
|
|
8200
|
-
|
|
8201
|
+
D as un,
|
|
8201
8202
|
th as ut,
|
|
8202
8203
|
wf as v,
|
|
8203
8204
|
Eu as vt,
|