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
|
@@ -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
|