logisheets 1.13.0 → 1.14.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/workbook.d.ts +21 -1
- package/dist/src/api/workbook.js +24 -0
- package/dist/src/bindings/axis_scale_update.d.ts +30 -0
- package/dist/src/bindings/axis_scale_update.js +41 -0
- package/dist/src/bindings/block_actor.d.ts +4 -0
- package/dist/src/bindings/block_actor.js +2 -0
- package/dist/src/bindings/block_info.d.ts +6 -0
- package/dist/src/bindings/block_modify_info.d.ts +8 -0
- package/dist/src/bindings/block_modify_info.js +2 -0
- package/dist/src/bindings/block_op.d.ts +1 -0
- package/dist/src/bindings/block_op.js +2 -0
- package/dist/src/bindings/block_permissions.d.ts +31 -0
- package/dist/src/bindings/block_permissions.js +39 -0
- package/dist/src/bindings/chart_axis_scale_info.d.ts +8 -0
- package/dist/src/bindings/chart_axis_scale_info.js +2 -0
- package/dist/src/bindings/chart_block_source.d.ts +18 -0
- package/dist/src/bindings/chart_block_source.js +28 -0
- package/dist/src/bindings/chart_block_source_info.d.ts +5 -0
- package/dist/src/bindings/chart_block_source_info.js +2 -0
- package/dist/src/bindings/chart_data_labels_info.d.ts +9 -0
- package/dist/src/bindings/chart_data_labels_info.js +2 -0
- package/dist/src/bindings/chart_info.d.ts +13 -0
- package/dist/src/bindings/chart_of_pie_split_info.d.ts +5 -0
- package/dist/src/bindings/chart_of_pie_split_info.js +2 -0
- package/dist/src/bindings/chart_series_info.d.ts +6 -0
- package/dist/src/bindings/create_block.d.ts +9 -0
- package/dist/src/bindings/create_block.js +11 -1
- package/dist/src/bindings/create_chart.d.ts +5 -0
- package/dist/src/bindings/create_chart.js +6 -1
- package/dist/src/bindings/create_chart_series.d.ts +12 -0
- package/dist/src/bindings/create_chart_series.js +16 -1
- package/dist/src/bindings/edit_payload.d.ts +8 -0
- package/dist/src/bindings/get_block_modify_info_params.d.ts +4 -0
- package/dist/src/bindings/get_block_modify_info_params.js +2 -0
- package/dist/src/bindings/index.d.ts +15 -0
- package/dist/src/bindings/index.js +15 -0
- package/dist/src/bindings/may_modify_block_params.d.ts +8 -0
- package/dist/src/bindings/may_modify_block_params.js +2 -0
- package/dist/src/bindings/of_pie_split_update.d.ts +18 -0
- package/dist/src/bindings/of_pie_split_update.js +24 -0
- package/dist/src/bindings/rpc_workbook_methods.d.ts +5 -0
- package/dist/src/bindings/set_block_description.d.ts +18 -0
- package/dist/src/bindings/set_block_description.js +30 -0
- package/dist/src/bindings/set_block_permissions.d.ts +24 -0
- package/dist/src/bindings/set_block_permissions.js +35 -0
- package/dist/src/bindings/update_chart.d.ts +68 -0
- package/dist/src/bindings/update_chart.js +81 -1
- package/dist/wasm/logisheets_wasm_server.d.ts +8 -8
- package/dist/wasm/logisheets_wasm_server.js +24 -24
- 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.d.ts +8 -8
- package/wasm/logisheets_wasm_server.js +24 -24
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +1 -1
|
@@ -6,8 +6,10 @@ export * from './appendix';
|
|
|
6
6
|
export * from './appendix_with_cell';
|
|
7
7
|
export * from './async_func_result';
|
|
8
8
|
export * from './author_input';
|
|
9
|
+
export * from './axis_scale_update';
|
|
9
10
|
export * from './bind_form_schema';
|
|
10
11
|
export * from './bind_random_schema';
|
|
12
|
+
export * from './block_actor';
|
|
11
13
|
export * from './block_cell_id';
|
|
12
14
|
export * from './block_cell_info';
|
|
13
15
|
export * from './block_data_row';
|
|
@@ -17,6 +19,9 @@ export * from './block_info';
|
|
|
17
19
|
export * from './block_input';
|
|
18
20
|
export * from './block_line_name_field_update';
|
|
19
21
|
export * from './block_line_style_update';
|
|
22
|
+
export * from './block_modify_info';
|
|
23
|
+
export * from './block_op';
|
|
24
|
+
export * from './block_permissions';
|
|
20
25
|
export * from './block_schema';
|
|
21
26
|
export * from './block_schema_field_entry';
|
|
22
27
|
export * from './block_schema_key_entry';
|
|
@@ -45,7 +50,12 @@ export * from './cf_format_spec';
|
|
|
45
50
|
export * from './cf_icon';
|
|
46
51
|
export * from './cf_rule_info';
|
|
47
52
|
export * from './cf_rule_spec';
|
|
53
|
+
export * from './chart_axis_scale_info';
|
|
54
|
+
export * from './chart_block_source';
|
|
55
|
+
export * from './chart_block_source_info';
|
|
56
|
+
export * from './chart_data_labels_info';
|
|
48
57
|
export * from './chart_info';
|
|
58
|
+
export * from './chart_of_pie_split_info';
|
|
49
59
|
export * from './chart_series_info';
|
|
50
60
|
export * from './checkpoint_meta';
|
|
51
61
|
export * from './col_info';
|
|
@@ -102,6 +112,7 @@ export * from './font_name';
|
|
|
102
112
|
export * from './font_scheme';
|
|
103
113
|
export * from './font_size';
|
|
104
114
|
export * from './formula_display_info';
|
|
115
|
+
export * from './get_block_modify_info_params';
|
|
105
116
|
export * from './gradient_fill';
|
|
106
117
|
export * from './gradient_stop';
|
|
107
118
|
export * from './horizontal_alignment';
|
|
@@ -113,6 +124,7 @@ export * from './int_property';
|
|
|
113
124
|
export * from './line_format_brush';
|
|
114
125
|
export * from './line_style_update';
|
|
115
126
|
export * from './link_info';
|
|
127
|
+
export * from './may_modify_block_params';
|
|
116
128
|
export * from './merge_cell';
|
|
117
129
|
export * from './merge_cells';
|
|
118
130
|
export * from './modify_policy';
|
|
@@ -128,6 +140,7 @@ export * from './msg_sequencer_init_workbook';
|
|
|
128
140
|
export * from './msg_sequencer_message';
|
|
129
141
|
export * from './msg_user_message';
|
|
130
142
|
export * from './normal_cell_id';
|
|
143
|
+
export * from './of_pie_split_update';
|
|
131
144
|
export * from './pattern_fill';
|
|
132
145
|
export * from './payloads_action';
|
|
133
146
|
export * from './random_schema_unit';
|
|
@@ -203,6 +216,8 @@ export * from './rpc_toggle_status_params';
|
|
|
203
216
|
export * from './rpc_transaction';
|
|
204
217
|
export * from './rpc_workbook_methods';
|
|
205
218
|
export * from './save_file_result';
|
|
219
|
+
export * from './set_block_description';
|
|
220
|
+
export * from './set_block_permissions';
|
|
206
221
|
export * from './set_cell_image';
|
|
207
222
|
export * from './set_col_width';
|
|
208
223
|
export * from './set_row_height';
|
|
@@ -23,8 +23,10 @@ __exportStar(require("./appendix"), exports);
|
|
|
23
23
|
__exportStar(require("./appendix_with_cell"), exports);
|
|
24
24
|
__exportStar(require("./async_func_result"), exports);
|
|
25
25
|
__exportStar(require("./author_input"), exports);
|
|
26
|
+
__exportStar(require("./axis_scale_update"), exports);
|
|
26
27
|
__exportStar(require("./bind_form_schema"), exports);
|
|
27
28
|
__exportStar(require("./bind_random_schema"), exports);
|
|
29
|
+
__exportStar(require("./block_actor"), exports);
|
|
28
30
|
__exportStar(require("./block_cell_id"), exports);
|
|
29
31
|
__exportStar(require("./block_cell_info"), exports);
|
|
30
32
|
__exportStar(require("./block_data_row"), exports);
|
|
@@ -34,6 +36,9 @@ __exportStar(require("./block_info"), exports);
|
|
|
34
36
|
__exportStar(require("./block_input"), exports);
|
|
35
37
|
__exportStar(require("./block_line_name_field_update"), exports);
|
|
36
38
|
__exportStar(require("./block_line_style_update"), exports);
|
|
39
|
+
__exportStar(require("./block_modify_info"), exports);
|
|
40
|
+
__exportStar(require("./block_op"), exports);
|
|
41
|
+
__exportStar(require("./block_permissions"), exports);
|
|
37
42
|
__exportStar(require("./block_schema"), exports);
|
|
38
43
|
__exportStar(require("./block_schema_field_entry"), exports);
|
|
39
44
|
__exportStar(require("./block_schema_key_entry"), exports);
|
|
@@ -62,7 +67,12 @@ __exportStar(require("./cf_format_spec"), exports);
|
|
|
62
67
|
__exportStar(require("./cf_icon"), exports);
|
|
63
68
|
__exportStar(require("./cf_rule_info"), exports);
|
|
64
69
|
__exportStar(require("./cf_rule_spec"), exports);
|
|
70
|
+
__exportStar(require("./chart_axis_scale_info"), exports);
|
|
71
|
+
__exportStar(require("./chart_block_source"), exports);
|
|
72
|
+
__exportStar(require("./chart_block_source_info"), exports);
|
|
73
|
+
__exportStar(require("./chart_data_labels_info"), exports);
|
|
65
74
|
__exportStar(require("./chart_info"), exports);
|
|
75
|
+
__exportStar(require("./chart_of_pie_split_info"), exports);
|
|
66
76
|
__exportStar(require("./chart_series_info"), exports);
|
|
67
77
|
__exportStar(require("./checkpoint_meta"), exports);
|
|
68
78
|
__exportStar(require("./col_info"), exports);
|
|
@@ -119,6 +129,7 @@ __exportStar(require("./font_name"), exports);
|
|
|
119
129
|
__exportStar(require("./font_scheme"), exports);
|
|
120
130
|
__exportStar(require("./font_size"), exports);
|
|
121
131
|
__exportStar(require("./formula_display_info"), exports);
|
|
132
|
+
__exportStar(require("./get_block_modify_info_params"), exports);
|
|
122
133
|
__exportStar(require("./gradient_fill"), exports);
|
|
123
134
|
__exportStar(require("./gradient_stop"), exports);
|
|
124
135
|
__exportStar(require("./horizontal_alignment"), exports);
|
|
@@ -130,6 +141,7 @@ __exportStar(require("./int_property"), exports);
|
|
|
130
141
|
__exportStar(require("./line_format_brush"), exports);
|
|
131
142
|
__exportStar(require("./line_style_update"), exports);
|
|
132
143
|
__exportStar(require("./link_info"), exports);
|
|
144
|
+
__exportStar(require("./may_modify_block_params"), exports);
|
|
133
145
|
__exportStar(require("./merge_cell"), exports);
|
|
134
146
|
__exportStar(require("./merge_cells"), exports);
|
|
135
147
|
__exportStar(require("./modify_policy"), exports);
|
|
@@ -145,6 +157,7 @@ __exportStar(require("./msg_sequencer_init_workbook"), exports);
|
|
|
145
157
|
__exportStar(require("./msg_sequencer_message"), exports);
|
|
146
158
|
__exportStar(require("./msg_user_message"), exports);
|
|
147
159
|
__exportStar(require("./normal_cell_id"), exports);
|
|
160
|
+
__exportStar(require("./of_pie_split_update"), exports);
|
|
148
161
|
__exportStar(require("./pattern_fill"), exports);
|
|
149
162
|
__exportStar(require("./payloads_action"), exports);
|
|
150
163
|
__exportStar(require("./random_schema_unit"), exports);
|
|
@@ -220,6 +233,8 @@ __exportStar(require("./rpc_toggle_status_params"), exports);
|
|
|
220
233
|
__exportStar(require("./rpc_transaction"), exports);
|
|
221
234
|
__exportStar(require("./rpc_workbook_methods"), exports);
|
|
222
235
|
__exportStar(require("./save_file_result"), exports);
|
|
236
|
+
__exportStar(require("./set_block_description"), exports);
|
|
237
|
+
__exportStar(require("./set_block_permissions"), exports);
|
|
223
238
|
__exportStar(require("./set_cell_image"), exports);
|
|
224
239
|
__exportStar(require("./set_col_width"), exports);
|
|
225
240
|
__exportStar(require("./set_row_height"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface OfPieSplitUpdate {
|
|
2
|
+
by?: string;
|
|
3
|
+
pos?: number;
|
|
4
|
+
secondSize?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare class OfPieSplitUpdateBuilder {
|
|
7
|
+
private _by?;
|
|
8
|
+
private _pos?;
|
|
9
|
+
private _secondSize?;
|
|
10
|
+
by(value: string): this;
|
|
11
|
+
pos(value: number): this;
|
|
12
|
+
secondSize(value: number): this;
|
|
13
|
+
build(): {
|
|
14
|
+
by: string | undefined;
|
|
15
|
+
pos: number | undefined;
|
|
16
|
+
secondSize: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfPieSplitUpdateBuilder = void 0;
|
|
4
|
+
class OfPieSplitUpdateBuilder {
|
|
5
|
+
_by;
|
|
6
|
+
_pos;
|
|
7
|
+
_secondSize;
|
|
8
|
+
by(value) {
|
|
9
|
+
this._by = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
pos(value) {
|
|
13
|
+
this._pos = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
secondSize(value) {
|
|
17
|
+
this._secondSize = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
build() {
|
|
21
|
+
return { by: this._by, pos: this._pos, secondSize: this._secondSize };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.OfPieSplitUpdateBuilder = OfPieSplitUpdateBuilder;
|
|
@@ -6,6 +6,7 @@ import { BatchGetCellInfoByIdParams } from './rpc_batch_get_cell_info_by_id_para
|
|
|
6
6
|
import { BlockDataRow } from './block_data_row';
|
|
7
7
|
import { BlockField } from './block_field';
|
|
8
8
|
import { BlockInfo } from './block_info';
|
|
9
|
+
import { BlockModifyInfo } from './block_modify_info';
|
|
9
10
|
import { BlockSortOrder } from './block_sort_order';
|
|
10
11
|
import { CalcConditionParams } from './rpc_calc_condition_params';
|
|
11
12
|
import { CellCoordinateWithSheet } from './cell_coordinate_with_sheet';
|
|
@@ -31,6 +32,7 @@ import { GetAvailableBlockIdParams } from './rpc_get_available_block_id_params';
|
|
|
31
32
|
import { GetBlockColIdParams } from './rpc_get_block_col_id_params';
|
|
32
33
|
import { GetBlockDisplayWindowParams } from './rpc_get_block_display_window_params';
|
|
33
34
|
import { GetBlockInfoParams } from './rpc_get_block_info_params';
|
|
35
|
+
import { GetBlockModifyInfoParams } from './get_block_modify_info_params';
|
|
34
36
|
import { GetBlockRowIdParams } from './rpc_get_block_row_id_params';
|
|
35
37
|
import { GetBlockSortOrderParams } from './rpc_get_block_sort_order_params';
|
|
36
38
|
import { GetBlockValuesParams } from './rpc_get_block_values_params';
|
|
@@ -72,6 +74,7 @@ import { HandleTransactionParams } from './rpc_handle_transaction_params';
|
|
|
72
74
|
import { LinkInfo } from './link_info';
|
|
73
75
|
import { LoadWorkbookParams } from './rpc_load_workbook_params';
|
|
74
76
|
import { LookupAppendixUpwardParams } from './rpc_lookup_appendix_upward_params';
|
|
77
|
+
import { MayModifyBlockParams } from './may_modify_block_params';
|
|
75
78
|
import { MergeCell } from './merge_cell';
|
|
76
79
|
import { PredictFillParams } from './rpc_predict_fill_params';
|
|
77
80
|
import { ReproducibleCell } from './reproducible_cell';
|
|
@@ -122,6 +125,8 @@ export interface WorkbookMethods {
|
|
|
122
125
|
getBlockColId(params: GetBlockColIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
123
126
|
getBlockValues(params: GetBlockValuesParams, bookId?: number): Promise<readonly string[] | ErrorMessage>;
|
|
124
127
|
getBlockSortOrder(params: GetBlockSortOrderParams, bookId?: number): Promise<BlockSortOrder | ErrorMessage>;
|
|
128
|
+
mayModifyBlock(params: MayModifyBlockParams, bookId?: number): Promise<boolean | ErrorMessage>;
|
|
129
|
+
getBlockModifyInfo(params: GetBlockModifyInfoParams, bookId?: number): Promise<BlockModifyInfo | ErrorMessage>;
|
|
125
130
|
getAvailableBlockId(params: GetAvailableBlockIdParams, bookId?: number): Promise<number | ErrorMessage>;
|
|
126
131
|
getAllBlockFields(bookId?: number): Promise<readonly BlockField[] | ErrorMessage>;
|
|
127
132
|
getAllBlocks(params: GetAllBlocksParams, bookId?: number): Promise<readonly BlockInfo[] | ErrorMessage>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SetBlockDescription {
|
|
2
|
+
sheetIdx: number;
|
|
3
|
+
blockId: number;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SetBlockDescriptionBuilder {
|
|
7
|
+
private _sheetIdx;
|
|
8
|
+
private _blockId;
|
|
9
|
+
private _description;
|
|
10
|
+
sheetIdx(value: number): this;
|
|
11
|
+
blockId(value: number): this;
|
|
12
|
+
description(value: string): this;
|
|
13
|
+
build(): {
|
|
14
|
+
sheetIdx: number;
|
|
15
|
+
blockId: number;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetBlockDescriptionBuilder = void 0;
|
|
4
|
+
class SetBlockDescriptionBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_blockId;
|
|
7
|
+
_description;
|
|
8
|
+
sheetIdx(value) {
|
|
9
|
+
this._sheetIdx = value;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
blockId(value) {
|
|
13
|
+
this._blockId = value;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
description(value) {
|
|
17
|
+
this._description = value;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
build() {
|
|
21
|
+
if (this._sheetIdx === undefined)
|
|
22
|
+
throw new Error('missing sheetIdx');
|
|
23
|
+
if (this._blockId === undefined)
|
|
24
|
+
throw new Error('missing blockId');
|
|
25
|
+
if (this._description === undefined)
|
|
26
|
+
throw new Error('missing description');
|
|
27
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, description: this._description };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.SetBlockDescriptionBuilder = SetBlockDescriptionBuilder;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BlockPermissions } from './block_permissions';
|
|
2
|
+
import { ModifyPolicy } from './modify_policy';
|
|
3
|
+
export interface SetBlockPermissions {
|
|
4
|
+
sheetIdx: number;
|
|
5
|
+
blockId: number;
|
|
6
|
+
permissions: BlockPermissions;
|
|
7
|
+
modifyPolicy?: ModifyPolicy;
|
|
8
|
+
}
|
|
9
|
+
export declare class SetBlockPermissionsBuilder {
|
|
10
|
+
private _sheetIdx;
|
|
11
|
+
private _blockId;
|
|
12
|
+
private _permissions;
|
|
13
|
+
private _modifyPolicy?;
|
|
14
|
+
sheetIdx(value: number): this;
|
|
15
|
+
blockId(value: number): this;
|
|
16
|
+
permissions(value: BlockPermissions): this;
|
|
17
|
+
modifyPolicy(value: ModifyPolicy): this;
|
|
18
|
+
build(): {
|
|
19
|
+
sheetIdx: number;
|
|
20
|
+
blockId: number;
|
|
21
|
+
permissions: BlockPermissions;
|
|
22
|
+
modifyPolicy: ModifyPolicy | undefined;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetBlockPermissionsBuilder = void 0;
|
|
4
|
+
class SetBlockPermissionsBuilder {
|
|
5
|
+
_sheetIdx;
|
|
6
|
+
_blockId;
|
|
7
|
+
_permissions;
|
|
8
|
+
_modifyPolicy;
|
|
9
|
+
sheetIdx(value) {
|
|
10
|
+
this._sheetIdx = value;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
blockId(value) {
|
|
14
|
+
this._blockId = value;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
permissions(value) {
|
|
18
|
+
this._permissions = value;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
modifyPolicy(value) {
|
|
22
|
+
this._modifyPolicy = value;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
build() {
|
|
26
|
+
if (this._sheetIdx === undefined)
|
|
27
|
+
throw new Error('missing sheetIdx');
|
|
28
|
+
if (this._blockId === undefined)
|
|
29
|
+
throw new Error('missing blockId');
|
|
30
|
+
if (this._permissions === undefined)
|
|
31
|
+
throw new Error('missing permissions');
|
|
32
|
+
return { sheetIdx: this._sheetIdx, blockId: this._blockId, permissions: this._permissions, modifyPolicy: this._modifyPolicy };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.SetBlockPermissionsBuilder = SetBlockPermissionsBuilder;
|
|
@@ -1,22 +1,90 @@
|
|
|
1
|
+
import { AxisScaleUpdate } from './axis_scale_update';
|
|
2
|
+
import { ChartBlockSource } from './chart_block_source';
|
|
3
|
+
import { CreateChartSeries } from './create_chart_series';
|
|
4
|
+
import { OfPieSplitUpdate } from './of_pie_split_update';
|
|
1
5
|
export interface UpdateChart {
|
|
2
6
|
sheetIdx: number;
|
|
3
7
|
chartId: string;
|
|
4
8
|
chartType?: string;
|
|
5
9
|
title?: string;
|
|
10
|
+
legendPos?: string;
|
|
11
|
+
stacked?: boolean;
|
|
12
|
+
catAxisTitle?: string;
|
|
13
|
+
valAxisTitle?: string;
|
|
14
|
+
showDataLabels?: boolean;
|
|
15
|
+
showCategoryLabels?: boolean;
|
|
16
|
+
showSeriesLabels?: boolean;
|
|
17
|
+
showPercentLabels?: boolean;
|
|
18
|
+
dataLabelPosition?: string;
|
|
19
|
+
numFmt?: string;
|
|
20
|
+
categoriesRef?: string;
|
|
21
|
+
series?: readonly CreateChartSeries[];
|
|
22
|
+
valAxisScale?: AxisScaleUpdate;
|
|
23
|
+
catAxisScale?: AxisScaleUpdate;
|
|
24
|
+
ofPieSplit?: OfPieSplitUpdate;
|
|
25
|
+
blockSource?: ChartBlockSource;
|
|
6
26
|
}
|
|
7
27
|
export declare class UpdateChartBuilder {
|
|
8
28
|
private _sheetIdx;
|
|
9
29
|
private _chartId;
|
|
10
30
|
private _chartType?;
|
|
11
31
|
private _title?;
|
|
32
|
+
private _legendPos?;
|
|
33
|
+
private _stacked?;
|
|
34
|
+
private _catAxisTitle?;
|
|
35
|
+
private _valAxisTitle?;
|
|
36
|
+
private _showDataLabels?;
|
|
37
|
+
private _showCategoryLabels?;
|
|
38
|
+
private _showSeriesLabels?;
|
|
39
|
+
private _showPercentLabels?;
|
|
40
|
+
private _dataLabelPosition?;
|
|
41
|
+
private _numFmt?;
|
|
42
|
+
private _categoriesRef?;
|
|
43
|
+
private _series?;
|
|
44
|
+
private _valAxisScale?;
|
|
45
|
+
private _catAxisScale?;
|
|
46
|
+
private _ofPieSplit?;
|
|
47
|
+
private _blockSource?;
|
|
12
48
|
sheetIdx(value: number): this;
|
|
13
49
|
chartId(value: string): this;
|
|
14
50
|
chartType(value: string): this;
|
|
15
51
|
title(value: string): this;
|
|
52
|
+
legendPos(value: string): this;
|
|
53
|
+
stacked(value: boolean): this;
|
|
54
|
+
catAxisTitle(value: string): this;
|
|
55
|
+
valAxisTitle(value: string): this;
|
|
56
|
+
showDataLabels(value: boolean): this;
|
|
57
|
+
showCategoryLabels(value: boolean): this;
|
|
58
|
+
showSeriesLabels(value: boolean): this;
|
|
59
|
+
showPercentLabels(value: boolean): this;
|
|
60
|
+
dataLabelPosition(value: string): this;
|
|
61
|
+
numFmt(value: string): this;
|
|
62
|
+
categoriesRef(value: string): this;
|
|
63
|
+
series(value: readonly CreateChartSeries[]): this;
|
|
64
|
+
valAxisScale(value: AxisScaleUpdate): this;
|
|
65
|
+
catAxisScale(value: AxisScaleUpdate): this;
|
|
66
|
+
ofPieSplit(value: OfPieSplitUpdate): this;
|
|
67
|
+
blockSource(value: ChartBlockSource): this;
|
|
16
68
|
build(): {
|
|
17
69
|
sheetIdx: number;
|
|
18
70
|
chartId: string;
|
|
19
71
|
chartType: string | undefined;
|
|
20
72
|
title: string | undefined;
|
|
73
|
+
legendPos: string | undefined;
|
|
74
|
+
stacked: boolean | undefined;
|
|
75
|
+
catAxisTitle: string | undefined;
|
|
76
|
+
valAxisTitle: string | undefined;
|
|
77
|
+
showDataLabels: boolean | undefined;
|
|
78
|
+
showCategoryLabels: boolean | undefined;
|
|
79
|
+
showSeriesLabels: boolean | undefined;
|
|
80
|
+
showPercentLabels: boolean | undefined;
|
|
81
|
+
dataLabelPosition: string | undefined;
|
|
82
|
+
numFmt: string | undefined;
|
|
83
|
+
categoriesRef: string | undefined;
|
|
84
|
+
series: readonly CreateChartSeries[] | undefined;
|
|
85
|
+
valAxisScale: AxisScaleUpdate | undefined;
|
|
86
|
+
catAxisScale: AxisScaleUpdate | undefined;
|
|
87
|
+
ofPieSplit: OfPieSplitUpdate | undefined;
|
|
88
|
+
blockSource: ChartBlockSource | undefined;
|
|
21
89
|
};
|
|
22
90
|
}
|
|
@@ -6,6 +6,22 @@ class UpdateChartBuilder {
|
|
|
6
6
|
_chartId;
|
|
7
7
|
_chartType;
|
|
8
8
|
_title;
|
|
9
|
+
_legendPos;
|
|
10
|
+
_stacked;
|
|
11
|
+
_catAxisTitle;
|
|
12
|
+
_valAxisTitle;
|
|
13
|
+
_showDataLabels;
|
|
14
|
+
_showCategoryLabels;
|
|
15
|
+
_showSeriesLabels;
|
|
16
|
+
_showPercentLabels;
|
|
17
|
+
_dataLabelPosition;
|
|
18
|
+
_numFmt;
|
|
19
|
+
_categoriesRef;
|
|
20
|
+
_series;
|
|
21
|
+
_valAxisScale;
|
|
22
|
+
_catAxisScale;
|
|
23
|
+
_ofPieSplit;
|
|
24
|
+
_blockSource;
|
|
9
25
|
sheetIdx(value) {
|
|
10
26
|
this._sheetIdx = value;
|
|
11
27
|
return this;
|
|
@@ -22,12 +38,76 @@ class UpdateChartBuilder {
|
|
|
22
38
|
this._title = value;
|
|
23
39
|
return this;
|
|
24
40
|
}
|
|
41
|
+
legendPos(value) {
|
|
42
|
+
this._legendPos = value;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
stacked(value) {
|
|
46
|
+
this._stacked = value;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
catAxisTitle(value) {
|
|
50
|
+
this._catAxisTitle = value;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
valAxisTitle(value) {
|
|
54
|
+
this._valAxisTitle = value;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
showDataLabels(value) {
|
|
58
|
+
this._showDataLabels = value;
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
showCategoryLabels(value) {
|
|
62
|
+
this._showCategoryLabels = value;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
showSeriesLabels(value) {
|
|
66
|
+
this._showSeriesLabels = value;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
showPercentLabels(value) {
|
|
70
|
+
this._showPercentLabels = value;
|
|
71
|
+
return this;
|
|
72
|
+
}
|
|
73
|
+
dataLabelPosition(value) {
|
|
74
|
+
this._dataLabelPosition = value;
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
numFmt(value) {
|
|
78
|
+
this._numFmt = value;
|
|
79
|
+
return this;
|
|
80
|
+
}
|
|
81
|
+
categoriesRef(value) {
|
|
82
|
+
this._categoriesRef = value;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
series(value) {
|
|
86
|
+
this._series = value;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
valAxisScale(value) {
|
|
90
|
+
this._valAxisScale = value;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
catAxisScale(value) {
|
|
94
|
+
this._catAxisScale = value;
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
ofPieSplit(value) {
|
|
98
|
+
this._ofPieSplit = value;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
blockSource(value) {
|
|
102
|
+
this._blockSource = value;
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
25
105
|
build() {
|
|
26
106
|
if (this._sheetIdx === undefined)
|
|
27
107
|
throw new Error('missing sheetIdx');
|
|
28
108
|
if (this._chartId === undefined)
|
|
29
109
|
throw new Error('missing chartId');
|
|
30
|
-
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, title: this._title };
|
|
110
|
+
return { sheetIdx: this._sheetIdx, chartId: this._chartId, chartType: this._chartType, title: this._title, legendPos: this._legendPos, stacked: this._stacked, catAxisTitle: this._catAxisTitle, valAxisTitle: this._valAxisTitle, showDataLabels: this._showDataLabels, showCategoryLabels: this._showCategoryLabels, showSeriesLabels: this._showSeriesLabels, showPercentLabels: this._showPercentLabels, dataLabelPosition: this._dataLabelPosition, numFmt: this._numFmt, categoriesRef: this._categoriesRef, series: this._series, valAxisScale: this._valAxisScale, catAxisScale: this._catAxisScale, ofPieSplit: this._ofPieSplit, blockSource: this._blockSource };
|
|
31
111
|
}
|
|
32
112
|
}
|
|
33
113
|
exports.UpdateChartBuilder = UpdateChartBuilder;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Render a
|
|
5
|
-
*
|
|
6
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
7
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
4
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
5
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
8
6
|
*/
|
|
9
|
-
export function
|
|
7
|
+
export function format_text(fmt: string, text: string): string;
|
|
10
8
|
/**
|
|
11
9
|
* Input: AsyncFuncResult
|
|
12
10
|
* Output: ActionAffect
|
|
13
11
|
*/
|
|
14
12
|
export function input_async_result(id: number, result: any): any;
|
|
15
13
|
/**
|
|
16
|
-
* Render a
|
|
17
|
-
*
|
|
14
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
15
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
16
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
17
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
18
18
|
*/
|
|
19
|
-
export function
|
|
19
|
+
export function format_number(fmt: string, value: number): string;
|
|
20
20
|
export function handle(msg: any, book_id?: number | null): any;
|
|
@@ -171,26 +171,26 @@ function debugString(val) {
|
|
|
171
171
|
return className;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
|
-
* Render a
|
|
175
|
-
*
|
|
176
|
-
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
177
|
-
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
174
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
175
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
178
176
|
* @param {string} fmt
|
|
179
|
-
* @param {
|
|
177
|
+
* @param {string} text
|
|
180
178
|
* @returns {string}
|
|
181
179
|
*/
|
|
182
|
-
module.exports.
|
|
183
|
-
let
|
|
184
|
-
let
|
|
180
|
+
module.exports.format_text = function(fmt, text) {
|
|
181
|
+
let deferred3_0;
|
|
182
|
+
let deferred3_1;
|
|
185
183
|
try {
|
|
186
184
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
187
185
|
const len0 = WASM_VECTOR_LEN;
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
186
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
187
|
+
const len1 = WASM_VECTOR_LEN;
|
|
188
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
189
|
+
deferred3_0 = ret[0];
|
|
190
|
+
deferred3_1 = ret[1];
|
|
191
191
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
192
|
} finally {
|
|
193
|
-
wasm.__wbindgen_free(
|
|
193
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
|
|
@@ -207,26 +207,26 @@ module.exports.input_async_result = function(id, result) {
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Render a
|
|
211
|
-
*
|
|
210
|
+
* Render a number with an Excel number-format code, natively via `ssf-rs`
|
|
211
|
+
* (the Rust port of SheetJS `ssf`). Replaces the browser's old dependency on
|
|
212
|
+
* the `ssf` npm package. On an unsupported/invalid format it falls back to the
|
|
213
|
+
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
212
214
|
* @param {string} fmt
|
|
213
|
-
* @param {
|
|
215
|
+
* @param {number} value
|
|
214
216
|
* @returns {string}
|
|
215
217
|
*/
|
|
216
|
-
module.exports.
|
|
217
|
-
let
|
|
218
|
-
let
|
|
218
|
+
module.exports.format_number = function(fmt, value) {
|
|
219
|
+
let deferred2_0;
|
|
220
|
+
let deferred2_1;
|
|
219
221
|
try {
|
|
220
222
|
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
221
223
|
const len0 = WASM_VECTOR_LEN;
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
deferred3_0 = ret[0];
|
|
226
|
-
deferred3_1 = ret[1];
|
|
224
|
+
const ret = wasm.format_number(ptr0, len0, value);
|
|
225
|
+
deferred2_0 = ret[0];
|
|
226
|
+
deferred2_1 = ret[1];
|
|
227
227
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
228
228
|
} finally {
|
|
229
|
-
wasm.__wbindgen_free(
|
|
229
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "logisheets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|