@opendata-ai/openchart-core 6.8.0 → 6.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-core",
3
- "version": "6.8.0",
3
+ "version": "6.10.0",
4
4
  "description": "Types, theme, colors, accessibility, and utilities for openchart",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
package/src/types/spec.ts CHANGED
@@ -226,6 +226,12 @@ export interface EncodingChannel {
226
226
  axis?: AxisConfig;
227
227
  /** Scale configuration. */
228
228
  scale?: ScaleConfig;
229
+ /**
230
+ * Stacking behavior for quantitative channels (Vega-Lite aligned).
231
+ * - undefined | true | 'zero': stack (default, cumulative segments)
232
+ * - null | false: no stacking (grouped/dodged side-by-side)
233
+ */
234
+ stack?: boolean | 'zero' | null;
229
235
  }
230
236
 
231
237
  /**
@@ -928,6 +934,13 @@ export interface SankeySpec {
928
934
  linkStyle?: SankeyLinkColor;
929
935
  /** Link fill opacity (0-1). Defaults to 0.5 in light mode, 0.75 in dark mode. */
930
936
  linkOpacity?: number;
937
+ /**
938
+ * Which side of each node to place labels. 'auto' uses the default heuristic
939
+ * (left-column right, right-column left, middle right). 'right' forces all
940
+ * labels to the right of their nodes. 'left' forces all labels to the left.
941
+ * Defaults to 'auto'.
942
+ */
943
+ nodeLabelAlign?: 'auto' | 'left' | 'right';
931
944
  /** Editorial chrome (title, subtitle, source, byline, footer). */
932
945
  chrome?: Chrome;
933
946
  /** Legend display configuration. */