logisheets 1.7.1 → 1.8.0
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/src/api/worksheet.d.ts +8 -1
- package/dist/src/api/worksheet.js +9 -0
- package/dist/src/bindings/chart_info.d.ts +20 -0
- package/dist/src/bindings/chart_info.js +2 -0
- package/dist/src/bindings/chart_series_info.d.ts +5 -0
- package/dist/src/bindings/chart_series_info.js +2 -0
- package/dist/src/bindings/create_chart.d.ts +63 -0
- package/dist/src/bindings/create_chart.js +103 -0
- package/dist/src/bindings/create_chart_series.d.ts +14 -0
- package/dist/src/bindings/create_chart_series.js +21 -0
- package/dist/src/bindings/delete_chart.d.ts +14 -0
- package/dist/src/bindings/delete_chart.js +23 -0
- package/dist/src/bindings/edit_payload.d.ts +16 -0
- package/dist/src/bindings/index.d.ts +8 -0
- package/dist/src/bindings/index.js +8 -0
- package/dist/src/bindings/move_chart.d.ts +46 -0
- package/dist/src/bindings/move_chart.js +79 -0
- package/dist/src/bindings/rpc_get_charts_params.d.ts +3 -0
- package/dist/src/bindings/rpc_get_charts_params.js +2 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +3 -0
- package/dist/src/bindings/update_chart.d.ts +22 -0
- package/dist/src/bindings/update_chart.js +33 -0
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +1 -1
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput, Comment, CellImageInfo, DependentCell, CellRefRange, LinkInfo } from '../bindings';
|
|
1
|
+
import { BlockInfo, CellPosition, ColInfo, DisplayWindow, DisplayWindowWithStartPoint, RowInfo, Style, Value, CellInfo, SheetDimension, MergeCell, AppendixWithCell, ReproducibleCell, SheetCoordinate, CellInput, Comment, CellImageInfo, ChartInfo, DependentCell, CellRefRange, LinkInfo } from '../bindings';
|
|
2
2
|
import { Cell } from './cell';
|
|
3
3
|
import { Result } from './utils';
|
|
4
4
|
export declare class Worksheet {
|
|
@@ -84,6 +84,13 @@ export declare class Worksheet {
|
|
|
84
84
|
* transaction API (`SetCellImage` / `DeleteCellImage`).
|
|
85
85
|
*/
|
|
86
86
|
getCellImages(): Result<CellImageInfo[]>;
|
|
87
|
+
/**
|
|
88
|
+
* All charts anchored on this sheet. Each `ChartInfo` carries the from/to
|
|
89
|
+
* anchor cells (+ EMU offsets), the chart type, series with cached values,
|
|
90
|
+
* and legend/axis metadata. The renderer positions the chart from the
|
|
91
|
+
* anchor and re-reads live values from the source ranges.
|
|
92
|
+
*/
|
|
93
|
+
getCharts(): Result<ChartInfo[]>;
|
|
87
94
|
getFullyCoveredBlocks(rowIdx: number, colIdx: number, rowCnt: number, colCnt: number): Result<BlockInfo[]>;
|
|
88
95
|
private _id;
|
|
89
96
|
private _sheetId;
|
|
@@ -251,6 +251,15 @@ class Worksheet {
|
|
|
251
251
|
getCellImages() {
|
|
252
252
|
return rpc('getCellImages', { sheetIdx: this._sheetIdx }, this._id);
|
|
253
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* All charts anchored on this sheet. Each `ChartInfo` carries the from/to
|
|
256
|
+
* anchor cells (+ EMU offsets), the chart type, series with cached values,
|
|
257
|
+
* and legend/axis metadata. The renderer positions the chart from the
|
|
258
|
+
* anchor and re-reads live values from the source ranges.
|
|
259
|
+
*/
|
|
260
|
+
getCharts() {
|
|
261
|
+
return rpc('getCharts', { sheetIdx: this._sheetIdx }, this._id);
|
|
262
|
+
}
|
|
254
263
|
getFullyCoveredBlocks(rowIdx, colIdx, rowCnt, colCnt) {
|
|
255
264
|
return rpc('getFullyCoveredBlocks', {
|
|
256
265
|
sheetId: this._sheetId,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChartSeriesInfo } from './chart_series_info';
|
|
2
|
+
export interface ChartInfo {
|
|
3
|
+
chartId: string;
|
|
4
|
+
fromRow: number;
|
|
5
|
+
fromCol: number;
|
|
6
|
+
fromColOff: number;
|
|
7
|
+
fromRowOff: number;
|
|
8
|
+
toRow: number;
|
|
9
|
+
toCol: number;
|
|
10
|
+
toColOff: number;
|
|
11
|
+
toRowOff: number;
|
|
12
|
+
chartType: string;
|
|
13
|
+
stacked: boolean;
|
|
14
|
+
title?: string;
|
|
15
|
+
legendPos?: string;
|
|
16
|
+
categories: readonly string[];
|
|
17
|
+
series: readonly ChartSeriesInfo[];
|
|
18
|
+
catAxisTitle?: string;
|
|
19
|
+
valAxisTitle?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CreateChartSeries } from './create_chart_series';
|
|
2
|
+
export interface CreateChart {
|
|
3
|
+
sheetIdx: number;
|
|
4
|
+
chartId: string;
|
|
5
|
+
chartType: string;
|
|
6
|
+
fromRow: number;
|
|
7
|
+
fromCol: number;
|
|
8
|
+
fromColOff: number;
|
|
9
|
+
fromRowOff: number;
|
|
10
|
+
toRow: number;
|
|
11
|
+
toCol: number;
|
|
12
|
+
toColOff: number;
|
|
13
|
+
toRowOff: number;
|
|
14
|
+
title?: string;
|
|
15
|
+
categoriesRef?: string;
|
|
16
|
+
series: readonly CreateChartSeries[];
|
|
17
|
+
}
|
|
18
|
+
export declare class CreateChartBuilder {
|
|
19
|
+
private _sheetIdx;
|
|
20
|
+
private _chartId;
|
|
21
|
+
private _chartType;
|
|
22
|
+
private _fromRow;
|
|
23
|
+
private _fromCol;
|
|
24
|
+
private _fromColOff;
|
|
25
|
+
private _fromRowOff;
|
|
26
|
+
private _toRow;
|
|
27
|
+
private _toCol;
|
|
28
|
+
private _toColOff;
|
|
29
|
+
private _toRowOff;
|
|
30
|
+
private _title?;
|
|
31
|
+
private _categoriesRef?;
|
|
32
|
+
private _series;
|
|
33
|
+
sheetIdx(value: number): this;
|
|
34
|
+
chartId(value: string): this;
|
|
35
|
+
chartType(value: string): this;
|
|
36
|
+
fromRow(value: number): this;
|
|
37
|
+
fromCol(value: number): this;
|
|
38
|
+
fromColOff(value: number): this;
|
|
39
|
+
fromRowOff(value: number): this;
|
|
40
|
+
toRow(value: number): this;
|
|
41
|
+
toCol(value: number): this;
|
|
42
|
+
toColOff(value: number): this;
|
|
43
|
+
toRowOff(value: number): this;
|
|
44
|
+
title(value: string): this;
|
|
45
|
+
categoriesRef(value: string): this;
|
|
46
|
+
series(value: readonly CreateChartSeries[]): this;
|
|
47
|
+
build(): {
|
|
48
|
+
sheetIdx: number;
|
|
49
|
+
chartId: string;
|
|
50
|
+
chartType: string;
|
|
51
|
+
fromRow: number;
|
|
52
|
+
fromCol: number;
|
|
53
|
+
fromColOff: number;
|
|
54
|
+
fromRowOff: number;
|
|
55
|
+
toRow: number;
|
|
56
|
+
toCol: number;
|
|
57
|
+
toColOff: number;
|
|
58
|
+
toRowOff: number;
|
|
59
|
+
title: string | undefined;
|
|
60
|
+
categoriesRef: string | undefined;
|
|
61
|
+
series: readonly CreateChartSeries[];
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateChartBuilder = void 0;
|
|
4
|
+
class CreateChartBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_chartId;
|
|
7
|
+
_chartType;
|
|
8
|
+
_fromRow;
|
|
9
|
+
_fromCol;
|
|
10
|
+
_fromColOff;
|
|
11
|
+
_fromRowOff;
|
|
12
|
+
_toRow;
|
|
13
|
+
_toCol;
|
|
14
|
+
_toColOff;
|
|
15
|
+
_toRowOff;
|
|
16
|
+
_title;
|
|
17
|
+
_categoriesRef;
|
|
18
|
+
_series;
|
|
19
|
+
sheetIdx(value) {
|
|
20
|
+
this._sheetIdx = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
chartId(value) {
|
|
24
|
+
this._chartId = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
chartType(value) {
|
|
28
|
+
this._chartType = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
fromRow(value) {
|
|
32
|
+
this._fromRow = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
fromCol(value) {
|
|
36
|
+
this._fromCol = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
fromColOff(value) {
|
|
40
|
+
this._fromColOff = value;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
fromRowOff(value) {
|
|
44
|
+
this._fromRowOff = value;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
toRow(value) {
|
|
48
|
+
this._toRow = value;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
toCol(value) {
|
|
52
|
+
this._toCol = value;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
toColOff(value) {
|
|
56
|
+
this._toColOff = value;
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
toRowOff(value) {
|
|
60
|
+
this._toRowOff = value;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
title(value) {
|
|
64
|
+
this._title = value;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
categoriesRef(value) {
|
|
68
|
+
this._categoriesRef = value;
|
|
69
|
+
return this;
|
|
70
|
+
}
|
|
71
|
+
series(value) {
|
|
72
|
+
this._series = value;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
build() {
|
|
76
|
+
if (this._sheetIdx === undefined)
|
|
77
|
+
throw new Error('missing sheetIdx');
|
|
78
|
+
if (this._chartId === undefined)
|
|
79
|
+
throw new Error('missing chartId');
|
|
80
|
+
if (this._chartType === undefined)
|
|
81
|
+
throw new Error('missing chartType');
|
|
82
|
+
if (this._fromRow === undefined)
|
|
83
|
+
throw new Error('missing fromRow');
|
|
84
|
+
if (this._fromCol === undefined)
|
|
85
|
+
throw new Error('missing fromCol');
|
|
86
|
+
if (this._fromColOff === undefined)
|
|
87
|
+
throw new Error('missing fromColOff');
|
|
88
|
+
if (this._fromRowOff === undefined)
|
|
89
|
+
throw new Error('missing fromRowOff');
|
|
90
|
+
if (this._toRow === undefined)
|
|
91
|
+
throw new Error('missing toRow');
|
|
92
|
+
if (this._toCol === undefined)
|
|
93
|
+
throw new Error('missing toCol');
|
|
94
|
+
if (this._toColOff === undefined)
|
|
95
|
+
throw new Error('missing toColOff');
|
|
96
|
+
if (this._toRowOff === undefined)
|
|
97
|
+
throw new Error('missing toRowOff');
|
|
98
|
+
if (this._series === undefined)
|
|
99
|
+
throw new Error('missing series');
|
|
100
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, fromRow: this._fromRow, fromCol: this._fromCol, fromColOff: this._fromColOff, fromRowOff: this._fromRowOff, toRow: this._toRow, toCol: this._toCol, toColOff: this._toColOff, toRowOff: this._toRowOff, title: this._title, categoriesRef: this._categoriesRef, series: this._series };
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.CreateChartBuilder = CreateChartBuilder;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CreateChartSeries {
|
|
2
|
+
name?: string;
|
|
3
|
+
valueRef: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class CreateChartSeriesBuilder {
|
|
6
|
+
private _name?;
|
|
7
|
+
private _valueRef;
|
|
8
|
+
name(value: string): this;
|
|
9
|
+
valueRef(value: string): this;
|
|
10
|
+
build(): {
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
valueRef: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateChartSeriesBuilder = void 0;
|
|
4
|
+
class CreateChartSeriesBuilder {
|
|
5
|
+
_name;
|
|
6
|
+
_valueRef;
|
|
7
|
+
name(value) {
|
|
8
|
+
this._name = value;
|
|
9
|
+
return this;
|
|
10
|
+
}
|
|
11
|
+
valueRef(value) {
|
|
12
|
+
this._valueRef = value;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
build() {
|
|
16
|
+
if (this._valueRef === undefined)
|
|
17
|
+
throw new Error('missing valueRef');
|
|
18
|
+
return { name: this._name, valueRef: this._valueRef };
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.CreateChartSeriesBuilder = CreateChartSeriesBuilder;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DeleteChart {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
chartId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class DeleteChartBuilder {
|
|
6
|
+
private _sheetIdx;
|
|
7
|
+
private _chartId;
|
|
8
|
+
sheetIdx(value: number): this;
|
|
9
|
+
chartId(value: string): this;
|
|
10
|
+
build(): {
|
|
11
|
+
sheetIdx: number;
|
|
12
|
+
chartId: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteChartBuilder = void 0;
|
|
4
|
+
class DeleteChartBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_chartId;
|
|
7
|
+
sheetIdx(value) {
|
|
8
|
+
this._sheetIdx = value;
|
|
9
|
+
return this;
|
|
10
|
+
}
|
|
11
|
+
chartId(value) {
|
|
12
|
+
this._chartId = value;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
build() {
|
|
16
|
+
if (this._sheetIdx === undefined)
|
|
17
|
+
throw new Error('missing sheetIdx');
|
|
18
|
+
if (this._chartId === undefined)
|
|
19
|
+
throw new Error('missing chartId');
|
|
20
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DeleteChartBuilder = DeleteChartBuilder;
|
|
@@ -12,11 +12,13 @@ import { CellStyleUpdate } from './cell_style_update';
|
|
|
12
12
|
import { ConvertBlock } from './convert_block';
|
|
13
13
|
import { CreateAppendix } from './create_appendix';
|
|
14
14
|
import { CreateBlock } from './create_block';
|
|
15
|
+
import { CreateChart } from './create_chart';
|
|
15
16
|
import { CreateDiyCell } from './create_diy_cell';
|
|
16
17
|
import { CreateDiyCellById } from './create_diy_cell_by_id';
|
|
17
18
|
import { CreateLink } from './create_link';
|
|
18
19
|
import { CreateSheet } from './create_sheet';
|
|
19
20
|
import { DeleteCellImage } from './delete_cell_image';
|
|
21
|
+
import { DeleteChart } from './delete_chart';
|
|
20
22
|
import { DeleteCols } from './delete_cols';
|
|
21
23
|
import { DeleteColsInBlock } from './delete_cols_in_block';
|
|
22
24
|
import { DeleteComment } from './delete_comment';
|
|
@@ -36,6 +38,7 @@ import { LineStyleUpdate } from './line_style_update';
|
|
|
36
38
|
import { MergeCells } from './merge_cells';
|
|
37
39
|
import { MoveBlock } from './move_block';
|
|
38
40
|
import { MoveBlockLine } from './move_block_line';
|
|
41
|
+
import { MoveChart } from './move_chart';
|
|
39
42
|
import { RemoveAppendix } from './remove_appendix';
|
|
40
43
|
import { RemoveBlock } from './remove_block';
|
|
41
44
|
import { RemoveDiyCell } from './remove_diy_cell';
|
|
@@ -53,6 +56,7 @@ import { SetSheetVisible } from './set_sheet_visible';
|
|
|
53
56
|
import { SetVisible } from './set_visible';
|
|
54
57
|
import { SheetRename } from './sheet_rename';
|
|
55
58
|
import { SplitMergedCells } from './split_merged_cells';
|
|
59
|
+
import { UpdateChart } from './update_chart';
|
|
56
60
|
import { UpsertFieldFormulas } from './upsert_field_formulas';
|
|
57
61
|
import { UpsertFieldRenderInfo } from './upsert_field_render_info';
|
|
58
62
|
import { UpsertPerson } from './upsert_person';
|
|
@@ -155,6 +159,18 @@ export type EditPayload = {
|
|
|
155
159
|
} | {
|
|
156
160
|
type: 'deleteCellImage';
|
|
157
161
|
value: DeleteCellImage;
|
|
162
|
+
} | {
|
|
163
|
+
type: 'moveChart';
|
|
164
|
+
value: MoveChart;
|
|
165
|
+
} | {
|
|
166
|
+
type: 'deleteChart';
|
|
167
|
+
value: DeleteChart;
|
|
168
|
+
} | {
|
|
169
|
+
type: 'createChart';
|
|
170
|
+
value: CreateChart;
|
|
171
|
+
} | {
|
|
172
|
+
type: 'updateChart';
|
|
173
|
+
value: UpdateChart;
|
|
158
174
|
} | {
|
|
159
175
|
type: 'setColWidth';
|
|
160
176
|
value: SetColWidth;
|
|
@@ -39,6 +39,8 @@ export * from './cell_protection';
|
|
|
39
39
|
export * from './cell_ref';
|
|
40
40
|
export * from './cell_ref_range';
|
|
41
41
|
export * from './cell_style_update';
|
|
42
|
+
export * from './chart_info';
|
|
43
|
+
export * from './chart_series_info';
|
|
42
44
|
export * from './checkpoint_meta';
|
|
43
45
|
export * from './col_info';
|
|
44
46
|
export * from './color';
|
|
@@ -50,6 +52,8 @@ export * from './comment_person';
|
|
|
50
52
|
export * from './convert_block';
|
|
51
53
|
export * from './create_appendix';
|
|
52
54
|
export * from './create_block';
|
|
55
|
+
export * from './create_chart';
|
|
56
|
+
export * from './create_chart_series';
|
|
53
57
|
export * from './create_diy_cell';
|
|
54
58
|
export * from './create_diy_cell_by_id';
|
|
55
59
|
export * from './create_link';
|
|
@@ -63,6 +67,7 @@ export * from './ct_gradient_fill';
|
|
|
63
67
|
export * from './ct_gradient_stop';
|
|
64
68
|
export * from './ct_pattern_fill';
|
|
65
69
|
export * from './delete_cell_image';
|
|
70
|
+
export * from './delete_chart';
|
|
66
71
|
export * from './delete_cols';
|
|
67
72
|
export * from './delete_cols_in_block';
|
|
68
73
|
export * from './delete_comment';
|
|
@@ -104,6 +109,7 @@ export * from './merge_cells';
|
|
|
104
109
|
export * from './modify_policy';
|
|
105
110
|
export * from './move_block';
|
|
106
111
|
export * from './move_block_line';
|
|
112
|
+
export * from './move_chart';
|
|
107
113
|
export * from './msg_edit';
|
|
108
114
|
export * from './msg_join';
|
|
109
115
|
export * from './msg_sequencer_action_invalid_message';
|
|
@@ -150,6 +156,7 @@ export * from './rpc_get_cell_params';
|
|
|
150
156
|
export * from './rpc_get_cell_position_params';
|
|
151
157
|
export * from './rpc_get_cells_except_window_params';
|
|
152
158
|
export * from './rpc_get_cells_params';
|
|
159
|
+
export * from './rpc_get_charts_params';
|
|
153
160
|
export * from './rpc_get_col_width_params';
|
|
154
161
|
export * from './rpc_get_comments_params';
|
|
155
162
|
export * from './rpc_get_data_boundary_params';
|
|
@@ -217,6 +224,7 @@ export * from './temp_status_diff';
|
|
|
217
224
|
export * from './token_type';
|
|
218
225
|
export * from './token_unit';
|
|
219
226
|
export * from './underline_property';
|
|
227
|
+
export * from './update_chart';
|
|
220
228
|
export * from './upsert_field_formulas';
|
|
221
229
|
export * from './upsert_field_render_info';
|
|
222
230
|
export * from './upsert_person';
|
|
@@ -56,6 +56,8 @@ __exportStar(require("./cell_protection"), exports);
|
|
|
56
56
|
__exportStar(require("./cell_ref"), exports);
|
|
57
57
|
__exportStar(require("./cell_ref_range"), exports);
|
|
58
58
|
__exportStar(require("./cell_style_update"), exports);
|
|
59
|
+
__exportStar(require("./chart_info"), exports);
|
|
60
|
+
__exportStar(require("./chart_series_info"), exports);
|
|
59
61
|
__exportStar(require("./checkpoint_meta"), exports);
|
|
60
62
|
__exportStar(require("./col_info"), exports);
|
|
61
63
|
__exportStar(require("./color"), exports);
|
|
@@ -67,6 +69,8 @@ __exportStar(require("./comment_person"), exports);
|
|
|
67
69
|
__exportStar(require("./convert_block"), exports);
|
|
68
70
|
__exportStar(require("./create_appendix"), exports);
|
|
69
71
|
__exportStar(require("./create_block"), exports);
|
|
72
|
+
__exportStar(require("./create_chart"), exports);
|
|
73
|
+
__exportStar(require("./create_chart_series"), exports);
|
|
70
74
|
__exportStar(require("./create_diy_cell"), exports);
|
|
71
75
|
__exportStar(require("./create_diy_cell_by_id"), exports);
|
|
72
76
|
__exportStar(require("./create_link"), exports);
|
|
@@ -80,6 +84,7 @@ __exportStar(require("./ct_gradient_fill"), exports);
|
|
|
80
84
|
__exportStar(require("./ct_gradient_stop"), exports);
|
|
81
85
|
__exportStar(require("./ct_pattern_fill"), exports);
|
|
82
86
|
__exportStar(require("./delete_cell_image"), exports);
|
|
87
|
+
__exportStar(require("./delete_chart"), exports);
|
|
83
88
|
__exportStar(require("./delete_cols"), exports);
|
|
84
89
|
__exportStar(require("./delete_cols_in_block"), exports);
|
|
85
90
|
__exportStar(require("./delete_comment"), exports);
|
|
@@ -121,6 +126,7 @@ __exportStar(require("./merge_cells"), exports);
|
|
|
121
126
|
__exportStar(require("./modify_policy"), exports);
|
|
122
127
|
__exportStar(require("./move_block"), exports);
|
|
123
128
|
__exportStar(require("./move_block_line"), exports);
|
|
129
|
+
__exportStar(require("./move_chart"), exports);
|
|
124
130
|
__exportStar(require("./msg_edit"), exports);
|
|
125
131
|
__exportStar(require("./msg_join"), exports);
|
|
126
132
|
__exportStar(require("./msg_sequencer_action_invalid_message"), exports);
|
|
@@ -167,6 +173,7 @@ __exportStar(require("./rpc_get_cell_params"), exports);
|
|
|
167
173
|
__exportStar(require("./rpc_get_cell_position_params"), exports);
|
|
168
174
|
__exportStar(require("./rpc_get_cells_except_window_params"), exports);
|
|
169
175
|
__exportStar(require("./rpc_get_cells_params"), exports);
|
|
176
|
+
__exportStar(require("./rpc_get_charts_params"), exports);
|
|
170
177
|
__exportStar(require("./rpc_get_col_width_params"), exports);
|
|
171
178
|
__exportStar(require("./rpc_get_comments_params"), exports);
|
|
172
179
|
__exportStar(require("./rpc_get_data_boundary_params"), exports);
|
|
@@ -234,6 +241,7 @@ __exportStar(require("./temp_status_diff"), exports);
|
|
|
234
241
|
__exportStar(require("./token_type"), exports);
|
|
235
242
|
__exportStar(require("./token_unit"), exports);
|
|
236
243
|
__exportStar(require("./underline_property"), exports);
|
|
244
|
+
__exportStar(require("./update_chart"), exports);
|
|
237
245
|
__exportStar(require("./upsert_field_formulas"), exports);
|
|
238
246
|
__exportStar(require("./upsert_field_render_info"), exports);
|
|
239
247
|
__exportStar(require("./upsert_person"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface MoveChart {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
chartId: string;
|
|
4
|
+
fromRow: number;
|
|
5
|
+
fromCol: number;
|
|
6
|
+
fromColOff: number;
|
|
7
|
+
fromRowOff: number;
|
|
8
|
+
toRow: number;
|
|
9
|
+
toCol: number;
|
|
10
|
+
toColOff: number;
|
|
11
|
+
toRowOff: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class MoveChartBuilder {
|
|
14
|
+
private _sheetIdx;
|
|
15
|
+
private _chartId;
|
|
16
|
+
private _fromRow;
|
|
17
|
+
private _fromCol;
|
|
18
|
+
private _fromColOff;
|
|
19
|
+
private _fromRowOff;
|
|
20
|
+
private _toRow;
|
|
21
|
+
private _toCol;
|
|
22
|
+
private _toColOff;
|
|
23
|
+
private _toRowOff;
|
|
24
|
+
sheetIdx(value: number): this;
|
|
25
|
+
chartId(value: string): this;
|
|
26
|
+
fromRow(value: number): this;
|
|
27
|
+
fromCol(value: number): this;
|
|
28
|
+
fromColOff(value: number): this;
|
|
29
|
+
fromRowOff(value: number): this;
|
|
30
|
+
toRow(value: number): this;
|
|
31
|
+
toCol(value: number): this;
|
|
32
|
+
toColOff(value: number): this;
|
|
33
|
+
toRowOff(value: number): this;
|
|
34
|
+
build(): {
|
|
35
|
+
sheetIdx: number;
|
|
36
|
+
chartId: string;
|
|
37
|
+
fromRow: number;
|
|
38
|
+
fromCol: number;
|
|
39
|
+
fromColOff: number;
|
|
40
|
+
fromRowOff: number;
|
|
41
|
+
toRow: number;
|
|
42
|
+
toCol: number;
|
|
43
|
+
toColOff: number;
|
|
44
|
+
toRowOff: number;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoveChartBuilder = void 0;
|
|
4
|
+
class MoveChartBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_chartId;
|
|
7
|
+
_fromRow;
|
|
8
|
+
_fromCol;
|
|
9
|
+
_fromColOff;
|
|
10
|
+
_fromRowOff;
|
|
11
|
+
_toRow;
|
|
12
|
+
_toCol;
|
|
13
|
+
_toColOff;
|
|
14
|
+
_toRowOff;
|
|
15
|
+
sheetIdx(value) {
|
|
16
|
+
this._sheetIdx = value;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
chartId(value) {
|
|
20
|
+
this._chartId = value;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
fromRow(value) {
|
|
24
|
+
this._fromRow = value;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
fromCol(value) {
|
|
28
|
+
this._fromCol = value;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
fromColOff(value) {
|
|
32
|
+
this._fromColOff = value;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
fromRowOff(value) {
|
|
36
|
+
this._fromRowOff = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
toRow(value) {
|
|
40
|
+
this._toRow = value;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
toCol(value) {
|
|
44
|
+
this._toCol = value;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
toColOff(value) {
|
|
48
|
+
this._toColOff = value;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
toRowOff(value) {
|
|
52
|
+
this._toRowOff = value;
|
|
53
|
+
return this;
|
|
54
|
+
}
|
|
55
|
+
build() {
|
|
56
|
+
if (this._sheetIdx === undefined)
|
|
57
|
+
throw new Error('missing sheetIdx');
|
|
58
|
+
if (this._chartId === undefined)
|
|
59
|
+
throw new Error('missing chartId');
|
|
60
|
+
if (this._fromRow === undefined)
|
|
61
|
+
throw new Error('missing fromRow');
|
|
62
|
+
if (this._fromCol === undefined)
|
|
63
|
+
throw new Error('missing fromCol');
|
|
64
|
+
if (this._fromColOff === undefined)
|
|
65
|
+
throw new Error('missing fromColOff');
|
|
66
|
+
if (this._fromRowOff === undefined)
|
|
67
|
+
throw new Error('missing fromRowOff');
|
|
68
|
+
if (this._toRow === undefined)
|
|
69
|
+
throw new Error('missing toRow');
|
|
70
|
+
if (this._toCol === undefined)
|
|
71
|
+
throw new Error('missing toCol');
|
|
72
|
+
if (this._toColOff === undefined)
|
|
73
|
+
throw new Error('missing toColOff');
|
|
74
|
+
if (this._toRowOff === undefined)
|
|
75
|
+
throw new Error('missing toRowOff');
|
|
76
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId, fromRow: this._fromRow, fromCol: this._fromCol, fromColOff: this._fromColOff, fromRowOff: this._fromRowOff, toRow: this._toRow, toCol: this._toCol, toColOff: this._toColOff, toRowOff: this._toRowOff };
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.MoveChartBuilder = MoveChartBuilder;
|
|
@@ -13,6 +13,7 @@ import { CellInfo } from './cell_info';
|
|
|
13
13
|
import { CellInput } from './cell_input';
|
|
14
14
|
import { CellPosition } from './cell_position';
|
|
15
15
|
import { CellRefRange } from './cell_ref_range';
|
|
16
|
+
import { ChartInfo } from './chart_info';
|
|
16
17
|
import { CheckFormulaParams } from './rpc_check_formula_params';
|
|
17
18
|
import { CheckpointMetaDto } from './checkpoint_meta';
|
|
18
19
|
import { Comment } from './comment';
|
|
@@ -38,6 +39,7 @@ import { GetCellParams } from './rpc_get_cell_params';
|
|
|
38
39
|
import { GetCellPositionParams } from './rpc_get_cell_position_params';
|
|
39
40
|
import { GetCellsExceptWindowParams } from './rpc_get_cells_except_window_params';
|
|
40
41
|
import { GetCellsParams } from './rpc_get_cells_params';
|
|
42
|
+
import { GetChartsParams } from './rpc_get_charts_params';
|
|
41
43
|
import { GetColWidthParams } from './rpc_get_col_width_params';
|
|
42
44
|
import { GetCommentsParams } from './rpc_get_comments_params';
|
|
43
45
|
import { GetDataBoundaryParams } from './rpc_get_data_boundary_params';
|
|
@@ -128,6 +130,7 @@ export interface WorkbookMethods {
|
|
|
128
130
|
getMergedCells(params: GetMergedCellsParams, bookId?: number): Promise<readonly MergeCell[] | ErrorMessage>;
|
|
129
131
|
getComments(params: GetCommentsParams, bookId?: number): Promise<readonly Comment[] | ErrorMessage>;
|
|
130
132
|
getCellImages(params: GetCellImagesParams, bookId?: number): Promise<readonly CellImageInfo[] | ErrorMessage>;
|
|
133
|
+
getCharts(params: GetChartsParams, bookId?: number): Promise<readonly ChartInfo[] | ErrorMessage>;
|
|
131
134
|
getShadowCellId(params: GetShadowCellIdParams, bookId?: number): Promise<SheetCellId | ErrorMessage>;
|
|
132
135
|
getShadowCellIds(params: GetShadowCellIdsParams, bookId?: number): Promise<readonly SheetCellId[] | ErrorMessage>;
|
|
133
136
|
getShadowInfoById(params: GetShadowInfoByIdParams, bookId?: number): Promise<ShadowCellInfo | ErrorMessage>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface UpdateChart {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
chartId: string;
|
|
4
|
+
chartType?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class UpdateChartBuilder {
|
|
8
|
+
private _sheetIdx;
|
|
9
|
+
private _chartId;
|
|
10
|
+
private _chartType?;
|
|
11
|
+
private _title?;
|
|
12
|
+
sheetIdx(value: number): this;
|
|
13
|
+
chartId(value: string): this;
|
|
14
|
+
chartType(value: string): this;
|
|
15
|
+
title(value: string): this;
|
|
16
|
+
build(): {
|
|
17
|
+
sheetIdx: number;
|
|
18
|
+
chartId: string;
|
|
19
|
+
chartType: string | undefined;
|
|
20
|
+
title: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateChartBuilder = void 0;
|
|
4
|
+
class UpdateChartBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_chartId;
|
|
7
|
+
_chartType;
|
|
8
|
+
_title;
|
|
9
|
+
sheetIdx(value) {
|
|
10
|
+
this._sheetIdx = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
chartId(value) {
|
|
14
|
+
this._chartId = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
chartType(value) {
|
|
18
|
+
this._chartType = value;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
title(value) {
|
|
22
|
+
this._title = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
build() {
|
|
26
|
+
if (this._sheetIdx === undefined)
|
|
27
|
+
throw new Error('missing sheetIdx');
|
|
28
|
+
if (this._chartId === undefined)
|
|
29
|
+
throw new Error('missing chartId');
|
|
30
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, title: this._title };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.UpdateChartBuilder = UpdateChartBuilder;
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
package/package.json
CHANGED
|
Binary file
|