API overview
Lumen Ticks ships seven packages released together under one version. Most applications install @lumen-ticks/core (or a framework binding).
Packages
Section titled “Packages”| Package | Primary export | Purpose | Source |
|---|---|---|---|
@lumen-ticks/core |
createChart, configureWorker, createWorkerPool, ./worker |
Framework-free chart, scales, canvas & GPU mark renderers | packages/core |
lumenticks |
createChart, configureWorker, ./worker |
Alias of @lumen-ticks/core under a short, unscoped name |
packages/lumenticks |
@lumen-ticks/engine |
EngineClient, configureWorker, createWorkerPool, defineIndicator, ./worker |
Columnar chunk store, LOD pyramids, indicator engine, worker host | packages/engine |
@lumen-ticks/react |
LumenChart, configureWorker, createWorkerPool, ./worker |
React 19 component with ref exposing ChartApi |
packages/react |
@lumen-ticks/vue |
LumenChart, configureWorker, createWorkerPool, ./worker |
Vue 3 component exposing chart on template ref |
packages/vue |
@lumen-ticks/svelte |
lumenChart, configureWorker, createWorkerPool, ./worker |
Svelte 5 action (use:lumenChart) with onReady |
packages/svelte |
@lumen-ticks/solid |
LumenChart, configureWorker, createWorkerPool, ./worker |
Client-side Solid component with onReady |
packages/solid |
Core entry points
Section titled “Core entry points”| Symbol | Signature / role | Source |
|---|---|---|
createChart(container, options?) |
Creates a ChartApi mounted inside container |
chart.ts |
ChartApi |
Series, mark series, indicators, timeScale, priceScale, drawings, primitives, events, state, whenIdle() |
api.ts |
SeriesApi<T> |
setData, update, prepend, removeBars, addIndicator, setRenderer, priceToCoordinate |
series.ts |
HeatmapSeriesApi / ScatterSeriesApi |
setData, update, append, prepend, correct, removeMarks, valueAt / pointAt, renderer(), drawn() |
marks/series.ts |
TimeScaleApi |
fitContent, scrollToRealTime, getVisibleRange, setVisibleRange, coordinate conversions, sessions, subscriptions |
api.ts |
PriceScaleApi |
applyOptions, width, getVisibleRange, setVisibleRange, priceToCoordinate, coordinateToPrice |
price-axes.ts |
IndicatorApi / IndicatorOutputApi |
Parameter updates, chaining via output().addIndicator(...), lastValue(), setRenderer() |
indicators.ts |
DrawingsApi / DrawingApi |
add, startTool, cancelTool, select, toJSON, subscribe |
drawings/types.ts |
PanePrimitive / SeriesRenderer |
Custom canvas drawing layers and series renderers | primitives.ts |
configureWorker(config) / getWorkerConfig() |
Sets or reads default worker source (URL, ?worker class, factory, pool or false), maxWorkers and timeout |
pool.ts |
createWorkerPool(options?) |
Creates an explicit bounded WorkerPool with warmup() and destroy() |
pool.ts |
setMaxWorkers(n) / getMaxWorkers() |
Limits shared engine workers across charts on one page | pool.ts |
setCanvasBudget(px) / getCanvasBudget() |
Caps total backing-store canvas pixels (default 48M) | canvas-budget.ts |
defineIndicator(def) |
Typed helper for custom engine indicator plugins | definition.ts |
Framework bindings
Section titled “Framework bindings”Each framework binding creates a ChartApi on mount, forwards reactive option updates to applyOptions, destroys the chart on unmount, and re-exports ChartApi, ChartOptions, DeepPartial, configureWorker, createWorkerPool, getWorkerConfig, setMaxWorkers, getMaxWorkers, and ./worker. Data always goes through ChartApi, never through props. See Framework bindings for complete usage patterns.
| Package | Export & props / params | Accessing ChartApi |
Notes |
|---|---|---|---|
@lumen-ticks/react |
LumenChart, LumenChartProps (options?, className?, style?) |
ref exposes ChartApi | null (ref={setChart} for effects) |
Memoize options with useMemo; works under StrictMode |
@lumen-ticks/vue |
LumenChart (options? prop; fallthrough class / style) |
Template ref exposes { chart: ChartApi | null } |
Deep-watches options and forwards changes to applyOptions |
@lumen-ticks/svelte |
lumenChart action, LumenChartParams (options?, onReady?) |
onReady(chart) callback invoked once on creation |
Reactive options updates flow through action update() |
@lumen-ticks/solid |
LumenChart, LumenChartProps (options?, class?, onReady?) |
onReady(chart) callback invoked once on mount |
Client-side only; style via class (not style) |