@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/dist/index.d.ts +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/types/layout.ts +2 -0
- package/src/types/spec.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -1058,6 +1058,12 @@ interface SankeySpec {
|
|
|
1058
1058
|
* Defaults to 'auto'.
|
|
1059
1059
|
*/
|
|
1060
1060
|
nodeLabelAlign?: 'auto' | 'left' | 'right';
|
|
1061
|
+
/**
|
|
1062
|
+
* Explicit vertical ordering of nodes. An array of node IDs listed from
|
|
1063
|
+
* top to bottom. Nodes sharing the same column are sorted by their position
|
|
1064
|
+
* in this array. Nodes not in the array are placed after those that are.
|
|
1065
|
+
*/
|
|
1066
|
+
nodeSort?: string[];
|
|
1061
1067
|
/** Editorial chrome (title, subtitle, source, byline, footer). */
|
|
1062
1068
|
chrome?: Chrome;
|
|
1063
1069
|
/** Legend display configuration. */
|
|
@@ -2040,6 +2046,8 @@ interface ResolvedLabel {
|
|
|
2040
2046
|
style: TextStyle;
|
|
2041
2047
|
/** Whether this label is visible or was demoted to tooltip-only by collision detection. */
|
|
2042
2048
|
visible: boolean;
|
|
2049
|
+
/** Maximum available width for the label text. When set, the renderer should wrap or truncate. */
|
|
2050
|
+
maxWidth?: number;
|
|
2043
2051
|
/** If not at the anchor point, draw a connector line from label to anchor. */
|
|
2044
2052
|
connector?: {
|
|
2045
2053
|
/** Connector start (at the label). */
|