rapid-spreadjs 1.0.16 → 1.0.17

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.
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",