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)
| Symbol | What it does |
|---|---|
UnifinChartElement | - |
Functions (6)
| Symbol | What it does |
|---|---|
themeForName | Element palette of the theme attribute: the six names of THEME_NAMES. |
defineUnifinChart | Registers the element once; returns false without a registry (SSR, node) or when the tag is already taken - never throws. |
isFxPreset | Narrows a foreign attribute or query value to an effect preset. |
resolveFx | Turns 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)
| Symbol | What it does |
|---|---|
ReplayViewState | Replay cursor state of the element; active is false until engaged. |
ElementViewState | Viewport readback of the element (bar spacing and first visible bar). |
FxPreset | - |
FxEnvironment | - |
FxResolution | - |
SceneLinkElement | - |
SceneMotionPlan | - |
Constants (4)
| Symbol | What it does |
|---|---|
MIN_BAR_SPACING | Bar spacing limits of the element viewport (mirrors the scale defaults). |
MAX_BAR_SPACING | - |
FX_PRESETS | Showcase 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_MS | Scene crossfade duration; inside the 80-160 ms canon. |
React API (@unifin/chart-react)
Generated reference of 75 public symbols of @unifin/chart-react plus 15 symbols of its subpaths, grouped by kind and ordered as in the sources.
Bonds kit API (@unifin/chart-kit-bonds)
Generated reference of 314 public symbols of @unifin/chart-kit-bonds, grouped by kind and ordered as in the sources.
