rapid-spreadjs 1.0.16 → 1.0.18
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.cjs.js +74 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +74 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/types/echarts.d.ts +91 -0
- package/dist/utils/echarts-all.d.ts +2394 -0
- package/dist/utils/echarts.d.ts +39 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as echarts from 'echarts';
|
|
2
|
+
import { type EChartsUtilsConfigModel } from '../types/echarts';
|
|
3
|
+
/**
|
|
4
|
+
* ECharts图表工具类
|
|
5
|
+
*/
|
|
6
|
+
export declare const EChartsUtils: {
|
|
7
|
+
/**
|
|
8
|
+
* 创建图表
|
|
9
|
+
* @param GC GC对象
|
|
10
|
+
* @param spread 工作簿对象
|
|
11
|
+
* @param sheet 工作表对象
|
|
12
|
+
* @param config 折现配置
|
|
13
|
+
* @param isHideChart 是否隐藏图表
|
|
14
|
+
*/
|
|
15
|
+
create: (GC: any, spread: any, sheet: any, config: EChartsUtilsConfigModel, isHideChart?: boolean) => Promise<{
|
|
16
|
+
fObj: any;
|
|
17
|
+
fObjPosition: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
w: number;
|
|
21
|
+
h: number;
|
|
22
|
+
};
|
|
23
|
+
ecObj: echarts.ECharts;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* 初始化图表
|
|
27
|
+
* @param spread 工作簿对象
|
|
28
|
+
* @param sheet 工作表对象
|
|
29
|
+
* @param config 图表配置
|
|
30
|
+
* @param isHideChart 是否隐藏图表
|
|
31
|
+
*/
|
|
32
|
+
initChart: (spread: any, sheet: any, config: EChartsUtilsConfigModel, isHideChart?: boolean) => echarts.ECharts;
|
|
33
|
+
/**
|
|
34
|
+
* 获取ECharts对象
|
|
35
|
+
* @param chartId 图表ID
|
|
36
|
+
* @returns 返回ECharts对象,如果不存在则返回null
|
|
37
|
+
*/
|
|
38
|
+
getEChartsObj: (chartId: string) => echarts.ECharts | null;
|
|
39
|
+
};
|