@graphysdk/react-renderer 1.8.1-beta.1786446230102 → 1.8.1-beta.1786548285802

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.
@@ -3643,12 +3643,21 @@ export declare const GoalSection: ({ title, preview }: GoalSectionProps) => JSX.
3643
3643
  /** No `layout`: a toggled section is always collapsible. */
3644
3644
  declare type GoalSectionProps = Omit<OverridableSectionProps, 'layout'>;
3645
3645
 
3646
+ /**
3647
+ * Animation settings for a graph. `false` disables every animation. A viewer who prefers reduced
3648
+ * motion gets no animation whatever this asks for.
3649
+ */
3650
+ declare type GraphAnimation = boolean | GraphAnimationProps;
3651
+
3652
+ /** Per-kind animation settings. Each kind is independent: turning one off leaves the other running. */
3646
3653
  declare interface GraphAnimationProps {
3647
3654
  /**
3648
- * Settings for the intro animation played on first mount. `false` disables it, `true` forces it on,
3649
- * an object overrides individual intro settings. Defaults on.
3655
+ * Settings for the intro animation played when the chart first mounts or the chart type changes.
3656
+ * `false` disables it, an object overrides individual intro settings. Defaults on.
3650
3657
  */
3651
3658
  intro?: boolean | Partial<IntroAnimationOptions>;
3659
+ /** Whether geoms animate to their new position when the underlying data changes. Defaults on. */
3660
+ transitions?: boolean;
3652
3661
  }
3653
3662
 
3654
3663
  /** Write access to the graph's spec: applying {@link Command}s and closing the runs they form. */
