@graphysdk/react-renderer 1.9.0-beta.1792598836627 → 1.9.0-beta.1792762495769
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.d.ts +43 -0
- package/dist/editable.mjs +8 -1
- package/dist/{history-chords-_5_R0pQe.cjs → history-chords-DT7KDNpY.cjs} +1 -1
- package/dist/{history-chords-A2elZVDC.js → history-chords-tEb9T44h.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/editable.d.ts
CHANGED
|
@@ -43,6 +43,18 @@ export declare const AppearanceSection: ({ title, layout, preview }: Overridable
|
|
|
43
43
|
/** Both axes, each switched on and off from within its own section. */
|
|
44
44
|
export declare const AxesPanel: ({ children, ...rootProps }: PanelProps) => JSX.Element;
|
|
45
45
|
|
|
46
|
+
/** The selected axis's rows: its title, labels, position, scale, start and end. The overlay menu draws the heading above. */
|
|
47
|
+
export declare const AxisEditMenu: {
|
|
48
|
+
({ target }: {
|
|
49
|
+
target: Extract<EditTarget, {
|
|
50
|
+
kind: "axis";
|
|
51
|
+
}>;
|
|
52
|
+
}): JSX.Element | null;
|
|
53
|
+
hasRows(_target: Extract<EditTarget, {
|
|
54
|
+
kind: "axis";
|
|
55
|
+
}>, { scene }: EditMenuRowsInputs): boolean;
|
|
56
|
+
};
|
|
57
|
+
|
|
46
58
|
/**
|
|
47
59
|
* Props for the AxisLabel slot — the axis title of every axis (e.g. "Revenue"), overridable via
|
|
48
60
|
* `slots.AxisLabel`. `labelRects` are SVG-local, keyed by edge. The tick band is a separate slot — see
|
|
@@ -76,6 +88,9 @@ declare interface AxisTicksSlotProps {
|
|
|
76
88
|
tickRects: Partial<Record<Edge, Rect>>;
|
|
77
89
|
}
|
|
78
90
|
|
|
91
|
+
/** The bar edit menu: fill color, and how thick the bars are. */
|
|
92
|
+
export declare const BarEditMenu: ObservationsEditMenu;
|
|
93
|
+
|
|
79
94
|
/**
|
|
80
95
|
* A bar's own shape: how thick it is and how round its corners are.
|
|
81
96
|
*
|
|
@@ -151,6 +166,12 @@ export declare const CaptionSection: ({ title, layout, preview }: OverridableSec
|
|
|
151
166
|
/** Every phrase a chart can say. The editing surface adds its own — see `editable/i18n/editor-i18n`. */
|
|
152
167
|
declare type ChartPhrases = typeof EN_GB;
|
|
153
168
|
|
|
169
|
+
/** The color row for a selection. Renders nothing where the command has nowhere to write. */
|
|
170
|
+
export declare const ColorRow: {
|
|
171
|
+
({ target }: ResolvedObservations): JSX.Element | null;
|
|
172
|
+
hasRows(target: ObservationsTarget, { scene }: EditMenuRowsInputs): boolean;
|
|
173
|
+
};
|
|
174
|
+
|
|
154
175
|
/** A grid of color chips, for picking one color from a fixed set such as the palette. */
|
|
155
176
|
export declare const ColorSwatches: ({ title, colors, value, onChange, trailing, clearable, disabled, id, ariaLabel, ariaLabelledBy, }: ColorSwatchesControlProps) => JSX.Element;
|
|
156
177
|
|
|
@@ -1006,6 +1027,9 @@ declare interface GraphSlots {
|
|
|
1006
1027
|
*/
|
|
1007
1028
|
export declare const GraphTypeSection: ({ title, layout, preview }: OverridableSectionProps) => JSX.Element | null;
|
|
1008
1029
|
|
|
1030
|
+
/** The grid's edit menu. A press edits the direction it landed on. */
|
|
1031
|
+
export declare const GridEditMenu: TargetEditMenu<'grid'>;
|
|
1032
|
+
|
|
1009
1033
|
declare interface GridProps {
|
|
1010
1034
|
/** Controls, laid out two per row. */
|
|
1011
1035
|
children: ReactNode;
|
|
@@ -1121,6 +1145,12 @@ declare type IntroTrigger = 'mount' | 'inView';
|
|
|
1121
1145
|
/** One geom's edit menus, keyed by the chart's coord and then by the layer's position. */
|
|
1122
1146
|
declare type LayerEditMenus = Partial<Record<CoordType, Partial<Record<PositionAdjustment, ObservationsEditMenu | null>>>>;
|
|
1123
1147
|
|
|
1148
|
+
/**
|
|
1149
|
+
* The legend's edit menu: one grid of arrows that places it on a side of the chart and along it, disabled with no
|
|
1150
|
+
* arrow checked while the chart draws no legend.
|
|
1151
|
+
*/
|
|
1152
|
+
export declare const LegendEditMenu: TargetEditMenu<'legend'>;
|
|
1153
|
+
|
|
1124
1154
|
/** Where the legend sits relative to the chart, and how it names its series. */
|
|
1125
1155
|
export declare const LegendSection: ({ positions, title, layout, preview }: LegendSectionProps) => JSX.Element | null;
|
|
1126
1156
|
|
|
@@ -1141,6 +1171,12 @@ declare interface LegendSlotProps {
|
|
|
1141
1171
|
rects: Partial<Record<Edge, Rect>>;
|
|
1142
1172
|
}
|
|
1143
1173
|
|
|
1174
|
+
/** The line and area edit menu: color, thickness, dash, fill and points, all for the selected group. */
|
|
1175
|
+
export declare const LineEditMenu: {
|
|
1176
|
+
({ target }: ResolvedObservations): JSX.Element | null;
|
|
1177
|
+
hasRows(target: ObservationsTarget, { scene }: EditMenuRowsInputs): boolean;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1144
1180
|
/**
|
|
1145
1181
|
* How a path is drawn: its points, curve, thickness and missing values. Renders nothing unless the
|
|
1146
1182
|
* chart holds a line or an area.
|
|
@@ -1220,6 +1256,13 @@ declare type OverridePhrase<Phrases, Key extends string> = DeepValue<Phrases, Ke
|
|
|
1220
1256
|
/** Color lists keyed by the name the Chart menu's Palette row gives each. */
|
|
1221
1257
|
export declare type PalettePresets = Readonly<Record<string, readonly string[]>>;
|
|
1222
1258
|
|
|
1259
|
+
/**
|
|
1260
|
+
* The chart's palette: the theme's, or one of the host's `palettePresets` written as the color scale's `range`,
|
|
1261
|
+
* whose first color an unmapped geom takes too. Renders nothing where the host offers none or the color scale
|
|
1262
|
+
* is not discrete, as a heatmap's.
|
|
1263
|
+
*/
|
|
1264
|
+
export declare const PaletteRow: () => JSX.Element | null;
|
|
1265
|
+
|
|
1223
1266
|
/**
|
|
1224
1267
|
* Marks the panel root in the DOM. Hosts use it to scope their own styles; the react-renderer build
|
|
1225
1268
|
* uses it to prove panel markup never reaches the read-only entry.
|
package/dist/editable.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Dn, $t as Xl, A as Mt, An as Zl, B as Yl, C as Jl, Ct as Ma, D as Ql, Dn as W, Dt as es, E as ts, Et as Ne, F as ns, Ft as ne, G as ee, Gt as Sr, I as rs, It as as, J as Cr, K as U, Kt as os, L, Lt as is, Nn as _n, O as Oa, Ot as ls, P as ss, Pt as et, Q as Fn, S as cs, St as E, T as Ee, Tn as Ra, U as ds, W as us, X as hs, Y as ps, Yt as ms, Z as j, _ as De, _n as gs, an as Na, at as zn, b as Da, bt as vs, c as _a, cn as Be, ct as fs, d as bs, dt as ys, en as Ss, et as Fa, f as Cs, ft as ge, g as za, gt as Ot, h as Rt, ht as xs, i as Bn, in as Ba, it as Ha, jn as H, k as un, kn as R, kt as ws, l as ks, lt as Ts, m as As, mt as Ps, n as le, nn as Ls, nt as Nt, o as Is, on as ce, p as Ga, pt as ue, q as Es, r as K, rt as Ms, sn as Hn, st as Os, t as Rs, tn as Va, tt as Gn, u as Ns, ut as xr, v as Ds, vn as _s, wt as Fs, x as zs, xn as Bs, xt as Hs, y as Gs, yt as Vs } from "./history-chords-
|
|
1
|
+
import { $ as Dn, $t as Xl, A as Mt, An as Zl, B as Yl, C as Jl, Ct as Ma, D as Ql, Dn as W, Dt as es, E as ts, Et as Ne, F as ns, Ft as ne, G as ee, Gt as Sr, I as rs, It as as, J as Cr, K as U, Kt as os, L, Lt as is, Nn as _n, O as Oa, Ot as ls, P as ss, Pt as et, Q as Fn, S as cs, St as E, T as Ee, Tn as Ra, U as ds, W as us, X as hs, Y as ps, Yt as ms, Z as j, _ as De, _n as gs, an as Na, at as zn, b as Da, bt as vs, c as _a, cn as Be, ct as fs, d as bs, dt as ys, en as Ss, et as Fa, f as Cs, ft as ge, g as za, gt as Ot, h as Rt, ht as xs, i as Bn, in as Ba, it as Ha, jn as H, k as un, kn as R, kt as ws, l as ks, lt as Ts, m as As, mt as Ps, n as le, nn as Ls, nt as Nt, o as Is, on as ce, p as Ga, pt as ue, q as Es, r as K, rt as Ms, sn as Hn, st as Os, t as Rs, tn as Va, tt as Gn, u as Ns, ut as xr, v as Ds, vn as _s, wt as Fs, x as zs, xn as Bs, xt as Hs, y as Gs, yt as Vs } from "./history-chords-tEb9T44h.js";
|
|
2
2
|
import { ARROW_DEFAULTS as $s, ARROW_STICKER_DECLARATIONS as Ws, ARROW_STROKE_WIDTHS_PX as Jt, AddAnnotationCommand as Te, AddHighlightCommand as Us, BORDER_RADIUS_TOKENS as wr, COMBO_TYPES as kr, CONSTANT_VARIABLES as Ks, DASH_PRESETS as qs, DEFAULT_BAR_CORNER_RADIUS as js, DEFAULT_GEOM_COLOR as Xs, DEFAULT_POINT_SIZE_PX as $a, DEFAULT_STROKE_WIDTH_PX as Zs, DIFFERENCE_ARROW_DEFAULTS as Wa, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Tr, InternalError as Ys, MAX_BAR_WIDTH_FRACTION as Js, MIN_BAR_WIDTH_FRACTION as Qs, MoveAnnotationCommand as ec, RESTING_HOVER_STATE as Vn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as tc, SHAPE_DEFAULTS as nc, SequenceCommand as qe, SetAxisLabelCommand as Ua, SetAxisPositionCommand as Ka, SetAxisTickModeCommand as qa, SetAxisTicksVisibilityCommand as rc, SetAxisVisibilityCommand as hn, SetBarCornerRadiusCommand as ac, SetBarWidthCommand as ja, SetChartTypeCommand as $n, SetContentCaptionCommand as Xa, SetContentSourceCommand as oc, SetContentSubtitleCommand as Za, SetContentTitleCommand as Ya, SetDataLabelsFormatCommand as Ja, SetDifferenceArrowStyleCommand as ic, SetGridLineStyleCommand as Qa, SetGridVisibilityCommand as pn, SetHeadlineCompareWithCommand as lc, SetHeadlinePositionCommand as sc, SetHeadlineShowCommand as Ar, SetHeadlineSizeCommand as cc, SetHighlightDimStyleCommand as dc, SetLayerYScaleTypeCommand as uc, SetLegendAlignCommand as hc, SetLegendDisplayCommand as pc, SetLegendPlacementCommand as mc, SetLegendPositionCommand as mn, SetLineCurveCommand as eo, SetLineMissingValuesCommand as to, SetLineStyleCommand as Ce, SetMappingCommand as gc, SetNumberFormatAbbreviationCommand as vc, SetNumberFormatDecimalsCommand as Pr, SetObservationsColorCommand as fc, SetPointSizeCommand as Wn, SetPolarInnerRadiusCommand as bc, SetPolarStartAngleCommand as yc, SetRuleLabelCommand as Sc, SetRuleValueCommand as Cc, SetScaleDomainCommand as Ze, SetScaleRangeCommand as xc, SetScaleReverseCommand as wc, SetScaleTransformCommand as no, SetStatLineCommand as kc, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as Tc, TEXT_ANNOTATION_FADE_ALPHA as Ac, ToggleCategoryLabelsCommand as ro, ToggleContentVisibilityCommand as Dt, ToggleDataLabelsCommand as ao, ToggleGoalLineCommand as Pc, ToggleLinePointsCommand as Un, ToggleStackTotalsCommand as oo, UpdateAnnotationCommand as ve, alignUnitFractions as Lc, areAnchorsEqual as io, areEditTargetsEqual as Kn, areEndpointsComparable as Ic, buildEditMenuTriggerRegion as Ec, buildLayerStyleAddress as Ge, buildObservationPredicate as Mc, buildObservationsTarget as tt, buildObservationsTargetAtValue as lo, canAnchorDirectLabels as Oc, canBecomeCombo as Rc, canBecomeHeatmap as Nc, clampAnnotationTranslation as Dc, combineKindStyleDeclarations as Lr, computeArrow as so, createObservationAnchorBuilder as _c, createObservationAnchorParser as Fc, createStyleResolver as zc, createStyleRuleMatcher as Bc, createValueFormatter as co, createXValueReader as Hc, filterLayersByGeoms as gn, findAnnotation as Gc, findAverageLineLayer as Vc, findAxisGuide as uo, findCompanionLayers as ho, findGoalLineLayer as $c, findHighlightsAtObservation as Wc, findHostLayer as _t, findKindStyleDeclarations as bt, findLayerByGeom as po, findLayerById as Z, findObservationAttachment as Uc, findStyleRule as Pe, findTrendLineLayer as Kc, formatDifferenceLabel as qc, getBoundingRect as vn, getGroupVariables as mo, getXBand as jc, getYBand as Xc, hasMainAxisBand as Zc, hasMultipleGroups as go, inferDefaultDifferenceArrowEndpoints as Yc, inferDifferenceArrowEndpoints as Jc, isComboChartType as se, isCompanionLayer as vo, isGeomStyleRule as Qc, isLayerSpecOf as Ft, isObservationAttachmentKind as ed, isPointWithinEditMenuTrigger as qn, isSafeUrl as td, isZeroAnchoredAxis as fo, measureObservationsBoxes as bo, projectAnchorToPanel as yt, readBroadestObservationsScope as nd, readChartType as zt, readColorChoices as rd, readComboLineLayerId as ad, readCompanionRowsAtScopeKey as od, readConstantValue as id, readEditTargetKey as Bt, readGeomColor as ld, readHighlightDimStyle as sd, readMainAxis as cd, readMappableAesthetics as dd, readMappedVariable as ud, readObservationIndex as yo, readObservationsColor as hd, readObservationsColorRoute as jn, readReachableLevels as pd, readRowScopeKey as md, readRowsAtScopeKey as gd, readScopeXVariable as vd, readStyleCoord as de, readStyleRulesBeneath as fd, readVariableName as Ht, resolveArrowAnnotationStyle as Xn, resolveBarBandFraction as So, resolveComparisonBasis as bd, resolveDifferenceArrowAnnotationStyle as yd, resolveEditOutlineStyle as Sd, resolveLayerAxisValueFormat as Cd, resolveObservationPoint as Co, resolveObservationsTarget as Je, stepDifferenceArrowEndpoint as xd, toDashPreset as Re, toPaintColor as St, toPanelCursor as Gt, toStrokeDasharray as xo } from "@graphysdk/viz-engine";
|
|
3
3
|
import { Fragment as wo, createContext as Me, memo as ko, useCallback as re, useContext as he, useEffect as z, useId as Le, useLayoutEffect as Ie, useMemo as M, useRef as ae, useState as X, useSyncExternalStore as wd } from "react";
|
|
4
4
|
import { Fragment as $, jsx as r, jsxs as v } from "react/jsx-runtime";
|
|
@@ -13135,11 +13135,14 @@ var dn = [
|
|
|
13135
13135
|
export {
|
|
13136
13136
|
u3 as AppearanceSection,
|
|
13137
13137
|
d3 as AxesPanel,
|
|
13138
|
+
ci as AxisEditMenu,
|
|
13138
13139
|
Ca as AxisSection,
|
|
13140
|
+
ui as BarEditMenu,
|
|
13139
13141
|
h3 as BarSection,
|
|
13140
13142
|
wu as Button,
|
|
13141
13143
|
p3 as CalloutsSection,
|
|
13142
13144
|
f5 as CaptionSection,
|
|
13145
|
+
at as ColorRow,
|
|
13143
13146
|
Cu as ColorSwatches,
|
|
13144
13147
|
m3 as ComboSection,
|
|
13145
13148
|
kh as ControlRegistryProvider,
|
|
@@ -13151,15 +13154,19 @@ export {
|
|
|
13151
13154
|
g3 as GoalSection,
|
|
13152
13155
|
v3 as GraphOptionsSection,
|
|
13153
13156
|
f3 as GraphTypeSection,
|
|
13157
|
+
Oi as GridEditMenu,
|
|
13154
13158
|
b3 as GridSection,
|
|
13155
13159
|
y3 as HeadlineSection,
|
|
13156
13160
|
Mo as IntlProvider,
|
|
13161
|
+
Lm as LegendEditMenu,
|
|
13157
13162
|
S3 as LegendSection,
|
|
13163
|
+
Pn as LineEditMenu,
|
|
13158
13164
|
C3 as LineSection,
|
|
13159
13165
|
x3 as MappingSection,
|
|
13160
13166
|
Gu as NumberField,
|
|
13161
13167
|
w3 as NumberFormatSection,
|
|
13162
13168
|
Yf as PANEL_ROOT_ATTRIBUTE,
|
|
13169
|
+
vm as PaletteRow,
|
|
13163
13170
|
k3 as PointSection,
|
|
13164
13171
|
T3 as PolarSection,
|
|
13165
13172
|
ju as RadioGrid,
|