@graphysdk/react-renderer 1.8.1-beta.1787309684040 → 1.8.1-beta.1787327281624
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 +8 -8
- package/dist/{history-chords-CmUL0o4F.js → history-chords-CV31zQpe.js} +1 -1
- package/dist/{history-chords-11XvKcFl.cjs → history-chords-CbmkVhaY.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Xa, B as Fn, C as A, Ct as ja, E as Za, Et as G, F as Tt, G as Ya, H as Hn, I as Bn, J as Ja, K as Qa, L as At, M as U, N as B, Ot as V, P as kt, R as Ze, S as eo, St as to, U as no, V as ro, Y as Q, Z as ve, _ as ao, at as oo, b as io, c as lo, d as so, dt as Y, et as co, f as Vn, g as be, h as Gn, i as uo, it as ho, j as X, k as po, l as mo, m as $n, n as ie, nt as go, o as fo, ot as vo, p as bo, q as Kt, r as $, st as le, t as Co, tt as k, u as yo, ut as Lt, v as So, wt as xo, x as wo, xt as To, y as Un, z as Ao } from "./history-chords-
|
|
1
|
+
import { A as Xa, B as Fn, C as A, Ct as ja, E as Za, Et as G, F as Tt, G as Ya, H as Hn, I as Bn, J as Ja, K as Qa, L as At, M as U, N as B, Ot as V, P as kt, R as Ze, S as eo, St as to, U as no, V as ro, Y as Q, Z as ve, _ as ao, at as oo, b as io, c as lo, d as so, dt as Y, et as co, f as Vn, g as be, h as Gn, i as uo, it as ho, j as X, k as po, l as mo, m as $n, n as ie, nt as go, o as fo, ot as vo, p as bo, q as Kt, r as $, st as le, t as Co, tt as k, u as yo, ut as Lt, v as So, wt as xo, x as wo, xt as To, y as Un, z as Ao } from "./history-chords-CV31zQpe.js";
|
|
2
2
|
import { m as ue, n as Wn, p as Kn } from "./dev.utils-Bvss_b2-.js";
|
|
3
|
-
import { ARROW_DEFAULTS as ko, AddAnnotationCommand as he, AddHighlightCommand as Lo, BORDER_RADIUS_TOKENS as qt, COMBO_TYPES as Xt, CONSTANT_VARIABLES as Po, DEFAULT_BAR_BORDER_RADIUS as Io, DEFAULT_POINT_SIZE as Eo, DEFAULT_STROKE_WIDTH as Mo, DIFFERENCE_ARROW_DEFAULTS as qn, MAX_BAR_WIDTH as No, MIN_BAR_WIDTH as Oo, MoveAnnotationCommand as Do, RESTING_HOVER_STATE as Xn, RemoveAnnotationCommand as Ae, RemoveHighlightCommand as Ro, SHAPE_DEFAULTS as zo, SetAppearanceTextScaleCommand as _o, SetAxisLabelCommand as Fo, SetAxisPositionCommand as Ho, SetAxisTickModeCommand as Bo, SetAxisTicksVisibilityCommand as Vo, SetAxisVisibilityCommand as Go, SetBarBorderRadiusCommand as $o, SetBarWidthCommand as Uo, SetChartTypeCommand as jn, SetContentCaptionCommand as Zn, SetContentSourceCommand as Wo, SetContentSubtitleCommand as Yn, SetContentTitleCommand as Jn, SetDataLabelsFormatCommand as Ko, SetGridLineStyleCommand as qo, SetGridLineWidthCommand as Xo, SetGridVisibilityCommand as jo, SetHeadlineCompareWithCommand as Zo, SetHeadlinePositionCommand as Yo, SetHeadlineShowCommand as jt, SetHeadlineSizeCommand as Jo, SetHighlightDimStyleCommand as Qo, SetLayerYScaleTypeCommand as ei, SetLegendAlignCommand as ti, SetLegendDisplayCommand as ni, SetLegendPositionCommand as ri, SetLineInterpolationCommand as ai, SetLineMissingValuesCommand as oi, SetLineWidthCommand as Zt, SetMappingCommand as ii, SetNumberFormatAbbreviationCommand as li, SetNumberFormatDecimalsCommand as Yt, SetPointSizeCommand as si, SetPolarInnerRadiusCommand as ci, SetPolarStartAngleCommand as di, SetRuleLabelCommand as ui, SetRuleValueCommand as hi, SetScaleDomainCommand as ze, SetScaleReverseCommand as pi, SetScaleTransformCommand as mi, SetScaleZeroCommand as Jt, SetStatLineCommand as gi, SetStyleRuleCommand as fi, TEXT_ANNOTATION_DEFAULTS as vi, ToggleCategoryLabelsCommand as bi, ToggleContentVisibilityCommand as Ye, ToggleDataLabelsCommand as Ci, ToggleGoalLineCommand as yi, ToggleLineFillCommand as Si, ToggleLinePointsVisibilityCommand as xi, ToggleStackTotalsCommand as wi, UpdateAnnotationCommand as ee, alignUnitFractions as Ti, areAnchorsEqual as Qn, areEndpointsComparable as Ai, buildEditMenuTriggerRegion as ki, buildLayerStyleAddress as Li,
|
|
3
|
+
import { ARROW_DEFAULTS as ko, AddAnnotationCommand as he, AddHighlightCommand as Lo, BORDER_RADIUS_TOKENS as qt, COMBO_TYPES as Xt, CONSTANT_VARIABLES as Po, DEFAULT_BAR_BORDER_RADIUS as Io, DEFAULT_POINT_SIZE as Eo, DEFAULT_STROKE_WIDTH as Mo, DIFFERENCE_ARROW_DEFAULTS as qn, MAX_BAR_WIDTH as No, MIN_BAR_WIDTH as Oo, MoveAnnotationCommand as Do, RESTING_HOVER_STATE as Xn, RemoveAnnotationCommand as Ae, RemoveHighlightCommand as Ro, SHAPE_DEFAULTS as zo, SetAppearanceTextScaleCommand as _o, SetAxisLabelCommand as Fo, SetAxisPositionCommand as Ho, SetAxisTickModeCommand as Bo, SetAxisTicksVisibilityCommand as Vo, SetAxisVisibilityCommand as Go, SetBarBorderRadiusCommand as $o, SetBarWidthCommand as Uo, SetChartTypeCommand as jn, SetContentCaptionCommand as Zn, SetContentSourceCommand as Wo, SetContentSubtitleCommand as Yn, SetContentTitleCommand as Jn, SetDataLabelsFormatCommand as Ko, SetGridLineStyleCommand as qo, SetGridLineWidthCommand as Xo, SetGridVisibilityCommand as jo, SetHeadlineCompareWithCommand as Zo, SetHeadlinePositionCommand as Yo, SetHeadlineShowCommand as jt, SetHeadlineSizeCommand as Jo, SetHighlightDimStyleCommand as Qo, SetLayerYScaleTypeCommand as ei, SetLegendAlignCommand as ti, SetLegendDisplayCommand as ni, SetLegendPositionCommand as ri, SetLineInterpolationCommand as ai, SetLineMissingValuesCommand as oi, SetLineWidthCommand as Zt, SetMappingCommand as ii, SetNumberFormatAbbreviationCommand as li, SetNumberFormatDecimalsCommand as Yt, SetPointSizeCommand as si, SetPolarInnerRadiusCommand as ci, SetPolarStartAngleCommand as di, SetRuleLabelCommand as ui, SetRuleValueCommand as hi, SetScaleDomainCommand as ze, SetScaleReverseCommand as pi, SetScaleTransformCommand as mi, SetScaleZeroCommand as Jt, SetStatLineCommand as gi, SetStyleRuleCommand as fi, TEXT_ANNOTATION_DEFAULTS as vi, ToggleCategoryLabelsCommand as bi, ToggleContentVisibilityCommand as Ye, ToggleDataLabelsCommand as Ci, ToggleGoalLineCommand as yi, ToggleLineFillCommand as Si, ToggleLinePointsVisibilityCommand as xi, ToggleStackTotalsCommand as wi, UpdateAnnotationCommand as ee, alignUnitFractions as Ti, areAnchorsEqual as Qn, areEndpointsComparable as Ai, buildEditMenuTriggerRegion as ki, buildLayerStyleAddress as Li, buildObservationPredicate as Pi, canAnchorDirectLabels as Ii, canBecomeCombo as Ei, canBecomeHeatmap as Mi, canPlaceDataLabels as Ni, clampAnnotationTranslation as Oi, computeArrow as er, createObservationAnchorBuilder as Di, createObservationAnchorParser as Ri, createStyleResolver as Je, createValueFormatter as zi, extractConstantValue as _i, extractVariableName as Fi, filterLayersByGeoms as ht, findAnnotation as Hi, findAverageLineLayer as Bi, findGoalLineLayer as Vi, findHighlightsAtObservation as Gi, findKindStyleDeclarations as $i, findLayerByGeom as tr, findObservationAttachment as Ui, findStyleRule as Wi, findTrendLineLayer as Ki, formatDifferenceLabel as qi, hasMultipleGroups as Xi, inferDefaultDifferenceArrowEndpoints as ji, inferDifferenceArrowEndpoints as Zi, isComboChartType as fe, isCompanionLayer as nr, isObservationAttachmentKind as Yi, isPointWithinEditMenuTrigger as rr, isSafeUrl as Ji, projectAnchorToPanel as Qi, readChartType as ar, readComboLineLayerId as el, readHighlightDimStyle as tl, readMappableAesthetics as nl, readMappedVariable as rl, readObservationIndex as al, resolveBarBandFraction as ol, resolveComparisonBasis as il, resolveGridLineStyle as ll, resolveObservationPoint as or, stepDifferenceArrowEndpoint as sl, toPanelCursor as Pt } from "@graphysdk/viz-engine";
|
|
4
4
|
import { createContext as Me, useCallback as oe, useContext as ke, useEffect as M, useId as Te, useMemo as O, useRef as te, useState as J } from "react";
|
|
5
5
|
import { Fragment as j, jsx as n, jsxs as g } from "react/jsx-runtime";
|
|
6
6
|
import { useShallow as Le } from "zustand/react/shallow";
|
|
@@ -3926,7 +3926,7 @@ var Kc = (e) => {
|
|
|
3926
3926
|
}, o.scope))
|
|
3927
3927
|
});
|
|
3928
3928
|
}, ad = ({ label: e, layer: t, observation: r, highlights: a, onRequestClose: o }) => {
|
|
3929
|
-
const i = k(), { dispatch: l } = ie(), s = G((p) => p.coordSystem), c = O(() =>
|
|
3929
|
+
const i = k(), { dispatch: l } = ie(), s = G((p) => p.coordSystem), c = O(() => Pi(t, r), [t, r]), u = O(() => Wc(s, t), [s, t]), d = O(() => {
|
|
3930
3930
|
const p = new Set(a.map((m) => m.scope));
|
|
3931
3931
|
return u.filter((m) => !p.has(m.scope));
|
|
3932
3932
|
}, [u, a]), [h] = d;
|
|
@@ -6372,7 +6372,7 @@ var Rh = "_1tyillx1", zh = {
|
|
|
6372
6372
|
resolvePreview(e) {
|
|
6373
6373
|
const { annotationId: t, press: r, readInputs: a } = this.params, { annotations: o, panelRect: i } = a(), l = Hi(o, t);
|
|
6374
6374
|
if (l === null) return null;
|
|
6375
|
-
const s =
|
|
6375
|
+
const s = Oi(l, nt(r, e, i));
|
|
6376
6376
|
return s === null ? null : {
|
|
6377
6377
|
kind: "move-drag",
|
|
6378
6378
|
annotationId: t,
|
|
@@ -6520,7 +6520,7 @@ var Rh = "_1tyillx1", zh = {
|
|
|
6520
6520
|
purpose: "pin"
|
|
6521
6521
|
});
|
|
6522
6522
|
if (s === null) return null;
|
|
6523
|
-
const c =
|
|
6523
|
+
const c = Di(l)(e.observation);
|
|
6524
6524
|
return c === null ? null : {
|
|
6525
6525
|
position: s,
|
|
6526
6526
|
color: i.geomReaders(l).get("color", e.observation),
|
|
@@ -8064,7 +8064,7 @@ var sp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8064
8064
|
const c = e === void 0 ? i.spec.layers[0] : i.spec.layers.find((F) => F.id === e);
|
|
8065
8065
|
if (!c) return null;
|
|
8066
8066
|
const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: f } = c.dataLabels, p = i.coordSystem.type === "polar", m = c.geom === "bar", v = c.position === "stack" || c.position === "fill", x = m && !p && c.position === "stack", w = m && (!p || u), y = m || c.geom === "area" && v;
|
|
8067
|
-
if (!
|
|
8067
|
+
if (!Ni(c.geom, i.coordSystem.type)) return null;
|
|
8068
8068
|
const L = (F) => {
|
|
8069
8069
|
const P = new Ci({
|
|
8070
8070
|
layerId: c.id,
|
|
@@ -8740,7 +8740,7 @@ var sp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8740
8740
|
value: h,
|
|
8741
8741
|
label: i(`editor.graphTypes.${h}`),
|
|
8742
8742
|
icon: /* @__PURE__ */ n(f, { size: "md" }),
|
|
8743
|
-
isDisabled: h === "combo" && !
|
|
8743
|
+
isDisabled: h === "combo" && !Ei(o?.spec) || h === "heatmap" && !Mi(o?.spec)
|
|
8744
8744
|
})), [i, o]);
|
|
8745
8745
|
if (!o) return null;
|
|
8746
8746
|
const c = ar(o.spec), u = a2(c), d = (h) => {
|
|
@@ -8929,7 +8929,7 @@ var sp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
|
|
|
8929
8929
|
], $m = ({ positions: e, title: t, layout: r = "collapsible", preview: a }) => {
|
|
8930
8930
|
const o = z(), i = $(o), l = k(), { ToggleGroup: s } = _();
|
|
8931
8931
|
if (!i) return null;
|
|
8932
|
-
const c = i.config.legend.position, u = e ?? ut, d = i.guides.legends.drawn[0], h =
|
|
8932
|
+
const c = i.config.legend.position, u = e ?? ut, d = i.guides.legends.drawn[0], h = Ii({
|
|
8933
8933
|
legendPosition: i.guides.legends.position,
|
|
8934
8934
|
coordSystem: i.coordSystem,
|
|
8935
8935
|
layers: i.layers
|
|
@@ -24,7 +24,7 @@ import './history-chords.css';var hr = Object.defineProperty, bi = (e, t) => {
|
|
|
24
24
|
});
|
|
25
25
|
return t || hr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
26
26
|
};
|
|
27
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.8.1-beta.
|
|
27
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.8.1-beta.1787327281624");
|
|
28
28
|
var An = H(null), Y = () => {
|
|
29
29
|
const e = M(An);
|
|
30
30
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|