@@ -3721,8 +3730,11 @@ declare interface GraphRendererProps {
3721
3730
  sizing?: GraphSizing;
3722
3731
  /** Callback invoked when the graph's container is resized. Fires in every sizing mode. */
3723
3732
  onResize?: ResizeObserverOnResize;
3724
- isAnimated?: boolean;
3725
- animation?: GraphAnimationProps;
3733
+ /**
3734
+ * Animation settings. A boolean disables/enables animations globally, an object tunes the intro
3735
+ * and data transitions separately. A reduced-motion preference disables everything regardless.
3736
+ */
3737
+ animation?: GraphAnimation;
3726
3738
  showTooltips?: boolean;
3727
3739
  mode?: GraphMode;
3728
3740
  /** Per-region component overrides. Unspecified regions render their default. */
package/dist/editable.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { B as De, D as ue, E as Nt, F as kt, I as Rt, L as He, M as ac, N as I, Q as Et, S as ee, V as de, Z as _t, b as T, c as Dt, d as Z, et as Ht, f as ve, h as Tn, i as Vt, k as Ve, l as zt, m as Ft, n as _, o as Pn, p as Me, r as Bt, rt as U, s as Gt, t as Kt, tt as K, u as Ce, v as Ut, x as X, y as we } from "./history-chords-ClsfSt3J.js";
1
+ import { B as De, D as ue, E as Nt, F as kt, I as Rt, L as He, M as ac, N as I, Q as Et, S as ee, V as de, Z as _t, b as T, c as Dt, d as Z, et as Ht, f as ve, h as Tn, i as Vt, k as Ve, l as zt, m as Ft, n as _, o as Pn, p as Me, r as Bt, rt as U, s as Gt, t as Kt, tt as K, u as Ce, v as Ut, x as X, y as we } from "./history-chords-ac4BYzSp.js";
2
2
  import { g as Wt } from "./font-values-CPxYeqns.js";
3
3
  import { ARROW_DEFAULTS as Zt, AddAnnotationCommand as j, AddHighlightCommand as qt, BORDER_RADIUS_TOKENS as je, CONSTANT_VARIABLES as $t, DEFAULT_BAR_BORDER_RADIUS as Xt, DEFAULT_POINT_SIZE as jt, DEFAULT_STROKE_WIDTH as Yt, DIFFERENCE_ARROW_DEFAULTS as In, MAX_BAR_WIDTH as Qt, MIN_BAR_WIDTH as Jt, RESTING_HOVER_STATE as An, RemoveAnnotationCommand as ze, RemoveHighlightCommand as er, SHAPE_DEFAULTS as nr, SetAppearanceCornerRadiusCommand as tr, SetAppearanceTextScaleCommand as rr, SetAxisLabelCommand as ar, SetAxisPositionCommand as or, SetAxisTickModeCommand as ir, SetAxisTicksVisibilityCommand as lr, SetAxisVisibilityCommand as sr, SetBarBorderRadiusCommand as cr, SetBarWidthCommand as dr, SetChartTypeCommand as hr, SetContentCaptionCommand as ur, SetContentSourceCommand as mr, SetContentSubtitleCommand as pr, SetContentTitleCommand as gr, SetDataLabelsFormatCommand as vr, SetGridLineStyleCommand as Cr, SetGridLineWidthCommand as fr, SetGridVisibilityCommand as br, SetHeadlineCompareWithCommand as yr, SetHeadlinePositionCommand as Sr, SetHeadlineShowCommand as Ye, SetHeadlineSizeCommand as wr, SetHighlightDimStyleCommand as xr, SetLegendAlignCommand as Lr, SetLegendDisplayCommand as Tr, SetLegendPositionCommand as Pr, SetLineInterpolationCommand as Ir, SetLineMissingValuesCommand as Ar, SetLineWidthCommand as Qe, SetNumberFormatAbbreviationCommand as Or, SetNumberFormatDecimalsCommand as Je, SetPointSizeCommand as Mr, SetPolarInnerRadiusCommand as Nr, SetPolarStartAngleCommand as kr, SetRuleLabelCommand as Rr, SetRuleValueCommand as Er, SetScaleDomainCommand as ge, SetScaleReverseCommand as _r, SetScaleTransformCommand as Dr, SetScaleZeroCommand as en, SetStatLineCommand as Hr, TEXT_ANNOTATION_DEFAULTS as Vr, ToggleCategoryLabelsCommand as zr, ToggleContentVisibilityCommand as xe, ToggleDataLabelsCommand as Fr, ToggleGoalLineCommand as Br, ToggleLineFillCommand as Gr, ToggleLinePointsVisibilityCommand as Kr, ToggleStackTotalsCommand as Ur, UpdateAnnotationCommand as On, areAnchorsEqual as Mn, areEndpointsComparable as Wr, buildEditMenuTriggerRegion as Zr, buildLayerStyleAddress as qr, buildObservationAnchor as $r, buildObservationPredicate as Xr, canAnchorDirectLabels as jr, canPlaceDataLabels as Yr, createObservationAnchorParser as Qr, createStyleResolver as Jr, createValueFormatter as ea, extractConstantValue as na, extractVariableName as ta, filterLayersByGeoms as Ne, findAverageLineLayer as ra, findGoalLineLayer as aa, findHighlightsAtObservation as oa, findLayerByGeom as Nn, findObservationAttachment as ia, findStyleRule as la, findTrendLineLayer as sa, formatDifferenceLabel as ca, getColor as da, hasMultipleGroups as ha, inferDefaultDifferenceArrowEndpoints as ua, inferDifferenceArrowEndpoints as ma, isCompanionLayer as kn, isObservationAttachmentKind as pa, isPointWithinEditMenuTrigger as Rn, isSafeUrl as ga, projectAnchorToPanel as va, readChartType as Ca, readHighlightDimStyle as fa, resolveComparisonBasis as ba, resolveObservationPoint as ke, stepDifferenceArrowEndpoint as ya, toPanelCursor as Fe } from "@graphysdk/viz-engine";
4
4
  import { createContext as me, useCallback as fe, useContext as ie, useEffect as B, useId as ae, useMemo as E, useRef as be, useState as q } from "react";