rapid-spreadjs 1.0.14 → 1.0.16

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,66 @@
1
+ import { type CellModel } from './sheet';
2
+ /**
3
+ * 折线配置
4
+ */
5
+ export type EChartsUtilsConfigModel = CellModel & {
6
+ /**
7
+ * 图表类型
8
+ */
9
+ chartType: number;
10
+ /**
11
+ * 图表Id
12
+ */
13
+ chartId: string;
14
+ /**
15
+ * 图表标题
16
+ */
17
+ chartTitle: string;
18
+ /**
19
+ * 图表x轴名称
20
+ */
21
+ chartXName: string;
22
+ /**
23
+ * 图表y轴名称
24
+ */
25
+ chartYName: string;
26
+ /**
27
+ * 折线配置集合,具体实行查看类型EChartsUtilsChartLinesJsonModel
28
+ */
29
+ chartLinesJson: string;
30
+ /**
31
+ * 图表扩展配置(每个图表可能存在的特殊配置)
32
+ */
33
+ chartExtJson?: string;
34
+ };
35
+ /**
36
+ * 折线实体
37
+ */
38
+ export type EChartsUtilsChartLinesJsonModel = {
39
+ /** 图例名称,如:折线1 */
40
+ legend?: string;
41
+ /** 折线颜色,如:#409EFF */
42
+ lineColor?: string;
43
+ /** x轴范围,如:='Sheet1'!B5:G5 */
44
+ xRangeStr?: string;
45
+ /** x轴单元格集合,如:[{"row":0,"col":0,"rowCount":1,"colCount":1}] */
46
+ xCells?: CellModel[];
47
+ /** x轴最小值 */
48
+ xMin?: number;
49
+ /** x轴最大值 */
50
+ xMax?: number;
51
+ /** y轴范围,如:='Sheet1'!B6:G6 */
52
+ yRangeStr?: string;
53
+ /** y轴单元格集合,如:[{"row":0,"col":0,"rowCount":1,"colCount":1}] */
54
+ yCells?: CellModel[];
55
+ /** y轴最小值 */
56
+ yMin?: number;
57
+ /** y轴最大值 */
58
+ yMax?: number;
59
+ /**
60
+ * 当前折线数据源来源的Sheet名称,主要用于跨Sheet的时候使用,默认情况下一般都是当前操作的Sheet
61
+ * 如果当前属性有值,则说明数据来源是跨Sheet的,没有则是当前操作的Sheet
62
+ * 这样,我们就可以使用const curSheetX = spread.getSheetFromName(item.sheetNameX);获取到具体Sheet对象
63
+ */
64
+ sheetNameX?: string;
65
+ sheetNameY?: string;
66
+ };