logisheets 0.6.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/README.md +15 -0
- package/index.ts +1 -0
- package/package.json +31 -0
- package/src/api/index.ts +1 -0
- package/src/api/workbook.ts +201 -0
- package/src/bindings/action_effect.ts +17 -0
- package/src/bindings/async_func_result.ts +12 -0
- package/src/bindings/block_cell_id.ts +7 -0
- package/src/bindings/block_info.ts +9 -0
- package/src/bindings/block_input.ts +9 -0
- package/src/bindings/block_style_update.ts +10 -0
- package/src/bindings/border.ts +15 -0
- package/src/bindings/border_pr.ts +8 -0
- package/src/bindings/cell_alignment.ts +15 -0
- package/src/bindings/cell_formula_value.ts +9 -0
- package/src/bindings/cell_id.ts +7 -0
- package/src/bindings/cell_input.ts +9 -0
- package/src/bindings/cell_protection.ts +6 -0
- package/src/bindings/cell_style.ts +8 -0
- package/src/bindings/col_info.ts +7 -0
- package/src/bindings/color.ts +8 -0
- package/src/bindings/comment.ts +8 -0
- package/src/bindings/create_block.ts +15 -0
- package/src/bindings/create_sheet.ts +6 -0
- package/src/bindings/delete_cols.ts +7 -0
- package/src/bindings/delete_cols_in_block.ts +8 -0
- package/src/bindings/delete_rows.ts +7 -0
- package/src/bindings/delete_rows_in_block.ts +8 -0
- package/src/bindings/delete_sheet.ts +5 -0
- package/src/bindings/display_patch.ts +19 -0
- package/src/bindings/display_request.ts +6 -0
- package/src/bindings/display_response.ts +7 -0
- package/src/bindings/edit_action.ts +10 -0
- package/src/bindings/edit_payload.ts +47 -0
- package/src/bindings/fill.ts +7 -0
- package/src/bindings/font.ts +25 -0
- package/src/bindings/font_family.ts +5 -0
- package/src/bindings/font_name.ts +5 -0
- package/src/bindings/font_scheme.ts +6 -0
- package/src/bindings/gradient_fill.ts +13 -0
- package/src/bindings/gradient_stop.ts +7 -0
- package/src/bindings/index.ts +85 -0
- package/src/bindings/insert_cols.ts +7 -0
- package/src/bindings/insert_cols_in_block.ts +8 -0
- package/src/bindings/insert_rows.ts +7 -0
- package/src/bindings/insert_rows_in_block.ts +8 -0
- package/src/bindings/merge_cell.ts +8 -0
- package/src/bindings/move_block.ts +8 -0
- package/src/bindings/msg_edit.ts +9 -0
- package/src/bindings/msg_join.ts +9 -0
- package/src/bindings/msg_sequencer_action_invalid_message.ts +10 -0
- package/src/bindings/msg_sequencer_action_message.ts +10 -0
- package/src/bindings/msg_sequencer_init_workbook.ts +8 -0
- package/src/bindings/msg_sequencer_message.ts +9 -0
- package/src/bindings/msg_user_message.ts +7 -0
- package/src/bindings/normal_cell_id.ts +6 -0
- package/src/bindings/pattern_fill.ts +9 -0
- package/src/bindings/payloads_action.ts +15 -0
- package/src/bindings/recalc_cell.ts +7 -0
- package/src/bindings/remove_block.ts +6 -0
- package/src/bindings/row_info.ts +7 -0
- package/src/bindings/set_col_width.ts +7 -0
- package/src/bindings/set_row_height.ts +7 -0
- package/src/bindings/set_visible.ts +8 -0
- package/src/bindings/sheet_blocks.ts +7 -0
- package/src/bindings/sheet_col_info.ts +8 -0
- package/src/bindings/sheet_comments.ts +7 -0
- package/src/bindings/sheet_merge_cells.ts +7 -0
- package/src/bindings/sheet_names.ts +5 -0
- package/src/bindings/sheet_rename.ts +8 -0
- package/src/bindings/sheet_row_info.ts +8 -0
- package/src/bindings/sheet_styles.ts +7 -0
- package/src/bindings/sheet_values.ts +7 -0
- package/src/bindings/st_border_style.ts +17 -0
- package/src/bindings/st_font_scheme.ts +6 -0
- package/src/bindings/st_gradient_type.ts +6 -0
- package/src/bindings/st_horizontal_alignment.ts +12 -0
- package/src/bindings/st_pattern_type.ts +23 -0
- package/src/bindings/st_underline_values.ts +9 -0
- package/src/bindings/st_vertical_align_run.ts +7 -0
- package/src/bindings/st_vertical_alignment.ts +9 -0
- package/src/bindings/status_code.ts +5 -0
- package/src/bindings/style.ts +15 -0
- package/src/bindings/style_update.ts +9 -0
- package/src/bindings/style_update_type.ts +29 -0
- package/src/bindings/task.ts +6 -0
- package/src/bindings/underline_property.ts +6 -0
- package/src/bindings/value.ts +8 -0
- package/src/bindings/vertical_align_font_property.ts +6 -0
- package/src/bindings/workbook_file.ts +6 -0
- package/src/index.ts +42 -0
- package/src/payloads/block_input.ts +54 -0
- package/src/payloads/cell_input.ts +44 -0
- package/src/payloads/create_block.ts +78 -0
- package/src/payloads/delete_block_cols.ts +44 -0
- package/src/payloads/delete_block_rows.ts +44 -0
- package/src/payloads/delete_cols.ts +37 -0
- package/src/payloads/delete_rows.ts +37 -0
- package/src/payloads/delete_sheet.ts +19 -0
- package/src/payloads/index.ts +66 -0
- package/src/payloads/insert_block_cols.ts +44 -0
- package/src/payloads/insert_block_rows.ts +44 -0
- package/src/payloads/insert_cols.ts +35 -0
- package/src/payloads/insert_rows.ts +36 -0
- package/src/payloads/insert_sheet.ts +27 -0
- package/src/payloads/move_block.ts +45 -0
- package/src/payloads/set_border.ts +113 -0
- package/src/payloads/set_col_visible.ts +35 -0
- package/src/payloads/set_col_width.ts +35 -0
- package/src/payloads/set_font.ts +107 -0
- package/src/payloads/set_row_height.ts +35 -0
- package/src/payloads/set_row_visible.ts +35 -0
- package/src/payloads/sheet_rename.ts +35 -0
- package/src/transactions.ts +14 -0
- package/wasm/.gitignore +1 -0
- package/wasm/logisheets_wasm_server.d.ts +255 -0
- package/wasm/logisheets_wasm_server.js +946 -0
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/logisheets_wasm_server_bg.wasm.d.ts +40 -0
- package/wasm/package.json +14 -0
|
@@ -0,0 +1,946 @@
|
|
|
1
|
+
let imports = {};
|
|
2
|
+
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
|
+
let wasm;
|
|
4
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
5
|
+
|
|
6
|
+
const heap = new Array(128).fill(undefined);
|
|
7
|
+
|
|
8
|
+
heap.push(undefined, null, true, false);
|
|
9
|
+
|
|
10
|
+
function getObject(idx) { return heap[idx]; }
|
|
11
|
+
|
|
12
|
+
let heap_next = heap.length;
|
|
13
|
+
|
|
14
|
+
function dropObject(idx) {
|
|
15
|
+
if (idx < 132) return;
|
|
16
|
+
heap[idx] = heap_next;
|
|
17
|
+
heap_next = idx;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function takeObject(idx) {
|
|
21
|
+
const ret = getObject(idx);
|
|
22
|
+
dropObject(idx);
|
|
23
|
+
return ret;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let WASM_VECTOR_LEN = 0;
|
|
27
|
+
|
|
28
|
+
let cachedUint8Memory0 = null;
|
|
29
|
+
|
|
30
|
+
function getUint8Memory0() {
|
|
31
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
32
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
33
|
+
}
|
|
34
|
+
return cachedUint8Memory0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
38
|
+
|
|
39
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
40
|
+
? function (arg, view) {
|
|
41
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
42
|
+
}
|
|
43
|
+
: function (arg, view) {
|
|
44
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
45
|
+
view.set(buf);
|
|
46
|
+
return {
|
|
47
|
+
read: arg.length,
|
|
48
|
+
written: buf.length
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
53
|
+
|
|
54
|
+
if (realloc === undefined) {
|
|
55
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
+
const ptr = malloc(buf.length);
|
|
57
|
+
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
58
|
+
WASM_VECTOR_LEN = buf.length;
|
|
59
|
+
return ptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let len = arg.length;
|
|
63
|
+
let ptr = malloc(len);
|
|
64
|
+
|
|
65
|
+
const mem = getUint8Memory0();
|
|
66
|
+
|
|
67
|
+
let offset = 0;
|
|
68
|
+
|
|
69
|
+
for (; offset < len; offset++) {
|
|
70
|
+
const code = arg.charCodeAt(offset);
|
|
71
|
+
if (code > 0x7F) break;
|
|
72
|
+
mem[ptr + offset] = code;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (offset !== len) {
|
|
76
|
+
if (offset !== 0) {
|
|
77
|
+
arg = arg.slice(offset);
|
|
78
|
+
}
|
|
79
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
80
|
+
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
81
|
+
const ret = encodeString(arg, view);
|
|
82
|
+
|
|
83
|
+
offset += ret.written;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
WASM_VECTOR_LEN = offset;
|
|
87
|
+
return ptr;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function isLikeNone(x) {
|
|
91
|
+
return x === undefined || x === null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
let cachedInt32Memory0 = null;
|
|
95
|
+
|
|
96
|
+
function getInt32Memory0() {
|
|
97
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
98
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
99
|
+
}
|
|
100
|
+
return cachedInt32Memory0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
|
+
|
|
105
|
+
cachedTextDecoder.decode();
|
|
106
|
+
|
|
107
|
+
function getStringFromWasm0(ptr, len) {
|
|
108
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function addHeapObject(obj) {
|
|
112
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
113
|
+
const idx = heap_next;
|
|
114
|
+
heap_next = heap[idx];
|
|
115
|
+
|
|
116
|
+
heap[idx] = obj;
|
|
117
|
+
return idx;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
let cachedFloat64Memory0 = null;
|
|
121
|
+
|
|
122
|
+
function getFloat64Memory0() {
|
|
123
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
124
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
125
|
+
}
|
|
126
|
+
return cachedFloat64Memory0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function debugString(val) {
|
|
130
|
+
// primitive types
|
|
131
|
+
const type = typeof val;
|
|
132
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
133
|
+
return `${val}`;
|
|
134
|
+
}
|
|
135
|
+
if (type == 'string') {
|
|
136
|
+
return `"${val}"`;
|
|
137
|
+
}
|
|
138
|
+
if (type == 'symbol') {
|
|
139
|
+
const description = val.description;
|
|
140
|
+
if (description == null) {
|
|
141
|
+
return 'Symbol';
|
|
142
|
+
} else {
|
|
143
|
+
return `Symbol(${description})`;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (type == 'function') {
|
|
147
|
+
const name = val.name;
|
|
148
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
149
|
+
return `Function(${name})`;
|
|
150
|
+
} else {
|
|
151
|
+
return 'Function';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// objects
|
|
155
|
+
if (Array.isArray(val)) {
|
|
156
|
+
const length = val.length;
|
|
157
|
+
let debug = '[';
|
|
158
|
+
if (length > 0) {
|
|
159
|
+
debug += debugString(val[0]);
|
|
160
|
+
}
|
|
161
|
+
for(let i = 1; i < length; i++) {
|
|
162
|
+
debug += ', ' + debugString(val[i]);
|
|
163
|
+
}
|
|
164
|
+
debug += ']';
|
|
165
|
+
return debug;
|
|
166
|
+
}
|
|
167
|
+
// Test for built-in
|
|
168
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
169
|
+
let className;
|
|
170
|
+
if (builtInMatches.length > 1) {
|
|
171
|
+
className = builtInMatches[1];
|
|
172
|
+
} else {
|
|
173
|
+
// Failed to match the standard '[object ClassName]'
|
|
174
|
+
return toString.call(val);
|
|
175
|
+
}
|
|
176
|
+
if (className == 'Object') {
|
|
177
|
+
// we're a user defined class or Object
|
|
178
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
179
|
+
// easier than looping through ownProperties of `val`.
|
|
180
|
+
try {
|
|
181
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
182
|
+
} catch (_) {
|
|
183
|
+
return 'Object';
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// errors
|
|
187
|
+
if (val instanceof Error) {
|
|
188
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
189
|
+
}
|
|
190
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
191
|
+
return className;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @returns {number}
|
|
195
|
+
*/
|
|
196
|
+
module.exports.new_workbook = function() {
|
|
197
|
+
const ret = wasm.new_workbook();
|
|
198
|
+
return ret >>> 0;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
202
|
+
const ptr = malloc(arg.length * 1);
|
|
203
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
204
|
+
WASM_VECTOR_LEN = arg.length;
|
|
205
|
+
return ptr;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* @param {number} id
|
|
209
|
+
* @param {string} name
|
|
210
|
+
* @param {Uint8Array} buf
|
|
211
|
+
* @returns {number}
|
|
212
|
+
*/
|
|
213
|
+
module.exports.read_file = function(id, name, buf) {
|
|
214
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
215
|
+
const len0 = WASM_VECTOR_LEN;
|
|
216
|
+
const ptr1 = passArray8ToWasm0(buf, wasm.__wbindgen_malloc);
|
|
217
|
+
const len1 = WASM_VECTOR_LEN;
|
|
218
|
+
const ret = wasm.read_file(id, ptr0, len0, ptr1, len1);
|
|
219
|
+
return ret;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @param {number} id
|
|
224
|
+
* @returns {any}
|
|
225
|
+
*/
|
|
226
|
+
module.exports.save_file = function(id) {
|
|
227
|
+
const ret = wasm.save_file(id);
|
|
228
|
+
return takeObject(ret);
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @param {number} id
|
|
233
|
+
*/
|
|
234
|
+
module.exports.release = function(id) {
|
|
235
|
+
wasm.release(id);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @param {number} id
|
|
240
|
+
* @returns {boolean}
|
|
241
|
+
*/
|
|
242
|
+
module.exports.undo = function(id) {
|
|
243
|
+
const ret = wasm.undo(id);
|
|
244
|
+
return ret !== 0;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {number} id
|
|
249
|
+
* @returns {boolean}
|
|
250
|
+
*/
|
|
251
|
+
module.exports.redo = function(id) {
|
|
252
|
+
const ret = wasm.redo(id);
|
|
253
|
+
return ret !== 0;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @param {number} id
|
|
258
|
+
*/
|
|
259
|
+
module.exports.transaction_start = function(id) {
|
|
260
|
+
wasm.transaction_start(id);
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The JSON format of `ActionEffect`.
|
|
265
|
+
* @param {number} id
|
|
266
|
+
* @param {boolean} undoable
|
|
267
|
+
* @returns {any}
|
|
268
|
+
*/
|
|
269
|
+
module.exports.transaction_end = function(id, undoable) {
|
|
270
|
+
const ret = wasm.transaction_end(id, undoable);
|
|
271
|
+
return takeObject(ret);
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Input: AsyncFuncResult
|
|
276
|
+
* Output: ActionAffect
|
|
277
|
+
* @param {number} id
|
|
278
|
+
* @param {any} result
|
|
279
|
+
* @returns {any}
|
|
280
|
+
*/
|
|
281
|
+
module.exports.input_async_result = function(id, result) {
|
|
282
|
+
const ret = wasm.input_async_result(id, addHeapObject(result));
|
|
283
|
+
return takeObject(ret);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* logisheets_controller::DisplayResponse
|
|
288
|
+
* @param {number} id
|
|
289
|
+
* @param {number} sheet_idx
|
|
290
|
+
* @param {number} version
|
|
291
|
+
* @returns {any}
|
|
292
|
+
*/
|
|
293
|
+
module.exports.get_patches = function(id, sheet_idx, version) {
|
|
294
|
+
const ret = wasm.get_patches(id, sheet_idx, version);
|
|
295
|
+
return takeObject(ret);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @param {number} id
|
|
300
|
+
* @returns {number}
|
|
301
|
+
*/
|
|
302
|
+
module.exports.get_sheet_count = function(id) {
|
|
303
|
+
const ret = wasm.get_sheet_count(id);
|
|
304
|
+
return ret >>> 0;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @param {number} id
|
|
309
|
+
* @param {number} sheet_idx
|
|
310
|
+
* @param {number} row_idx
|
|
311
|
+
* @returns {any}
|
|
312
|
+
*/
|
|
313
|
+
module.exports.get_row_info = function(id, sheet_idx, row_idx) {
|
|
314
|
+
const ret = wasm.get_row_info(id, sheet_idx, row_idx);
|
|
315
|
+
return takeObject(ret);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @param {number} id
|
|
320
|
+
* @param {number} sheet_idx
|
|
321
|
+
* @param {number} row_idx
|
|
322
|
+
* @returns {any}
|
|
323
|
+
*/
|
|
324
|
+
module.exports.get_row_height = function(id, sheet_idx, row_idx) {
|
|
325
|
+
const ret = wasm.get_row_height(id, sheet_idx, row_idx);
|
|
326
|
+
return takeObject(ret);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @param {number} id
|
|
331
|
+
* @param {number} sheet_idx
|
|
332
|
+
* @param {number} col_idx
|
|
333
|
+
* @returns {any}
|
|
334
|
+
*/
|
|
335
|
+
module.exports.get_col_width = function(id, sheet_idx, col_idx) {
|
|
336
|
+
const ret = wasm.get_col_width(id, sheet_idx, col_idx);
|
|
337
|
+
return takeObject(ret);
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @param {number} id
|
|
342
|
+
* @param {number} sheet_idx
|
|
343
|
+
* @param {number} row
|
|
344
|
+
* @param {number} col
|
|
345
|
+
* @returns {any}
|
|
346
|
+
*/
|
|
347
|
+
module.exports.get_cell_info = function(id, sheet_idx, row, col) {
|
|
348
|
+
const ret = wasm.get_cell_info(id, sheet_idx, row, col);
|
|
349
|
+
return takeObject(ret);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @param {number} id
|
|
354
|
+
* @param {number} sheet_idx
|
|
355
|
+
* @param {number} col_idx
|
|
356
|
+
* @returns {any}
|
|
357
|
+
*/
|
|
358
|
+
module.exports.get_col_info = function(id, sheet_idx, col_idx) {
|
|
359
|
+
const ret = wasm.get_col_info(id, sheet_idx, col_idx);
|
|
360
|
+
return takeObject(ret);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @param {number} id
|
|
365
|
+
* @param {number} sheet_idx
|
|
366
|
+
* @param {number} row_idx
|
|
367
|
+
* @param {number} col_idx
|
|
368
|
+
* @returns {any}
|
|
369
|
+
*/
|
|
370
|
+
module.exports.get_value = function(id, sheet_idx, row_idx, col_idx) {
|
|
371
|
+
const ret = wasm.get_value(id, sheet_idx, row_idx, col_idx);
|
|
372
|
+
return takeObject(ret);
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @param {number} id
|
|
377
|
+
* @param {number} sheet_idx
|
|
378
|
+
* @param {number} row_idx
|
|
379
|
+
* @param {number} col_idx
|
|
380
|
+
* @returns {any}
|
|
381
|
+
*/
|
|
382
|
+
module.exports.get_formula = function(id, sheet_idx, row_idx, col_idx) {
|
|
383
|
+
const ret = wasm.get_formula(id, sheet_idx, row_idx, col_idx);
|
|
384
|
+
return takeObject(ret);
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @param {number} id
|
|
389
|
+
* @param {number} sheet_idx
|
|
390
|
+
* @param {number} row_idx
|
|
391
|
+
* @param {number} col_idx
|
|
392
|
+
* @returns {any}
|
|
393
|
+
*/
|
|
394
|
+
module.exports.get_style = function(id, sheet_idx, row_idx, col_idx) {
|
|
395
|
+
const ret = wasm.get_style(id, sheet_idx, row_idx, col_idx);
|
|
396
|
+
return takeObject(ret);
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* @param {number} id
|
|
401
|
+
* @param {number} sheet_idx
|
|
402
|
+
* @param {number} row
|
|
403
|
+
* @param {number} col
|
|
404
|
+
* @param {boolean | undefined} bold
|
|
405
|
+
* @param {boolean | undefined} italic
|
|
406
|
+
* @param {string | undefined} name
|
|
407
|
+
* @param {string | undefined} underline
|
|
408
|
+
* @param {string | undefined} color
|
|
409
|
+
* @param {number | undefined} size
|
|
410
|
+
* @param {boolean | undefined} outline
|
|
411
|
+
* @param {boolean | undefined} shadow
|
|
412
|
+
* @param {boolean | undefined} strike
|
|
413
|
+
* @param {boolean | undefined} condense
|
|
414
|
+
*/
|
|
415
|
+
module.exports.set_font = function(id, sheet_idx, row, col, bold, italic, name, underline, color, size, outline, shadow, strike, condense) {
|
|
416
|
+
var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
417
|
+
var len0 = WASM_VECTOR_LEN;
|
|
418
|
+
var ptr1 = isLikeNone(underline) ? 0 : passStringToWasm0(underline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
|
+
var len1 = WASM_VECTOR_LEN;
|
|
420
|
+
var ptr2 = isLikeNone(color) ? 0 : passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
421
|
+
var len2 = WASM_VECTOR_LEN;
|
|
422
|
+
wasm.set_font(id, sheet_idx, row, col, isLikeNone(bold) ? 0xFFFFFF : bold ? 1 : 0, isLikeNone(italic) ? 0xFFFFFF : italic ? 1 : 0, ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(size), isLikeNone(size) ? 0 : size, isLikeNone(outline) ? 0xFFFFFF : outline ? 1 : 0, isLikeNone(shadow) ? 0xFFFFFF : shadow ? 1 : 0, isLikeNone(strike) ? 0xFFFFFF : strike ? 1 : 0, isLikeNone(condense) ? 0xFFFFFF : condense ? 1 : 0);
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @param {number} id
|
|
427
|
+
* @param {number} sheet_idx
|
|
428
|
+
* @param {number} row
|
|
429
|
+
* @param {number} col
|
|
430
|
+
* @param {string | undefined} left_color
|
|
431
|
+
* @param {string | undefined} right_color
|
|
432
|
+
* @param {string | undefined} top_color
|
|
433
|
+
* @param {string | undefined} bottom_color
|
|
434
|
+
* @param {string | undefined} left_border_type
|
|
435
|
+
* @param {string | undefined} right_border_type
|
|
436
|
+
* @param {string | undefined} top_border_type
|
|
437
|
+
* @param {string | undefined} bottom_border_type
|
|
438
|
+
* @param {boolean | undefined} outline
|
|
439
|
+
* @param {boolean | undefined} diagonal_up
|
|
440
|
+
* @param {boolean | undefined} diagonal_down
|
|
441
|
+
*/
|
|
442
|
+
module.exports.set_border = function(id, sheet_idx, row, col, left_color, right_color, top_color, bottom_color, left_border_type, right_border_type, top_border_type, bottom_border_type, outline, diagonal_up, diagonal_down) {
|
|
443
|
+
var ptr0 = isLikeNone(left_color) ? 0 : passStringToWasm0(left_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
|
+
var len0 = WASM_VECTOR_LEN;
|
|
445
|
+
var ptr1 = isLikeNone(right_color) ? 0 : passStringToWasm0(right_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
446
|
+
var len1 = WASM_VECTOR_LEN;
|
|
447
|
+
var ptr2 = isLikeNone(top_color) ? 0 : passStringToWasm0(top_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
448
|
+
var len2 = WASM_VECTOR_LEN;
|
|
449
|
+
var ptr3 = isLikeNone(bottom_color) ? 0 : passStringToWasm0(bottom_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
450
|
+
var len3 = WASM_VECTOR_LEN;
|
|
451
|
+
var ptr4 = isLikeNone(left_border_type) ? 0 : passStringToWasm0(left_border_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
452
|
+
var len4 = WASM_VECTOR_LEN;
|
|
453
|
+
var ptr5 = isLikeNone(right_border_type) ? 0 : passStringToWasm0(right_border_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
454
|
+
var len5 = WASM_VECTOR_LEN;
|
|
455
|
+
var ptr6 = isLikeNone(top_border_type) ? 0 : passStringToWasm0(top_border_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
456
|
+
var len6 = WASM_VECTOR_LEN;
|
|
457
|
+
var ptr7 = isLikeNone(bottom_border_type) ? 0 : passStringToWasm0(bottom_border_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
458
|
+
var len7 = WASM_VECTOR_LEN;
|
|
459
|
+
wasm.set_border(id, sheet_idx, row, col, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(outline) ? 0xFFFFFF : outline ? 1 : 0, isLikeNone(diagonal_up) ? 0xFFFFFF : diagonal_up ? 1 : 0, isLikeNone(diagonal_down) ? 0xFFFFFF : diagonal_down ? 1 : 0);
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @param {number} id
|
|
464
|
+
* @param {number} sheet_idx
|
|
465
|
+
* @param {number} row
|
|
466
|
+
* @param {number} col
|
|
467
|
+
* @param {string} content
|
|
468
|
+
*/
|
|
469
|
+
module.exports.cell_input = function(id, sheet_idx, row, col, content) {
|
|
470
|
+
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
471
|
+
const len0 = WASM_VECTOR_LEN;
|
|
472
|
+
wasm.cell_input(id, sheet_idx, row, col, ptr0, len0);
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @param {number} id
|
|
477
|
+
* @param {number} sheet_idx
|
|
478
|
+
* @param {number} start
|
|
479
|
+
* @param {number} count
|
|
480
|
+
*/
|
|
481
|
+
module.exports.row_insert = function(id, sheet_idx, start, count) {
|
|
482
|
+
wasm.row_insert(id, sheet_idx, start, count);
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @param {number} id
|
|
487
|
+
* @param {number} sheet_idx
|
|
488
|
+
* @param {number} start
|
|
489
|
+
* @param {number} count
|
|
490
|
+
*/
|
|
491
|
+
module.exports.row_delete = function(id, sheet_idx, start, count) {
|
|
492
|
+
wasm.row_delete(id, sheet_idx, start, count);
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* @param {number} id
|
|
497
|
+
* @param {number} sheet_idx
|
|
498
|
+
* @param {number} start
|
|
499
|
+
* @param {number} count
|
|
500
|
+
*/
|
|
501
|
+
module.exports.col_insert = function(id, sheet_idx, start, count) {
|
|
502
|
+
wasm.col_insert(id, sheet_idx, start, count);
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* @param {number} id
|
|
507
|
+
* @param {number} sheet_idx
|
|
508
|
+
* @param {number} start
|
|
509
|
+
* @param {number} count
|
|
510
|
+
*/
|
|
511
|
+
module.exports.col_delete = function(id, sheet_idx, start, count) {
|
|
512
|
+
wasm.col_delete(id, sheet_idx, start, count);
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @param {number} id
|
|
517
|
+
* @param {number} sheet_idx
|
|
518
|
+
* @param {number} block_id
|
|
519
|
+
* @param {number} master_row
|
|
520
|
+
* @param {number} master_col
|
|
521
|
+
* @param {number} row_cnt
|
|
522
|
+
* @param {number} col_cnt
|
|
523
|
+
*/
|
|
524
|
+
module.exports.create_block = function(id, sheet_idx, block_id, master_row, master_col, row_cnt, col_cnt) {
|
|
525
|
+
wasm.create_block(id, sheet_idx, block_id, master_row, master_col, row_cnt, col_cnt);
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @param {number} id
|
|
530
|
+
* @param {number} sheet_idx
|
|
531
|
+
* @param {number} block_id
|
|
532
|
+
* @param {number} row
|
|
533
|
+
* @param {number} col
|
|
534
|
+
*/
|
|
535
|
+
module.exports.move_block = function(id, sheet_idx, block_id, row, col) {
|
|
536
|
+
wasm.move_block(id, sheet_idx, block_id, row, col);
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @param {number} id
|
|
541
|
+
* @param {number} sheet_idx
|
|
542
|
+
* @param {number} block_id
|
|
543
|
+
* @param {number} row
|
|
544
|
+
* @param {number} col
|
|
545
|
+
* @param {string} input
|
|
546
|
+
*/
|
|
547
|
+
module.exports.block_input = function(id, sheet_idx, block_id, row, col, input) {
|
|
548
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
549
|
+
const len0 = WASM_VECTOR_LEN;
|
|
550
|
+
wasm.block_input(id, sheet_idx, block_id, row, col, ptr0, len0);
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @param {number} id
|
|
555
|
+
* @param {number} sheet_idx
|
|
556
|
+
* @param {number} block_id
|
|
557
|
+
* @param {number} start
|
|
558
|
+
* @param {number} cnt
|
|
559
|
+
* @param {boolean} horizontal
|
|
560
|
+
* @param {boolean} insert
|
|
561
|
+
*/
|
|
562
|
+
module.exports.block_line_shift = function(id, sheet_idx, block_id, start, cnt, horizontal, insert) {
|
|
563
|
+
wasm.block_line_shift(id, sheet_idx, block_id, start, cnt, horizontal, insert);
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* @param {number} id
|
|
568
|
+
* @param {string} old_name
|
|
569
|
+
* @param {string} new_name
|
|
570
|
+
*/
|
|
571
|
+
module.exports.sheet_rename_by_name = function(id, old_name, new_name) {
|
|
572
|
+
const ptr0 = passStringToWasm0(old_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
573
|
+
const len0 = WASM_VECTOR_LEN;
|
|
574
|
+
const ptr1 = passStringToWasm0(new_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
575
|
+
const len1 = WASM_VECTOR_LEN;
|
|
576
|
+
wasm.sheet_rename_by_name(id, ptr0, len0, ptr1, len1);
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @param {number} id
|
|
581
|
+
* @param {number} idx
|
|
582
|
+
* @param {string} new_name
|
|
583
|
+
*/
|
|
584
|
+
module.exports.sheet_rename_by_idx = function(id, idx, new_name) {
|
|
585
|
+
const ptr0 = passStringToWasm0(new_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
wasm.sheet_rename_by_idx(id, idx, ptr0, len0);
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @param {number} id
|
|
592
|
+
* @param {number} idx
|
|
593
|
+
* @param {string} name
|
|
594
|
+
*/
|
|
595
|
+
module.exports.create_sheet = function(id, idx, name) {
|
|
596
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
597
|
+
const len0 = WASM_VECTOR_LEN;
|
|
598
|
+
wasm.create_sheet(id, idx, ptr0, len0);
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* @param {number} id
|
|
603
|
+
* @param {number} idx
|
|
604
|
+
*/
|
|
605
|
+
module.exports.delete_sheet = function(id, idx) {
|
|
606
|
+
wasm.delete_sheet(id, idx);
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
function handleError(f, args) {
|
|
610
|
+
try {
|
|
611
|
+
return f.apply(this, args);
|
|
612
|
+
} catch (e) {
|
|
613
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
618
|
+
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
622
|
+
takeObject(arg0);
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
626
|
+
const obj = getObject(arg1);
|
|
627
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
628
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
629
|
+
var len0 = WASM_VECTOR_LEN;
|
|
630
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
631
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
635
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
636
|
+
return addHeapObject(ret);
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
640
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
641
|
+
return addHeapObject(ret);
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
645
|
+
const val = getObject(arg0);
|
|
646
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
647
|
+
return ret;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
651
|
+
const ret = getObject(arg0) === undefined;
|
|
652
|
+
return ret;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
656
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
657
|
+
return ret;
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
module.exports.__wbg_log_ed32fbdd3c7f149c = function(arg0) {
|
|
661
|
+
console.log(getObject(arg0));
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
665
|
+
const ret = arg0;
|
|
666
|
+
return addHeapObject(ret);
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
670
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
671
|
+
return addHeapObject(ret);
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
675
|
+
const ret = getObject(arg0);
|
|
676
|
+
return addHeapObject(ret);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
680
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
681
|
+
return ret;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
685
|
+
const v = getObject(arg0);
|
|
686
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
687
|
+
return ret;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
691
|
+
const obj = getObject(arg1);
|
|
692
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
693
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
694
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
|
|
698
|
+
const ret = String(getObject(arg1));
|
|
699
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
700
|
+
const len0 = WASM_VECTOR_LEN;
|
|
701
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
702
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
706
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
707
|
+
return addHeapObject(ret);
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
711
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
715
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
716
|
+
}, arguments) };
|
|
717
|
+
|
|
718
|
+
module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
|
|
719
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
720
|
+
}, arguments) };
|
|
721
|
+
|
|
722
|
+
module.exports.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
|
|
723
|
+
const ret = getObject(arg0).crypto;
|
|
724
|
+
return addHeapObject(ret);
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
module.exports.__wbg_process_038c26bf42b093f8 = function(arg0) {
|
|
728
|
+
const ret = getObject(arg0).process;
|
|
729
|
+
return addHeapObject(ret);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
module.exports.__wbg_versions_ab37218d2f0b24a8 = function(arg0) {
|
|
733
|
+
const ret = getObject(arg0).versions;
|
|
734
|
+
return addHeapObject(ret);
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
module.exports.__wbg_node_080f4b19d15bc1fe = function(arg0) {
|
|
738
|
+
const ret = getObject(arg0).node;
|
|
739
|
+
return addHeapObject(ret);
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
743
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
744
|
+
return ret;
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
module.exports.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) {
|
|
748
|
+
const ret = getObject(arg0).msCrypto;
|
|
749
|
+
return addHeapObject(ret);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
module.exports.__wbg_require_78a3dcfbdba9cbce = function() { return handleError(function () {
|
|
753
|
+
const ret = module.require;
|
|
754
|
+
return addHeapObject(ret);
|
|
755
|
+
}, arguments) };
|
|
756
|
+
|
|
757
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
758
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
759
|
+
return ret;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
module.exports.__wbg_get_5c7997f237e97429 = function(arg0, arg1) {
|
|
763
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
764
|
+
return addHeapObject(ret);
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
module.exports.__wbg_length_c71e7a4e0f91ff23 = function(arg0) {
|
|
768
|
+
const ret = getObject(arg0).length;
|
|
769
|
+
return ret;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
module.exports.__wbg_new_bfd57da4d3b6c976 = function() {
|
|
773
|
+
const ret = new Array();
|
|
774
|
+
return addHeapObject(ret);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
module.exports.__wbg_newnoargs_e1ddb03293334932 = function(arg0, arg1) {
|
|
778
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
779
|
+
return addHeapObject(ret);
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
module.exports.__wbg_next_d5788befa145533f = function(arg0) {
|
|
783
|
+
const ret = getObject(arg0).next;
|
|
784
|
+
return addHeapObject(ret);
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
module.exports.__wbg_next_340569d73e765cd9 = function() { return handleError(function (arg0) {
|
|
788
|
+
const ret = getObject(arg0).next();
|
|
789
|
+
return addHeapObject(ret);
|
|
790
|
+
}, arguments) };
|
|
791
|
+
|
|
792
|
+
module.exports.__wbg_done_61149b6f01c9d837 = function(arg0) {
|
|
793
|
+
const ret = getObject(arg0).done;
|
|
794
|
+
return ret;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
module.exports.__wbg_value_a81c9882b1329c07 = function(arg0) {
|
|
798
|
+
const ret = getObject(arg0).value;
|
|
799
|
+
return addHeapObject(ret);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
module.exports.__wbg_iterator_911e8ffa32a68f2d = function() {
|
|
803
|
+
const ret = Symbol.iterator;
|
|
804
|
+
return addHeapObject(ret);
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
module.exports.__wbg_get_556a4c57efe02bcd = function() { return handleError(function (arg0, arg1) {
|
|
808
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
809
|
+
return addHeapObject(ret);
|
|
810
|
+
}, arguments) };
|
|
811
|
+
|
|
812
|
+
module.exports.__wbg_call_a6fa88c3302e8ad5 = function() { return handleError(function (arg0, arg1) {
|
|
813
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
814
|
+
return addHeapObject(ret);
|
|
815
|
+
}, arguments) };
|
|
816
|
+
|
|
817
|
+
module.exports.__wbg_new_08b60aea8ab679bc = function() {
|
|
818
|
+
const ret = new Object();
|
|
819
|
+
return addHeapObject(ret);
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
module.exports.__wbg_self_14408afdb5c69451 = function() { return handleError(function () {
|
|
823
|
+
const ret = self.self;
|
|
824
|
+
return addHeapObject(ret);
|
|
825
|
+
}, arguments) };
|
|
826
|
+
|
|
827
|
+
module.exports.__wbg_window_75b1f6151d589837 = function() { return handleError(function () {
|
|
828
|
+
const ret = window.window;
|
|
829
|
+
return addHeapObject(ret);
|
|
830
|
+
}, arguments) };
|
|
831
|
+
|
|
832
|
+
module.exports.__wbg_globalThis_e2d2385b94c810da = function() { return handleError(function () {
|
|
833
|
+
const ret = globalThis.globalThis;
|
|
834
|
+
return addHeapObject(ret);
|
|
835
|
+
}, arguments) };
|
|
836
|
+
|
|
837
|
+
module.exports.__wbg_global_3c19477360f9b641 = function() { return handleError(function () {
|
|
838
|
+
const ret = global.global;
|
|
839
|
+
return addHeapObject(ret);
|
|
840
|
+
}, arguments) };
|
|
841
|
+
|
|
842
|
+
module.exports.__wbg_set_e8f26e21e55fa998 = function(arg0, arg1, arg2) {
|
|
843
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
module.exports.__wbg_isArray_8d3ac415a656d809 = function(arg0) {
|
|
847
|
+
const ret = Array.isArray(getObject(arg0));
|
|
848
|
+
return ret;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
module.exports.__wbg_instanceof_ArrayBuffer_02bbeeb60438c785 = function(arg0) {
|
|
852
|
+
let result;
|
|
853
|
+
try {
|
|
854
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
855
|
+
} catch {
|
|
856
|
+
result = false;
|
|
857
|
+
}
|
|
858
|
+
const ret = result;
|
|
859
|
+
return ret;
|
|
860
|
+
};
|
|
861
|
+
|
|
862
|
+
module.exports.__wbg_call_fe4813ad4076f5ef = function() { return handleError(function (arg0, arg1, arg2) {
|
|
863
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
864
|
+
return addHeapObject(ret);
|
|
865
|
+
}, arguments) };
|
|
866
|
+
|
|
867
|
+
module.exports.__wbg_getTime_def258a47d72ac06 = function(arg0) {
|
|
868
|
+
const ret = getObject(arg0).getTime();
|
|
869
|
+
return ret;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
module.exports.__wbg_getTimezoneOffset_2ee2b0ab15c99512 = function(arg0) {
|
|
873
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
874
|
+
return ret;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
module.exports.__wbg_new0_d8c0fd74ecfbd384 = function() {
|
|
878
|
+
const ret = new Date();
|
|
879
|
+
return addHeapObject(ret);
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
module.exports.__wbg_buffer_e8e1791d59230f6e = function(arg0) {
|
|
883
|
+
const ret = getObject(arg0).buffer;
|
|
884
|
+
return addHeapObject(ret);
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
module.exports.__wbg_new_d256fd368dc8455c = function(arg0) {
|
|
888
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
889
|
+
return addHeapObject(ret);
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
module.exports.__wbg_set_ff6a229de2633e38 = function(arg0, arg1, arg2) {
|
|
893
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
module.exports.__wbg_length_8c589b0fd9987662 = function(arg0) {
|
|
897
|
+
const ret = getObject(arg0).length;
|
|
898
|
+
return ret;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
module.exports.__wbg_instanceof_Uint8Array_36c37b9ca15e3e0a = function(arg0) {
|
|
902
|
+
let result;
|
|
903
|
+
try {
|
|
904
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
905
|
+
} catch {
|
|
906
|
+
result = false;
|
|
907
|
+
}
|
|
908
|
+
const ret = result;
|
|
909
|
+
return ret;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
module.exports.__wbg_newwithlength_dc0752ff6d0d8cc2 = function(arg0) {
|
|
913
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
914
|
+
return addHeapObject(ret);
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
module.exports.__wbg_subarray_fbf3eb17f25d3dd4 = function(arg0, arg1, arg2) {
|
|
918
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
919
|
+
return addHeapObject(ret);
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
923
|
+
const ret = debugString(getObject(arg1));
|
|
924
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
925
|
+
const len0 = WASM_VECTOR_LEN;
|
|
926
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
927
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
931
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
module.exports.__wbindgen_memory = function() {
|
|
935
|
+
const ret = wasm.memory;
|
|
936
|
+
return addHeapObject(ret);
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
const path = require('path').join(__dirname, 'logisheets_wasm_server_bg.wasm');
|
|
940
|
+
const bytes = require('fs').readFileSync(path);
|
|
941
|
+
|
|
942
|
+
const wasmModule = new WebAssembly.Module(bytes);
|
|
943
|
+
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
944
|
+
wasm = wasmInstance.exports;
|
|
945
|
+
module.exports.__wasm = wasm;
|
|
946
|
+
|