@univerjs-pro/engine-chart 0.10.6 → 0.10.7

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.
@@ -72,7 +72,9 @@ export declare enum ChartTypeBits {
72
72
  /** Waterfall chart */
73
73
  Waterfall = 8192,
74
74
  /** Pareto chart */
75
- Pareto = 16384
75
+ Pareto = 16384,
76
+ /** Sankey chart */
77
+ Sankey = 32768
76
78
  }
77
79
  export declare enum CategoryType {
78
80
  Linear = "Linear",
@@ -0,0 +1,2 @@
1
+ import { EChartSpec, IChartRenderSpecConverter } from '../../../types';
2
+ export declare const sankeyChartConverter: IChartRenderSpecConverter<EChartSpec>;
@@ -0,0 +1,2 @@
1
+ import { EChartRenderSpecOperator } from '../../../types';
2
+ export declare const sankeyChartOperator: EChartRenderSpecOperator;
@@ -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;
@@ -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
  /**