@opendata-ai/openchart-core 6.18.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/dist/index.d.ts CHANGED
@@ -2046,6 +2046,8 @@ interface ResolvedLabel {
2046
2046
  style: TextStyle;
2047
2047
  /** Whether this label is visible or was demoted to tooltip-only by collision detection. */
2048
2048
  visible: boolean;
2049
+ /** Maximum available width for the label text. When set, the renderer should wrap or truncate. */
2050
+ maxWidth?: number;
2049
2051
  /** If not at the anchor point, draw a connector line from label to anchor. */
2050
2052
  connector?: {
2051
2053
  /** Connector start (at the label). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-core",
3
- "version": "6.18.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). */