@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/dist/index.d.ts +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/types/spec.ts +13 -0
package/dist/index.d.ts
CHANGED
|
@@ -321,6 +321,12 @@ interface EncodingChannel {
|
|
|
321
321
|
axis?: AxisConfig;
|
|
322
322
|
/** Scale configuration. */
|
|
323
323
|
scale?: ScaleConfig;
|
|
324
|
+
/**
|
|
325
|
+
* Stacking behavior for quantitative channels (Vega-Lite aligned).
|
|
326
|
+
* - undefined | true | 'zero': stack (default, cumulative segments)
|
|
327
|
+
* - null | false: no stacking (grouped/dodged side-by-side)
|
|
328
|
+
*/
|
|
329
|
+
stack?: boolean | 'zero' | null;
|
|
324
330
|
}
|
|
325
331
|
/**
|
|
326
332
|
* Encoding object mapping visual channels to data fields.
|
|
@@ -943,6 +949,13 @@ interface SankeySpec {
|
|
|
943
949
|
linkStyle?: SankeyLinkColor;
|
|
944
950
|
/** Link fill opacity (0-1). Defaults to 0.5 in light mode, 0.75 in dark mode. */
|
|
945
951
|
linkOpacity?: number;
|
|
952
|
+
/**
|
|
953
|
+
* Which side of each node to place labels. 'auto' uses the default heuristic
|
|
954
|
+
* (left-column right, right-column left, middle right). 'right' forces all
|
|
955
|
+
* labels to the right of their nodes. 'left' forces all labels to the left.
|
|
956
|
+
* Defaults to 'auto'.
|
|
957
|
+
*/
|
|
958
|
+
nodeLabelAlign?: 'auto' | 'left' | 'right';
|
|
946
959
|
/** Editorial chrome (title, subtitle, source, byline, footer). */
|
|
947
960
|
chrome?: Chrome;
|
|
948
961
|
/** Legend display configuration. */
|