@univerjs-pro/engine-chart 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060614
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/enum.d.ts +3 -1
- package/lib/types/model/mode-converter/converters/sankey-chart-converter.d.ts +2 -0
- package/lib/types/model/mode-converter/render-spec-operators/sankey-chart-operator.d.ts +2 -0
- package/lib/types/types.d.ts +16 -0
- package/lib/types/util.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/types/enum.d.ts
CHANGED
package/lib/types/types.d.ts
CHANGED
|
@@ -109,6 +109,22 @@ export interface IChartData {
|
|
|
109
109
|
min: number;
|
|
110
110
|
isValidateRelationSource: boolean;
|
|
111
111
|
};
|
|
112
|
+
sankeyData?: {
|
|
113
|
+
links: ISankeyLink[];
|
|
114
|
+
nodes: ISankeyNode[];
|
|
115
|
+
categories: string[];
|
|
116
|
+
max: number;
|
|
117
|
+
min: number;
|
|
118
|
+
isValidateSankeySource: boolean;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export interface ISankeyNode {
|
|
122
|
+
name: string;
|
|
123
|
+
}
|
|
124
|
+
export interface ISankeyLink {
|
|
125
|
+
source: string;
|
|
126
|
+
target: string;
|
|
127
|
+
value: number;
|
|
112
128
|
}
|
|
113
129
|
export interface IChartDataCategory {
|
|
114
130
|
index: number;
|
package/lib/types/util.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const chartBitsUtils: {
|
|
|
3
3
|
has(bit: number, attribute: number): boolean;
|
|
4
4
|
baseOn(bit: number, base: number): boolean;
|
|
5
5
|
remove(bit: number, attribute: number): number;
|
|
6
|
-
chartBitToString(bit: ChartTypeBits): "" | "line" | "pie" | "bar" | "scatter" | "radar" | "graph" | "funnel" | "combination" | "wordCloud";
|
|
6
|
+
chartBitToString(bit: ChartTypeBits): "" | "line" | "pie" | "bar" | "scatter" | "radar" | "graph" | "funnel" | "sankey" | "combination" | "wordCloud";
|
|
7
7
|
};
|
|
8
8
|
export declare const setProperty: (data: Record<string, any>, propertyPath: string, value: any) => void;
|
|
9
9
|
/**
|