@vielzeug/codex 26.11.23 → 26.11.25

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.
Files changed (97) hide show
  1. package/README.md +5 -4
  2. package/data/snapshot.json +1 -0
  3. package/dist/catalog.d.ts +35 -39
  4. package/dist/catalog.js +112 -139
  5. package/dist/catalog.js.map +1 -1
  6. package/dist/cli.js +25 -16
  7. package/dist/cli.js.map +1 -1
  8. package/dist/http.js +1 -1
  9. package/dist/http.js.map +1 -1
  10. package/dist/index.d.ts +5 -7
  11. package/dist/index.js +4 -6
  12. package/dist/index.js.map +1 -1
  13. package/dist/server.d.ts +9 -7
  14. package/dist/server.js +14 -6
  15. package/dist/server.js.map +1 -1
  16. package/dist/snapshot.d.ts +8 -22
  17. package/dist/snapshot.js +41 -176
  18. package/dist/snapshot.js.map +1 -1
  19. package/dist/tools/index.d.ts +1 -1
  20. package/dist/tools/index.js.map +1 -1
  21. package/dist/tools/packages.js +49 -82
  22. package/dist/tools/packages.js.map +1 -1
  23. package/dist/tools/refine.d.ts +1 -2
  24. package/dist/tools/refine.js +90 -82
  25. package/dist/tools/refine.js.map +1 -1
  26. package/dist/tools/schema.d.ts +2 -1
  27. package/dist/tools/schema.js +9 -5
  28. package/dist/tools/schema.js.map +1 -1
  29. package/dist/tools/shared.d.ts +2 -2
  30. package/dist/types.d.ts +77 -64
  31. package/dist/types.js +6 -2
  32. package/dist/types.js.map +1 -1
  33. package/package.json +2 -2
  34. package/skills/vielzeug/SKILL.md +18 -20
  35. package/data/catalog.json +0 -2536
  36. package/data/llms-full.txt +0 -40710
  37. package/data/llms.txt +0 -60
  38. package/data/manifest.json +0 -4
  39. package/data/packages/archive.json +0 -87
  40. package/data/packages/arsenal.json +0 -270
  41. package/data/packages/assay.json +0 -52
  42. package/data/packages/atlas.json +0 -70
  43. package/data/packages/bard.json +0 -38
  44. package/data/packages/beacon.json +0 -51
  45. package/data/packages/clockwork.json +0 -69
  46. package/data/packages/codex.json +0 -37
  47. package/data/packages/coins.json +0 -99
  48. package/data/packages/conduit.json +0 -67
  49. package/data/packages/courier.json +0 -66
  50. package/data/packages/dnd.json +0 -60
  51. package/data/packages/familiar.json +0 -38
  52. package/data/packages/flux.json +0 -97
  53. package/data/packages/focus.json +0 -51
  54. package/data/packages/forge.json +0 -65
  55. package/data/packages/gesture.json +0 -65
  56. package/data/packages/herald.json +0 -80
  57. package/data/packages/illusionist.json +0 -132
  58. package/data/packages/ink.json +0 -32
  59. package/data/packages/keymap.json +0 -55
  60. package/data/packages/ledger.json +0 -60
  61. package/data/packages/lingua.json +0 -68
  62. package/data/packages/mesh.json +0 -52
  63. package/data/packages/necromancer.json +0 -55
  64. package/data/packages/orbit.json +0 -100
  65. package/data/packages/ore.json +0 -78
  66. package/data/packages/palette.json +0 -42
  67. package/data/packages/patchwork.json +0 -55
  68. package/data/packages/postmaster.json +0 -49
  69. package/data/packages/prism.json +0 -99
  70. package/data/packages/pulse.json +0 -71
  71. package/data/packages/refine.json +0 -36
  72. package/data/packages/ripple.json +0 -84
  73. package/data/packages/rune.json +0 -78
  74. package/data/packages/sandbox.json +0 -26
  75. package/data/packages/scout.json +0 -66
  76. package/data/packages/scribe.json +0 -57
  77. package/data/packages/scroll.json +0 -110
  78. package/data/packages/sentinel.json +0 -46
  79. package/data/packages/sigil.json +0 -52
  80. package/data/packages/sourcerer.json +0 -86
  81. package/data/packages/spell.json +0 -126
  82. package/data/packages/stage.json +0 -25
  83. package/data/packages/tabula.json +0 -39
  84. package/data/packages/tandem.json +0 -31
  85. package/data/packages/tavern.json +0 -34
  86. package/data/packages/tempo.json +0 -68
  87. package/data/packages/vault.json +0 -81
  88. package/data/packages/ward.json +0 -77
  89. package/data/packages/wayfinder.json +0 -126
  90. package/data/packages/wire.json +0 -36
  91. package/data/refine.json +0 -17273
  92. package/dist/consumer.d.ts +0 -17
  93. package/dist/consumer.js +0 -114
  94. package/dist/consumer.js.map +0 -1
  95. package/dist/port.d.ts +0 -2
  96. package/dist/port.js +0 -12
  97. package/dist/port.js.map +0 -1
