@opendata-ai/openchart-core 6.17.0 → 6.19.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.17.0",
3
+ "version": "6.19.0",
4
4
  "description": "Types, theme, colors, accessibility, and utilities for openchart",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -490,6 +490,8 @@ export interface ResolvedLabel {
490
490
  style: TextStyle;
491
491
  /** Whether this label is visible or was demoted to tooltip-only by collision detection. */
492
492
  visible: boolean;
493
+ /** Maximum available width for the label text. When set, the renderer should wrap or truncate. */
494
+ maxWidth?: number;
493
495
  /** If not at the anchor point, draw a connector line from label to anchor. */
494
496
  connector?: {
495
497
  /** Connector start (at the label). */
package/src/types/spec.ts CHANGED
@@ -1072,6 +1072,12 @@ export interface SankeySpec {
1072
1072
  * Defaults to 'auto'.
1073
1073
  */
1074
1074
  nodeLabelAlign?: 'auto' | 'left' | 'right';
1075
+ /**
1076
+ * Explicit vertical ordering of nodes. An array of node IDs listed from
1077
+ * top to bottom. Nodes sharing the same column are sorted by their position
1078
+ * in this array. Nodes not in the array are placed after those that are.
1079
+ */
1080
+ nodeSort?: string[];
1075
1081
  /** Editorial chrome (title, subtitle, source, byline, footer). */
1076
1082
  chrome?: Chrome;
1077
1083
  /** Legend display configuration. */