Chartsv26.10.18
API reference

Element API (@unifin/chart-element)

Generated reference of 18 public symbols of @unifin/chart-element, grouped by kind and ordered as in the sources.

Generated from the package entry packages/chart-element/src/index.ts. Names are reachable through @unifin/chart-element; use your editor for full signatures - this page carries the map.

Classes (1)

SymbolWhat it does
UnifinChartElement-

Functions (6)

SymbolWhat it does
themeForNameElement palette of the theme attribute: the six names of THEME_NAMES.
defineUnifinChartRegisters the element once; returns false without a registry (SSR, node) or when the tag is already taken - never throws.
isFxPresetNarrows a foreign attribute or query value to an effect preset.
resolveFxTurns one preset on or off. Asking for an effect while reducedMotion is set is refused: the returned list stays unchanged and refused is true, so callers can surface a hint instead of silently animating.
linkScenes-
planSceneMotion-

Types (7)

SymbolWhat it does
ReplayViewStateReplay cursor state of the element; active is false until engaged.
ElementViewStateViewport readback of the element (bar spacing and first visible bar).
FxPreset-
FxEnvironment-
FxResolution-
SceneLinkElement-
SceneMotionPlan-

Constants (4)

SymbolWhat it does
MIN_BAR_SPACINGBar spacing limits of the element viewport (mirrors the scale defaults).
MAX_BAR_SPACING-
FX_PRESETSShowcase effects: optional presentation presets for the site stage - a sheen sweeping the frame border, a glow following the cursor and a spark burst on scene switches. The module is pure: it resolves which presets are active and which classes the host carries; CSS lives with the embedding page. Effects always respect the motion policy.
SCENE_FADE_MSScene crossfade duration; inside the 80-160 ms canon.

On this page