@opendata-ai/openchart-core 8.9.1 → 9.0.0-rc.2

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.
package/README.md CHANGED
@@ -22,7 +22,7 @@ const columns = columnChart(data, 'month', 'revenue');
22
22
  const bars = barChart(data, 'category', 'count');
23
23
  ```
24
24
 
25
- All chart builders accept an optional `options` argument for color encoding, annotations, chrome (title/subtitle/source), theme overrides, and dark mode.
25
+ All chart builders accept an optional `options` argument for color encoding, annotations, chrome (title/subtitle/source), theme overrides, and responsive behavior. Dark mode is a mount/component option, not a spec field.
26
26
 
27
27
  ```typescript
28
28
  const spec = lineChart(data, 'date', 'value', {
@@ -122,7 +122,8 @@ function describe(spec: VizSpec): string {
122
122
 
123
123
  Beyond spec builders, this package provides:
124
124
 
125
- - **Theme system** - `DEFAULT_THEME`, `resolveTheme()`, `adaptTheme()` for dark mode adaptation
125
+ - **Theme system** - `DEFAULT_THEME`, `resolveTheme()`, `mergeThemeConfig()` for deep-merging authored theme layers, `adaptTheme()` for dark mode adaptation
126
+ - **Editing** - `applyEditTransaction()` applies the `EditTransaction` emitted by `onEdit` and returns the new spec plus its inverse
126
127
  - **Color palettes** - `CATEGORICAL_PALETTE`, `SEQUENTIAL_PALETTES`, `DIVERGING_PALETTES`
127
128
  - **Accessibility** - `generateAltText()`, `generateAriaLabels()`, contrast ratio utilities
128
129
  - **Formatting** - `formatNumber()`, `formatDate()`, `abbreviateNumber()`