@@ -1,49 +0,0 @@
1
- {
2
- "apiSource": "export { defineJob } from './definitions.ts';\nexport { PostmasterDisposedError, PostmasterError, PostmasterJobError } from './errors.ts';\nexport { createPostmaster } from './postmaster.ts';\nexport type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';\n",
3
- "docs": {
4
- "index": "---\ntitle: 'Postmaster: Durable job outbox'\ndescription: Typed durable job outbox with leased processing, retries, and dead-letter recovery for browser applications.\npackage: postmaster\ncategory: Async\nkeywords: [durable, outbox, jobs, retry, dead-letter, idempotency, indexeddb, lease]\nrelated: [courier, vault, sentinel, familiar, ripple]\nexports:\n [\n createPostmaster,\n defineJob,\n createIndexedDbPostmasterStore,\n createMemoryPostmasterStore,\n PostmasterError,\n PostmasterDisposedError,\n PostmasterJobError,\n ]\nenvironments: [browser, node]\n---\n\n<!-- markdownlint-disable MD025 MD033 MD060 -->\n\n<PackageHero package=\"postmaster\" />\n\n## Why Postmaster?\n\nApplication jobs that touch a remote service: posting a form, syncing state, sending analytics: must survive page reloads, resume later, retry according to an explicit policy, and retain terminal failures for recovery. Postmaster coordinates that delivery with typed job definitions, leased processing, and a dead-letter queue, all backed by IndexedDB.\n\n```ts\n// Before\nasync function createTodo(payload: { id: string; title: string }) {\n // Lost on reload. No retry. No recovery. Silent failure.\n await fetch('/api/todos', { method: 'POST', body: JSON.stringify(payload) });\n}\n\n// After\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\nimport { s } from '@vielzeug/spell';\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: s.object({ id: s.string(), title: s.string() }),\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n }),\n};\n\nconst store = createIndexedDbPostmasterStore({ name: 'my-app-outbox' });\nconst postmaster = createPostmaster({ jobs, store });\n\nawait postmaster.enqueue('createTodo', { id: crypto.randomUUID(), title: 'Buy milk' });\npostmaster.start();\n```\n\n| Feature | Postmaster | Ad hoc outbox | Familiar |\n| --------------------------- | ------------------------------------------------ | -------------------------------------------- | ---------------------------------------------- |\n| Bundle size | <PackageInfo package=\"postmaster\" type=\"size\" /> | Application-defined | <PackageInfo package=\"familiar\" type=\"size\" /> |\n| Zero dependencies | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"check\" size=\"16\"></ore-icon> |\n| Survives page reload | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> |\n| Leased cross-tab processing | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> |\n| Dead-letter recovery | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> |\n| Typed job payloads | <ore-icon name=\"check\" size=\"16\"></ore-icon> | <ore-icon name=\"x\" size=\"16\"></ore-icon> | <ore-icon name=\"check\" size=\"16\"></ore-icon> |\n\n<div class=\"decision-callout\">\n\n**Use Postmaster when** application jobs must survive reloads, retry explicitly, and remain recoverable after terminal failure.\n\n**Consider Familiar when** jobs are CPU-bound, in-memory only, and never need to survive a page reload.\n\n</div>\n\n## Installation\n\n::: code-group\n\n```sh [pnpm]\npnpm add @vielzeug/postmaster\n```\n\n```sh [npm]\nnpm install @vielzeug/postmaster\n```\n\n```sh [yarn]\nyarn add @vielzeug/postmaster\n```\n\n:::\n\nFor browser persistence, also install `@vielzeug/vault` (a workspace peer of the IndexedDB adapter):\n\n::: code-group\n\n```sh [pnpm]\npnpm add @vielzeug/postmaster @vielzeug/vault\n```\n\n```sh [npm]\nnpm install @vielzeug/postmaster @vielzeug/vault\n```\n\n```sh [yarn]\nyarn add @vielzeug/postmaster @vielzeug/vault\n```\n\n:::\n\n## Quick Start\n\nDefine typed jobs, create a durable store, enqueue work, and start the processor. Dispose both the processor and the store when the page lifetime ends.\n\n```ts\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n retry: { maxAttempts: 5, shouldRetry: () => true },\n }),\n};\n\nconst store = createIndexedDbPostmasterStore({ name: 'my-app-outbox' });\nconst postmaster = createPostmaster({ jobs, store });\n\nawait postmaster.enqueue('createTodo', { id: crypto.randomUUID(), title: 'Buy milk' });\npostmaster.start();\n\n// On page unload:\nawait postmaster.dispose();\nawait store.dispose();\n```\n\n<div class=\"features-grid\">\n\n## Features\n\n- `defineJob()`: Types one job definition; the payload type comes from the validator (or an explicit `defineJob<T>`) and flows into `execute`, `key`, and `enqueue`.\n- `createPostmaster()`: Processor with leased claims, heartbeat renewal, and crash recovery.\n- `enqueue()`: Persist a job and wake the processor, with optional delayed eligibility via `availableAt`.\n- `flush()`: Process every available job until the queue is empty.\n- `retry()` / `remove()`: Recover or discard dead-letter jobs.\n- `tap()`: Typed runtime events for enqueued, started, completed, retry-scheduled, dead-lettered, removed, lease-lost, and processor-error.\n- `createIndexedDbPostmasterStore()`: Durable browser store backed by Vault IndexedDB.\n- `createMemoryPostmasterStore()`: Deterministic in-memory store for tests.\n\n</div>\n\n<div class=\"doc-links\">\n\n## Documentation\n\n- [**Usage Guide**](./usage.md)\n- [**API Reference**](./api.md)\n- [**Examples**](./examples.md)\n- [**3.0 Migration Guide**](./migration.md)\n\n</div>\n\n<div class=\"see-also\">\n\n## See Also\n\n- [@vielzeug/courier](../courier/): Perform the HTTP requests Postmaster jobs coordinate.\n- [@vielzeug/sourcerer](../sourcerer/): Reload paginated collection state after durable jobs complete.\n- [@vielzeug/vault](../vault/): IndexedDB storage primitive backing the durable store.\n- [@vielzeug/sentinel](../sentinel/): Flush the outbox when the network returns.\n- [@vielzeug/familiar](../familiar/): In-memory Web Worker pool for CPU-bound tasks.\n\n</div>\n\n<!-- markdownlint-enable MD025 MD033 MD060 -->\n",
5
- "api": "---\ntitle: 'Postmaster: API Reference'\ndescription: Job definitions, processor, store contracts, events, errors, and entry points for Postmaster.\n---\n\n[[toc]]\n\n## API Overview\n\n| Symbol | Purpose | Execution mode | Common gotcha |\n| ---------------------------------- | -------------------------------------- | -------------- | ---------------------------------------------------------------------- |\n| `defineJob()` | Types one job definition | Sync | Configuration is validated by `createPostmaster()` |\n| `createPostmaster()` | Processor with leased claims and retry | Sync | Store is borrowed, not disposed with the processor |\n| `createIndexedDbPostmasterStore()` | Durable browser store | Sync | Skips corrupt records and reports each issue through `onCorruptRecord` |\n| `createMemoryPostmasterStore()` | Deterministic in-memory store | Sync | Use for tests only |\n| `PostmasterError` | Base class for package errors | Sync | Catch a subtype when recovery is specific |\n\n## Package Entry Point\n\n| Import | Purpose |\n| -------------------------------- | ------------------------------------------------------------------- |\n| `@vielzeug/postmaster` | Job definitions, processor, events, errors |\n| `@vielzeug/postmaster/store` | Store-author interfaces (`StoredJob`, `StoreTx`, `PostmasterStore`) |\n| `@vielzeug/postmaster/indexeddb` | Durable browser store backed by Vault IndexedDB |\n| `@vielzeug/postmaster/testing` | Deterministic in-memory store and test helpers |\n\n## Factories\n\n### `defineJob()`\n\n```ts\nfunction defineJob<T>(spec: JobDefinition<T>): JobDefinition<T>;\n```\n\nTypes a single job definition. The payload type comes from `validate` when TypeScript can read it without context: a named validator, a `{ parse(value) }` validator object such as a Spell schema, or an inline arrow with an annotated `unknown` parameter (an annotated `execute` payload works the same way). Otherwise pass the type argument (`defineJob<Todo>({ ... })`) to stay independent of property order; with neither, payloads stay `unknown`. `createPostmaster()` validates every registered definition (versions, `execute`/`key`, retry `maxAttempts`, migration ranges) when it is constructed.\n\n| Parameter | Type | Description |\n| --------- | ------------------ | --------------------------------- |\n| `spec` | `JobDefinition<T>` | Definition with contextual typing |\n\n**Returns:** the same definition, typed for payload inference.\n\n**Example**\n\n```ts\nimport { defineJob } from '@vielzeug/postmaster';\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n }),\n};\n```\n\n---\n\n### `createPostmaster()`\n\n```ts\nfunction createPostmaster<J extends JobDefinitions>(options: CreatePostmasterOptions<J>): Postmaster<J>;\n```\n\nReturns a Postmaster processor that claims, executes, retries, and dead-letters jobs from the borrowed store.\n\n| Parameter | Type | Description |\n| ----------------------- | ----------------- | -------------------------------------------------- |\n| `options.jobs` | `J` | Map of job name to `defineJob()` definition |\n| `options.store` | `PostmasterStore` | Borrowed store; not disposed with the processor |\n| `options.leaseDuration` | `number` | Lease duration in ms (default 30000, minimum 1000) |\n| `options.clock` | `() => number` | Deterministic clock for tests (default `Date.now`) |\n| `options.signal` | `AbortSignal` | External signal that disposes the processor |\n\n**Returns:** `Postmaster<J>`.\n\n**Example**\n\n```ts\nimport { createPostmaster } from '@vielzeug/postmaster';\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\n\nconst store = createIndexedDbPostmasterStore({ name: 'outbox' });\nconst postmaster = createPostmaster({ jobs, store });\n\npostmaster.start();\nawait postmaster.dispose();\nawait store.dispose();\n```\n\n---\n\n### `createIndexedDbPostmasterStore()`\n\n```ts\nfunction createIndexedDbPostmasterStore(options: IndexedDbPostmasterStoreOptions): PostmasterStore;\n```\n\nReturns a durable Postmaster store backed by Vault IndexedDB. Uses one internal `jobs` table keyed by id; all operations run inside Vault transactions. Persisted records are validated before use; invalid records are skipped so they cannot block valid work.\n\n| Parameter | Type | Description |\n| ------------------------- | ------------------------------------ | -------------------------------------------------------------------------------------------------- |\n| `options.name` | `string` | IndexedDB database name |\n| `options.onCorruptRecord` | `(record: CorruptStoredJob) => void` | Optional diagnostic called once for each distinct invalid-record issue; handler errors are ignored |\n\n**Returns:** `PostmasterStore`.\n\n**Example**\n\n```ts\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\n\nconst store = createIndexedDbPostmasterStore({\n name: 'my-app-outbox',\n onCorruptRecord: ({ id, reason }) => console.error('corrupt outbox record', id, reason),\n});\nawait store.dispose();\n```\n\n---\n\n### `createMemoryPostmasterStore()`\n\n```ts\nfunction createMemoryPostmasterStore(entries?: readonly StoredJob[]): PostmasterStore;\n```\n\nReturns a deterministic in-memory store for tests. Serializes all operations through a promise chain.\n\n| Parameter | Type | Description |\n| --------- | ---------------------- | ------------------------------- |\n| `entries` | `readonly StoredJob[]` | Initial records (default empty) |\n\n**Returns:** `PostmasterStore`.\n\n**Example**\n\n```ts\nimport { createMemoryPostmasterStore } from '@vielzeug/postmaster/testing';\n\nconst store = createMemoryPostmasterStore();\nawait store.dispose();\n```\n\n## Postmaster Methods\n\n### `enqueue()`\n\n```ts\nenqueue<K extends keyof J & string>(\n name: K,\n payload: InferJobPayload<J[K]>,\n options?: EnqueueOptions,\n): Promise<PostmasterEntry>;\n```\n\nValidates the payload (if `validate` is defined), derives the key, persists the job, and wakes the processor. Throws `PostmasterError` for an empty key, non-JSON-serializable payload, or invalid `availableAt`.\n\n| Parameter | Type | Description |\n| --------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n| `name` | `K` | Registered job name |\n| `payload` | `InferJobPayload<J[K]>` | Job payload (validated if `validate` is defined) |\n| `options.availableAt` | `number` | Earliest epoch timestamp (ms) the job may be claimed. Defaults to the Postmaster clock. Must be a finite non-negative safe integer. |\n\n**Delayed eligibility.** The job persists immediately but cannot be claimed before `availableAt`. Postmaster does not guarantee execution at that time: only that the job will not be claimed earlier. A live processor (`start()` or `flush()`) is required for execution. Past timestamps remain immediately eligible.\n\n**Example**\n\n```ts\nawait postmaster.enqueue('sendDigest', { userId }, { availableAt: Date.now() + 60_000 });\n```\n\n---\n\n### `start()`\n\n```ts\nstart(): void;\n```\n\nBegins background processing. Idempotent: returns immediately and kicks off the pump in the background. Use `flush()` when you need to await completion of all available work.\n\n---\n\n### `flush()`\n\n```ts\nflush(options?: { signal?: AbortSignal }): Promise<FlushResult>;\n```\n\nProcesses every available job until the queue is empty or the signal aborts. Concurrent `flush()` calls join the same drain. Returns counts of processed, completed, dead-lettered, and retry-scheduled jobs.\n\n---\n\n### `list()`\n\n```ts\nlist(filter?: EntryFilter): Promise<PostmasterEntry[]>;\n```\n\nReturns entries ordered by `createdAt`. Filter by `status` optionally.\n\n---\n\n### `stats()`\n\n```ts\nstats(): Promise<PostmasterStats>;\n```\n\nReturns counts of queued, running, and dead-letter jobs.\n\n---\n\n### `retry()`\n\n```ts\nrequeue(id: string): Promise<RequeueResult>;\n```\n\nMoves a dead-letter job back to queued. Returns a discriminated result: `requeued`, `not-found`, `not-dead-letter`, or `running`.\n\n---\n\n### `remove()`\n\n```ts\nremove(id: string): Promise<RemoveResult>;\n```\n\nDeletes a queued or dead-letter job. Returns a discriminated result: `removed`, `not-found`, or `running`.\n\n---\n\n### `tap()`\n\n```ts\ntap(handler: (event: PostmasterEvent) => void, options?: { signal?: AbortSignal }): () => void;\n```\n\nObserve runtime events (enqueued, started, completed, retry-scheduled, dead-lettered, removed, lease-lost, processor-error, dispose). Handler errors are swallowed: observability never affects processing. Returns an unsubscribe function. Pass `{ signal }` to auto-detach on abort.\n\n---\n\n### `dispose()`\n\n```ts\ndispose(): Promise<void>;\n[Symbol.asyncDispose](): Promise<void>;\n```\n\nAborts owned work, releases all active leases, and tears down subscriptions. Idempotent. Does not dispose the borrowed store.\n\n## Types\n\n### `EnqueueOptions`\n\n```ts\ninterface EnqueueOptions {\n readonly availableAt?: number;\n}\n```\n\nOptions for `enqueue()`. `availableAt` is the earliest epoch timestamp (ms) at which the job may be claimed. Defaults to the Postmaster clock at enqueue time. Past timestamps remain immediately eligible. Postmaster does not guarantee execution at the requested time: only that the job will not be claimed before it. A live processor is required for execution.\n\n---\n\n### `JobDefinition<T>`\n\n```ts\ninterface JobDefinition<T> {\n readonly version: number;\n readonly validate?: Validate<T>;\n readonly key: (payload: T) => string;\n readonly execute: (payload: T, context: JobContext) => Promise<void>;\n readonly retry?: RetryPolicy;\n readonly migrate?: VersionMigrations;\n}\n```\n\n`validate` is optional. Accepts a function `(value: unknown) => T` or any structural parser with `parse(value: unknown): T` (Spell schemas, Zod schemas, etc). Called once at enqueue. If omitted, payload trusted as-is.\n\n`migrate` declares contiguous version-step migrations keyed by the source version. Key `n` transforms a payload from version `n` to `n + 1`. The lowest key is the earliest supported stored version, and the highest key must lead into the current version. Omit `migrate` when only the current version is supported. Unsupported versions, thrown steps, and `undefined` migration output move the record to dead-letter.\n\n---\n\n### `Validate<T>`\n\n```ts\ntype Validate<T> = ((value: unknown) => T) | { parse(value: unknown): T };\n```\n\nAccepts either a plain validation function or any object with a `parse(value: unknown): T` method. Spell's `Schema` and `s.object(...)` satisfy this contract directly: no adapter needed.\n\n---\n\n### `VersionMigrations`\n\n```ts\ntype VersionMigrations = { readonly [fromVersion: number]: (payload: unknown) => unknown };\n```\n\nContiguous version-step migrations keyed by the source version. Key `n` transforms a payload from version `n` to `n + 1`. The lowest key declares the earliest supported stored version. The range must have no gaps and must end at the step entering the current job version.\n\n---\n\n### `IndexedDbPostmasterStoreOptions`\n\nAvailable from `@vielzeug/postmaster/indexeddb`.\n\n```ts\ntype IndexedDbPostmasterStoreOptions = {\n readonly name: string;\n readonly onCorruptRecord?: (record: CorruptStoredJob) => void;\n};\n```\n\n---\n\n### `CorruptStoredJob`\n\nAvailable from `@vielzeug/postmaster/indexeddb`.\n\n```ts\ninterface CorruptStoredJob {\n readonly id?: string;\n readonly reason: string;\n}\n```\n\n`id` is omitted when the malformed value contains no usable record identifier.\n\n---\n\n### `JobContext`\n\n```ts\ninterface JobContext {\n readonly attempt: number;\n readonly entryId: string;\n readonly key: string;\n readonly signal: AbortSignal;\n}\n```\n\n---\n\n### `RetryPolicy`\n\n```ts\ninterface RetryPolicy {\n readonly maxAttempts: number;\n readonly shouldRetry?: (error: unknown, attempt: number) => boolean;\n readonly delay?: (attempt: number) => number;\n}\n```\n\n`maxAttempts` is total executions including the first. When `shouldRetry` is omitted, any error retries until `maxAttempts` is reached. Default delay uses an exponential backoff cap (`min(1000 × 2ⁿ, 30_000)` ms).\n\n---\n\n### `StoredJob`\n\nAvailable from `@vielzeug/postmaster/store`.\n\n```ts\ninterface StoredJob {\n readonly id: string;\n readonly name: string;\n readonly version: number;\n readonly payload: JsonValue;\n readonly key: string;\n readonly status: 'queued' | 'running' | 'dead-letter';\n readonly attempts: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n readonly availableAt: number;\n readonly ownerId?: string;\n readonly leaseExpiresAt?: number;\n readonly failure?: StoredFailure;\n}\n```\n\n---\n\n### `StoredFailure`\n\n```ts\ninterface StoredFailure {\n readonly name: string;\n readonly message: string;\n readonly occurredAt: number;\n}\n```\n\nOnly a bounded error name/message/timestamp is persisted. Never persist arbitrary error objects, response bodies, headers, or stacks.\n\n---\n\n### `PostmasterEntry`\n\n```ts\ntype PostmasterEntry = Pick<\n StoredJob,\n 'attempts' | 'availableAt' | 'createdAt' | 'failure' | 'id' | 'key' | 'name' | 'status' | 'updatedAt' | 'version'\n>;\n```\n\nThe public entry view excludes `payload`, `ownerId`, and `leaseExpiresAt`.\n\n---\n\n### `PostmasterStore`\n\nAvailable from `@vielzeug/postmaster/store`.\n\n```ts\ninterface PostmasterStore {\n transact<T>(fn: (tx: StoreTx) => Promise<T>): Promise<T>;\n list(filter?: EntryFilter): Promise<StoredJob[]>;\n subscribe(listener: () => void): () => void;\n dispose(): Promise<void>;\n readonly disposed: boolean;\n readonly disposalSignal: AbortSignal;\n [Symbol.asyncDispose](): Promise<void>;\n}\n\ninterface StoreTx {\n get(id: string): Promise<StoredJob | undefined>;\n put(entry: StoredJob): Promise<void>;\n delete(id: string): Promise<void>;\n findClaimable(now: number): Promise<StoredJob | undefined>;\n findNextWake(now: number): Promise<number | undefined>;\n countByStatus(): Promise<PostmasterStats>;\n}\n```\n\nThe store exposes transactional primitives. The processor owns all ownership and transition logic: stores implement storage, not the job state machine. `transact` wraps all operations in an atomic transaction. `findClaimable` returns the earliest eligible job (queued with `availableAt <= now`, or running with expired lease). `findNextWake` returns the earliest future wake time across queued and running jobs.\n\n---\n\n### `PostmasterEvent`\n\n```ts\ntype PostmasterEvent =\n | {\n readonly type: 'enqueued' | 'started' | 'completed' | 'retry-scheduled' | 'dead-lettered';\n readonly entry: PostmasterEntry;\n }\n | { readonly type: 'removed' | 'lease-lost'; readonly id: string }\n | { readonly type: 'processor-error'; readonly error: Error }\n | { readonly type: 'dispose' };\n```\n\n---\n\n### `FlushResult`\n\n```ts\ninterface FlushResult {\n readonly processed: number;\n readonly completed: number;\n readonly deadLettered: number;\n readonly retryScheduled: number;\n}\n```\n\n---\n\n### `RequeueResult` / `RemoveResult`\n\n```ts\ntype RequeueResult =\n | { readonly status: 'not-found' | 'not-dead-letter' | 'running' }\n | { readonly status: 'requeued'; readonly entry: PostmasterEntry };\n\ntype RemoveResult = { readonly status: 'not-found' | 'running' } | { readonly status: 'removed'; readonly id: string };\n```\n\n## Errors\n\n### `PostmasterError`\n\n```ts\nclass PostmasterError extends Error {\n constructor(message: string, options?: ErrorOptions);\n}\n```\n\nBase class for package-defined errors. Use `instanceof PostmasterError` to narrow to the hierarchy. Covers configuration errors, serialization errors, and store failures.\n\n---\n\n### `PostmasterDisposedError`\n\n```ts\nclass PostmasterDisposedError extends PostmasterError {}\n```\n\nThrown when a public method is called after disposal.\n\n---\n\n### `PostmasterJobError`\n\n```ts\nclass PostmasterJobError extends PostmasterError {}\n```\n\nThrown when a job definition is missing, a version is incompatible, or a migration fails. These errors move the job to dead-letter rather than rejecting the public call.\n",
6
- "usage": "---\ntitle: 'Postmaster: Usage Guide'\ndescription: Define durable jobs, process them with leases, retry failures, and recover dead-letter work.\n---\n\n[[toc]]\n\n## Basic Usage\n\nDefine typed jobs, create a durable store, enqueue work, and start the processor. Dispose both handles when the owner ends.\n\n```ts\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n }),\n};\n\nconst store = createIndexedDbPostmasterStore({ name: 'my-app-outbox' });\nconst postmaster = createPostmaster({ jobs, store });\n\nawait postmaster.enqueue('createTodo', { id: crypto.randomUUID(), title: 'Buy milk' });\npostmaster.start();\n\n// On page unload:\nawait postmaster.dispose();\nawait store.dispose();\n```\n\nThe store is borrowed by `createPostmaster()` and is not disposed with the processor. Dispose both explicitly.\n\n## At-least-once delivery and idempotency\n\nPostmaster provides **at-least-once delivery**. A crash after the remote write but before local completion can repeat the job. Every job must derive a stable idempotency key, and handlers must send or otherwise enforce that key.\n\n```ts\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n }),\n};\n```\n\nNever assume exactly-once execution. Design handlers so a repeated delivery is safe.\n\n## Postmaster jobs vs Courier requests\n\nCourier performs immediate HTTP transport. Postmaster coordinates durable delivery. Use Courier inside a Postmaster job when the write must survive reloads.\n\n```ts\nimport { createCourier, CourierNetworkError } from '@vielzeug/courier';\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\n\nconst courier = createCourier({ baseUrl: 'https://api.example.com' });\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await courier.request('/todos', {\n method: 'POST',\n body: payload,\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n retry: { maxAttempts: 5, shouldRetry: (error) => error instanceof CourierNetworkError },\n }),\n};\n```\n\nPostmaster does not import Courier. The integration happens in your job definitions.\n\n## Payload and version migration\n\nEach job declares a `version` and an optional `validate` function. When a stored job's version is older than the registered version, Postmaster applies contiguous version-step migrations before validating. `migrate` is keyed by the source version: key `n` transforms version `n` into `n + 1`. The lowest key declares the earliest stored version you support, and the range must lead into the current version without gaps. Omit `migrate` when a job has no supported older records. `validate` accepts a plain function `(value: unknown) => T` or any structural parser with `parse(value: unknown): T`: Spell schemas work directly:\n\n```ts\nimport { s } from '@vielzeug/spell';\n\nconst jobs = {\n createTodo: defineJob({\n version: 2,\n validate: s.object({ id: s.string(), title: s.string(), priority: s.number().optional() }),\n key: (p) => p.id,\n migrate: {\n 1: (payload) => ({ ...(payload as { id: string; title: string }), priority: 0 }),\n },\n execute: async (payload, { key, signal }) => {\n await fetch('/api/todos', {\n method: 'POST',\n body: JSON.stringify(payload),\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n }),\n};\n```\n\nUnknown job names, unsupported versions, failed migrations, `undefined` migration output, and invalid migrated payloads move to dead-letter rather than being executed.\n\n## Corrupt persisted records\n\nThe IndexedDB adapter validates durable records before the processor uses them. It skips malformed records so one corrupt value cannot block valid jobs. Supply `onCorruptRecord` to surface each distinct issue to your diagnostics:\n\n```ts\nconst store = createIndexedDbPostmasterStore({\n name: 'my-app-outbox',\n onCorruptRecord: ({ id, reason }) => reportOutboxCorruption({ id, reason }),\n});\n```\n\nThe callback may omit `id` when the persisted value has no usable identifier. Handler errors are ignored. Repair or remove reported records with your application's storage recovery tooling; Postmaster never deletes corrupt durable data automatically.\n\n## Retry semantics\n\nRetries are opt-in and explicitly classified. No `retry` block means one attempt followed by dead-letter.\n\n```ts\nconst jobs = {\n syncTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string },\n key: (p) => p.id,\n execute: async (payload, { signal }) => {\n await fetch(`/api/todos/${payload.id}/sync`, { signal });\n },\n retry: {\n maxAttempts: 5,\n shouldRetry: (error) => error instanceof TypeError, // network errors only\n },\n }),\n};\n```\n\n- `maxAttempts` means total executions, including the first.\n- `shouldRetry` is required when retries are enabled. Postmaster never guesses whether a write is safe to repeat.\n- Default delay uses an exponential backoff cap (`min(1000 × 2ⁿ, 30_000)` ms). Override with `delay`.\n- Delay must be finite and non-negative.\n- Lifecycle aborts caused by disposal are not classified as job failures.\n\n## Delayed eligibility\n\n`enqueue()` accepts an optional `availableAt` timestamp. The job persists immediately but cannot be claimed before that time. Use this for scheduled writes, cooldowns, or any work that must survive a reload but should not run yet.\n\n```ts\nawait postmaster.enqueue('sendDigest', { userId }, { availableAt: Date.now() + 60_000 });\n```\n\nPostmaster does not guarantee execution at `availableAt`: only that the job will not be claimed earlier. A live processor (`start()` or `flush()`) is required for execution. In a browser, a closed page or suspended service worker will run the job when the processor next becomes active. Past timestamps remain immediately eligible. The same mechanism already backs retry delays, so delayed eligibility reuses the existing claim, wake, and persistence paths.\n\n## Dead-letter recovery\n\nJobs that exhaust retries or hit a terminal failure move to dead-letter. Inspect, retry, or remove them.\n\n```ts\nconst deadLettered = await postmaster.list({ status: 'dead-letter' });\n\nfor (const entry of deadLettered) {\n console.log(entry.id, entry.name, entry.failure);\n}\n\n// Retry a dead-letter job back into the queue.\nawait postmaster.requeue(entry.id);\n\n// Or remove it permanently.\nawait postmaster.remove(entry.id);\n```\n\n`retry()` and `remove()` return discriminated results so callers can distinguish `not-found`, `not-dead-letter`, `running`, and successful outcomes without exceptions.\n\n## Lifecycle and disposal\n\n`start()` begins background processing and returns immediately (synchronous, idempotent). `dispose()` stops claiming new work, aborts owned work, and is idempotent. `flush()` processes every available job and awaits completion.\n\n```ts\npostmaster.start();\n// ...on unload\nawait postmaster.dispose();\nawait store.dispose();\n```\n\nDisposal aborts owned work, releases the active lease, and is idempotent. A controlled disposal abort does not consume the attempt: the job returns to queued.\n\n## Events\n\nTap runtime events for observability. Handler errors are swallowed: observability never affects processing.\n\n```ts\nconst unsubscribe = postmaster.tap((event) => {\n switch (event.type) {\n case 'enqueued':\n console.log('enqueued', event.entry.id);\n break;\n case 'completed':\n console.log('completed', event.entry.id);\n break;\n case 'dead-lettered':\n console.error('dead-lettered', event.entry.id, event.entry.failure);\n break;\n case 'processor-error':\n console.error('processor error', event.error);\n break;\n }\n});\n```\n\nPass an `AbortSignal` to auto-detach:\n\n```ts\nconst controller = new AbortController();\npostmaster.tap(handler, { signal: controller.signal });\ncontroller.abort(); // stops tapping\n```\n\n## Testing\n\nUse the in-memory store for deterministic tests.\n\n```ts\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\nimport { createMemoryPostmasterStore } from '@vielzeug/postmaster/testing';\n\nconst store = createMemoryPostmasterStore();\nconst postmaster = createPostmaster({\n jobs: {\n send: defineJob({\n version: 1,\n validate: (v: unknown) => String(v),\n key: (p) => p,\n execute: async () => {},\n }),\n },\n store,\n});\n\nawait postmaster.enqueue('send', 'hello');\nawait postmaster.flush();\nawait postmaster.dispose();\n```\n\nInject a deterministic clock to control retry scheduling.\n\n```ts\nlet now = 0;\nconst postmaster = createPostmaster({ clock: () => now, jobs, store });\n```\n\n## Framework Integration\n\nCreate the Postmaster after the component mounts, start processing, and dispose on unmount.\n\n::: code-group\n\n```tsx [React]\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\nimport { createPostmaster, defineJob, type Postmaster } from '@vielzeug/postmaster';\nimport { useEffect } from 'react';\n\nconst jobs = {\n sync: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string },\n key: (p) => p.id,\n execute: async (payload, { signal }) => {\n await fetch(`/api/sync/${payload.id}`, { signal });\n },\n }),\n};\n\nexport function OutboxProvider() {\n useEffect(() => {\n const store = createIndexedDbPostmasterStore({ name: 'outbox' });\n const postmaster = createPostmaster({ jobs, store });\n postmaster.start();\n\n return () => {\n void postmaster.dispose();\n void store.dispose();\n };\n }, []);\n\n return null;\n}\n```\n\n```vue [Vue 3]\n<script setup lang=\"ts\">\nimport { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\nimport { onMounted, onUnmounted } from 'vue';\n\nconst jobs = {\n sync: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string },\n key: (p) => p.id,\n execute: async (payload, { signal }) => {\n await fetch(`/api/sync/${payload.id}`, { signal });\n },\n }),\n};\n\nlet postmaster: ReturnType<typeof createPostmaster> | undefined;\nlet store: ReturnType<typeof createIndexedDbPostmasterStore> | undefined;\n\nonMounted(() => {\n store = createIndexedDbPostmasterStore({ name: 'outbox' });\n postmaster = createPostmaster({ jobs, store });\n postmaster.start();\n});\n\nonUnmounted(() => {\n void postmaster?.dispose();\n void store?.dispose();\n});\n</script>\n\n<template>\n <slot />\n</template>\n```\n\n```svelte [Svelte]\n<script lang=\"ts\">\n import { createIndexedDbPostmasterStore } from '@vielzeug/postmaster/indexeddb';\n import { createPostmaster, defineJob } from '@vielzeug/postmaster';\n import { onMount } from 'svelte';\n\n const jobs = {\n sync: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string },\n key: (p) => p.id,\n execute: async (payload, { signal }) => {\n await fetch(`/api/sync/${payload.id}`, { signal });\n },\n }),\n };\n\n onMount(() => {\n const store = createIndexedDbPostmasterStore({ name: 'outbox' });\n const postmaster = createPostmaster({ jobs, store });\n postmaster.start();\n\n return () => {\n void postmaster.dispose();\n void store.dispose();\n };\n });\n</script>\n\n<slot />\n```\n\n:::\n\n## Working with Other Vielzeug Libraries\n\n### Postmaster + Courier\n\nUse Courier inside job handlers for HTTP transport. Postmaster coordinates delivery; Courier performs the request.\n\n```ts\nimport { createCourier, CourierNetworkError } from '@vielzeug/courier';\nimport { createPostmaster, defineJob } from '@vielzeug/postmaster';\n\nconst courier = createCourier({ baseUrl: 'https://api.example.com' });\n\nconst jobs = {\n createTodo: defineJob({\n version: 1,\n validate: (v: unknown) => v as { id: string; title: string },\n key: (p) => p.id,\n execute: async (payload, { key, signal }) => {\n await courier.request('/todos', {\n method: 'POST',\n body: payload,\n headers: { 'Idempotency-Key': key },\n signal,\n });\n },\n retry: { maxAttempts: 5, shouldRetry: (e) => e instanceof CourierNetworkError },\n }),\n};\n```\n\n### Postmaster + Sentinel\n\nFlush the outbox when the network returns. Sentinel reports online state; Postmaster does the rest.\n\n```ts\nimport { createNetwork } from '@vielzeug/sentinel';\nimport { createPostmaster } from '@vielzeug/postmaster';\n\nconst network = createNetwork();\nconst postmaster = createPostmaster({ jobs, store });\n\nconst unsubscribe = network.subscribe(() => {\n if (network.getSnapshot().online) void postmaster.flush();\n});\n\n// On teardown:\nunsubscribe();\nnetwork.dispose();\nawait postmaster.dispose();\n```\n\n### Postmaster + Vault\n\nThe IndexedDB adapter is built on Vault. Use Vault directly for unrelated storage; the Postmaster store owns its own database name.\n\n## Best Practices\n\n- **Derive** a stable idempotency key from every job payload and send it with the remote write.\n- **Dispose** both the processor and the store explicitly; the processor does not own the store.\n- **Classify** retryable errors explicitly with `shouldRetry`; never let Postmaster guess.\n- **Migrate** persisted payloads when job versions change; test migrations against stored fixtures.\n- **Inspect** dead-letter jobs and report `onCorruptRecord` diagnostics to your recovery tooling.\n- **Avoid** persisting sensitive data in payloads or failure messages; IndexedDB is per-origin but not encrypted.\n- **Flush** the outbox when Sentinel reports the network returns.\n- **Test** with the in-memory store and a deterministic clock for reproducible retry timing.\n",
7
- "examples": "---\ntitle: 'Postmaster: Examples'\ndescription: Durable outbox recipes for offline mutations, network recovery, delayed eligibility, and dead-letter handling.\n---\n\n## Examples\n\n- [Queue Offline Courier Requests](./examples/queue-offline-courier-mutations.md)\n- [Resume When Network Returns](./examples/resume-when-network-returns.md)\n- [Delayed Eligibility](./examples/delayed-eligibility.md)\n- [Recover Dead-Letter Jobs](./examples/recover-dead-letter-jobs.md)\n- [Service Worker Background Sync](./examples/service-worker-background-sync.md)\n"
8
- },
9
- "examples": [
10
- {
11
- "id": "define-jobs",
12
- "code": "import { createPostmaster, defineJob } from '@vielzeug/postmaster'\nimport { createMemoryPostmasterStore } from '@vielzeug/postmaster/testing'\n\nconst jobs = {\n send: defineJob({\n version: 1,\n validate: (v: unknown) => String(v),\n key: (p) => `send:${p}`,\n execute: async (payload, { key, attempt }) => {\n console.log(`delivering \"${payload}\" (attempt ${attempt}, key ${key})`)\n },\n }),\n}\n\nconst store = createMemoryPostmasterStore()\nconst postmaster = createPostmaster({ jobs, store })\n\nawait postmaster.enqueue('send', 'hello')\nconst result = await postmaster.flush()\nconsole.log('flush result:', result)\nawait postmaster.dispose()",
13
- "name": "defineJob - Basic Outbox"
14
- },
15
- {
16
- "id": "delayed-enqueue",
17
- "code": "import { createPostmaster, defineJob } from '@vielzeug/postmaster'\nimport { createMemoryPostmasterStore } from '@vielzeug/postmaster/testing'\n\nconst jobs = {\n send: defineJob({\n version: 1,\n validate: (v: unknown) => String(v),\n key: (p) => `send:${p}`,\n execute: async (payload, { key, attempt }) => {\n console.log(`delivering \"${payload}\" (attempt ${attempt}, key ${key})`)\n },\n }),\n}\n\nlet now = 0\nconst store = createMemoryPostmasterStore()\nconst postmaster = createPostmaster({ clock: () => now, jobs, store })\n\n// Persist now, but the job is not claimable until availableAt.\nconst entry = await postmaster.enqueue('send', 'hello', { availableAt: 60_000 })\nconsole.log('enqueued with availableAt:', entry.availableAt)\n\n// Nothing eligible yet.\nlet result = await postmaster.flush()\nconsole.log('flush before eligible:', result)\n\n// Advance the clock past availableAt.\nnow = 60_000\nresult = await postmaster.flush()\nconsole.log('flush after eligible:', result)\nawait postmaster.dispose()",
18
- "name": "delayedEnqueue - Delayed Eligibility"
19
- }
20
- ],
21
- "typeSignatures": {
22
- "defineJob": "export { defineJob } from './definitions.ts';",
23
- "PostmasterDisposedError": "export { PostmasterDisposedError, PostmasterError, PostmasterJobError } from './errors.ts';",
24
- "PostmasterError": "export { PostmasterDisposedError, PostmasterError, PostmasterJobError } from './errors.ts';",
25
- "PostmasterJobError": "export { PostmasterDisposedError, PostmasterError, PostmasterJobError } from './errors.ts';",
26
- "createPostmaster": "export { createPostmaster } from './postmaster.ts';",
27
- "CreatePostmasterOptions": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
28
- "EnqueueOptions": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
29
- "EntryFilter": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
30
- "EntryStatus": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
31
- "FlushResult": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
32
- "InferJobPayload": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
33
- "JobContext": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
34
- "JobDefinition": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
35
- "JobDefinitions": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
36
- "JsonPrimitive": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
37
- "JsonValue": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
38
- "Postmaster": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
39
- "PostmasterEntry": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
40
- "PostmasterEvent": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
41
- "PostmasterStats": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
42
- "RemoveResult": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
43
- "RequeueResult": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
44
- "RetryPolicy": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
45
- "StoredFailure": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
46
- "Validate": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';",
47
- "VersionMigrations": "export type {\n CreatePostmasterOptions,\n EnqueueOptions,\n EntryFilter,\n EntryStatus,\n FlushResult,\n InferJobPayload,\n JobContext,\n JobDefinition,\n JobDefinitions,\n JsonPrimitive,\n JsonValue,\n Postmaster,\n PostmasterEntry,\n PostmasterEvent,\n PostmasterStats,\n RemoveResult,\n RequeueResult,\n RetryPolicy,\n StoredFailure,\n Validate,\n VersionMigrations,\n} from './types.ts';"
48
- }
49
- }
@@ -1,99 +0,0 @@
1
- {
2
- "apiSource": "// Public API: all exports for @vielzeug/prism\n\nexport type { EasingFn, EasingName } from './animation/easing';\n// Chart factories\nexport { createAreaChart } from './charts/area';\nexport { createBarChart } from './charts/bar';\nexport { createHeatmapChart } from './charts/heatmap';\nexport { createLineChart } from './charts/line';\nexport { createPieChart } from './charts/pie';\nexport { createRadarChart } from './charts/radar';\nexport { createScatterChart } from './charts/scatter';\nexport { createSparkline } from './charts/sparkline';\n// Error classes\nexport { PrismError, PrismRenderError } from './errors';\n// Scale factories\nexport { bandScale } from './scales/band';\nexport { linearScale } from './scales/linear';\nexport { timeScale } from './scales/time';\nexport type { BandScaleConfig, LinearScaleConfig, TimeScaleConfig } from './scales/types';\n// Theme utilities\nexport { resetTheme, seriesColor, setTheme } from './theme';\nexport type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';\n",
3
- "docs": {
4
- "index": "---\ntitle: 'Prism: Responsive SVG data visualization'\ndescription: 'Responsive SVG charts with explicit updates: line, bar, area, scatter, pie, radar, heatmap, sparkline'\npackage: prism\ncategory: ui\nkeywords:\n [\n chart,\n svg,\n visualization,\n responsive,\n line-chart,\n bar-chart,\n area-chart,\n scatter-chart,\n pie-chart,\n radar-chart,\n heatmap-chart,\n sparkline,\n accessibility,\n typescript,\n ]\nrelated: [refine, orbit]\nexports: [createLineChart, createBarChart, createPieChart, ChartHandle]\nenvironments: [browser]\n---\n\n<!-- markdownlint-disable MD025 MD033 MD060 -->\n\n<PackageHero package=\"prism\" />\n\n## Why Prism?\n\nPrism renders charts as SVG in a host element and keeps application state outside the chart. You can replace chart data explicitly, respond to container resizing, and style the output with CSS custom properties.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\n// Before: replace a hand-drawn SVG each time values change.\nfunction drawLine(values: number[]) {\n const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');\n const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n const low = Math.min(...values);\n const span = Math.max(...values) - low || 1;\n const points = values.map((value, index) => {\n const x = (index / Math.max(1, values.length - 1)) * 640;\n const y = 320 - ((value - low) / span) * 320;\n return `${index === 0 ? 'M' : 'L'}${x},${y}`;\n });\n svg.setAttribute('viewBox', '0 0 640 320');\n path.setAttribute('d', points.join(' '));\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke', 'currentColor');\n svg.append(path);\n host.replaceChildren(svg);\n}\ndrawLine([10, 25, 18]);\ndrawLine([10, 25, 18, 32]);\n\n// After: keep the chart instance and replace its series data.\nconst chart = createLineChart(host, {\n a11y: { ariaLabel: 'Revenue by month' },\n series: [\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 25 },\n { key: 3, value: 18 },\n ],\n name: 'Revenue',\n },\n ],\n});\nchart.update([\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 25 },\n { key: 3, value: 18 },\n { key: 4, value: 32 },\n ],\n name: 'Revenue',\n },\n]);\nchart.dispose();\n```\n\n| Feature | Prism | Hand-written SVG |\n| ------------------ | ---------------------------------------------------------------- | -------------------------------------------- |\n| Bundle size | <PackageInfo package=\"prism\" type=\"size\" /> | No chart package |\n| Zero dependencies | <ore-icon name=\"x\" size=\"16\"></ore-icon> (uses Orbit, Palette) | <ore-icon name=\"check\" size=\"16\"></ore-icon> |\n| Data updates | `ChartHandle.update()` replaces chart data | You implement the update path |\n| Responsive sizing | `ResizeObserver` recalculates the chart layout | You implement the resize behavior |\n| Chart interactions | Built-in pointer and keyboard interactions on supported charts | You implement them |\n| SVG accessibility | Informative charts support an accessible name and keyboard focus | You implement the accessible behavior |\n\n<div class=\"decision-callout\">\n\n**Use Prism when** you need chart factories, responsive SVG output, and an explicit data-update boundary without adopting a charting framework.\n\n**Consider hand-written SVG when** you need a single specialized graphic and prefer to own its scales, resizing, labels, and interactions directly.\n\n</div>\n\n## Installation\n\n::: code-group\n\n```sh [pnpm]\npnpm add @vielzeug/prism\n```\n\n```sh [npm]\nnpm install @vielzeug/prism\n```\n\n```sh [yarn]\nyarn add @vielzeug/prism\n```\n\n:::\n\n## Quick Start\n\nCreate and size a host element before creating the chart. Import `theme.css` once to load Prism's default styles and CSS custom properties.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\nimport '@vielzeug/prism/theme.css';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\nconst chart = createLineChart(host, {\n a11y: { ariaLabel: 'Revenue by month' },\n series: [\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 25 },\n { key: 3, value: 18 },\n ],\n name: 'Revenue',\n },\n ],\n tooltip: true,\n});\n\nchart.update([\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 25 },\n { key: 3, value: 18 },\n { key: 4, value: 32 },\n ],\n name: 'Revenue',\n },\n]);\n\nchart.dispose();\n```\n\n## Features\n\n<div class=\"features-grid\">\n\n- **`createLineChart()` / `createAreaChart()`**: plot continuous numeric or date-keyed series\n- **`createBarChart()`**: compare categories with grouped, stacked, or horizontal bars\n- **`createScatterChart()`**: plot independent numeric `(x, y)` points\n- **`createPieChart()`**: render pie, donut, or semi-circle slices\n- **`createRadarChart()`**: compare series across fixed, labelled axes\n- **`createHeatmapChart()`**: render a row/column matrix of colored cells with a continuous or binned ramp\n- **`createSparkline()`**: render compact line, area, bar, or stacked values without axes\n- **`ChartHandle.update(data)`**: replace chart data without handing state ownership to Prism\n- **`ChartHandle.dispose()` / `Symbol.dispose`**: release the SVG, observer, overlays, and chart-owned animation\n- **`ChartHandle.tap()`**: observe resize and disposal events\n- **`setTheme()` / `resetTheme()`**: set supported palette, typography, axis, grid, and tooltip tokens globally or on one element\n- **CSS custom properties**: style the chart palette, marks, axes, labels, tooltip, legend, and motion\n- **Resize observation**: recalculate SVG layout when the host element changes size\n- **Accessible interaction**: labelled interactive charts expose keyboard navigation and polite value announcements; sparklines are pointer-only without value announcements\n\n</div>\n\n## Documentation\n\n<div class=\"doc-links\">\n\n- [Usage Guide](./usage.md)\n- [API Reference](./api.md)\n- [Examples](./examples.md)\n- [Migration Guide](./migration.md)\n\n</div>\n\n## See Also\n\n<div class=\"see-also\">\n\n- [Refine](/refine/): web components and theme tokens for building controls and layouts around chart hosts\n- [Orbit](/orbit/): floating-element positioning used internally by Prism's built-in tooltip\n\n</div>\n\n<!-- markdownlint-enable MD025 MD033 MD060 -->\n",
5
- "api": "---\ntitle: 'Prism: API Reference'\ndescription: Complete reference for Prism chart factories, scales, themes, types, and errors.\n---\n\n[[toc]]\n\n## API Overview\n\nAll chart factories, scale utilities, theme helpers, and error classes are synchronous. Charts render into an HTML element and return a `ChartHandle`; they do not return a promise.\n\n| Symbol | Purpose | Execution mode | Common gotcha |\n| ---------------------- | ----------------------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------- |\n| `createLineChart()` | Render one or more continuous line series | Sync | `key` values must be numbers or dates |\n| `createAreaChart()` | Render continuous series with filled areas | Sync | Fills use a gradient by default |\n| `createScatterChart()` | Plot independent `(x, y)` points | Sync | `key` is the x-value; the y-domain is fitted to data |\n| `createBarChart()` | Render categorical bars | Sync | Negative values in stacked variants are clamped to zero |\n| `createPieChart()` | Render pie, donut, or semi-circle slices | Sync | `variant` is fixed at creation; `update()` replaces slices |\n| `createRadarChart()` | Compare series across fixed axes | Sync | Requires at least three axes to draw |\n| `createHeatmapChart()` | Render a row/column matrix of colored cells | Sync | Cells whose `row`/`column` match no label are skipped; unknown labels warn in development |\n| `createSparkline()` | Render a compact line, area, bar, or stack | Sync | Has no axes, legend, or keyboard navigation |\n| `linearScale()` | Create a numeric scale | Sync | `nice` defaults to `true`; set `nice: false` to preserve the domain |\n| `timeScale()` | Create a date scale | Sync | `nice` defaults to `true` |\n| `bandScale()` | Create an ordered categorical scale | Sync | Unknown categories map to `0` and warn in development |\n| `setTheme()` | Set Prism CSS custom properties | Sync | Writes inline styles to `document.documentElement` by default |\n| `resetTheme()` | Remove theme overrides set by `setTheme()` | Sync | Only clears the selected target |\n| `seriesColor()` | Resolve a palette CSS value | Sync | Palette positions wrap after eight |\n| `PrismError` | Base class for Prism errors | Sync | Use `instanceof` to catch any Prism error |\n| `PrismRenderError` | Report an invalid chart container or failed chart operation | Sync | Also thrown by `update()` after disposal |\n\n## Package Entry Point\n\n| Import | Purpose |\n| --------------------------- | --------------------------------------------------------------------------------------- |\n| `@vielzeug/prism` | Chart factories, scale and theme functions, error classes, and public types |\n| `@vielzeug/prism/theme.css` | Default chart styles, CSS custom properties, dark-mode values, and reduced-motion rules |\n\n## Chart Factories\n\nEach factory appends an SVG to `container`. A chart with no measurable container size uses a temporary `600 × 300` SVG size and emits a development warning; `ResizeObserver` applies later size changes. Unless `a11y` is informative, the SVG is hidden from the accessibility tree.\n\n### `createLineChart()`\n\n```ts\nfunction createLineChart(container: HTMLElement, config: LineChartConfig): ChartHandle<LineSeriesConfig[]>;\n```\n\nRenders line series and returns a handle whose `update()` argument replaces the complete series array. Axes render by default; the value axis has grid lines by default. Pass `false` to `xAxis` or `yAxis` to suppress that axis.\n\nSeries use linear interpolation by default, omit point markers by default, and use a point radius of 3 when markers are enabled. `yAxis` defaults to `'left'`; crosshair, tooltip, and legend are disabled unless configured.\n\n| Parameter | Type | Description |\n| ----------- | ----------------- | ------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `LineChartConfig` | Series, axes, interaction, accessibility, and motion settings |\n\n**Returns:** `ChartHandle<LineSeriesConfig[]>`.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\nconst chart = createLineChart(host, {\n a11y: { ariaLabel: 'Revenue by month' },\n series: [\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 15 },\n ],\n name: 'Revenue',\n },\n ],\n});\nchart.update([\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 15 },\n { key: 3, value: 18 },\n ],\n name: 'Revenue',\n },\n]);\nchart.dispose();\n```\n\n### `createAreaChart()`\n\n```ts\nfunction createAreaChart(container: HTMLElement, config: AreaChartConfig): ChartHandle<AreaSeriesConfig[]>;\n```\n\nRenders continuous area series with a gradient fill by default. `update()` replaces the complete series array.\n\nArea series use linear interpolation by default and show their top line unless `showLine: false` is set. Axes render by default, with grid lines on the value axis.\n\n| Parameter | Type | Description |\n| ----------- | ----------------- | ------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `AreaChartConfig` | Series, axes, interaction, accessibility, and motion settings |\n\n**Returns:** `ChartHandle<AreaSeriesConfig[]>`.\n\n```ts\nimport { createAreaChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\nconst chart = createAreaChart(host, {\n a11y: { ariaLabel: 'Visitors over time' },\n series: [\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 18 },\n ],\n name: 'Visitors',\n },\n ],\n});\nchart.dispose();\n```\n\n### `createScatterChart()`\n\n```ts\nfunction createScatterChart(container: HTMLElement, config: ScatterChartConfig): ChartHandle<ScatterSeriesConfig[]>;\n```\n\nPlots each datum independently: `key` is the numeric or date x-value and `value` is the y-value. Points are not joined. `update()` replaces the complete series array.\n\nAxes render by default, with grid lines on the value axis. The value scale is fitted to the observed data rather than forced to include zero. Tooltip, crosshair, and legend are disabled unless configured.\n\n| Parameter | Type | Description |\n| ----------- | -------------------- | ------------------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `ScatterChartConfig` | Independent points, axes, interaction, accessibility, and motion settings |\n\n**Returns:** `ChartHandle<ScatterSeriesConfig[]>`.\n\n```ts\nimport { createScatterChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\nconst chart = createScatterChart(host, {\n a11y: { ariaLabel: 'Height against weight' },\n series: [\n {\n data: [\n { key: 160, value: 55 },\n { key: 175, value: 70 },\n ],\n name: 'Cohort A',\n },\n ],\n tooltip: true,\n});\nchart.dispose();\n```\n\nScatter interaction reports the datum and series of the point nearest the pointer in two dimensions, without a `values` array. Keyboard navigation visits points across series in x order. Tooltip `titleFormat` receives the x-value and `valueFormat` the y-value. On mount, points grow from radius zero at their final positions; updates slide existing points and grow new ones.\n\n### `createBarChart()`\n\n```ts\nfunction createBarChart(container: HTMLElement, config: BarChartConfig): ChartHandle<BarSeriesConfig[]>;\n```\n\nRenders grouped, stacked, grouped-horizontal, or stacked-horizontal categories. `update()` replaces the complete series array; the variant is fixed at creation. Axes render by default, with grid lines on the value axis.\n\nThe default variant is `grouped`; tooltip and legend are disabled unless configured.\n\n| Parameter | Type | Description |\n| ----------- | ---------------- | ----------------------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `BarChartConfig` | Series, layout variant, axes, interaction, accessibility, and motion settings |\n\n**Returns:** `ChartHandle<BarSeriesConfig[]>`.\n\n```ts\nimport { createBarChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\n\nconst chart = createBarChart(host, {\n a11y: { ariaLabel: 'Tasks by status' },\n series: [\n {\n data: [\n { key: 'Open', value: 12 },\n { key: 'Done', value: 8 },\n ],\n name: 'Tasks',\n },\n ],\n});\nchart.dispose();\n```\n\nFor stacked variants, negative values are treated as zero and produce a development warning.\n\n### `createPieChart()`\n\n```ts\nfunction createPieChart(container: HTMLElement, config: PieChartConfig): ChartHandle<PieSliceConfig[]>;\n```\n\nRenders pie, donut, or semi-circle slices. The default variant is `pie`; `update()` replaces the slice array. The default inner radius is zero for pies and 55% of the outer radius for donut and semi variants. Pie slices default to no padding or rounded corners; donut and semi slices default to 8px padding and corner radius.\n\n| Parameter | Type | Description |\n| ----------- | ---------------- | ------------------------------------------------------------------ |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `PieChartConfig` | Slices, shape, geometry, legend, tooltip, and interaction settings |\n\n**Returns:** `ChartHandle<PieSliceConfig[]>`.\n\n```ts\nimport { createPieChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:320px;height:240px';\ndocument.body.append(host);\n\nconst chart = createPieChart(host, {\n a11y: { ariaLabel: 'Orders by channel' },\n data: [\n { label: 'Direct', value: 72 },\n { label: 'Referral', value: 28 },\n ],\n variant: 'donut',\n});\nchart.dispose();\n```\n\n### `createRadarChart()`\n\n```ts\nfunction createRadarChart(container: HTMLElement, config: RadarChartConfig): ChartHandle<RadarSeriesConfig[]>;\n```\n\nRenders one shape per series across the configured axes. `update()` replaces series data but not axes or other configuration. Fewer than three axes warn in development and draw no chart. Tooltip and legend are disabled unless configured.\n\n| Parameter | Type | Description |\n| ----------- | ------------------ | --------------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `RadarChartConfig` | Fixed axes, series, scale, grid, appearance, and interaction settings |\n\n**Returns:** `ChartHandle<RadarSeriesConfig[]>`.\n\n```ts\nimport { createRadarChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:400px;height:320px';\ndocument.body.append(host);\n\nconst chart = createRadarChart(host, {\n a11y: { ariaLabel: 'Hero stats' },\n axes: [\n { key: 'str', label: 'Strength' },\n { key: 'agi', label: 'Agility' },\n { key: 'end', label: 'Endurance' },\n ],\n domain: [0, 10],\n series: [\n {\n data: [\n { key: 'str', value: 8 },\n { key: 'agi', value: 6 },\n { key: 'end', value: 9 },\n ],\n name: 'Adam',\n },\n ],\n});\nchart.dispose();\n```\n\nRadar defaults are a solid fill, linear curves, visible points, a four-level polygon grid with bands, no grid labels, and a first-axis angle of zero degrees. Grid labels render only when all axes share a domain.\n\n### `createHeatmapChart()`\n\n```ts\nfunction createHeatmapChart(container: HTMLElement, config: HeatmapChartConfig): ChartHandle<HeatmapData>;\n```\n\nRenders one colored cell per row/column pair: rows down the left, columns across the top. The color ramp is continuous by default; `bins` turns it into discrete steps and shows a swatch legend. Cells show their formatted value when they are large enough, choosing dark or light text against the fill. `rowSummary` adds a right-hand column of pre-formatted per-row texts (e.g. a win rate the cells alone cannot show). `update()` replaces cells and may replace `rows`, `columns`, `domain`, and `rowSummary`; other configuration is fixed at creation.\n\n| Parameter | Type | Description |\n| ----------- | -------------------- | ---------------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG and optional overlays |\n| `config` | `HeatmapChartConfig` | Rows, columns, cells, ramp, bins, appearance, and interaction settings |\n\n**Returns:** `ChartHandle<HeatmapData>`.\n\n```ts\nimport { createHeatmapChart } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:400px;height:320px';\ndocument.body.append(host);\n\nconst chart = createHeatmapChart(host, {\n a11y: { ariaLabel: 'Win rate by hero and region' },\n cells: [\n { column: 'Forest', row: 'Aria', value: 90 },\n { column: 'Swamp', row: 'Aria', value: 40 },\n { column: 'Forest', row: 'Brom', value: 20 },\n { column: 'Swamp', row: 'Brom', value: 75 },\n ],\n columns: ['Forest', 'Swamp'],\n rows: ['Aria', 'Brom'],\n});\nchart.dispose();\n```\n\nHeatmap defaults are a light-to-deep blue ramp over the data's `[min, max]` domain, a 2 px cell gap, in-cell values, and no legend. Column headers rotate -45° when they do not fit their column. Keyboard: arrows move the active cell, Enter/Space fires `onCellClick`, Escape deactivates; the tooltip (or `.prism-live` without one) describes the active cell.\n\n### `createSparkline()`\n\n```ts\nfunction createSparkline(container: HTMLElement, config: SparklineConfig): ChartHandle<number[] | StackSegment[]>;\n```\n\nRenders compact data without axes, chart margins, or a legend. `update()` replaces the number or stack-segment array. The default variant is `line`; only line and area variants draw the endpoint marker by default.\n\n| Parameter | Type | Description |\n| ----------- | ----------------- | ----------------------------------------------------------------- |\n| `container` | `HTMLElement` | Host that receives the chart SVG |\n| `config` | `SparklineConfig` | Values, variant, appearance, accessibility, and pointer callbacks |\n\n**Returns:** `ChartHandle<number[] | StackSegment[]>`.\n\n```ts\nimport { createSparkline } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:240px;height:48px';\ndocument.body.append(host);\n\nconst chart = createSparkline(host, { data: [2, 5, 3, 8], variant: 'area' });\nchart.update([2, 5, 3, 8, 13]);\nchart.dispose();\n```\n\n`StackSegment[]` is for `variant: 'stack'`. Pointer callbacks are available for numeric line, area, and bar sparklines; sparklines do not support keyboard navigation.\n\n## Scale Factories\n\n### `linearScale()`\n\n```ts\nfunction linearScale(config: LinearScaleConfig): Scale<number>;\n```\n\nMaps a numeric domain to a numeric range. `nice` defaults to `true`; `clamp` defaults to `false` and applies to `map()`, not `invert()`.\n\n| Parameter | Type | Default | Description |\n| --------------- | ------------------ | -------- | --------------------------------------- |\n| `config.domain` | `[number, number]` | Required | Input extent |\n| `config.range` | `[number, number]` | Required | Output extent |\n| `config.clamp` | `boolean` | `false` | Clamp mapped values to the range |\n| `config.nice` | `boolean` | `true` | Expand the domain to rounded boundaries |\n\n**Returns:** `Scale<number>`, with `map`, `invert`, `ticks`, `domain`, and `range`.\n\n```ts\nimport { linearScale } from '@vielzeug/prism';\n\nconst scale = linearScale({ domain: [0, 100], range: [0, 500] });\nscale.map(50); // 250\n```\n\n### `timeScale()`\n\n```ts\nfunction timeScale(config: TimeScaleConfig): Scale<Date>;\n```\n\nMaps date values to a numeric range. `nice` defaults to `true` and rounds the domain to a time interval.\n\n| Parameter | Type | Default | Description |\n| --------------- | ------------------ | -------- | --------------------------------------------- |\n| `config.domain` | `[Date, Date]` | Required | Input date extent |\n| `config.range` | `[number, number]` | Required | Output extent |\n| `config.nice` | `boolean` | `true` | Expand the domain to time-interval boundaries |\n\n**Returns:** `Scale<Date>`, with `map`, `invert`, `ticks`, `domain`, and `range`.\n\n```ts\nimport { timeScale } from '@vielzeug/prism';\n\nconst scale = timeScale({\n domain: [new Date('2026-01-01'), new Date('2026-12-31')],\n range: [0, 500],\n});\nscale.map(new Date('2026-07-02'));\n```\n\n### `bandScale()`\n\n```ts\nfunction bandScale(config: BandScaleConfig): BandScale;\n```\n\nMaps ordered string categories to the start of each band. `padding` defaults to `0.1`; `paddingOuter` defaults to the same value. Mapping an unknown category returns `0` and warns in development.\n\n| Parameter | Type | Default | Description |\n| --------------------- | ------------------ | --------- | --------------------------------- |\n| `config.domain` | `string[]` | Required | Ordered categories |\n| `config.range` | `[number, number]` | Required | Output extent |\n| `config.padding` | `number` | `0.1` | Inner gap as a ratio of bandwidth |\n| `config.paddingOuter` | `number` | `padding` | Outer gap as a ratio of bandwidth |\n\n**Returns:** `BandScale`, with `map`, `ticks`, `bandwidth`, `gap`, `domain`, and `range`.\n\n```ts\nimport { bandScale } from '@vielzeug/prism';\n\nconst scale = bandScale({ domain: ['A', 'B'], range: [0, 200] });\nscale.bandwidth();\n```\n\n## Theme Utilities\n\n`theme.css` supplies the base CSS values and styles. `setTheme()` writes inline custom properties, which take precedence over stylesheet declarations. For other visual controls, set CSS custom properties directly.\n\n### `setTheme()`\n\n```ts\nfunction setTheme(theme: PrismTheme, options?: ThemeScope): void;\n```\n\nSets the provided theme values on `options.scope`, or on `document.documentElement` when omitted. Omitted scalar keys remain unchanged. Providing `colors` replaces all eight palette slots, removing unused slots.\n\n| Parameter | Type | Description |\n| --------------- | ------------- | -------------------------------------------------------------------- |\n| `theme` | `PrismTheme` | Palette and supported axis, grid, text, font, and tooltip properties |\n| `options.scope` | `HTMLElement` | Element that scopes the inline custom properties |\n\n**Returns:** `void`.\n\n```ts\nimport { setTheme } from '@vielzeug/prism';\n\nconst host = document.createElement('div');\ndocument.body.append(host);\nsetTheme({ colors: ['#2563eb', '#16a34a'], textColor: '#111827' }, { scope: host });\n```\n\n### `resetTheme()`\n\n```ts\nfunction resetTheme(options?: ThemeScope): void;\n```\n\nRemoves every custom property managed by `setTheme()` from the given scope or the document root. It does not remove CSS rules or change any other custom properties.\n\n| Parameter | Type | Description |\n| --------- | ------------ | ------------------------------------------------------- |\n| `options` | `ThemeScope` | Optional target; defaults to `document.documentElement` |\n\n**Returns:** `void`.\n\n```ts\nimport { resetTheme, setTheme } from '@vielzeug/prism';\n\nconst scope = document.createElement('div');\nsetTheme({ textColor: '#111827' }, { scope });\nresetTheme({ scope });\n```\n\n### `seriesColor()`\n\n```ts\nfunction seriesColor(index: number, override?: string): string;\n```\n\nReturns `override` when it is provided; otherwise returns a `var(--prism-color-N)` reference. The palette has eight positions and the index wraps around after the eighth.\n\n| Parameter | Type | Description |\n| ---------- | -------- | ------------------------------------------------- |\n| `index` | `number` | Zero-based palette position |\n| `override` | `string` | Optional color returned instead of a CSS variable |\n\n**Returns:** `string`.\n\n```ts\nimport { seriesColor } from '@vielzeug/prism';\n\nseriesColor(0); // 'var(--prism-color-1)'\nseriesColor(1, '#2563eb'); // '#2563eb'\n```\n\n## Chart Handle\n\n`ChartHandle<TData>` is returned by every chart factory. `update()` synchronously rebuilds the chart from its new data; enabled motion may animate the resulting SVG. `dispose()` is idempotent, removes the chart SVG, observers, tooltip and legend, cancels chart-owned animation, aborts `disposalSignal`, and emits one `dispose` tap event. `update()` after disposal throws `PrismRenderError`.\n\n`tap()` observes `resize` and `dispose` events outside the render path. It returns an unsubscribe function; an optional abort signal removes the subscription. Observer-handler exceptions are swallowed so they cannot affect chart behavior. A tap added after disposal returns a no-op unsubscribe function.\n\n`[Symbol.dispose]()` delegates to `dispose()`, allowing explicit resource management where supported.\n\nAll chart handles expose the same lifecycle members; interactive cartesian, pie, radar, and heatmap charts use a `.prism-live` status region when no tooltip is enabled. A tooltip is itself a polite status region. Sparklines have neither a tooltip nor a live value announcer.\n\n| Method or property | Contract |\n| ------------------------ | ----------------------------------------------------------------------- |\n| `el` | The chart's root `SVGSVGElement` |\n| `update(data)` | Replace chart data and render; throws `PrismRenderError` after disposal |\n| `dispose()` | Idempotently release chart-owned DOM, observation, and motion |\n| `disposed` | Whether the handle has been disposed |\n| `disposalSignal` | `AbortSignal` aborted during disposal |\n| `tap(handler, options?)` | Observe resize/dispose events; returns an unsubscribe function |\n| `[Symbol.dispose]()` | Calls `dispose()` |\n\n`PrismEvent` reports a changed SVG content size as `{ type: 'resize', width, height }`; the `dispose` event is emitted once before teardown completes.\n\n## Types\n\nThe following are all types and interfaces exported from `@vielzeug/prism`. Definitions mirror the package entry-point contracts.\n\n### Animation Types\n\n```ts\nexport type EasingFn = (t: number) => number;\nexport type EasingName = 'back-out' | 'ease-in' | 'ease-in-out' | 'ease-out' | 'expo-out' | 'linear';\n\nexport interface TransitionConfig {\n /** Milliseconds per animated lane. Defaults to 300 (420 for a line entrance, 400 for radar). */\n duration?: number;\n easing?: EasingName | ((t: number) => number);\n /** `system` skips animation when reduced motion is preferred. */\n preference?: 'always' | 'never' | 'system';\n /** Per-bar delay on bar charts, per-entering-point delay (x order) on scatter charts, or per-series delay on radar charts. Bar and scatter charts cap the total added delay at about 400 ms. */\n stagger?: number;\n}\n\nexport type TransitionOption = TransitionConfig | boolean;\n```\n\n### Theme Types\n\n```ts\nexport interface PrismTheme {\n axisColor?: string;\n colors?: string[];\n fontFamily?: string;\n gridColor?: string;\n gridOpacity?: number;\n textColor?: string;\n textColorSecondary?: string;\n tooltipBg?: string;\n tooltipBorder?: string;\n tooltipColor?: string;\n}\n\nexport interface ThemeScope {\n readonly scope?: HTMLElement;\n}\n```\n\n`PrismTheme.colors` writes up to eight palette slots. The scalar fields map as follows:\n\n| Field | CSS custom property |\n| -------------------- | ------------------------------ |\n| `axisColor` | `--prism-axis-color` |\n| `fontFamily` | `--prism-font-family` |\n| `gridColor` | `--prism-grid-color` |\n| `gridOpacity` | `--prism-grid-opacity` |\n| `textColor` | `--prism-text-color` |\n| `textColorSecondary` | `--prism-text-color-secondary` |\n| `tooltipBg` | `--prism-tooltip-bg` |\n| `tooltipBorder` | `--prism-tooltip-border` |\n| `tooltipColor` | `--prism-tooltip-color` |\n\n### Core and Data Types\n\n```ts\nexport interface ChartMargin {\n bottom: number;\n left: number;\n right: number;\n top: number;\n}\n\nexport interface ChartDimensions {\n height: number;\n margin: ChartMargin;\n width: number;\n}\n\nexport type PrismEvent =\n | { readonly height: number; readonly type: 'resize'; readonly width: number }\n | { readonly type: 'dispose' };\n\nexport interface ChartHandle<TData = unknown> {\n readonly disposalSignal: AbortSignal;\n dispose(): void;\n readonly disposed: boolean;\n readonly el: SVGSVGElement;\n tap(handler: (event: PrismEvent) => void, options?: { readonly signal?: AbortSignal }): () => void;\n update(data: TData): void;\n [Symbol.dispose](): void;\n}\n\nexport type ChartA11y = { readonly decorative: true } | { readonly ariaLabel: string; readonly decorative?: false };\n\nexport interface Datum<TKey extends Date | number | string = Date | number | string> {\n dash?: string;\n key: TKey;\n meta?: Record<string, unknown>;\n opacity?: number;\n value: number;\n}\n\nexport type ContinuousDatum = Datum<Date | number>;\n\nexport interface Series<TDatum extends Datum = Datum> {\n color?: string;\n data: TDatum[];\n id?: string;\n name: string;\n}\n\nexport interface ChartEvent {\n datum: Datum;\n originalEvent: Event;\n series: Series;\n values?: SeriesValue[];\n}\n\nexport interface SeriesValue {\n datum: Datum | undefined;\n series: Series;\n}\n```\n\n`Datum.dash` and `Datum.opacity` affect rendered marks only on the chart types that support them. On bars, `dash` adds a 1px series-color stroke so the dash is visible against the fill. `Series.id` becomes a `data-series-id` attribute on a series group; characters outside `[A-Za-z0-9_-]` are replaced with `-`. When omitted, the id is based on the series index.\n\n| Chart | `dash` | `opacity` |\n| ------------------------------ | ----------------------------------------------------------- | -------------------------------------------- |\n| Bar | Strokes that datum's bar | Applies to that bar |\n| Line | Applies to the segment from this datum to the next | Applies to that segment and its point marker |\n| Area | Applies to the top-line segment from this datum to the next | Applies to that segment |\n| Scatter | Ignored | Applies to that point |\n| Pie, radar, heatmap, sparkline | Ignored | Ignored |\n\nFor line and area charts, the last datum has no following segment, so its `dash` value is ignored. The chart factories group adjacent segments with the same presentation values into path runs.\n\nFor line, area, and bar charts, `ChartEvent.values` lists each series at the active key in series order. Its `datum` is `undefined` when that series has no matching key. `originalEvent` is a pointer event or a keyboard event for keyboard activation. Scatter events identify only the nearest independent point and omit `values`.\n\n### Scale Types\n\n```ts\nexport interface Scale<T> {\n readonly domain: readonly [T, T];\n invert(pixel: number): T;\n map(value: T): number;\n readonly range: readonly [number, number];\n ticks(count?: number): T[];\n}\n\nexport interface BandScale {\n bandwidth(): number;\n readonly domain: readonly string[];\n gap(): number;\n map(value: string): number;\n readonly range: readonly [number, number];\n ticks(count?: number): string[];\n}\n\nexport interface LinearScaleConfig {\n clamp?: boolean;\n domain: [number, number];\n nice?: boolean;\n range: [number, number];\n}\n\nexport interface TimeScaleConfig {\n domain: [Date, Date];\n nice?: boolean;\n range: [number, number];\n}\n\nexport interface BandScaleConfig {\n domain: string[];\n padding?: number;\n paddingOuter?: number;\n range: [number, number];\n}\n```\n\n### Axis and Interaction Types\n\n```ts\nexport type HorizontalAxisPosition = 'bottom' | 'top';\nexport type VerticalAxisPosition = 'left' | 'right';\nexport type AxisPosition = HorizontalAxisPosition | VerticalAxisPosition;\n\nexport interface GridConfig {\n color?: string;\n dash?: string;\n}\n\nexport interface AxisConfig<TPosition extends AxisPosition = AxisPosition> {\n grid?: GridConfig | boolean;\n label?: string;\n position?: TPosition;\n tickCount?: number;\n tickFormat?: (value: Date | number | string) => string;\n tickValues?: ReadonlyArray<Date | number | string>;\n}\n\nexport type XAxisConfig = AxisConfig<HorizontalAxisPosition>;\nexport type YAxisConfig = AxisConfig<VerticalAxisPosition>;\n\nexport interface TooltipConfig {\n offset?: number;\n render?: (datum: Datum, series: Series) => Node | string;\n titleFormat?: (key: Date | number | string) => string;\n valueFormat?: (value: number, datum: Datum, series: Series) => string;\n}\n\nexport interface CrosshairConfig {\n horizontal?: boolean;\n snap?: boolean;\n vertical?: boolean;\n}\n\nexport type LegendPosition = 'bottom' | 'left' | 'right' | 'top';\n\nexport interface LegendConfig {\n position?: LegendPosition;\n}\n```\n\nThe crosshair defaults to a vertical line that snaps to the nearest datum; the horizontal line is hidden by default. With `snap: false`, only the guide follows the pointer—tooltip and callback data still refer to the nearest datum.\n\n`tickValues` renders exactly the given ticks instead of scale-generated ones, and gridlines follow the same list. Values must match the axis's scale kind (numbers on a linear axis, `Date`s on a time axis, category strings on a band axis); an off-scale value warns in development. Without it, ticks come from the scale as before.\n\nNumeric tick labels at a magnitude of 1e5 or above default to compact notation (`123K`, `1.23M`) so long numbers fit the default value-axis margin; pass `tickFormat: String` for raw labels. Supplying a partial `yAxis` (or the value axis of a horizontal bar chart) merges over the default, so `{ tickFormat }` alone keeps the default grid lines.\n\n`titleFormat` and `valueFormat` shape the default comparison tooltip on line, area, and bar charts—the title from the focused key and each row's value—and the same formatting is applied to the tooltip's spoken summary. `render` still replaces the whole tooltip body and takes precedence. Tooltip strings are assigned as text, not parsed as HTML. For a radar chart, `tooltip.render` receives a datum whose `meta` contains the active axis, all series values, and the default announcement text.\n\n### Chart Configuration Types\n\n```ts\nexport interface BaseChartConfig {\n a11y?: ChartA11y;\n legend?: LegendConfig | boolean;\n margin?: Partial<ChartMargin>;\n onClick?: (event: ChartEvent) => void;\n onHover?: (event: ChartEvent | null) => void;\n tooltip?: TooltipConfig | boolean;\n transition?: TransitionOption;\n xAxis?: XAxisConfig | false;\n yAxis?: YAxisConfig | false;\n}\n\nexport interface LineSeriesConfig extends Series<ContinuousDatum> {\n curve?: 'linear' | 'monotone' | 'step';\n pointRadius?: number;\n showPoints?: boolean;\n strokeWidth?: number;\n yAxis?: 'left' | 'right';\n}\n\nexport interface LineChartConfig extends BaseChartConfig {\n crosshair?: CrosshairConfig | boolean;\n rightYAxis?: Omit<YAxisConfig, 'position' | 'grid'>;\n series: LineSeriesConfig[];\n}\n\nexport interface AreaSeriesConfig extends Series<ContinuousDatum> {\n curve?: 'linear' | 'monotone' | 'step';\n fill?: 'gradient' | 'solid';\n fillOpacity?: number;\n showLine?: boolean;\n}\n\nexport interface AreaChartConfig extends BaseChartConfig {\n crosshair?: CrosshairConfig | boolean;\n series: AreaSeriesConfig[];\n}\n\nexport interface ScatterSeriesConfig extends Series<ContinuousDatum> {\n pointRadius?: number;\n}\n\nexport interface ScatterChartConfig extends BaseChartConfig {\n crosshair?: CrosshairConfig | boolean;\n series: ScatterSeriesConfig[];\n}\n\nexport interface BarSeriesConfig extends Series {\n borderRadius?: number;\n}\n\nexport type BarVariant = 'grouped' | 'grouped-horizontal' | 'stacked' | 'stacked-horizontal';\n\nexport interface BarChartConfig extends BaseChartConfig {\n series: BarSeriesConfig[];\n /** Paints each bar's value at its end; stacked variants label the stack total. */\n showValues?: boolean;\n /** Formats the value labels. Defaults to `String`. */\n valueFormat?: (value: number) => string;\n variant?: BarVariant;\n}\n\nexport type PieVariant = 'donut' | 'pie' | 'semi';\n\nexport interface PieSliceConfig {\n color?: string;\n label?: string;\n value: number;\n}\n\nexport interface PieEvent {\n index: number;\n originalEvent: Event;\n slice: PieSliceConfig;\n}\n\nexport interface PieChartConfig extends Omit<BaseChartConfig, 'margin' | 'onClick' | 'onHover' | 'xAxis' | 'yAxis'> {\n cornerRadius?: number;\n data: PieSliceConfig[];\n innerRadius?: number;\n onClick?: (event: PieEvent) => void;\n onHover?: (event: PieEvent | null) => void;\n padPixels?: number;\n variant?: PieVariant;\n}\n\nexport interface RadarAxisConfig {\n format?: (value: number) => string;\n key: string;\n label: string;\n max?: number;\n min?: number;\n}\n\nexport type RadarSeriesConfig = Series<Datum<string>>;\n\nexport interface RadarGridConfig {\n bands?: boolean;\n labels?: boolean;\n levels?: number;\n shape?: 'circle' | 'polygon';\n}\n\nexport interface RadarAxisValue {\n datum: Datum<string> | undefined;\n series: RadarSeriesConfig;\n}\n\nexport interface RadarEvent {\n axis: RadarAxisConfig;\n index: number;\n originalEvent: Event;\n values: RadarAxisValue[];\n}\n\nexport interface RadarChartConfig extends Omit<BaseChartConfig, 'margin' | 'onClick' | 'onHover' | 'xAxis' | 'yAxis'> {\n axes: RadarAxisConfig[];\n curve?: 'linear' | 'rounded';\n domain?: [number, number];\n fill?: 'gradient' | 'none' | 'solid';\n grid?: RadarGridConfig | boolean;\n onClick?: (event: RadarEvent) => void;\n onHover?: (event: RadarEvent | null) => void;\n series: RadarSeriesConfig[];\n showPoints?: boolean;\n showValues?: boolean;\n startAngle?: number;\n}\n\nexport interface HeatmapCell {\n column: string;\n row: string;\n value: number | null;\n}\n\nexport interface HeatmapEvent {\n cell: HeatmapCell | undefined;\n column: string;\n originalEvent: Event;\n row: string;\n}\n\nexport interface HeatmapData {\n cells: HeatmapCell[];\n columns?: string[];\n domain?: [number, number];\n rows?: string[];\n rowSummary?: HeatmapChartConfig['rowSummary'];\n}\n\nexport interface HeatmapChartConfig\n extends Omit<BaseChartConfig, 'legend' | 'onClick' | 'onHover' | 'transition' | 'xAxis' | 'yAxis'> {\n binLabel?: (from: number | null, to: number | null) => string;\n bins?: number[];\n cells: HeatmapCell[];\n colorRange?: string[];\n columns: string[];\n domain?: [number, number];\n emptyColor?: string;\n emptyLabel?: string;\n gap?: number;\n legend?: boolean;\n onCellClick?: (event: HeatmapEvent) => void;\n onCellHover?: (event: HeatmapEvent | null) => void;\n rows: string[];\n rowSummary?: { header?: string; values: (string | null)[] };\n showValues?: boolean;\n valueFormat?: (value: number) => string;\n}\n\nexport type SparklineVariant = 'area' | 'bar' | 'line' | 'stack';\n\nexport interface StackSegment {\n color?: string;\n label?: string;\n value: number;\n}\n\nexport interface SparklineEvent {\n index: number;\n originalEvent: Event;\n value: number;\n}\n\nexport interface SparklineConfig {\n a11y?: ChartA11y;\n color?: string;\n cornerRadius?: number;\n curve?: 'linear' | 'monotone' | 'step';\n data: number[] | StackSegment[];\n fillOpacity?: number;\n onClick?: (event: SparklineEvent) => void;\n onHover?: (event: SparklineEvent | null) => void;\n padPixels?: number;\n showEndPoint?: boolean;\n strokeWidth?: number;\n transition?: TransitionOption;\n variant?: SparklineVariant;\n}\n```\n\n## Errors\n\n### `PrismError`\n\n```ts\nclass PrismError extends Error {\n constructor(message: string, opts?: ErrorOptions);\n}\n```\n\nBase class for Prism-originated errors. Its `name` is set to the concrete error class name, and it supports the standard `ErrorOptions` including `cause`.\n\n### `PrismRenderError`\n\n```ts\nclass PrismRenderError extends PrismError {}\n```\n\nThrown when a chart cannot be rendered because its container is not a DOM element, when initial rendering fails (the original error is available as `cause`), or when `update()` is called after disposal. Empty or malformed chart data may instead produce a development warning or an empty rendering, depending on the chart.\n",
6
- "usage": "---\ntitle: 'Prism: Usage Guide'\ndescription: Create responsive SVG charts, update their data, handle interaction, and theme @vielzeug/prism.\n---\n\n[[toc]]\n\n## Basic Usage\n\nCreate a host element with non-zero dimensions, then pass it to a chart factory. This example creates the host in JavaScript so the snippet can run as written.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\nimport '@vielzeug/prism/theme.css';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createLineChart(container, {\n a11y: { ariaLabel: 'Revenue by month' },\n series: [\n {\n name: 'Revenue',\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 16 },\n ],\n },\n ],\n tooltip: true,\n});\n\nchart.dispose();\n```\n\nEach factory appends an SVG to its container and returns a `ChartHandle`. Prism observes the container with `ResizeObserver`; if it has zero dimensions on creation, Prism uses a temporary `600 × 300` size and warns in development. Give the host its layout before creating the chart.\n\n## Updating Data\n\nKeep application state outside Prism and pass the next complete data value to `update()`. The update method replaces chart data synchronously; the default transition may animate the resulting SVG.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nlet series = [{ data: [{ key: 1, value: 10 }], name: 'Live' }];\nconst chart = createLineChart(container, { series });\n\nseries = [\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 20 },\n ],\n name: 'Live',\n },\n];\nchart.update(series);\nchart.dispose();\n```\n\n`update()` accepts the type shown by that factory's handle: a complete series array for line, area, scatter, bar, and radar charts; a slice array for pie charts; a `HeatmapData` object for heatmap charts; and a number or stack-segment array for sparklines. Chart options such as axes, variant, callbacks, and accessibility are set at creation. For example, radar axes and a pie chart's variant do not change through `update()`.\n\n## Line Charts\n\nLine and area series use number or `Date` keys. All series in one chart must use the same key kind. Use `curve` to choose interpolation, and enable markers with `showPoints`.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createLineChart(container, {\n a11y: { ariaLabel: 'Revenue and expenses' },\n series: [\n {\n curve: 'monotone',\n data: [\n { key: 1, value: 100 },\n { key: 2, value: 150 },\n { key: 3, value: 130 },\n ],\n name: 'Revenue',\n showPoints: true,\n },\n {\n color: '#c2410c',\n data: [\n { key: 1, value: 70 },\n { key: 2, value: 95 },\n { key: 3, value: 110 },\n ],\n name: 'Expenses',\n },\n ],\n tooltip: true,\n xAxis: { label: 'Month' },\n yAxis: { grid: true, label: 'Dollars' },\n});\n\nchart.dispose();\n```\n\n### Independent Value Axes\n\nAssign a line series to the right axis when it uses a different value range. Both axes share the x-scale; `rightYAxis` configures the second axis and cannot configure its position or grid.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createLineChart(container, {\n a11y: { ariaLabel: 'Health and damage by level' },\n rightYAxis: { label: 'Damage' },\n series: [\n {\n data: [\n { key: 1, value: 30 },\n { key: 2, value: 20 },\n ],\n name: 'Health',\n },\n {\n data: [\n { key: 1, value: 100 },\n { key: 2, value: 300 },\n ],\n name: 'Damage',\n yAxis: 'right',\n },\n ],\n yAxis: { grid: true, label: 'Health' },\n});\n\nchart.dispose();\n```\n\nWhen any series uses the right axis, the primary value axis is placed on the left. Grid lines belong to the primary `yAxis`. The independent numeric scales mean that curve crossings do not imply equal values.\n\n### Time-Based X Axis\n\nUse `Date` values for every key when plotting time. Line and area charts use a time scale whose domain fits the data instead of rounding outward to tick boundaries.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst formatter = new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric' });\nconst chart = createLineChart(container, {\n a11y: { ariaLabel: 'Signups over time' },\n series: [\n {\n data: [\n { key: new Date('2026-09-01'), value: 50 },\n { key: new Date('2026-09-08'), value: 80 },\n { key: new Date('2026-09-15'), value: 120 },\n ],\n name: 'Signups',\n },\n ],\n xAxis: { tickFormat: (value) => (value instanceof Date ? formatter.format(value) : String(value)) },\n});\n\nchart.dispose();\n```\n\n`tickFormat` formats axis labels only. Tooltip content and accessibility announcements use the underlying keys and values. To render an exact set of ticks instead of scale-generated ones, pass `tickValues`; gridlines follow the same list. Values must match the axis's scale kind, and an off-scale value warns in development:\n\n```ts\n// Force a tick on the last month, which nice-stepped ticks can skip.\nconst chart = createLineChart(container, {\n series: [\n {\n data: [\n { key: 0, value: 90 },\n { key: 11, value: 128 },\n ],\n name: 'Costs',\n },\n ],\n xAxis: { tickValues: [0, 6, 11] },\n});\n```\n\nNumeric tick labels at a magnitude of `1e5` or above default to compact notation (`123K`, `1.23M`) so long numbers fit the default value-axis margin; pass `tickFormat: String` for raw labels. Supplying a partial value-axis config merges over its default, so `yAxis: { tickFormat }` alone keeps the default grid lines.\n\n## Bar Charts\n\nBar chart keys are string categories. The default `grouped` variant puts series side by side; the horizontal variants put categories on the y-axis and values on the x-axis.\n\n```ts\nimport { createBarChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createBarChart(container, {\n a11y: { ariaLabel: 'Sales by quarter' },\n series: [\n {\n data: [\n { key: 'Q1', value: 200 },\n { key: 'Q2', value: 350 },\n { key: 'Q3', value: 280 },\n ],\n name: 'Sales',\n },\n ],\n tooltip: true,\n});\n\nchart.dispose();\n```\n\nChoose `grouped`, `stacked`, `grouped-horizontal`, or `stacked-horizontal` in `variant`. Negative values in a stacked chart are clamped to zero and produce a development warning. Bars in stacked variants remain square; `borderRadius` applies to grouped bars.\n\nAxes render by default, with grid lines on the value axis. For horizontal variants, `xAxis` is the value axis and `yAxis` is the category axis. Configure `grid` on the value axis.\n\nSet `showValues: true` to paint each bar's value at its end so the chart reads without hover; `valueFormat` shapes the label text. Stacked variants label the stack total at the top of the stack, and labels that would overflow the plot flip inside the bar with a contrasting fill. The labels are decorative (`aria-hidden`) — the accessible read stays with the chart's data table.\n\n## Area Charts\n\nArea series use a gradient fill by default. Set `fill: 'solid'` for a flat fill, or set `fillOpacity` to override the theme opacity for that series.\n\n```ts\nimport { createAreaChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createAreaChart(container, {\n a11y: { ariaLabel: 'Visitors over time' },\n crosshair: true,\n series: [\n {\n curve: 'monotone',\n data: [\n { key: 1, value: 12 },\n { key: 2, value: 18 },\n { key: 3, value: 15 },\n ],\n fill: 'solid',\n fillOpacity: 0.2,\n name: 'Visitors',\n showLine: true,\n },\n ],\n});\n\nchart.dispose();\n```\n\n## Scatter Charts\n\nScatter charts treat every datum as an independent point: `key` is the numeric or `Date` x-value and `value` is the y-value. The scales fit the observed values rather than forcing the y-domain to include zero. Set `pointRadius` on a series to change its marker size (default `3`).\n\n```ts\nimport { createScatterChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createScatterChart(container, {\n a11y: { ariaLabel: 'Height against weight' },\n series: [\n {\n data: [\n { key: 160, value: 55 },\n { key: 175, value: 70 },\n { key: 190, value: 88 },\n ],\n name: 'Cohort A',\n pointRadius: 5,\n },\n ],\n tooltip: true,\n});\n\nchart.dispose();\n```\n\nScatter callbacks identify the nearest point in two dimensions and do not provide cross-series `values`, because points do not share a category key. Keyboard navigation visits every point across series in x order. With a tooltip, `titleFormat` formats the x-value and `valueFormat` the y-value, in both the visible row and the spoken summary.\n\n## Forecast and Emphasis Styling\n\nAdd `dash` or `opacity` to individual `Datum` objects when one part of a series needs distinct styling. These fields do not change interaction, tooltip, or accessibility behavior.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst values = [10, 13, 15, 18];\nconst chart = createLineChart(container, {\n series: [\n {\n data: values.map((value, index) => ({\n key: index + 1,\n value,\n ...(index >= 2 ? { dash: '5 5', opacity: 0.4 } : {}),\n })),\n name: 'Forecast',\n showPoints: true,\n },\n ],\n});\n\nchart.dispose();\n```\n\nFor line and area charts, each datum's `dash` styles the segment from that datum to the next; the final datum has no outgoing segment. Line opacity also fades the datum's marker. Area styling affects the top line, not the fill. Bar opacity and dashes apply to the individual bar; scatter opacity applies to its point and scatter dashes are ignored. Pie, radar, and sparkline ignore these two fields.\n\n## Pie, Donut, and Semi Charts\n\nUse `createPieChart()` for all three shapes. `variant` is fixed when the chart is created; `update()` replaces the slice data.\n\n```ts\nimport { createPieChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:320px;height:240px';\ndocument.body.append(container);\n\nconst chart = createPieChart(container, {\n a11y: { ariaLabel: 'Orders by channel' },\n data: [\n { label: 'Direct', value: 42 },\n { label: 'Organic', value: 28 },\n { label: 'Referral', value: 18 },\n { label: 'Social', value: 12 },\n ],\n legend: true,\n tooltip: true,\n variant: 'donut',\n});\n\nchart.dispose();\n```\n\nThe `pie` default has no inner radius. `donut` and `semi` default to an inner radius of 55% of the outer radius. `innerRadius` overrides that size in pixels. Slice labels are omitted when they do not fit; keep a tooltip or legend when small slices need identifying.\n\n## Radar Charts\n\nDefine at least three axes when creating a radar chart. Series data uses string keys that match `RadarAxisConfig.key`; `update()` replaces series but keeps axes and other configuration fixed.\n\n```ts\nimport { createRadarChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:400px;height:320px';\ndocument.body.append(container);\n\nconst axes = [\n { key: 'strength', label: 'Strength' },\n { key: 'agility', label: 'Agility' },\n { key: 'endurance', label: 'Endurance' },\n];\nconst chart = createRadarChart(container, {\n a11y: { ariaLabel: 'Hero stats' },\n axes,\n domain: [0, 10],\n series: [\n {\n data: [\n { key: 'strength', value: 8 },\n { key: 'agility', value: 6 },\n { key: 'endurance', value: 9 },\n ],\n name: 'Adam',\n },\n ],\n tooltip: true,\n});\n\nchart.dispose();\n```\n\nThe default shared domain starts at zero and uses a nice maximum; set `domain` to compare series on a fixed range. Per-axis `min` and `max` override the chart domain for that axis. Grid rings, bands, curves, fills, vertex dots, and values are configurable; see `RadarChartConfig` and `RadarGridConfig` in the API reference.\n\n## Heatmaps\n\nDefine `rows`, `columns`, and `cells`; each cell names its `row` and `column` labels. A cell with `value: null` (or no matching cell at all) renders in `emptyColor` without in-cell text. `rowSummary` adds a right-hand column of pre-formatted per-row texts (aligned with `rows`, with an optional header) — useful for a per-row rate the cells cannot show. `update()` replaces cells and may replace `rows`, `columns`, `domain`, and `rowSummary`.\n\n```ts\nimport { createHeatmapChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:400px;height:320px';\ndocument.body.append(container);\n\nconst chart = createHeatmapChart(container, {\n a11y: { ariaLabel: 'Win rate by hero and region' },\n bins: [50, 75],\n cells: [\n { column: 'Forest', row: 'Aria', value: 90 },\n { column: 'Swamp', row: 'Aria', value: 40 },\n { column: 'Forest', row: 'Brom', value: 20 },\n { column: 'Swamp', row: 'Brom', value: 75 },\n ],\n columns: ['Forest', 'Swamp'],\n rows: ['Aria', 'Brom'],\n tooltip: true,\n valueFormat: (value) => `${value}%`,\n});\n\nchart.dispose();\n```\n\nWithout `bins` the ramp is continuous over the data's `[min, max]` domain (or an explicit `domain`); with `bins` each value maps to a discrete step and a swatch legend appears. `colorRange` sets the ramp low → high, `valueFormat` shapes in-cell values, tooltip values, and bin labels, and `showValues: false` hides the in-cell text.\n\n## Sparklines\n\nSparklines omit axes, margins, and legends. Choose `line`, `area`, or `bar` for numeric arrays, and `stack` for an array of `StackSegment` objects.\n\n```ts\nimport { createSparkline } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:240px;height:48px';\ndocument.body.append(container);\n\nconst chart = createSparkline(container, {\n a11y: { ariaLabel: 'Weekly orders' },\n data: [10, 14, 12, 18, 22],\n variant: 'area',\n});\n\nchart.update([10, 14, 12, 18, 22, 25]);\nchart.dispose();\n```\n\nFor a stacked sparkline, each segment can set `value`, `color`, and `label`. Sparklines do not offer keyboard navigation, a tooltip, or a live value announcer. Add a visible value or summary when the trend conveys important information.\n\n## Interaction\n\nSet `tooltip: true` to show Prism's default tooltip, or pass a `TooltipConfig` to format its content. `titleFormat` and `valueFormat` shape the default comparison tooltip on line, area, and bar charts—the title from the focused key and each row's value—without rebuilding its markup, and the same formatting is applied to the tooltip's spoken summary. A `render` callback receives the active `Datum` and `Series` and replaces the whole body, taking precedence over the formatters. Returned strings are inserted as text; return a DOM `Node` for structured content.\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst compact = new Intl.NumberFormat(undefined, { notation: 'compact' });\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n\nconst chart = createLineChart(container, {\n series: [{ data: [{ key: 11, value: 128000 }], name: 'EC2' }],\n tooltip: {\n titleFormat: (key) => months[Number(key)] ?? String(key),\n valueFormat: (value) => compact.format(value),\n },\n});\n\nchart.dispose();\n```\n\n`onHover` receives an event while a point, category, slice, or radar axis is active, then `null` when the interaction clears. `onClick` receives the selected event. For line, area, and bar charts, `ChartEvent.values` contains each series' datum at that shared key; a missing datum is `undefined`. Scatter events are `ChartEvent` objects without `values`; pie, radar, and sparkline use their chart-specific event types.\n\n`crosshair` is available on line, area, and scatter charts. By default it shows a vertical guide and snaps the line to the nearest datum. Set `horizontal: true` to add a horizontal guide or `vertical: false` to hide the vertical one. Set `snap: false` to make the guide follow the pointer; tooltip and callback data still come from the nearest datum.\n\n### Keyboard and Announcements\n\nSet `a11y: { ariaLabel }` on an informative chart. Prism gives the SVG `role=\"img\"`, an accessible name, and keyboard focus. Arrow keys move among chart data; `Home` and `End` move to the first and last item where supported; `Enter` or `Space` activates an item when an `onClick` callback is configured; `Escape` clears the active selection. Sparklines do not support keyboard navigation.\n\nWhen `a11y` is omitted, or set to `{ decorative: true }`, the SVG is marked `aria-hidden=\"true\"` and does not enter the keyboard tab order. Only mark charts decorative when their information is available elsewhere. Interactive cartesian, pie, radar, and heatmap charts use the tooltip as a polite live region when enabled; otherwise they announce active values in `.prism-live`. Sparklines have no live value announcements, so provide an equivalent visible value or summary.\n\n## Animation\n\nChart motion is enabled by default, with a 300 ms duration per animated lane (radar uses 400 ms). Pass `transition: false` to render updates synchronously, or pass `true` to state the default explicitly.\n\n```ts\nimport { createBarChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createBarChart(container, {\n series: [\n {\n data: [\n { key: 'A', value: 4 },\n { key: 'B', value: 7 },\n ],\n name: 'Count',\n },\n ],\n transition: { duration: 500, easing: 'ease-out', preference: 'system' },\n});\n\nchart.dispose();\n```\n\nColumns grow together from their baseline by default over 300 ms. Lines trace their final curve over 420 ms, uncovering point markers along the way without fading or shifting the series. Line data updates retain the default 300 ms geometry transition; an explicit `duration` overrides both timings.\n\n`preference: 'system'` (the default) disables JavaScript motion when the user prefers reduced motion. Use `'always'` to ignore that preference or `'never'` to disable motion. `stagger` sets an optional delay between bars, entering scatter points (in x order), or radar series; bar and scatter charts cap the effective delay so many marks do not add unbounded time. Named easing values are `ease-in`, `ease-in-out`, `ease-out`, `back-out`, `expo-out`, and `linear`; you can also provide an easing function.\n\n## Responsive Layout and Lifecycle\n\nSize the host with CSS. Prism observes its content box and updates the SVG dimensions and chart layout when it changes. Bar, line, and scatter resize redraws apply immediately rather than animating between layout sizes; entrance animations and explicit data-update transitions remain enabled. The legend is rendered as container chrome outside the SVG and included in resize calculations.\n\nCall `dispose()` when the view no longer owns the chart. Disposal is idempotent: it removes the SVG, tooltip, legend, and resize observation, stops in-flight chart motion, and aborts `disposalSignal`. `chart[Symbol.dispose]()` calls the same cleanup method.\n\nUse `tap()` when external code needs resize or dispose notifications rather than observing the chart DOM itself:\n\n```ts\nimport { createLineChart } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nconst chart = createLineChart(container, {\n series: [{ data: [{ key: 1, value: 10 }], name: 'Revenue' }],\n});\nconst stopObserving = chart.tap((event) => {\n if (event.type === 'resize') console.log(event.width, event.height);\n if (event.type === 'dispose') console.log('chart disposed');\n});\n\nstopObserving();\nchart.dispose();\n```\n\n`tap()` returns an unsubscribe function and accepts `{ signal }` for automatic unsubscription. A listener exception is swallowed by the observer so it cannot interrupt chart rendering.\n\n## Theming\n\nImport the stylesheet once to load Prism's structural styles, default tokens, dark-mode rules, and reduced-motion CSS. You can override any CSS custom property on an ancestor of the chart.\n\n```css\n.dashboard-chart {\n --prism-color-1: #2563eb;\n --prism-color-2: #16a34a;\n --prism-grid-color: #94a3b8;\n --prism-line-width: 3;\n --prism-text-color: #172033;\n --prism-tooltip-bg: #111827;\n}\n```\n\n`setTheme()` provides a typed subset of theme properties. A scoped call writes inline values on the provided element; omit `scope` to write them to `document.documentElement`. Inline values override stylesheet tokens until reset.\n\n```ts\nimport { resetTheme, setTheme } from '@vielzeug/prism';\n\nconst container = document.createElement('div');\ncontainer.style.cssText = 'width:640px;height:320px';\ndocument.body.append(container);\n\nsetTheme({ colors: ['#2563eb', '#16a34a'], fontFamily: 'Inter, sans-serif' }, { scope: container });\n// Call resetTheme({ scope: container }) when this scoped theme is no longer needed.\nresetTheme({ scope: container });\n```\n\n### Available Tokens\n\nThe stylesheet defines defaults for the following token groups. Pie-label color and size are read with fallback values by the renderer but are not declared in the base token block. Set a token on the chart container or an ancestor to scope an override.\n\n| Group | CSS custom properties |\n| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Palette and surfaces | `--prism-color-1` through `--prism-color-8`, `--prism-bg`, `--prism-border-radius` |\n| Axes and grid | `--prism-axis-color`, `--prism-axis-width`, `--prism-grid-color`, `--prism-grid-width`, `--prism-grid-dash`, `--prism-grid-opacity` |\n| Text | `--prism-font-family`, `--prism-font-size`, `--prism-font-size-label`, `--prism-font-size-title`, `--prism-font-weight`, `--prism-font-weight-title`, `--prism-text-color`, `--prism-text-color-secondary` |\n| Tooltip | `--prism-tooltip-bg`, `--prism-tooltip-color`, `--prism-tooltip-border`, `--prism-tooltip-radius`, `--prism-tooltip-padding`, `--prism-tooltip-shadow`, `--prism-tooltip-font-size` |\n| Crosshair | `--prism-crosshair-color`, `--prism-crosshair-width`, `--prism-crosshair-dash`, `--prism-crosshair-opacity` |\n| Points | `--prism-point-radius`, `--prism-point-radius-hover`, `--prism-point-stroke-width`, `--prism-point-stroke` |\n| Bars | `--prism-bar-radius`, `--prism-bar-hover-opacity`, `--prism-bar-gap`, `--prism-bar-band-fill`, `--prism-bar-band-opacity`, `--prism-bar-dim-opacity` |\n| Areas and lines | `--prism-area-opacity`, `--prism-area-stroke-width`, `--prism-area-gradient-start`, `--prism-area-gradient-end`, `--prism-line-width`, `--prism-line-width-hover` |\n| Interaction | `--prism-dim-opacity`, `--prism-active-point-radius`, `--prism-point-ring`, `--prism-focus-color` |\n| Sparklines | `--prism-spark-fill-opacity`, `--prism-spark-gradient-start`, `--prism-spark-gradient-end` |\n| Radar | `--prism-radar-grid-color`, `--prism-radar-grid-opacity`, `--prism-radar-band-fill`, `--prism-radar-band-opacity`, `--prism-radar-spoke-color`, `--prism-radar-fill-opacity`, `--prism-radar-stroke-width`, `--prism-radar-point-radius`, `--prism-radar-point-radius-active`, `--prism-radar-label-color`, `--prism-radar-label-size`, `--prism-radar-value-color`, `--prism-radar-value-size`, `--prism-radar-dim-opacity` |\n| Heatmap | `--prism-heatmap-label-color`, `--prism-heatmap-label-size`, `--prism-heatmap-value-size`, `--prism-heatmap-highlight-color` |\n| Motion | `--prism-duration-fast`, `--prism-duration`, `--prism-duration-slow`, `--prism-ease`, `--prism-ease-spring`, `--prism-transition`, `--prism-transition-fast` |\n| Legend and pie labels | `--prism-legend-gap`, `--prism-legend-dot-size`, `--prism-legend-font-size`, `--prism-pie-label-color`, `--prism-pie-label-size` |\n\nThe default palette and structural colors adapt to `prefers-color-scheme: dark`, `html.dark`, or `[data-prism-theme='dark']` on an ancestor. Scoped inline values set with `setTheme()` take precedence in either mode. The stylesheet also provides `prefers-reduced-motion` overrides for CSS transitions.\n\n## Errors and Diagnostics\n\nPrism throws `PrismRenderError` when the container is not a DOM element, when initial rendering fails, or when `update()` is called on a disposed chart. A wrapped initial-render error exposes its cause. Use `PrismError` to catch all Prism-originated errors.\n\nEmpty or malformed data is not always an exception. Depending on the chart, Prism may draw nothing or emit a development-only `console.warn`; examples include an unknown `bandScale` category, negative values in stacked bars, and radar axes with fewer than three entries or duplicate keys. Correct the input rather than relying on a warning for validation.\n\n## Framework Integration\n\nPrism has no React, Vue, or Svelte adapter. In any framework, give Prism a host element after it is mounted, call `update()` when data changes, and call `dispose()` before the host is removed. This plain DOM pattern shows the ownership boundary without depending on a framework-specific lifecycle API:\n\n```ts\nimport { createLineChart, type LineSeriesConfig } from '@vielzeug/prism';\n\nfunction mountChart(host: HTMLElement, series: LineSeriesConfig[]) {\n const chart = createLineChart(host, { a11y: { ariaLabel: 'Revenue' }, series });\n\n return {\n update(next: LineSeriesConfig[]) {\n chart.update(next);\n },\n dispose() {\n chart.dispose();\n },\n };\n}\n\nconst host = document.createElement('div');\nhost.style.cssText = 'width:640px;height:320px';\ndocument.body.append(host);\nconst view = mountChart(host, [{ data: [{ key: 1, value: 10 }], name: 'Revenue' }]);\nview.update([\n {\n data: [\n { key: 1, value: 10 },\n { key: 2, value: 15 },\n ],\n name: 'Revenue',\n },\n]);\nview.dispose();\n```\n\nThe application owns its state and host; Prism owns only the SVG, observer, and optional overlay elements it creates.\n\n## Working with Other Vielzeug Libraries\n\nUse Refine components for dashboard controls and keep Prism in a sized host element. Map Refine theme tokens to Prism CSS custom properties or call `setTheme()` with a scoped element; Prism does not require a Refine adapter. Prism uses Orbit internally to place tooltips, so chart users do not need to create Orbit floating elements for the built-in tooltip.\n\n## Best Practices\n\n- Give the host a non-zero size before creating a chart.\n- Set `a11y.ariaLabel` when a chart communicates information.\n- Use `Date` or number keys consistently across each line or area chart.\n- Pass the complete new data value to `update()`.\n- Keep chart options fixed after creation; recreate the chart to change them.\n- Dispose the handle when its host leaves the owning view.\n- Use `transition: false` for deterministic synchronous rendering.\n- Prefer CSS custom properties for reusable theme overrides.\n",
7
- "examples": "---\ntitle: 'Prism: Examples'\ndescription: Focused recipes for creating, updating, interacting with, and theming Prism charts.\n---\n\n- [Create a line chart](./examples/line-chart.md)\n- [Plot a time series](./examples/time-series.md)\n- [Plot a scatter chart](./examples/scatter-chart.md)\n- [Compare categories with a bar chart](./examples/bar-chart.md)\n- [Render compact charts](./examples/compact-charts.md)\n- [Compare hero stats with a radar chart](./examples/radar-chart.md)\n- [Show a win-rate matrix with a heatmap](./examples/heatmap-chart.md)\n- [Update chart data](./examples/update-data.md)\n- [Sync a details panel with hover](./examples/hover-details.md)\n- [Render a custom tooltip](./examples/custom-tooltip.md)\n- [Match charts to your design system](./examples/theming.md)\n"
8
- },
9
- "examples": [
10
- {
11
- "id": "bar-chart",
12
- "code": "import { createBarChart } from '@vielzeug/prism'\n\nconst host = document.createElement('div')\nhost.style.cssText = 'width: 100%; max-width: 640px; height: 300px'\ndocument.body.append(host)\n\nconst chart = createBarChart(host, {\n a11y: { ariaLabel: 'Downloads per package' },\n legend: true,\n series: [\n { data: [{ key: 'ore', value: 420 }, { key: 'prism', value: 310 }, { key: 'refine', value: 505 }], name: 'This week' },\n { data: [{ key: 'ore', value: 380 }, { key: 'prism', value: 295 }, { key: 'refine', value: 440 }], name: 'Last week' },\n ],\n tooltip: true,\n})\n\nconsole.log('rendered a grouped bar chart — hover the bars')\nvoid chart",
13
- "name": "Bar chart"
14
- },
15
- {
16
- "id": "line-chart",
17
- "code": "import { createLineChart } from '@vielzeug/prism'\n\n// Charts render into any element and update through the returned handle:\n// update() replaces the whole series array, transitions animate the delta.\nconst host = document.createElement('div')\nhost.style.cssText = 'width: 100%; max-width: 640px; height: 320px'\ndocument.body.append(host)\n\nconst months = [1, 2, 3, 4, 5, 6]\nconst revenue = [12, 19, 15, 25, 32, 30]\n\nconst chart = createLineChart(host, {\n a11y: { ariaLabel: 'Revenue and costs by month' },\n legend: true,\n series: [\n { curve: 'monotone', data: months.map((m, i) => ({ key: m, value: revenue[i] })), name: 'Revenue', showPoints: true },\n ],\n tooltip: true,\n})\n\n// Explicit updates: swap in a second series after a moment, like live data would.\nsetTimeout(() => {\n chart.update([\n { curve: 'monotone', data: months.map((m, i) => ({ key: m, value: revenue[i] })), name: 'Revenue', showPoints: true },\n { color: '#e05252', curve: 'monotone', data: months.map((m) => ({ key: m, value: m * 4 + 5 })), name: 'Costs' },\n ])\n console.log('added a second series via chart.update()')\n}, 1200)",
18
- "name": "Line chart"
19
- }
20
- ],
21
- "typeSignatures": {
22
- "EasingFn": "export type { EasingFn, EasingName } from './animation/easing';",
23
- "EasingName": "export type { EasingFn, EasingName } from './animation/easing';",
24
- "createAreaChart": "export { createAreaChart } from './charts/area';",
25
- "createBarChart": "export { createBarChart } from './charts/bar';",
26
- "createHeatmapChart": "export { createHeatmapChart } from './charts/heatmap';",
27
- "createLineChart": "export { createLineChart } from './charts/line';",
28
- "createPieChart": "export { createPieChart } from './charts/pie';",
29
- "createRadarChart": "export { createRadarChart } from './charts/radar';",
30
- "createScatterChart": "export { createScatterChart } from './charts/scatter';",
31
- "createSparkline": "export { createSparkline } from './charts/sparkline';",
32
- "PrismError": "export { PrismError, PrismRenderError } from './errors';",
33
- "PrismRenderError": "export { PrismError, PrismRenderError } from './errors';",
34
- "bandScale": "export { bandScale } from './scales/band';",
35
- "linearScale": "export { linearScale } from './scales/linear';",
36
- "timeScale": "export { timeScale } from './scales/time';",
37
- "BandScaleConfig": "export type { BandScaleConfig, LinearScaleConfig, TimeScaleConfig } from './scales/types';",
38
- "LinearScaleConfig": "export type { BandScaleConfig, LinearScaleConfig, TimeScaleConfig } from './scales/types';",
39
- "TimeScaleConfig": "export type { BandScaleConfig, LinearScaleConfig, TimeScaleConfig } from './scales/types';",
40
- "resetTheme": "export { resetTheme, seriesColor, setTheme } from './theme';",
41
- "seriesColor": "export { resetTheme, seriesColor, setTheme } from './theme';",
42
- "setTheme": "export { resetTheme, seriesColor, setTheme } from './theme';",
43
- "AreaChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
44
- "AreaSeriesConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
45
- "AxisConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
46
- "AxisPosition": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
47
- "BandScale": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
48
- "BarChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
49
- "BarSeriesConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
50
- "BarVariant": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
51
- "BaseChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
52
- "ChartA11y": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
53
- "ChartDimensions": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
54
- "ChartEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
55
- "ChartHandle": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
56
- "ChartMargin": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
57
- "ContinuousDatum": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
58
- "CrosshairConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
59
- "Datum": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
60
- "GridConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
61
- "HeatmapCell": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
62
- "HeatmapChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
63
- "HeatmapData": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
64
- "HeatmapEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
65
- "HorizontalAxisPosition": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
66
- "LegendConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
67
- "LegendPosition": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
68
- "LineChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
69
- "LineSeriesConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
70
- "PieChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
71
- "PieEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
72
- "PieSliceConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
73
- "PieVariant": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
74
- "PrismEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
75
- "PrismTheme": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
76
- "RadarAxisConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
77
- "RadarAxisValue": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
78
- "RadarChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
79
- "RadarEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
80
- "RadarGridConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
81
- "RadarSeriesConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
82
- "Scale": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
83
- "ScatterChartConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
84
- "ScatterSeriesConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
85
- "Series": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
86
- "SeriesValue": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
87
- "SparklineConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
88
- "SparklineEvent": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
89
- "SparklineVariant": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
90
- "StackSegment": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
91
- "ThemeScope": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
92
- "TooltipConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
93
- "TransitionConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
94
- "TransitionOption": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
95
- "VerticalAxisPosition": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
96
- "XAxisConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';",
97
- "YAxisConfig": "export type {\n AreaChartConfig,\n AreaSeriesConfig,\n AxisConfig,\n AxisPosition,\n BandScale,\n BarChartConfig,\n BarSeriesConfig,\n BarVariant,\n BaseChartConfig,\n ChartA11y,\n ChartDimensions,\n ChartEvent,\n ChartHandle,\n ChartMargin,\n ContinuousDatum,\n CrosshairConfig,\n Datum,\n GridConfig,\n HeatmapCell,\n HeatmapChartConfig,\n HeatmapData,\n HeatmapEvent,\n HorizontalAxisPosition,\n LegendConfig,\n LegendPosition,\n LineChartConfig,\n LineSeriesConfig,\n PieChartConfig,\n PieEvent,\n PieSliceConfig,\n PieVariant,\n PrismEvent,\n PrismTheme,\n RadarAxisConfig,\n RadarAxisValue,\n RadarChartConfig,\n RadarEvent,\n RadarGridConfig,\n RadarSeriesConfig,\n Scale,\n ScatterChartConfig,\n ScatterSeriesConfig,\n Series,\n SeriesValue,\n SparklineConfig,\n SparklineEvent,\n SparklineVariant,\n StackSegment,\n ThemeScope,\n TooltipConfig,\n TransitionConfig,\n TransitionOption,\n VerticalAxisPosition,\n XAxisConfig,\n YAxisConfig,\n} from './types';"
98
- }
99
- }