@senlinz/import-export-wasm 0.1.0-beta.20 → 0.1.0-beta.22
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/LICENSE +32 -32
- package/README.md +12 -12
- package/package.json +1 -1
- package/pkg/imexport_wasm.d.ts +276 -256
- package/pkg/imexport_wasm.js +1327 -1555
- package/pkg/imexport_wasm_bg.wasm +0 -0
package/pkg/imexport_wasm.js
CHANGED
|
@@ -1,338 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const heap = new Array(128).fill(undefined);
|
|
4
|
-
|
|
5
|
-
heap.push(undefined, null, true, false);
|
|
6
|
-
|
|
7
|
-
function getObject(idx) { return heap[idx]; }
|
|
8
|
-
|
|
9
|
-
let heap_next = heap.length;
|
|
10
|
-
|
|
11
|
-
function addHeapObject(obj) {
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
15
|
-
|
|
16
|
-
heap[idx] = obj;
|
|
17
|
-
return idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function handleError(f, args) {
|
|
21
|
-
try {
|
|
22
|
-
return f.apply(this, args);
|
|
23
|
-
} catch (e) {
|
|
24
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function dropObject(idx) {
|
|
29
|
-
if (idx < 132) return;
|
|
30
|
-
heap[idx] = heap_next;
|
|
31
|
-
heap_next = idx;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function takeObject(idx) {
|
|
35
|
-
const ret = getObject(idx);
|
|
36
|
-
dropObject(idx);
|
|
37
|
-
return ret;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
41
|
-
|
|
42
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
43
|
-
|
|
44
|
-
let cachedUint8ArrayMemory0 = null;
|
|
45
|
-
|
|
46
|
-
function getUint8ArrayMemory0() {
|
|
47
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
48
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
49
|
-
}
|
|
50
|
-
return cachedUint8ArrayMemory0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function getStringFromWasm0(ptr, len) {
|
|
54
|
-
ptr = ptr >>> 0;
|
|
55
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function isLikeNone(x) {
|
|
59
|
-
return x === undefined || x === null;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
63
|
-
? { register: () => {}, unregister: () => {} }
|
|
64
|
-
: new FinalizationRegistry(state => {
|
|
65
|
-
wasm.__wbindgen_export_1.get(state.dtor)(state.a, state.b)
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
69
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
70
|
-
const real = (...args) => {
|
|
71
|
-
// First up with a closure we increment the internal reference
|
|
72
|
-
// count. This ensures that the Rust closure environment won't
|
|
73
|
-
// be deallocated while we're invoking it.
|
|
74
|
-
state.cnt++;
|
|
75
|
-
const a = state.a;
|
|
76
|
-
state.a = 0;
|
|
77
|
-
try {
|
|
78
|
-
return f(a, state.b, ...args);
|
|
79
|
-
} finally {
|
|
80
|
-
if (--state.cnt === 0) {
|
|
81
|
-
wasm.__wbindgen_export_1.get(state.dtor)(a, state.b);
|
|
82
|
-
CLOSURE_DTORS.unregister(state);
|
|
83
|
-
} else {
|
|
84
|
-
state.a = a;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
real.original = state;
|
|
89
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
90
|
-
return real;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function debugString(val) {
|
|
94
|
-
// primitive types
|
|
95
|
-
const type = typeof val;
|
|
96
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
97
|
-
return `${val}`;
|
|
98
|
-
}
|
|
99
|
-
if (type == 'string') {
|
|
100
|
-
return `"${val}"`;
|
|
101
|
-
}
|
|
102
|
-
if (type == 'symbol') {
|
|
103
|
-
const description = val.description;
|
|
104
|
-
if (description == null) {
|
|
105
|
-
return 'Symbol';
|
|
106
|
-
} else {
|
|
107
|
-
return `Symbol(${description})`;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (type == 'function') {
|
|
111
|
-
const name = val.name;
|
|
112
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
113
|
-
return `Function(${name})`;
|
|
114
|
-
} else {
|
|
115
|
-
return 'Function';
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// objects
|
|
119
|
-
if (Array.isArray(val)) {
|
|
120
|
-
const length = val.length;
|
|
121
|
-
let debug = '[';
|
|
122
|
-
if (length > 0) {
|
|
123
|
-
debug += debugString(val[0]);
|
|
124
|
-
}
|
|
125
|
-
for(let i = 1; i < length; i++) {
|
|
126
|
-
debug += ', ' + debugString(val[i]);
|
|
127
|
-
}
|
|
128
|
-
debug += ']';
|
|
129
|
-
return debug;
|
|
130
|
-
}
|
|
131
|
-
// Test for built-in
|
|
132
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
133
|
-
let className;
|
|
134
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
135
|
-
className = builtInMatches[1];
|
|
136
|
-
} else {
|
|
137
|
-
// Failed to match the standard '[object ClassName]'
|
|
138
|
-
return toString.call(val);
|
|
139
|
-
}
|
|
140
|
-
if (className == 'Object') {
|
|
141
|
-
// we're a user defined class or Object
|
|
142
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
143
|
-
// easier than looping through ownProperties of `val`.
|
|
144
|
-
try {
|
|
145
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
146
|
-
} catch (_) {
|
|
147
|
-
return 'Object';
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
// errors
|
|
151
|
-
if (val instanceof Error) {
|
|
152
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
153
|
-
}
|
|
154
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
155
|
-
return className;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
let WASM_VECTOR_LEN = 0;
|
|
159
|
-
|
|
160
|
-
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
161
|
-
|
|
162
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
163
|
-
? function (arg, view) {
|
|
164
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
165
|
-
}
|
|
166
|
-
: function (arg, view) {
|
|
167
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
168
|
-
view.set(buf);
|
|
169
|
-
return {
|
|
170
|
-
read: arg.length,
|
|
171
|
-
written: buf.length
|
|
172
|
-
};
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
176
|
-
|
|
177
|
-
if (realloc === undefined) {
|
|
178
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
179
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
180
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
181
|
-
WASM_VECTOR_LEN = buf.length;
|
|
182
|
-
return ptr;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
let len = arg.length;
|
|
186
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
187
|
-
|
|
188
|
-
const mem = getUint8ArrayMemory0();
|
|
189
|
-
|
|
190
|
-
let offset = 0;
|
|
191
|
-
|
|
192
|
-
for (; offset < len; offset++) {
|
|
193
|
-
const code = arg.charCodeAt(offset);
|
|
194
|
-
if (code > 0x7F) break;
|
|
195
|
-
mem[ptr + offset] = code;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (offset !== len) {
|
|
199
|
-
if (offset !== 0) {
|
|
200
|
-
arg = arg.slice(offset);
|
|
201
|
-
}
|
|
202
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
203
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
204
|
-
const ret = encodeString(arg, view);
|
|
205
|
-
|
|
206
|
-
offset += ret.written;
|
|
207
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
WASM_VECTOR_LEN = offset;
|
|
211
|
-
return ptr;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
let cachedDataViewMemory0 = null;
|
|
215
|
-
|
|
216
|
-
function getDataViewMemory0() {
|
|
217
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
218
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
219
|
-
}
|
|
220
|
-
return cachedDataViewMemory0;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
function _assertClass(instance, klass) {
|
|
224
|
-
if (!(instance instanceof klass)) {
|
|
225
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
230
|
-
ptr = ptr >>> 0;
|
|
231
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* @param {ExcelInfo} info
|
|
235
|
-
* @returns {Uint8Array}
|
|
236
|
-
*/
|
|
237
|
-
export function createTemplate(info) {
|
|
238
|
-
try {
|
|
239
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
240
|
-
_assertClass(info, ExcelInfo);
|
|
241
|
-
var ptr0 = info.__destroy_into_raw();
|
|
242
|
-
wasm.createTemplate(retptr, ptr0);
|
|
243
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
244
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
245
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
246
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
247
|
-
if (r3) {
|
|
248
|
-
throw takeObject(r2);
|
|
249
|
-
}
|
|
250
|
-
var v2 = getArrayU8FromWasm0(r0, r1).slice();
|
|
251
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
252
|
-
return v2;
|
|
253
|
-
} finally {
|
|
254
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
259
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
260
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
261
|
-
WASM_VECTOR_LEN = arg.length;
|
|
262
|
-
return ptr;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* @param {ExcelInfo} info
|
|
266
|
-
* @param {Uint8Array} excel_bytes
|
|
267
|
-
* @returns {ExcelData}
|
|
268
|
-
*/
|
|
269
|
-
export function importData(info, excel_bytes) {
|
|
270
|
-
try {
|
|
271
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
272
|
-
_assertClass(info, ExcelInfo);
|
|
273
|
-
var ptr0 = info.__destroy_into_raw();
|
|
274
|
-
const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
|
|
275
|
-
const len1 = WASM_VECTOR_LEN;
|
|
276
|
-
wasm.importData(retptr, ptr0, ptr1, len1);
|
|
277
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
278
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
279
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
280
|
-
if (r2) {
|
|
281
|
-
throw takeObject(r1);
|
|
282
|
-
}
|
|
283
|
-
return ExcelData.__wrap(r0);
|
|
284
|
-
} finally {
|
|
285
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @param {ExcelInfo} info
|
|
291
|
-
* @param {ExcelData} data
|
|
292
|
-
* @returns {Promise<any>}
|
|
293
|
-
*/
|
|
294
|
-
export function exportData(info, data) {
|
|
295
|
-
_assertClass(info, ExcelInfo);
|
|
296
|
-
var ptr0 = info.__destroy_into_raw();
|
|
297
|
-
_assertClass(data, ExcelData);
|
|
298
|
-
var ptr1 = data.__destroy_into_raw();
|
|
299
|
-
const ret = wasm.exportData(ptr0, ptr1);
|
|
300
|
-
return takeObject(ret);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
304
|
-
ptr = ptr >>> 0;
|
|
305
|
-
const mem = getDataViewMemory0();
|
|
306
|
-
const result = [];
|
|
307
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
308
|
-
result.push(takeObject(mem.getUint32(i, true)));
|
|
309
|
-
}
|
|
310
|
-
return result;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
314
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
315
|
-
const mem = getDataViewMemory0();
|
|
316
|
-
for (let i = 0; i < array.length; i++) {
|
|
317
|
-
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
|
|
318
|
-
}
|
|
319
|
-
WASM_VECTOR_LEN = array.length;
|
|
320
|
-
return ptr;
|
|
321
|
-
}
|
|
322
|
-
function __wbg_adapter_28(arg0, arg1, arg2) {
|
|
323
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h34f632cd519c3a96(arg0, arg1, addHeapObject(arg2));
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
function __wbg_adapter_184(arg0, arg1, arg2, arg3) {
|
|
327
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h059b1e71ab984223(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
331
|
-
? { register: () => {}, unregister: () => {} }
|
|
332
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr >>> 0, 1));
|
|
1
|
+
/* @ts-self-types="./imexport_wasm.d.ts" */
|
|
333
2
|
|
|
334
3
|
export class ExcelCellFormat {
|
|
335
|
-
|
|
336
4
|
static __wrap(ptr) {
|
|
337
5
|
ptr = ptr >>> 0;
|
|
338
6
|
const obj = Object.create(ExcelCellFormat.prototype);
|
|
@@ -340,241 +8,307 @@ export class ExcelCellFormat {
|
|
|
340
8
|
ExcelCellFormatFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
341
9
|
return obj;
|
|
342
10
|
}
|
|
343
|
-
|
|
344
11
|
static __unwrap(jsValue) {
|
|
345
12
|
if (!(jsValue instanceof ExcelCellFormat)) {
|
|
346
13
|
return 0;
|
|
347
14
|
}
|
|
348
15
|
return jsValue.__destroy_into_raw();
|
|
349
16
|
}
|
|
350
|
-
|
|
351
17
|
__destroy_into_raw() {
|
|
352
18
|
const ptr = this.__wbg_ptr;
|
|
353
19
|
this.__wbg_ptr = 0;
|
|
354
20
|
ExcelCellFormatFinalization.unregister(this);
|
|
355
21
|
return ptr;
|
|
356
22
|
}
|
|
357
|
-
|
|
358
23
|
free() {
|
|
359
24
|
const ptr = this.__destroy_into_raw();
|
|
360
25
|
wasm.__wbg_excelcellformat_free(ptr, 0);
|
|
361
26
|
}
|
|
27
|
+
constructor() {
|
|
28
|
+
const ret = wasm.excelcellformat_new();
|
|
29
|
+
this.__wbg_ptr = ret >>> 0;
|
|
30
|
+
ExcelCellFormatFinalization.register(this, this.__wbg_ptr, this);
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
362
33
|
/**
|
|
363
|
-
* @
|
|
34
|
+
* @param {string} align
|
|
35
|
+
* @returns {ExcelCellFormat}
|
|
364
36
|
*/
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
372
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
373
|
-
deferred1_0 = r0;
|
|
374
|
-
deferred1_1 = r1;
|
|
375
|
-
return getStringFromWasm0(r0, r1);
|
|
376
|
-
} finally {
|
|
377
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
378
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
379
|
-
}
|
|
37
|
+
withAlign(align) {
|
|
38
|
+
const ptr = this.__destroy_into_raw();
|
|
39
|
+
const ptr0 = passStringToWasm0(align, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
40
|
+
const len0 = WASM_VECTOR_LEN;
|
|
41
|
+
const ret = wasm.excelcellformat_withAlign(ptr, ptr0, len0);
|
|
42
|
+
return ExcelCellFormat.__wrap(ret);
|
|
380
43
|
}
|
|
381
44
|
/**
|
|
382
|
-
* @param {string}
|
|
45
|
+
* @param {string} align_vertical
|
|
46
|
+
* @returns {ExcelCellFormat}
|
|
383
47
|
*/
|
|
384
|
-
|
|
385
|
-
const
|
|
48
|
+
withAlignVertical(align_vertical) {
|
|
49
|
+
const ptr = this.__destroy_into_raw();
|
|
50
|
+
const ptr0 = passStringToWasm0(align_vertical, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
386
51
|
const len0 = WASM_VECTOR_LEN;
|
|
387
|
-
wasm.
|
|
52
|
+
const ret = wasm.excelcellformat_withAlignVertical(ptr, ptr0, len0);
|
|
53
|
+
return ExcelCellFormat.__wrap(ret);
|
|
388
54
|
}
|
|
389
55
|
/**
|
|
390
|
-
* @
|
|
56
|
+
* @param {string} background_color
|
|
57
|
+
* @returns {ExcelCellFormat}
|
|
391
58
|
*/
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
399
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
400
|
-
deferred1_0 = r0;
|
|
401
|
-
deferred1_1 = r1;
|
|
402
|
-
return getStringFromWasm0(r0, r1);
|
|
403
|
-
} finally {
|
|
404
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
405
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
406
|
-
}
|
|
59
|
+
withBackgroundColor(background_color) {
|
|
60
|
+
const ptr = this.__destroy_into_raw();
|
|
61
|
+
const ptr0 = passStringToWasm0(background_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
62
|
+
const len0 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.excelcellformat_withBackgroundColor(ptr, ptr0, len0);
|
|
64
|
+
return ExcelCellFormat.__wrap(ret);
|
|
407
65
|
}
|
|
408
66
|
/**
|
|
409
|
-
* @param {
|
|
67
|
+
* @param {boolean} bold
|
|
68
|
+
* @returns {ExcelCellFormat}
|
|
410
69
|
*/
|
|
411
|
-
|
|
412
|
-
const
|
|
70
|
+
withBold(bold) {
|
|
71
|
+
const ptr = this.__destroy_into_raw();
|
|
72
|
+
const ret = wasm.excelcellformat_withBold(ptr, bold);
|
|
73
|
+
return ExcelCellFormat.__wrap(ret);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @param {string} border_color
|
|
77
|
+
* @returns {ExcelCellFormat}
|
|
78
|
+
*/
|
|
79
|
+
withBorderColor(border_color) {
|
|
80
|
+
const ptr = this.__destroy_into_raw();
|
|
81
|
+
const ptr0 = passStringToWasm0(border_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
82
|
const len0 = WASM_VECTOR_LEN;
|
|
414
|
-
wasm.
|
|
83
|
+
const ret = wasm.excelcellformat_withBorderColor(ptr, ptr0, len0);
|
|
84
|
+
return ExcelCellFormat.__wrap(ret);
|
|
415
85
|
}
|
|
416
86
|
/**
|
|
417
|
-
* @
|
|
87
|
+
* @param {string} color
|
|
88
|
+
* @returns {ExcelCellFormat}
|
|
418
89
|
*/
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
426
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
427
|
-
deferred1_0 = r0;
|
|
428
|
-
deferred1_1 = r1;
|
|
429
|
-
return getStringFromWasm0(r0, r1);
|
|
430
|
-
} finally {
|
|
431
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
432
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
433
|
-
}
|
|
90
|
+
withColor(color) {
|
|
91
|
+
const ptr = this.__destroy_into_raw();
|
|
92
|
+
const ptr0 = passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
93
|
+
const len0 = WASM_VECTOR_LEN;
|
|
94
|
+
const ret = wasm.excelcellformat_withColor(ptr, ptr0, len0);
|
|
95
|
+
return ExcelCellFormat.__wrap(ret);
|
|
434
96
|
}
|
|
435
97
|
/**
|
|
436
|
-
* @param {string}
|
|
98
|
+
* @param {string} date_format
|
|
99
|
+
* @returns {ExcelCellFormat}
|
|
437
100
|
*/
|
|
438
|
-
|
|
439
|
-
const
|
|
101
|
+
withDateFormat(date_format) {
|
|
102
|
+
const ptr = this.__destroy_into_raw();
|
|
103
|
+
const ptr0 = passStringToWasm0(date_format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
440
104
|
const len0 = WASM_VECTOR_LEN;
|
|
441
|
-
wasm.
|
|
105
|
+
const ret = wasm.excelcellformat_withDateFormat(ptr, ptr0, len0);
|
|
106
|
+
return ExcelCellFormat.__wrap(ret);
|
|
442
107
|
}
|
|
443
108
|
/**
|
|
444
|
-
* @
|
|
109
|
+
* @param {number} font_size
|
|
110
|
+
* @returns {ExcelCellFormat}
|
|
445
111
|
*/
|
|
446
|
-
|
|
447
|
-
const
|
|
448
|
-
|
|
112
|
+
withFontSize(font_size) {
|
|
113
|
+
const ptr = this.__destroy_into_raw();
|
|
114
|
+
const ret = wasm.excelcellformat_withFontSize(ptr, font_size);
|
|
115
|
+
return ExcelCellFormat.__wrap(ret);
|
|
449
116
|
}
|
|
450
117
|
/**
|
|
451
|
-
* @param {boolean}
|
|
118
|
+
* @param {boolean} italic
|
|
119
|
+
* @returns {ExcelCellFormat}
|
|
452
120
|
*/
|
|
453
|
-
|
|
454
|
-
|
|
121
|
+
withItalic(italic) {
|
|
122
|
+
const ptr = this.__destroy_into_raw();
|
|
123
|
+
const ret = wasm.excelcellformat_withItalic(ptr, italic);
|
|
124
|
+
return ExcelCellFormat.__wrap(ret);
|
|
455
125
|
}
|
|
456
126
|
/**
|
|
457
|
-
* @
|
|
127
|
+
* @param {string} rule
|
|
128
|
+
* @returns {ExcelCellFormat}
|
|
458
129
|
*/
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
|
|
130
|
+
withRule(rule) {
|
|
131
|
+
const ptr = this.__destroy_into_raw();
|
|
132
|
+
const ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
133
|
+
const len0 = WASM_VECTOR_LEN;
|
|
134
|
+
const ret = wasm.excelcellformat_withRule(ptr, ptr0, len0);
|
|
135
|
+
return ExcelCellFormat.__wrap(ret);
|
|
462
136
|
}
|
|
463
137
|
/**
|
|
464
|
-
* @param {boolean}
|
|
138
|
+
* @param {boolean} strikethrough
|
|
139
|
+
* @returns {ExcelCellFormat}
|
|
465
140
|
*/
|
|
466
|
-
|
|
467
|
-
|
|
141
|
+
withStrikethrough(strikethrough) {
|
|
142
|
+
const ptr = this.__destroy_into_raw();
|
|
143
|
+
const ret = wasm.excelcellformat_withStrikethrough(ptr, strikethrough);
|
|
144
|
+
return ExcelCellFormat.__wrap(ret);
|
|
468
145
|
}
|
|
469
146
|
/**
|
|
470
|
-
* @
|
|
147
|
+
* @param {boolean} underline
|
|
148
|
+
* @returns {ExcelCellFormat}
|
|
471
149
|
*/
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
|
|
150
|
+
withUnderline(underline) {
|
|
151
|
+
const ptr = this.__destroy_into_raw();
|
|
152
|
+
const ret = wasm.excelcellformat_withUnderline(ptr, underline);
|
|
153
|
+
return ExcelCellFormat.__wrap(ret);
|
|
475
154
|
}
|
|
476
155
|
/**
|
|
477
|
-
* @param {
|
|
156
|
+
* @param {string} value
|
|
157
|
+
* @returns {ExcelCellFormat}
|
|
478
158
|
*/
|
|
479
|
-
|
|
480
|
-
|
|
159
|
+
withValue(value) {
|
|
160
|
+
const ptr = this.__destroy_into_raw();
|
|
161
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
162
|
+
const len0 = WASM_VECTOR_LEN;
|
|
163
|
+
const ret = wasm.excelcellformat_withValue(ptr, ptr0, len0);
|
|
164
|
+
return ExcelCellFormat.__wrap(ret);
|
|
481
165
|
}
|
|
482
166
|
/**
|
|
483
|
-
* @returns {
|
|
167
|
+
* @returns {string}
|
|
484
168
|
*/
|
|
485
|
-
get
|
|
486
|
-
|
|
487
|
-
|
|
169
|
+
get align_vertical() {
|
|
170
|
+
let deferred1_0;
|
|
171
|
+
let deferred1_1;
|
|
172
|
+
try {
|
|
173
|
+
const ret = wasm.__wbg_get_excelcellformat_align_vertical(this.__wbg_ptr);
|
|
174
|
+
deferred1_0 = ret[0];
|
|
175
|
+
deferred1_1 = ret[1];
|
|
176
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
177
|
+
} finally {
|
|
178
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
179
|
+
}
|
|
488
180
|
}
|
|
489
181
|
/**
|
|
490
|
-
* @
|
|
182
|
+
* @returns {string}
|
|
491
183
|
*/
|
|
492
|
-
|
|
493
|
-
|
|
184
|
+
get align() {
|
|
185
|
+
let deferred1_0;
|
|
186
|
+
let deferred1_1;
|
|
187
|
+
try {
|
|
188
|
+
const ret = wasm.__wbg_get_excelcellformat_align(this.__wbg_ptr);
|
|
189
|
+
deferred1_0 = ret[0];
|
|
190
|
+
deferred1_1 = ret[1];
|
|
191
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
192
|
+
} finally {
|
|
193
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
194
|
+
}
|
|
494
195
|
}
|
|
495
196
|
/**
|
|
496
|
-
* @returns {
|
|
197
|
+
* @returns {string}
|
|
497
198
|
*/
|
|
498
|
-
get
|
|
499
|
-
|
|
500
|
-
|
|
199
|
+
get background_color() {
|
|
200
|
+
let deferred1_0;
|
|
201
|
+
let deferred1_1;
|
|
202
|
+
try {
|
|
203
|
+
const ret = wasm.__wbg_get_excelcellformat_background_color(this.__wbg_ptr);
|
|
204
|
+
deferred1_0 = ret[0];
|
|
205
|
+
deferred1_1 = ret[1];
|
|
206
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
207
|
+
} finally {
|
|
208
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
209
|
+
}
|
|
501
210
|
}
|
|
502
211
|
/**
|
|
503
|
-
* @
|
|
212
|
+
* @returns {boolean}
|
|
504
213
|
*/
|
|
505
|
-
|
|
506
|
-
wasm.
|
|
214
|
+
get bold() {
|
|
215
|
+
const ret = wasm.__wbg_get_excelcellformat_bold(this.__wbg_ptr);
|
|
216
|
+
return ret !== 0;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @returns {string | undefined}
|
|
220
|
+
*/
|
|
221
|
+
get border_color() {
|
|
222
|
+
const ret = wasm.__wbg_get_excelcellformat_border_color(this.__wbg_ptr);
|
|
223
|
+
let v1;
|
|
224
|
+
if (ret[0] !== 0) {
|
|
225
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
226
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
227
|
+
}
|
|
228
|
+
return v1;
|
|
507
229
|
}
|
|
508
230
|
/**
|
|
509
231
|
* @returns {string}
|
|
510
232
|
*/
|
|
511
|
-
get
|
|
233
|
+
get color() {
|
|
512
234
|
let deferred1_0;
|
|
513
235
|
let deferred1_1;
|
|
514
236
|
try {
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
deferred1_0 = r0;
|
|
520
|
-
deferred1_1 = r1;
|
|
521
|
-
return getStringFromWasm0(r0, r1);
|
|
237
|
+
const ret = wasm.__wbg_get_excelcellformat_color(this.__wbg_ptr);
|
|
238
|
+
deferred1_0 = ret[0];
|
|
239
|
+
deferred1_1 = ret[1];
|
|
240
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
522
241
|
} finally {
|
|
523
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
524
242
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
525
243
|
}
|
|
526
244
|
}
|
|
527
245
|
/**
|
|
528
|
-
* @
|
|
246
|
+
* @returns {string | undefined}
|
|
529
247
|
*/
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
|
|
248
|
+
get date_format() {
|
|
249
|
+
const ret = wasm.__wbg_get_excelcellformat_date_format(this.__wbg_ptr);
|
|
250
|
+
let v1;
|
|
251
|
+
if (ret[0] !== 0) {
|
|
252
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
253
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
254
|
+
}
|
|
255
|
+
return v1;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* @returns {number}
|
|
259
|
+
*/
|
|
260
|
+
get font_size() {
|
|
261
|
+
const ret = wasm.__wbg_get_excelcellformat_font_size(this.__wbg_ptr);
|
|
262
|
+
return ret;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @returns {boolean}
|
|
266
|
+
*/
|
|
267
|
+
get italic() {
|
|
268
|
+
const ret = wasm.__wbg_get_excelcellformat_italic(this.__wbg_ptr);
|
|
269
|
+
return ret !== 0;
|
|
534
270
|
}
|
|
535
271
|
/**
|
|
536
272
|
* @returns {string}
|
|
537
273
|
*/
|
|
538
|
-
get
|
|
274
|
+
get rule() {
|
|
539
275
|
let deferred1_0;
|
|
540
276
|
let deferred1_1;
|
|
541
277
|
try {
|
|
542
|
-
const
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
deferred1_0 = r0;
|
|
547
|
-
deferred1_1 = r1;
|
|
548
|
-
return getStringFromWasm0(r0, r1);
|
|
278
|
+
const ret = wasm.__wbg_get_excelcellformat_rule(this.__wbg_ptr);
|
|
279
|
+
deferred1_0 = ret[0];
|
|
280
|
+
deferred1_1 = ret[1];
|
|
281
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
549
282
|
} finally {
|
|
550
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
551
283
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
552
284
|
}
|
|
553
285
|
}
|
|
554
286
|
/**
|
|
555
|
-
* @
|
|
287
|
+
* @returns {boolean}
|
|
556
288
|
*/
|
|
557
|
-
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
|
|
289
|
+
get strikethrough() {
|
|
290
|
+
const ret = wasm.__wbg_get_excelcellformat_strikethrough(this.__wbg_ptr);
|
|
291
|
+
return ret !== 0;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @returns {boolean}
|
|
295
|
+
*/
|
|
296
|
+
get underline() {
|
|
297
|
+
const ret = wasm.__wbg_get_excelcellformat_underline(this.__wbg_ptr);
|
|
298
|
+
return ret !== 0;
|
|
561
299
|
}
|
|
562
300
|
/**
|
|
563
301
|
* @returns {string}
|
|
564
302
|
*/
|
|
565
|
-
get
|
|
303
|
+
get value() {
|
|
566
304
|
let deferred1_0;
|
|
567
305
|
let deferred1_1;
|
|
568
306
|
try {
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
deferred1_0 = r0;
|
|
574
|
-
deferred1_1 = r1;
|
|
575
|
-
return getStringFromWasm0(r0, r1);
|
|
307
|
+
const ret = wasm.__wbg_get_excelcellformat_value(this.__wbg_ptr);
|
|
308
|
+
deferred1_0 = ret[0];
|
|
309
|
+
deferred1_1 = ret[1];
|
|
310
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
576
311
|
} finally {
|
|
577
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
578
312
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
579
313
|
}
|
|
580
314
|
}
|
|
@@ -587,50 +321,26 @@ export class ExcelCellFormat {
|
|
|
587
321
|
wasm.__wbg_set_excelcellformat_align_vertical(this.__wbg_ptr, ptr0, len0);
|
|
588
322
|
}
|
|
589
323
|
/**
|
|
590
|
-
* @
|
|
324
|
+
* @param {string} arg0
|
|
591
325
|
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
597
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
598
|
-
let v1;
|
|
599
|
-
if (r0 !== 0) {
|
|
600
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
|
601
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
602
|
-
}
|
|
603
|
-
return v1;
|
|
604
|
-
} finally {
|
|
605
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
606
|
-
}
|
|
326
|
+
set align(arg0) {
|
|
327
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
328
|
+
const len0 = WASM_VECTOR_LEN;
|
|
329
|
+
wasm.__wbg_set_excelcellformat_align(this.__wbg_ptr, ptr0, len0);
|
|
607
330
|
}
|
|
608
331
|
/**
|
|
609
|
-
* @param {string
|
|
332
|
+
* @param {string} arg0
|
|
610
333
|
*/
|
|
611
|
-
set
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
wasm.
|
|
334
|
+
set background_color(arg0) {
|
|
335
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
336
|
+
const len0 = WASM_VECTOR_LEN;
|
|
337
|
+
wasm.__wbg_set_excelcellformat_background_color(this.__wbg_ptr, ptr0, len0);
|
|
615
338
|
}
|
|
616
339
|
/**
|
|
617
|
-
* @
|
|
340
|
+
* @param {boolean} arg0
|
|
618
341
|
*/
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
622
|
-
wasm.__wbg_get_excelcellformat_border_color(retptr, this.__wbg_ptr);
|
|
623
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
624
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
625
|
-
let v1;
|
|
626
|
-
if (r0 !== 0) {
|
|
627
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
|
628
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
629
|
-
}
|
|
630
|
-
return v1;
|
|
631
|
-
} finally {
|
|
632
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
633
|
-
}
|
|
342
|
+
set bold(arg0) {
|
|
343
|
+
wasm.__wbg_set_excelcellformat_bold(this.__wbg_ptr, arg0);
|
|
634
344
|
}
|
|
635
345
|
/**
|
|
636
346
|
* @param {string | null} [arg0]
|
|
@@ -640,153 +350,66 @@ export class ExcelCellFormat {
|
|
|
640
350
|
var len0 = WASM_VECTOR_LEN;
|
|
641
351
|
wasm.__wbg_set_excelcellformat_border_color(this.__wbg_ptr, ptr0, len0);
|
|
642
352
|
}
|
|
643
|
-
constructor() {
|
|
644
|
-
const ret = wasm.excelcellformat_new();
|
|
645
|
-
this.__wbg_ptr = ret >>> 0;
|
|
646
|
-
ExcelCellFormatFinalization.register(this, this.__wbg_ptr, this);
|
|
647
|
-
return this;
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* @param {string} rule
|
|
651
|
-
* @returns {ExcelCellFormat}
|
|
652
|
-
*/
|
|
653
|
-
withRule(rule) {
|
|
654
|
-
const ptr = this.__destroy_into_raw();
|
|
655
|
-
const ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
656
|
-
const len0 = WASM_VECTOR_LEN;
|
|
657
|
-
const ret = wasm.excelcellformat_withRule(ptr, ptr0, len0);
|
|
658
|
-
return ExcelCellFormat.__wrap(ret);
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* @param {string} value
|
|
662
|
-
* @returns {ExcelCellFormat}
|
|
663
|
-
*/
|
|
664
|
-
withValue(value) {
|
|
665
|
-
const ptr = this.__destroy_into_raw();
|
|
666
|
-
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
667
|
-
const len0 = WASM_VECTOR_LEN;
|
|
668
|
-
const ret = wasm.excelcellformat_withValue(ptr, ptr0, len0);
|
|
669
|
-
return ExcelCellFormat.__wrap(ret);
|
|
670
|
-
}
|
|
671
353
|
/**
|
|
672
|
-
* @param {string}
|
|
673
|
-
* @returns {ExcelCellFormat}
|
|
354
|
+
* @param {string} arg0
|
|
674
355
|
*/
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
const ptr0 = passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
|
+
set color(arg0) {
|
|
357
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
678
358
|
const len0 = WASM_VECTOR_LEN;
|
|
679
|
-
|
|
680
|
-
return ExcelCellFormat.__wrap(ret);
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* @param {boolean} bold
|
|
684
|
-
* @returns {ExcelCellFormat}
|
|
685
|
-
*/
|
|
686
|
-
withBold(bold) {
|
|
687
|
-
const ptr = this.__destroy_into_raw();
|
|
688
|
-
const ret = wasm.excelcellformat_withBold(ptr, bold);
|
|
689
|
-
return ExcelCellFormat.__wrap(ret);
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* @param {boolean} italic
|
|
693
|
-
* @returns {ExcelCellFormat}
|
|
694
|
-
*/
|
|
695
|
-
withItalic(italic) {
|
|
696
|
-
const ptr = this.__destroy_into_raw();
|
|
697
|
-
const ret = wasm.excelcellformat_withItalic(ptr, italic);
|
|
698
|
-
return ExcelCellFormat.__wrap(ret);
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
* @param {boolean} underline
|
|
702
|
-
* @returns {ExcelCellFormat}
|
|
703
|
-
*/
|
|
704
|
-
withUnderline(underline) {
|
|
705
|
-
const ptr = this.__destroy_into_raw();
|
|
706
|
-
const ret = wasm.excelcellformat_withUnderline(ptr, underline);
|
|
707
|
-
return ExcelCellFormat.__wrap(ret);
|
|
359
|
+
wasm.__wbg_set_excelcellformat_color(this.__wbg_ptr, ptr0, len0);
|
|
708
360
|
}
|
|
709
361
|
/**
|
|
710
|
-
* @param {
|
|
711
|
-
* @returns {ExcelCellFormat}
|
|
362
|
+
* @param {string | null} [arg0]
|
|
712
363
|
*/
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
364
|
+
set date_format(arg0) {
|
|
365
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
366
|
+
var len0 = WASM_VECTOR_LEN;
|
|
367
|
+
wasm.__wbg_set_excelcellformat_date_format(this.__wbg_ptr, ptr0, len0);
|
|
717
368
|
}
|
|
718
369
|
/**
|
|
719
|
-
* @param {number}
|
|
720
|
-
* @returns {ExcelCellFormat}
|
|
370
|
+
* @param {number} arg0
|
|
721
371
|
*/
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
const ret = wasm.excelcellformat_withFontSize(ptr, font_size);
|
|
725
|
-
return ExcelCellFormat.__wrap(ret);
|
|
372
|
+
set font_size(arg0) {
|
|
373
|
+
wasm.__wbg_set_excelcellformat_font_size(this.__wbg_ptr, arg0);
|
|
726
374
|
}
|
|
727
375
|
/**
|
|
728
|
-
* @param {
|
|
729
|
-
* @returns {ExcelCellFormat}
|
|
376
|
+
* @param {boolean} arg0
|
|
730
377
|
*/
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
const ptr0 = passStringToWasm0(background_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
734
|
-
const len0 = WASM_VECTOR_LEN;
|
|
735
|
-
const ret = wasm.excelcellformat_withBackgroundColor(ptr, ptr0, len0);
|
|
736
|
-
return ExcelCellFormat.__wrap(ret);
|
|
378
|
+
set italic(arg0) {
|
|
379
|
+
wasm.__wbg_set_excelcellformat_italic(this.__wbg_ptr, arg0);
|
|
737
380
|
}
|
|
738
381
|
/**
|
|
739
|
-
* @param {string}
|
|
740
|
-
* @returns {ExcelCellFormat}
|
|
382
|
+
* @param {string} arg0
|
|
741
383
|
*/
|
|
742
|
-
|
|
743
|
-
const
|
|
744
|
-
const ptr0 = passStringToWasm0(align, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
384
|
+
set rule(arg0) {
|
|
385
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
745
386
|
const len0 = WASM_VECTOR_LEN;
|
|
746
|
-
|
|
747
|
-
return ExcelCellFormat.__wrap(ret);
|
|
387
|
+
wasm.__wbg_set_excelcellformat_rule(this.__wbg_ptr, ptr0, len0);
|
|
748
388
|
}
|
|
749
389
|
/**
|
|
750
|
-
* @param {
|
|
751
|
-
* @returns {ExcelCellFormat}
|
|
390
|
+
* @param {boolean} arg0
|
|
752
391
|
*/
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
const ptr0 = passStringToWasm0(align_vertical, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
756
|
-
const len0 = WASM_VECTOR_LEN;
|
|
757
|
-
const ret = wasm.excelcellformat_withAlignVertical(ptr, ptr0, len0);
|
|
758
|
-
return ExcelCellFormat.__wrap(ret);
|
|
392
|
+
set strikethrough(arg0) {
|
|
393
|
+
wasm.__wbg_set_excelcellformat_strikethrough(this.__wbg_ptr, arg0);
|
|
759
394
|
}
|
|
760
395
|
/**
|
|
761
|
-
* @param {
|
|
762
|
-
* @returns {ExcelCellFormat}
|
|
396
|
+
* @param {boolean} arg0
|
|
763
397
|
*/
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
const ptr0 = passStringToWasm0(date_format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
767
|
-
const len0 = WASM_VECTOR_LEN;
|
|
768
|
-
const ret = wasm.excelcellformat_withDateFormat(ptr, ptr0, len0);
|
|
769
|
-
return ExcelCellFormat.__wrap(ret);
|
|
398
|
+
set underline(arg0) {
|
|
399
|
+
wasm.__wbg_set_excelcellformat_underline(this.__wbg_ptr, arg0);
|
|
770
400
|
}
|
|
771
401
|
/**
|
|
772
|
-
* @param {string}
|
|
773
|
-
* @returns {ExcelCellFormat}
|
|
402
|
+
* @param {string} arg0
|
|
774
403
|
*/
|
|
775
|
-
|
|
776
|
-
const
|
|
777
|
-
const ptr0 = passStringToWasm0(border_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
404
|
+
set value(arg0) {
|
|
405
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
778
406
|
const len0 = WASM_VECTOR_LEN;
|
|
779
|
-
|
|
780
|
-
return ExcelCellFormat.__wrap(ret);
|
|
407
|
+
wasm.__wbg_set_excelcellformat_value(this.__wbg_ptr, ptr0, len0);
|
|
781
408
|
}
|
|
782
409
|
}
|
|
783
|
-
|
|
784
|
-
const ExcelColumnDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
785
|
-
? { register: () => {}, unregister: () => {} }
|
|
786
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumndata_free(ptr >>> 0, 1));
|
|
410
|
+
if (Symbol.dispose) ExcelCellFormat.prototype[Symbol.dispose] = ExcelCellFormat.prototype.free;
|
|
787
411
|
|
|
788
412
|
export class ExcelColumnData {
|
|
789
|
-
|
|
790
413
|
static __wrap(ptr) {
|
|
791
414
|
ptr = ptr >>> 0;
|
|
792
415
|
const obj = Object.create(ExcelColumnData.prototype);
|
|
@@ -794,102 +417,21 @@ export class ExcelColumnData {
|
|
|
794
417
|
ExcelColumnDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
795
418
|
return obj;
|
|
796
419
|
}
|
|
797
|
-
|
|
798
420
|
static __unwrap(jsValue) {
|
|
799
421
|
if (!(jsValue instanceof ExcelColumnData)) {
|
|
800
422
|
return 0;
|
|
801
423
|
}
|
|
802
424
|
return jsValue.__destroy_into_raw();
|
|
803
425
|
}
|
|
804
|
-
|
|
805
426
|
__destroy_into_raw() {
|
|
806
427
|
const ptr = this.__wbg_ptr;
|
|
807
428
|
this.__wbg_ptr = 0;
|
|
808
429
|
ExcelColumnDataFinalization.unregister(this);
|
|
809
430
|
return ptr;
|
|
810
431
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
wasm.__wbg_excelcolumndata_free(ptr, 0);
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* @returns {string}
|
|
818
|
-
*/
|
|
819
|
-
get key() {
|
|
820
|
-
let deferred1_0;
|
|
821
|
-
let deferred1_1;
|
|
822
|
-
try {
|
|
823
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
824
|
-
wasm.__wbg_get_excelcolumndata_key(retptr, this.__wbg_ptr);
|
|
825
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
826
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
827
|
-
deferred1_0 = r0;
|
|
828
|
-
deferred1_1 = r1;
|
|
829
|
-
return getStringFromWasm0(r0, r1);
|
|
830
|
-
} finally {
|
|
831
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
832
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @param {string} arg0
|
|
837
|
-
*/
|
|
838
|
-
set key(arg0) {
|
|
839
|
-
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
840
|
-
const len0 = WASM_VECTOR_LEN;
|
|
841
|
-
wasm.__wbg_set_excelcolumndata_key(this.__wbg_ptr, ptr0, len0);
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* @returns {string}
|
|
845
|
-
*/
|
|
846
|
-
get value() {
|
|
847
|
-
let deferred1_0;
|
|
848
|
-
let deferred1_1;
|
|
849
|
-
try {
|
|
850
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
851
|
-
wasm.__wbg_get_excelcolumndata_value(retptr, this.__wbg_ptr);
|
|
852
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
853
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
854
|
-
deferred1_0 = r0;
|
|
855
|
-
deferred1_1 = r1;
|
|
856
|
-
return getStringFromWasm0(r0, r1);
|
|
857
|
-
} finally {
|
|
858
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
859
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* @param {string} arg0
|
|
864
|
-
*/
|
|
865
|
-
set value(arg0) {
|
|
866
|
-
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
867
|
-
const len0 = WASM_VECTOR_LEN;
|
|
868
|
-
wasm.__wbg_set_excelcolumndata_value(this.__wbg_ptr, ptr0, len0);
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* @returns {ExcelRowData[]}
|
|
872
|
-
*/
|
|
873
|
-
get children() {
|
|
874
|
-
try {
|
|
875
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
876
|
-
wasm.__wbg_get_excelcolumndata_children(retptr, this.__wbg_ptr);
|
|
877
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
878
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
879
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
880
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
881
|
-
return v1;
|
|
882
|
-
} finally {
|
|
883
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* @param {ExcelRowData[]} arg0
|
|
888
|
-
*/
|
|
889
|
-
set children(arg0) {
|
|
890
|
-
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
891
|
-
const len0 = WASM_VECTOR_LEN;
|
|
892
|
-
wasm.__wbg_set_excelcolumndata_children(this.__wbg_ptr, ptr0, len0);
|
|
432
|
+
free() {
|
|
433
|
+
const ptr = this.__destroy_into_raw();
|
|
434
|
+
wasm.__wbg_excelcolumndata_free(ptr, 0);
|
|
893
435
|
}
|
|
894
436
|
/**
|
|
895
437
|
* @param {string} key
|
|
@@ -945,14 +487,73 @@ export class ExcelColumnData {
|
|
|
945
487
|
const ret = wasm.excelcolumndata_withChildren(ptr, ptr0, len0);
|
|
946
488
|
return ExcelColumnData.__wrap(ret);
|
|
947
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* @returns {ExcelRowData[]}
|
|
492
|
+
*/
|
|
493
|
+
get children() {
|
|
494
|
+
const ret = wasm.__wbg_get_excelcolumndata_children(this.__wbg_ptr);
|
|
495
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
496
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
497
|
+
return v1;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @returns {string}
|
|
501
|
+
*/
|
|
502
|
+
get key() {
|
|
503
|
+
let deferred1_0;
|
|
504
|
+
let deferred1_1;
|
|
505
|
+
try {
|
|
506
|
+
const ret = wasm.__wbg_get_excelcolumndata_key(this.__wbg_ptr);
|
|
507
|
+
deferred1_0 = ret[0];
|
|
508
|
+
deferred1_1 = ret[1];
|
|
509
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
510
|
+
} finally {
|
|
511
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* @returns {string}
|
|
516
|
+
*/
|
|
517
|
+
get value() {
|
|
518
|
+
let deferred1_0;
|
|
519
|
+
let deferred1_1;
|
|
520
|
+
try {
|
|
521
|
+
const ret = wasm.__wbg_get_excelcolumndata_value(this.__wbg_ptr);
|
|
522
|
+
deferred1_0 = ret[0];
|
|
523
|
+
deferred1_1 = ret[1];
|
|
524
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
525
|
+
} finally {
|
|
526
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* @param {ExcelRowData[]} arg0
|
|
531
|
+
*/
|
|
532
|
+
set children(arg0) {
|
|
533
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
534
|
+
const len0 = WASM_VECTOR_LEN;
|
|
535
|
+
wasm.__wbg_set_excelcolumndata_children(this.__wbg_ptr, ptr0, len0);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* @param {string} arg0
|
|
539
|
+
*/
|
|
540
|
+
set key(arg0) {
|
|
541
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
542
|
+
const len0 = WASM_VECTOR_LEN;
|
|
543
|
+
wasm.__wbg_set_excelcolumndata_key(this.__wbg_ptr, ptr0, len0);
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* @param {string} arg0
|
|
547
|
+
*/
|
|
548
|
+
set value(arg0) {
|
|
549
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
551
|
+
wasm.__wbg_set_excelcolumndata_value(this.__wbg_ptr, ptr0, len0);
|
|
552
|
+
}
|
|
948
553
|
}
|
|
949
|
-
|
|
950
|
-
const ExcelColumnInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
951
|
-
? { register: () => {}, unregister: () => {} }
|
|
952
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumninfo_free(ptr >>> 0, 1));
|
|
554
|
+
if (Symbol.dispose) ExcelColumnData.prototype[Symbol.dispose] = ExcelColumnData.prototype.free;
|
|
953
555
|
|
|
954
556
|
export class ExcelColumnInfo {
|
|
955
|
-
|
|
956
557
|
static __wrap(ptr) {
|
|
957
558
|
ptr = ptr >>> 0;
|
|
958
559
|
const obj = Object.create(ExcelColumnInfo.prototype);
|
|
@@ -960,196 +561,186 @@ export class ExcelColumnInfo {
|
|
|
960
561
|
ExcelColumnInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
961
562
|
return obj;
|
|
962
563
|
}
|
|
963
|
-
|
|
964
564
|
static __unwrap(jsValue) {
|
|
965
565
|
if (!(jsValue instanceof ExcelColumnInfo)) {
|
|
966
566
|
return 0;
|
|
967
567
|
}
|
|
968
568
|
return jsValue.__destroy_into_raw();
|
|
969
569
|
}
|
|
970
|
-
|
|
971
570
|
__destroy_into_raw() {
|
|
972
571
|
const ptr = this.__wbg_ptr;
|
|
973
572
|
this.__wbg_ptr = 0;
|
|
974
573
|
ExcelColumnInfoFinalization.unregister(this);
|
|
975
574
|
return ptr;
|
|
976
575
|
}
|
|
977
|
-
|
|
978
576
|
free() {
|
|
979
577
|
const ptr = this.__destroy_into_raw();
|
|
980
578
|
wasm.__wbg_excelcolumninfo_free(ptr, 0);
|
|
981
579
|
}
|
|
982
580
|
/**
|
|
983
|
-
* @
|
|
581
|
+
* @param {string} key
|
|
582
|
+
* @param {string} name
|
|
984
583
|
*/
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
deferred1_1 = r1;
|
|
995
|
-
return getStringFromWasm0(r0, r1);
|
|
996
|
-
} finally {
|
|
997
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
998
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
999
|
-
}
|
|
584
|
+
constructor(key, name) {
|
|
585
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
588
|
+
const len1 = WASM_VECTOR_LEN;
|
|
589
|
+
const ret = wasm.excelcolumninfo_bind_new(ptr0, len0, ptr1, len1);
|
|
590
|
+
this.__wbg_ptr = ret >>> 0;
|
|
591
|
+
ExcelColumnInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
592
|
+
return this;
|
|
1000
593
|
}
|
|
1001
594
|
/**
|
|
1002
|
-
* @param {string}
|
|
595
|
+
* @param {string[]} allowed_values
|
|
596
|
+
* @returns {ExcelColumnInfo}
|
|
1003
597
|
*/
|
|
1004
|
-
|
|
1005
|
-
const
|
|
598
|
+
withAllowedValues(allowed_values) {
|
|
599
|
+
const ptr = this.__destroy_into_raw();
|
|
600
|
+
const ptr0 = passArrayJsValueToWasm0(allowed_values, wasm.__wbindgen_malloc);
|
|
1006
601
|
const len0 = WASM_VECTOR_LEN;
|
|
1007
|
-
wasm.
|
|
602
|
+
const ret = wasm.excelcolumninfo_withAllowedValues(ptr, ptr0, len0);
|
|
603
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1008
604
|
}
|
|
1009
605
|
/**
|
|
1010
|
-
* @
|
|
606
|
+
* @param {string} group
|
|
607
|
+
* @returns {ExcelColumnInfo}
|
|
1011
608
|
*/
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1019
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1020
|
-
deferred1_0 = r0;
|
|
1021
|
-
deferred1_1 = r1;
|
|
1022
|
-
return getStringFromWasm0(r0, r1);
|
|
1023
|
-
} finally {
|
|
1024
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1025
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1026
|
-
}
|
|
609
|
+
withDataGroup(group) {
|
|
610
|
+
const ptr = this.__destroy_into_raw();
|
|
611
|
+
const ptr0 = passStringToWasm0(group, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
+
const len0 = WASM_VECTOR_LEN;
|
|
613
|
+
const ret = wasm.excelcolumninfo_withDataGroup(ptr, ptr0, len0);
|
|
614
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1027
615
|
}
|
|
1028
616
|
/**
|
|
1029
|
-
* @param {string}
|
|
617
|
+
* @param {string} group_parent
|
|
618
|
+
* @returns {ExcelColumnInfo}
|
|
1030
619
|
*/
|
|
1031
|
-
|
|
1032
|
-
const
|
|
620
|
+
withDataGroupParent(group_parent) {
|
|
621
|
+
const ptr = this.__destroy_into_raw();
|
|
622
|
+
const ptr0 = passStringToWasm0(group_parent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1033
623
|
const len0 = WASM_VECTOR_LEN;
|
|
1034
|
-
wasm.
|
|
624
|
+
const ret = wasm.excelcolumninfo_withDataGroupParent(ptr, ptr0, len0);
|
|
625
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1035
626
|
}
|
|
1036
627
|
/**
|
|
1037
|
-
* @
|
|
628
|
+
* @param {string} data_type
|
|
629
|
+
* @returns {ExcelColumnInfo}
|
|
1038
630
|
*/
|
|
1039
|
-
|
|
1040
|
-
const
|
|
1041
|
-
|
|
631
|
+
withDataType(data_type) {
|
|
632
|
+
const ptr = this.__destroy_into_raw();
|
|
633
|
+
const ptr0 = passStringToWasm0(data_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
634
|
+
const len0 = WASM_VECTOR_LEN;
|
|
635
|
+
const ret = wasm.excelcolumninfo_withDataType(ptr, ptr0, len0);
|
|
636
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1042
637
|
}
|
|
1043
638
|
/**
|
|
1044
|
-
* @param {
|
|
639
|
+
* @param {ExcelCellFormat} format
|
|
640
|
+
* @returns {ExcelColumnInfo}
|
|
1045
641
|
*/
|
|
1046
|
-
|
|
1047
|
-
|
|
642
|
+
withFormat(format) {
|
|
643
|
+
const ptr = this.__destroy_into_raw();
|
|
644
|
+
_assertClass(format, ExcelCellFormat);
|
|
645
|
+
var ptr0 = format.__destroy_into_raw();
|
|
646
|
+
const ret = wasm.excelcolumninfo_withFormat(ptr, ptr0);
|
|
647
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1048
648
|
}
|
|
1049
649
|
/**
|
|
1050
|
-
* @
|
|
650
|
+
* @param {string} note
|
|
651
|
+
* @returns {ExcelColumnInfo}
|
|
1051
652
|
*/
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
let v1;
|
|
1059
|
-
if (r0 !== 0) {
|
|
1060
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1061
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1062
|
-
}
|
|
1063
|
-
return v1;
|
|
1064
|
-
} finally {
|
|
1065
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1066
|
-
}
|
|
653
|
+
withNote(note) {
|
|
654
|
+
const ptr = this.__destroy_into_raw();
|
|
655
|
+
const ptr0 = passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
656
|
+
const len0 = WASM_VECTOR_LEN;
|
|
657
|
+
const ret = wasm.excelcolumninfo_withNote(ptr, ptr0, len0);
|
|
658
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1067
659
|
}
|
|
1068
660
|
/**
|
|
1069
|
-
* @param {string
|
|
661
|
+
* @param {string} parent
|
|
662
|
+
* @returns {ExcelColumnInfo}
|
|
1070
663
|
*/
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
664
|
+
withParent(parent) {
|
|
665
|
+
const ptr = this.__destroy_into_raw();
|
|
666
|
+
const ptr0 = passStringToWasm0(parent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
667
|
+
const len0 = WASM_VECTOR_LEN;
|
|
668
|
+
const ret = wasm.excelcolumninfo_withParent(ptr, ptr0, len0);
|
|
669
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1075
670
|
}
|
|
1076
671
|
/**
|
|
1077
|
-
* @
|
|
672
|
+
* @param {ExcelCellFormat[]} value_format
|
|
673
|
+
* @returns {ExcelColumnInfo}
|
|
1078
674
|
*/
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1086
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1087
|
-
deferred1_0 = r0;
|
|
1088
|
-
deferred1_1 = r1;
|
|
1089
|
-
return getStringFromWasm0(r0, r1);
|
|
1090
|
-
} finally {
|
|
1091
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1092
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1093
|
-
}
|
|
675
|
+
withValueFormat(value_format) {
|
|
676
|
+
const ptr = this.__destroy_into_raw();
|
|
677
|
+
const ptr0 = passArrayJsValueToWasm0(value_format, wasm.__wbindgen_malloc);
|
|
678
|
+
const len0 = WASM_VECTOR_LEN;
|
|
679
|
+
const ret = wasm.excelcolumninfo_withValueFormat(ptr, ptr0, len0);
|
|
680
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1094
681
|
}
|
|
1095
682
|
/**
|
|
1096
|
-
* @param {
|
|
683
|
+
* @param {number} width
|
|
684
|
+
* @returns {ExcelColumnInfo}
|
|
1097
685
|
*/
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1100
|
-
const
|
|
1101
|
-
|
|
686
|
+
withWidth(width) {
|
|
687
|
+
const ptr = this.__destroy_into_raw();
|
|
688
|
+
const ret = wasm.excelcolumninfo_withWidth(ptr, width);
|
|
689
|
+
return ExcelColumnInfo.__wrap(ret);
|
|
1102
690
|
}
|
|
1103
691
|
/**
|
|
1104
692
|
* @returns {string[]}
|
|
1105
693
|
*/
|
|
1106
694
|
get allowed_values() {
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1112
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1113
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1114
|
-
return v1;
|
|
1115
|
-
} finally {
|
|
1116
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1117
|
-
}
|
|
695
|
+
const ret = wasm.__wbg_get_excelcolumninfo_allowed_values(this.__wbg_ptr);
|
|
696
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
697
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
698
|
+
return v1;
|
|
1118
699
|
}
|
|
1119
700
|
/**
|
|
1120
|
-
* @
|
|
701
|
+
* @returns {string}
|
|
1121
702
|
*/
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
703
|
+
get data_group_parent() {
|
|
704
|
+
let deferred1_0;
|
|
705
|
+
let deferred1_1;
|
|
706
|
+
try {
|
|
707
|
+
const ret = wasm.__wbg_get_excelcolumninfo_data_group_parent(this.__wbg_ptr);
|
|
708
|
+
deferred1_0 = ret[0];
|
|
709
|
+
deferred1_1 = ret[1];
|
|
710
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
711
|
+
} finally {
|
|
712
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
713
|
+
}
|
|
1126
714
|
}
|
|
1127
715
|
/**
|
|
1128
716
|
* @returns {string}
|
|
1129
717
|
*/
|
|
1130
|
-
get
|
|
718
|
+
get data_group() {
|
|
1131
719
|
let deferred1_0;
|
|
1132
720
|
let deferred1_1;
|
|
1133
721
|
try {
|
|
1134
|
-
const
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
deferred1_0 = r0;
|
|
1139
|
-
deferred1_1 = r1;
|
|
1140
|
-
return getStringFromWasm0(r0, r1);
|
|
722
|
+
const ret = wasm.__wbg_get_excelcolumninfo_data_group(this.__wbg_ptr);
|
|
723
|
+
deferred1_0 = ret[0];
|
|
724
|
+
deferred1_1 = ret[1];
|
|
725
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1141
726
|
} finally {
|
|
1142
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1143
727
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1144
728
|
}
|
|
1145
729
|
}
|
|
1146
730
|
/**
|
|
1147
|
-
* @
|
|
731
|
+
* @returns {string}
|
|
1148
732
|
*/
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
733
|
+
get data_type() {
|
|
734
|
+
let deferred1_0;
|
|
735
|
+
let deferred1_1;
|
|
736
|
+
try {
|
|
737
|
+
const ret = wasm.__wbg_get_excelcolumninfo_data_type(this.__wbg_ptr);
|
|
738
|
+
deferred1_0 = ret[0];
|
|
739
|
+
deferred1_1 = ret[1];
|
|
740
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
741
|
+
} finally {
|
|
742
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
743
|
+
}
|
|
1153
744
|
}
|
|
1154
745
|
/**
|
|
1155
746
|
* @returns {ExcelCellFormat | undefined}
|
|
@@ -1159,85 +750,85 @@ export class ExcelColumnInfo {
|
|
|
1159
750
|
return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
|
|
1160
751
|
}
|
|
1161
752
|
/**
|
|
1162
|
-
* @
|
|
753
|
+
* @returns {string}
|
|
1163
754
|
*/
|
|
1164
|
-
|
|
1165
|
-
let
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
755
|
+
get key() {
|
|
756
|
+
let deferred1_0;
|
|
757
|
+
let deferred1_1;
|
|
758
|
+
try {
|
|
759
|
+
const ret = wasm.__wbg_get_excelcolumninfo_key(this.__wbg_ptr);
|
|
760
|
+
deferred1_0 = ret[0];
|
|
761
|
+
deferred1_1 = ret[1];
|
|
762
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
763
|
+
} finally {
|
|
764
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1169
765
|
}
|
|
1170
|
-
wasm.__wbg_set_excelcolumninfo_format(this.__wbg_ptr, ptr0);
|
|
1171
766
|
}
|
|
1172
767
|
/**
|
|
1173
|
-
* @returns {
|
|
768
|
+
* @returns {string}
|
|
1174
769
|
*/
|
|
1175
|
-
get
|
|
770
|
+
get name() {
|
|
771
|
+
let deferred1_0;
|
|
772
|
+
let deferred1_1;
|
|
1176
773
|
try {
|
|
1177
|
-
const
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1182
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1183
|
-
return v1;
|
|
774
|
+
const ret = wasm.__wbg_get_excelcolumninfo_name(this.__wbg_ptr);
|
|
775
|
+
deferred1_0 = ret[0];
|
|
776
|
+
deferred1_1 = ret[1];
|
|
777
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1184
778
|
} finally {
|
|
1185
|
-
wasm.
|
|
779
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1186
780
|
}
|
|
1187
781
|
}
|
|
1188
782
|
/**
|
|
1189
|
-
* @
|
|
783
|
+
* @returns {string | undefined}
|
|
1190
784
|
*/
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1194
|
-
|
|
785
|
+
get note() {
|
|
786
|
+
const ret = wasm.__wbg_get_excelcolumninfo_note(this.__wbg_ptr);
|
|
787
|
+
let v1;
|
|
788
|
+
if (ret[0] !== 0) {
|
|
789
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
790
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
791
|
+
}
|
|
792
|
+
return v1;
|
|
1195
793
|
}
|
|
1196
794
|
/**
|
|
1197
795
|
* @returns {string}
|
|
1198
796
|
*/
|
|
1199
|
-
get
|
|
797
|
+
get parent() {
|
|
1200
798
|
let deferred1_0;
|
|
1201
799
|
let deferred1_1;
|
|
1202
800
|
try {
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
deferred1_0 = r0;
|
|
1208
|
-
deferred1_1 = r1;
|
|
1209
|
-
return getStringFromWasm0(r0, r1);
|
|
801
|
+
const ret = wasm.__wbg_get_excelcolumninfo_parent(this.__wbg_ptr);
|
|
802
|
+
deferred1_0 = ret[0];
|
|
803
|
+
deferred1_1 = ret[1];
|
|
804
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1210
805
|
} finally {
|
|
1211
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1212
806
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1213
807
|
}
|
|
1214
808
|
}
|
|
1215
809
|
/**
|
|
1216
|
-
* @
|
|
810
|
+
* @returns {ExcelCellFormat[]}
|
|
1217
811
|
*/
|
|
1218
|
-
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
wasm.
|
|
812
|
+
get value_format() {
|
|
813
|
+
const ret = wasm.__wbg_get_excelcolumninfo_value_format(this.__wbg_ptr);
|
|
814
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
815
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
816
|
+
return v1;
|
|
1222
817
|
}
|
|
1223
818
|
/**
|
|
1224
|
-
* @returns {
|
|
819
|
+
* @returns {number}
|
|
1225
820
|
*/
|
|
1226
|
-
get
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
} finally {
|
|
1238
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1239
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1240
|
-
}
|
|
821
|
+
get width() {
|
|
822
|
+
const ret = wasm.__wbg_get_excelcolumninfo_width(this.__wbg_ptr);
|
|
823
|
+
return ret;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* @param {string[]} arg0
|
|
827
|
+
*/
|
|
828
|
+
set allowed_values(arg0) {
|
|
829
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
830
|
+
const len0 = WASM_VECTOR_LEN;
|
|
831
|
+
wasm.__wbg_set_excelcolumninfo_allowed_values(this.__wbg_ptr, ptr0, len0);
|
|
1241
832
|
}
|
|
1242
833
|
/**
|
|
1243
834
|
* @param {string} arg0
|
|
@@ -1248,364 +839,361 @@ export class ExcelColumnInfo {
|
|
|
1248
839
|
wasm.__wbg_set_excelcolumninfo_data_group_parent(this.__wbg_ptr, ptr0, len0);
|
|
1249
840
|
}
|
|
1250
841
|
/**
|
|
1251
|
-
* @param {string}
|
|
1252
|
-
* @param {string} name
|
|
842
|
+
* @param {string} arg0
|
|
1253
843
|
*/
|
|
1254
|
-
|
|
1255
|
-
const ptr0 = passStringToWasm0(
|
|
844
|
+
set data_group(arg0) {
|
|
845
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1256
846
|
const len0 = WASM_VECTOR_LEN;
|
|
1257
|
-
|
|
1258
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1259
|
-
const ret = wasm.excelcolumninfo_bind_new(ptr0, len0, ptr1, len1);
|
|
1260
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1261
|
-
ExcelColumnInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
1262
|
-
return this;
|
|
847
|
+
wasm.__wbg_set_excelcolumninfo_data_group(this.__wbg_ptr, ptr0, len0);
|
|
1263
848
|
}
|
|
1264
849
|
/**
|
|
1265
|
-
* @param {string}
|
|
1266
|
-
* @returns {ExcelColumnInfo}
|
|
850
|
+
* @param {string} arg0
|
|
1267
851
|
*/
|
|
1268
|
-
|
|
1269
|
-
const
|
|
1270
|
-
const ptr0 = passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
852
|
+
set data_type(arg0) {
|
|
853
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1271
854
|
const len0 = WASM_VECTOR_LEN;
|
|
1272
|
-
|
|
1273
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
855
|
+
wasm.__wbg_set_excelcolumninfo_data_type(this.__wbg_ptr, ptr0, len0);
|
|
1274
856
|
}
|
|
1275
857
|
/**
|
|
1276
|
-
* @param {
|
|
1277
|
-
* @returns {ExcelColumnInfo}
|
|
858
|
+
* @param {ExcelCellFormat | null} [arg0]
|
|
1278
859
|
*/
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
860
|
+
set format(arg0) {
|
|
861
|
+
let ptr0 = 0;
|
|
862
|
+
if (!isLikeNone(arg0)) {
|
|
863
|
+
_assertClass(arg0, ExcelCellFormat);
|
|
864
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
865
|
+
}
|
|
866
|
+
wasm.__wbg_set_excelcolumninfo_format(this.__wbg_ptr, ptr0);
|
|
1285
867
|
}
|
|
1286
868
|
/**
|
|
1287
|
-
* @param {string
|
|
1288
|
-
* @returns {ExcelColumnInfo}
|
|
869
|
+
* @param {string} arg0
|
|
1289
870
|
*/
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
const ptr0 = passArrayJsValueToWasm0(allowed_values, wasm.__wbindgen_malloc);
|
|
871
|
+
set key(arg0) {
|
|
872
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1293
873
|
const len0 = WASM_VECTOR_LEN;
|
|
1294
|
-
|
|
1295
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
874
|
+
wasm.__wbg_set_excelcolumninfo_key(this.__wbg_ptr, ptr0, len0);
|
|
1296
875
|
}
|
|
1297
876
|
/**
|
|
1298
|
-
* @param {
|
|
1299
|
-
* @returns {ExcelColumnInfo}
|
|
877
|
+
* @param {string} arg0
|
|
1300
878
|
*/
|
|
1301
|
-
|
|
1302
|
-
const
|
|
1303
|
-
const
|
|
1304
|
-
|
|
879
|
+
set name(arg0) {
|
|
880
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
881
|
+
const len0 = WASM_VECTOR_LEN;
|
|
882
|
+
wasm.__wbg_set_excelcolumninfo_name(this.__wbg_ptr, ptr0, len0);
|
|
1305
883
|
}
|
|
1306
884
|
/**
|
|
1307
|
-
* @param {
|
|
1308
|
-
* @returns {ExcelColumnInfo}
|
|
885
|
+
* @param {string | null} [arg0]
|
|
1309
886
|
*/
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
const ret = wasm.excelcolumninfo_withFormat(ptr, ptr0);
|
|
1315
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
887
|
+
set note(arg0) {
|
|
888
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
889
|
+
var len0 = WASM_VECTOR_LEN;
|
|
890
|
+
wasm.__wbg_set_excelcolumninfo_note(this.__wbg_ptr, ptr0, len0);
|
|
1316
891
|
}
|
|
1317
892
|
/**
|
|
1318
|
-
* @param {string}
|
|
1319
|
-
* @returns {ExcelColumnInfo}
|
|
893
|
+
* @param {string} arg0
|
|
1320
894
|
*/
|
|
1321
|
-
|
|
1322
|
-
const
|
|
1323
|
-
const ptr0 = passStringToWasm0(parent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
895
|
+
set parent(arg0) {
|
|
896
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1324
897
|
const len0 = WASM_VECTOR_LEN;
|
|
1325
|
-
|
|
1326
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
898
|
+
wasm.__wbg_set_excelcolumninfo_parent(this.__wbg_ptr, ptr0, len0);
|
|
1327
899
|
}
|
|
1328
900
|
/**
|
|
1329
|
-
* @param {ExcelCellFormat[]}
|
|
1330
|
-
* @returns {ExcelColumnInfo}
|
|
901
|
+
* @param {ExcelCellFormat[]} arg0
|
|
1331
902
|
*/
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1334
|
-
const ptr0 = passArrayJsValueToWasm0(value_format, wasm.__wbindgen_malloc);
|
|
903
|
+
set value_format(arg0) {
|
|
904
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1335
905
|
const len0 = WASM_VECTOR_LEN;
|
|
1336
|
-
|
|
1337
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
906
|
+
wasm.__wbg_set_excelcolumninfo_value_format(this.__wbg_ptr, ptr0, len0);
|
|
1338
907
|
}
|
|
1339
908
|
/**
|
|
1340
|
-
* @param {
|
|
1341
|
-
* @returns {ExcelColumnInfo}
|
|
909
|
+
* @param {number} arg0
|
|
1342
910
|
*/
|
|
1343
|
-
|
|
911
|
+
set width(arg0) {
|
|
912
|
+
wasm.__wbg_set_excelcolumninfo_width(this.__wbg_ptr, arg0);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
if (Symbol.dispose) ExcelColumnInfo.prototype[Symbol.dispose] = ExcelColumnInfo.prototype.free;
|
|
916
|
+
|
|
917
|
+
export class ExcelData {
|
|
918
|
+
static __wrap(ptr) {
|
|
919
|
+
ptr = ptr >>> 0;
|
|
920
|
+
const obj = Object.create(ExcelData.prototype);
|
|
921
|
+
obj.__wbg_ptr = ptr;
|
|
922
|
+
ExcelDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
923
|
+
return obj;
|
|
924
|
+
}
|
|
925
|
+
__destroy_into_raw() {
|
|
926
|
+
const ptr = this.__wbg_ptr;
|
|
927
|
+
this.__wbg_ptr = 0;
|
|
928
|
+
ExcelDataFinalization.unregister(this);
|
|
929
|
+
return ptr;
|
|
930
|
+
}
|
|
931
|
+
free() {
|
|
1344
932
|
const ptr = this.__destroy_into_raw();
|
|
1345
|
-
|
|
933
|
+
wasm.__wbg_exceldata_free(ptr, 0);
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* @param {ExcelRowData[]} rows
|
|
937
|
+
*/
|
|
938
|
+
constructor(rows) {
|
|
939
|
+
const ptr0 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
|
|
1346
940
|
const len0 = WASM_VECTOR_LEN;
|
|
1347
|
-
const ret = wasm.
|
|
1348
|
-
|
|
941
|
+
const ret = wasm.exceldata_new(ptr0, len0);
|
|
942
|
+
this.__wbg_ptr = ret >>> 0;
|
|
943
|
+
ExcelDataFinalization.register(this, this.__wbg_ptr, this);
|
|
944
|
+
return this;
|
|
1349
945
|
}
|
|
1350
946
|
/**
|
|
1351
|
-
* @
|
|
1352
|
-
* @returns {ExcelColumnInfo}
|
|
947
|
+
* @returns {ExcelRowData[]}
|
|
1353
948
|
*/
|
|
1354
|
-
|
|
1355
|
-
const
|
|
1356
|
-
|
|
949
|
+
get rows() {
|
|
950
|
+
const ret = wasm.__wbg_get_exceldata_rows(this.__wbg_ptr);
|
|
951
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
952
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
953
|
+
return v1;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* @param {ExcelRowData[]} arg0
|
|
957
|
+
*/
|
|
958
|
+
set rows(arg0) {
|
|
959
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1357
960
|
const len0 = WASM_VECTOR_LEN;
|
|
1358
|
-
|
|
1359
|
-
return ExcelColumnInfo.__wrap(ret);
|
|
961
|
+
wasm.__wbg_set_exceldata_rows(this.__wbg_ptr, ptr0, len0);
|
|
1360
962
|
}
|
|
1361
963
|
}
|
|
964
|
+
if (Symbol.dispose) ExcelData.prototype[Symbol.dispose] = ExcelData.prototype.free;
|
|
1362
965
|
|
|
1363
|
-
|
|
1364
|
-
? { register: () => {}, unregister: () => {} }
|
|
1365
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_exceldata_free(ptr >>> 0, 1));
|
|
1366
|
-
|
|
1367
|
-
export class ExcelData {
|
|
1368
|
-
|
|
966
|
+
export class ExcelInfo {
|
|
1369
967
|
static __wrap(ptr) {
|
|
1370
968
|
ptr = ptr >>> 0;
|
|
1371
|
-
const obj = Object.create(
|
|
969
|
+
const obj = Object.create(ExcelInfo.prototype);
|
|
1372
970
|
obj.__wbg_ptr = ptr;
|
|
1373
|
-
|
|
971
|
+
ExcelInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1374
972
|
return obj;
|
|
1375
973
|
}
|
|
1376
|
-
|
|
1377
974
|
__destroy_into_raw() {
|
|
1378
975
|
const ptr = this.__wbg_ptr;
|
|
1379
976
|
this.__wbg_ptr = 0;
|
|
1380
|
-
|
|
977
|
+
ExcelInfoFinalization.unregister(this);
|
|
1381
978
|
return ptr;
|
|
1382
979
|
}
|
|
1383
|
-
|
|
1384
980
|
free() {
|
|
1385
981
|
const ptr = this.__destroy_into_raw();
|
|
1386
|
-
wasm.
|
|
982
|
+
wasm.__wbg_excelinfo_free(ptr, 0);
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* @param {string} name
|
|
986
|
+
* @param {string} sheet_name
|
|
987
|
+
* @param {ExcelColumnInfo[]} columns
|
|
988
|
+
* @param {string} author
|
|
989
|
+
* @param {string} create_time
|
|
990
|
+
*/
|
|
991
|
+
constructor(name, sheet_name, columns, author, create_time) {
|
|
992
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len0 = WASM_VECTOR_LEN;
|
|
994
|
+
const ptr1 = passStringToWasm0(sheet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
995
|
+
const len1 = WASM_VECTOR_LEN;
|
|
996
|
+
const ptr2 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
|
|
997
|
+
const len2 = WASM_VECTOR_LEN;
|
|
998
|
+
const ptr3 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
999
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1000
|
+
const ptr4 = passStringToWasm0(create_time, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1001
|
+
const len4 = WASM_VECTOR_LEN;
|
|
1002
|
+
const ret = wasm.excelinfo_bind_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
1003
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1004
|
+
ExcelInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
1005
|
+
return this;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* @param {number} row_height
|
|
1009
|
+
* @returns {ExcelInfo}
|
|
1010
|
+
*/
|
|
1011
|
+
withDefaultRowHeight(row_height) {
|
|
1012
|
+
const ptr = this.__destroy_into_raw();
|
|
1013
|
+
const ret = wasm.excelinfo_withDefaultRowHeight(ptr, row_height);
|
|
1014
|
+
return ExcelInfo.__wrap(ret);
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {number} row_height
|
|
1018
|
+
* @returns {ExcelInfo}
|
|
1019
|
+
*/
|
|
1020
|
+
withHeaderRowHeight(row_height) {
|
|
1021
|
+
const ptr = this.__destroy_into_raw();
|
|
1022
|
+
const ret = wasm.excelinfo_withHeaderRowHeight(ptr, row_height);
|
|
1023
|
+
return ExcelInfo.__wrap(ret);
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* @param {Function} fetcher
|
|
1027
|
+
* @returns {ExcelInfo}
|
|
1028
|
+
*/
|
|
1029
|
+
withImageFetcher(fetcher) {
|
|
1030
|
+
const ptr = this.__destroy_into_raw();
|
|
1031
|
+
const ret = wasm.excelinfo_withImageFetcher(ptr, fetcher);
|
|
1032
|
+
return ExcelInfo.__wrap(ret);
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* @param {boolean} is_header_freeze
|
|
1036
|
+
* @returns {ExcelInfo}
|
|
1037
|
+
*/
|
|
1038
|
+
withIsHeaderFreeze(is_header_freeze) {
|
|
1039
|
+
const ptr = this.__destroy_into_raw();
|
|
1040
|
+
const ret = wasm.excelinfo_withIsHeaderFreeze(ptr, is_header_freeze);
|
|
1041
|
+
return ExcelInfo.__wrap(ret);
|
|
1387
1042
|
}
|
|
1388
1043
|
/**
|
|
1389
|
-
* @
|
|
1044
|
+
* @param {number} dx
|
|
1045
|
+
* @param {number} dy
|
|
1046
|
+
* @returns {ExcelInfo}
|
|
1390
1047
|
*/
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1396
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1397
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1398
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1399
|
-
return v1;
|
|
1400
|
-
} finally {
|
|
1401
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1402
|
-
}
|
|
1048
|
+
withOffset(dx, dy) {
|
|
1049
|
+
const ptr = this.__destroy_into_raw();
|
|
1050
|
+
const ret = wasm.excelinfo_withOffset(ptr, dx, dy);
|
|
1051
|
+
return ExcelInfo.__wrap(ret);
|
|
1403
1052
|
}
|
|
1404
1053
|
/**
|
|
1405
|
-
* @param {
|
|
1054
|
+
* @param {Function} callback
|
|
1055
|
+
* @returns {ExcelInfo}
|
|
1406
1056
|
*/
|
|
1407
|
-
|
|
1408
|
-
const
|
|
1409
|
-
const
|
|
1410
|
-
|
|
1057
|
+
withProgressCallback(callback) {
|
|
1058
|
+
const ptr = this.__destroy_into_raw();
|
|
1059
|
+
const ret = wasm.excelinfo_withProgressCallback(ptr, callback);
|
|
1060
|
+
return ExcelInfo.__wrap(ret);
|
|
1411
1061
|
}
|
|
1412
1062
|
/**
|
|
1413
|
-
* @param {
|
|
1063
|
+
* @param {string} title
|
|
1064
|
+
* @returns {ExcelInfo}
|
|
1414
1065
|
*/
|
|
1415
|
-
|
|
1416
|
-
const
|
|
1066
|
+
withTitle(title) {
|
|
1067
|
+
const ptr = this.__destroy_into_raw();
|
|
1068
|
+
const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1417
1069
|
const len0 = WASM_VECTOR_LEN;
|
|
1418
|
-
const ret = wasm.
|
|
1419
|
-
|
|
1420
|
-
ExcelDataFinalization.register(this, this.__wbg_ptr, this);
|
|
1421
|
-
return this;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
const ExcelInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1426
|
-
? { register: () => {}, unregister: () => {} }
|
|
1427
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_excelinfo_free(ptr >>> 0, 1));
|
|
1428
|
-
|
|
1429
|
-
export class ExcelInfo {
|
|
1430
|
-
|
|
1431
|
-
static __wrap(ptr) {
|
|
1432
|
-
ptr = ptr >>> 0;
|
|
1433
|
-
const obj = Object.create(ExcelInfo.prototype);
|
|
1434
|
-
obj.__wbg_ptr = ptr;
|
|
1435
|
-
ExcelInfoFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1436
|
-
return obj;
|
|
1070
|
+
const ret = wasm.excelinfo_withTitle(ptr, ptr0, len0);
|
|
1071
|
+
return ExcelInfo.__wrap(ret);
|
|
1437
1072
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1073
|
+
/**
|
|
1074
|
+
* @param {ExcelCellFormat} title_format
|
|
1075
|
+
* @returns {ExcelInfo}
|
|
1076
|
+
*/
|
|
1077
|
+
withTitleFormat(title_format) {
|
|
1078
|
+
const ptr = this.__destroy_into_raw();
|
|
1079
|
+
_assertClass(title_format, ExcelCellFormat);
|
|
1080
|
+
var ptr0 = title_format.__destroy_into_raw();
|
|
1081
|
+
const ret = wasm.excelinfo_withTitleFormat(ptr, ptr0);
|
|
1082
|
+
return ExcelInfo.__wrap(ret);
|
|
1444
1083
|
}
|
|
1445
|
-
|
|
1446
|
-
|
|
1084
|
+
/**
|
|
1085
|
+
* @param {number} title_height
|
|
1086
|
+
* @returns {ExcelInfo}
|
|
1087
|
+
*/
|
|
1088
|
+
withTitleHeight(title_height) {
|
|
1447
1089
|
const ptr = this.__destroy_into_raw();
|
|
1448
|
-
wasm.
|
|
1090
|
+
const ret = wasm.excelinfo_withTitleHeight(ptr, title_height);
|
|
1091
|
+
return ExcelInfo.__wrap(ret);
|
|
1449
1092
|
}
|
|
1450
1093
|
/**
|
|
1451
1094
|
* @returns {string}
|
|
1452
1095
|
*/
|
|
1453
|
-
get
|
|
1096
|
+
get author() {
|
|
1454
1097
|
let deferred1_0;
|
|
1455
1098
|
let deferred1_1;
|
|
1456
1099
|
try {
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
deferred1_0 = r0;
|
|
1462
|
-
deferred1_1 = r1;
|
|
1463
|
-
return getStringFromWasm0(r0, r1);
|
|
1100
|
+
const ret = wasm.__wbg_get_excelinfo_author(this.__wbg_ptr);
|
|
1101
|
+
deferred1_0 = ret[0];
|
|
1102
|
+
deferred1_1 = ret[1];
|
|
1103
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1464
1104
|
} finally {
|
|
1465
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1466
1105
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1467
1106
|
}
|
|
1468
1107
|
}
|
|
1469
1108
|
/**
|
|
1470
|
-
* @
|
|
1109
|
+
* @returns {ExcelColumnInfo[]}
|
|
1471
1110
|
*/
|
|
1472
|
-
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
wasm.
|
|
1111
|
+
get columns() {
|
|
1112
|
+
const ret = wasm.__wbg_get_excelinfo_columns(this.__wbg_ptr);
|
|
1113
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1114
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1115
|
+
return v1;
|
|
1476
1116
|
}
|
|
1477
1117
|
/**
|
|
1478
1118
|
* @returns {string}
|
|
1479
1119
|
*/
|
|
1480
|
-
get
|
|
1120
|
+
get create_time() {
|
|
1481
1121
|
let deferred1_0;
|
|
1482
1122
|
let deferred1_1;
|
|
1483
1123
|
try {
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
deferred1_0 = r0;
|
|
1489
|
-
deferred1_1 = r1;
|
|
1490
|
-
return getStringFromWasm0(r0, r1);
|
|
1124
|
+
const ret = wasm.__wbg_get_excelinfo_create_time(this.__wbg_ptr);
|
|
1125
|
+
deferred1_0 = ret[0];
|
|
1126
|
+
deferred1_1 = ret[1];
|
|
1127
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1491
1128
|
} finally {
|
|
1492
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1493
1129
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1494
1130
|
}
|
|
1495
1131
|
}
|
|
1496
1132
|
/**
|
|
1497
|
-
* @
|
|
1133
|
+
* @returns {number | undefined}
|
|
1498
1134
|
*/
|
|
1499
|
-
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
wasm.__wbg_set_excelinfo_sheet_name(this.__wbg_ptr, ptr0, len0);
|
|
1135
|
+
get default_row_height() {
|
|
1136
|
+
const ret = wasm.__wbg_get_excelinfo_default_row_height(this.__wbg_ptr);
|
|
1137
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1503
1138
|
}
|
|
1504
1139
|
/**
|
|
1505
|
-
* @returns {
|
|
1140
|
+
* @returns {number}
|
|
1506
1141
|
*/
|
|
1507
|
-
get
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
wasm.__wbg_get_excelinfo_columns(retptr, this.__wbg_ptr);
|
|
1511
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1512
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1513
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1514
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1515
|
-
return v1;
|
|
1516
|
-
} finally {
|
|
1517
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1518
|
-
}
|
|
1142
|
+
get dx() {
|
|
1143
|
+
const ret = wasm.__wbg_get_excelinfo_dx(this.__wbg_ptr);
|
|
1144
|
+
return ret;
|
|
1519
1145
|
}
|
|
1520
1146
|
/**
|
|
1521
|
-
* @
|
|
1147
|
+
* @returns {number}
|
|
1522
1148
|
*/
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1526
|
-
wasm.__wbg_set_excelinfo_columns(this.__wbg_ptr, ptr0, len0);
|
|
1149
|
+
get dy() {
|
|
1150
|
+
const ret = wasm.__wbg_get_excelinfo_dy(this.__wbg_ptr);
|
|
1151
|
+
return ret >>> 0;
|
|
1527
1152
|
}
|
|
1528
1153
|
/**
|
|
1529
|
-
* @returns {
|
|
1154
|
+
* @returns {number | undefined}
|
|
1530
1155
|
*/
|
|
1531
|
-
get
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
try {
|
|
1535
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1536
|
-
wasm.__wbg_get_excelinfo_author(retptr, this.__wbg_ptr);
|
|
1537
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1538
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1539
|
-
deferred1_0 = r0;
|
|
1540
|
-
deferred1_1 = r1;
|
|
1541
|
-
return getStringFromWasm0(r0, r1);
|
|
1542
|
-
} finally {
|
|
1543
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1544
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1545
|
-
}
|
|
1156
|
+
get header_row_height() {
|
|
1157
|
+
const ret = wasm.__wbg_get_excelinfo_header_row_height(this.__wbg_ptr);
|
|
1158
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1546
1159
|
}
|
|
1547
1160
|
/**
|
|
1548
|
-
* @
|
|
1161
|
+
* @returns {boolean}
|
|
1549
1162
|
*/
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1553
|
-
wasm.__wbg_set_excelinfo_author(this.__wbg_ptr, ptr0, len0);
|
|
1163
|
+
get is_header_freeze() {
|
|
1164
|
+
const ret = wasm.__wbg_get_excelinfo_is_header_freeze(this.__wbg_ptr);
|
|
1165
|
+
return ret !== 0;
|
|
1554
1166
|
}
|
|
1555
1167
|
/**
|
|
1556
1168
|
* @returns {string}
|
|
1557
1169
|
*/
|
|
1558
|
-
get
|
|
1170
|
+
get name() {
|
|
1559
1171
|
let deferred1_0;
|
|
1560
1172
|
let deferred1_1;
|
|
1561
1173
|
try {
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
deferred1_0 = r0;
|
|
1567
|
-
deferred1_1 = r1;
|
|
1568
|
-
return getStringFromWasm0(r0, r1);
|
|
1174
|
+
const ret = wasm.__wbg_get_excelinfo_name(this.__wbg_ptr);
|
|
1175
|
+
deferred1_0 = ret[0];
|
|
1176
|
+
deferred1_1 = ret[1];
|
|
1177
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1569
1178
|
} finally {
|
|
1570
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1571
1179
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1572
1180
|
}
|
|
1573
1181
|
}
|
|
1574
1182
|
/**
|
|
1575
|
-
* @
|
|
1576
|
-
*/
|
|
1577
|
-
set create_time(arg0) {
|
|
1578
|
-
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1579
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1580
|
-
wasm.__wbg_set_excelinfo_create_time(this.__wbg_ptr, ptr0, len0);
|
|
1581
|
-
}
|
|
1582
|
-
/**
|
|
1583
|
-
* @returns {string | undefined}
|
|
1183
|
+
* @returns {string}
|
|
1584
1184
|
*/
|
|
1585
|
-
get
|
|
1185
|
+
get sheet_name() {
|
|
1186
|
+
let deferred1_0;
|
|
1187
|
+
let deferred1_1;
|
|
1586
1188
|
try {
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
let v1;
|
|
1592
|
-
if (r0 !== 0) {
|
|
1593
|
-
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1594
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
1595
|
-
}
|
|
1596
|
-
return v1;
|
|
1189
|
+
const ret = wasm.__wbg_get_excelinfo_sheet_name(this.__wbg_ptr);
|
|
1190
|
+
deferred1_0 = ret[0];
|
|
1191
|
+
deferred1_1 = ret[1];
|
|
1192
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1597
1193
|
} finally {
|
|
1598
|
-
wasm.
|
|
1194
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1599
1195
|
}
|
|
1600
1196
|
}
|
|
1601
|
-
/**
|
|
1602
|
-
* @param {string | null} [arg0]
|
|
1603
|
-
*/
|
|
1604
|
-
set title(arg0) {
|
|
1605
|
-
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1606
|
-
var len0 = WASM_VECTOR_LEN;
|
|
1607
|
-
wasm.__wbg_set_excelinfo_title(this.__wbg_ptr, ptr0, len0);
|
|
1608
|
-
}
|
|
1609
1197
|
/**
|
|
1610
1198
|
* @returns {ExcelCellFormat | undefined}
|
|
1611
1199
|
*/
|
|
@@ -1613,83 +1201,54 @@ export class ExcelInfo {
|
|
|
1613
1201
|
const ret = wasm.__wbg_get_excelinfo_title_format(this.__wbg_ptr);
|
|
1614
1202
|
return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
|
|
1615
1203
|
}
|
|
1616
|
-
/**
|
|
1617
|
-
* @param {ExcelCellFormat | null} [arg0]
|
|
1618
|
-
*/
|
|
1619
|
-
set title_format(arg0) {
|
|
1620
|
-
let ptr0 = 0;
|
|
1621
|
-
if (!isLikeNone(arg0)) {
|
|
1622
|
-
_assertClass(arg0, ExcelCellFormat);
|
|
1623
|
-
ptr0 = arg0.__destroy_into_raw();
|
|
1624
|
-
}
|
|
1625
|
-
wasm.__wbg_set_excelinfo_title_format(this.__wbg_ptr, ptr0);
|
|
1626
|
-
}
|
|
1627
1204
|
/**
|
|
1628
1205
|
* @returns {number | undefined}
|
|
1629
1206
|
*/
|
|
1630
1207
|
get title_height() {
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
wasm.__wbg_get_excelinfo_title_height(retptr, this.__wbg_ptr);
|
|
1634
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1635
|
-
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
1636
|
-
return r0 === 0 ? undefined : r2;
|
|
1637
|
-
} finally {
|
|
1638
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
/**
|
|
1642
|
-
* @param {number | null} [arg0]
|
|
1643
|
-
*/
|
|
1644
|
-
set title_height(arg0) {
|
|
1645
|
-
wasm.__wbg_set_excelinfo_title_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1208
|
+
const ret = wasm.__wbg_get_excelinfo_title_height(this.__wbg_ptr);
|
|
1209
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
1646
1210
|
}
|
|
1647
1211
|
/**
|
|
1648
|
-
* @returns {
|
|
1212
|
+
* @returns {string | undefined}
|
|
1649
1213
|
*/
|
|
1650
|
-
get
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
return r0 === 0 ? undefined : r2;
|
|
1657
|
-
} finally {
|
|
1658
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1214
|
+
get title() {
|
|
1215
|
+
const ret = wasm.__wbg_get_excelinfo_title(this.__wbg_ptr);
|
|
1216
|
+
let v1;
|
|
1217
|
+
if (ret[0] !== 0) {
|
|
1218
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1219
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1659
1220
|
}
|
|
1221
|
+
return v1;
|
|
1660
1222
|
}
|
|
1661
1223
|
/**
|
|
1662
|
-
* @param {
|
|
1224
|
+
* @param {string} arg0
|
|
1663
1225
|
*/
|
|
1664
|
-
set
|
|
1665
|
-
|
|
1226
|
+
set author(arg0) {
|
|
1227
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1228
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1229
|
+
wasm.__wbg_set_excelinfo_author(this.__wbg_ptr, ptr0, len0);
|
|
1666
1230
|
}
|
|
1667
1231
|
/**
|
|
1668
|
-
* @
|
|
1232
|
+
* @param {ExcelColumnInfo[]} arg0
|
|
1669
1233
|
*/
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1675
|
-
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
1676
|
-
return r0 === 0 ? undefined : r2;
|
|
1677
|
-
} finally {
|
|
1678
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1679
|
-
}
|
|
1234
|
+
set columns(arg0) {
|
|
1235
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1237
|
+
wasm.__wbg_set_excelinfo_columns(this.__wbg_ptr, ptr0, len0);
|
|
1680
1238
|
}
|
|
1681
1239
|
/**
|
|
1682
|
-
* @param {
|
|
1240
|
+
* @param {string} arg0
|
|
1683
1241
|
*/
|
|
1684
|
-
set
|
|
1685
|
-
|
|
1242
|
+
set create_time(arg0) {
|
|
1243
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1244
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1245
|
+
wasm.__wbg_set_excelinfo_create_time(this.__wbg_ptr, ptr0, len0);
|
|
1686
1246
|
}
|
|
1687
1247
|
/**
|
|
1688
|
-
* @
|
|
1248
|
+
* @param {number | null} [arg0]
|
|
1689
1249
|
*/
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
return ret;
|
|
1250
|
+
set default_row_height(arg0) {
|
|
1251
|
+
wasm.__wbg_set_excelinfo_default_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1693
1252
|
}
|
|
1694
1253
|
/**
|
|
1695
1254
|
* @param {number} arg0
|
|
@@ -1697,13 +1256,6 @@ export class ExcelInfo {
|
|
|
1697
1256
|
set dx(arg0) {
|
|
1698
1257
|
wasm.__wbg_set_excelinfo_dx(this.__wbg_ptr, arg0);
|
|
1699
1258
|
}
|
|
1700
|
-
/**
|
|
1701
|
-
* @returns {number}
|
|
1702
|
-
*/
|
|
1703
|
-
get dy() {
|
|
1704
|
-
const ret = wasm.__wbg_get_excelinfo_dy(this.__wbg_ptr);
|
|
1705
|
-
return ret >>> 0;
|
|
1706
|
-
}
|
|
1707
1259
|
/**
|
|
1708
1260
|
* @param {number} arg0
|
|
1709
1261
|
*/
|
|
@@ -1711,196 +1263,629 @@ export class ExcelInfo {
|
|
|
1711
1263
|
wasm.__wbg_set_excelinfo_dy(this.__wbg_ptr, arg0);
|
|
1712
1264
|
}
|
|
1713
1265
|
/**
|
|
1714
|
-
* @
|
|
1266
|
+
* @param {number | null} [arg0]
|
|
1715
1267
|
*/
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
return ret !== 0;
|
|
1268
|
+
set header_row_height(arg0) {
|
|
1269
|
+
wasm.__wbg_set_excelinfo_header_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1719
1270
|
}
|
|
1720
1271
|
/**
|
|
1721
1272
|
* @param {boolean} arg0
|
|
1722
1273
|
*/
|
|
1723
|
-
set is_header_freeze(arg0) {
|
|
1724
|
-
wasm.__wbg_set_excelinfo_is_header_freeze(this.__wbg_ptr, arg0);
|
|
1725
|
-
}
|
|
1726
|
-
/**
|
|
1727
|
-
* @param {string} name
|
|
1728
|
-
* @param {string} sheet_name
|
|
1729
|
-
* @param {ExcelColumnInfo[]} columns
|
|
1730
|
-
* @param {string} author
|
|
1731
|
-
* @param {string} create_time
|
|
1732
|
-
*/
|
|
1733
|
-
constructor(name, sheet_name, columns, author, create_time) {
|
|
1734
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1735
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1736
|
-
const ptr1 = passStringToWasm0(sheet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1737
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1738
|
-
const ptr2 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
|
|
1739
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1740
|
-
const ptr3 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1741
|
-
const len3 = WASM_VECTOR_LEN;
|
|
1742
|
-
const ptr4 = passStringToWasm0(create_time, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1743
|
-
const len4 = WASM_VECTOR_LEN;
|
|
1744
|
-
const ret = wasm.excelinfo_bind_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
1745
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1746
|
-
ExcelInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
1747
|
-
return this;
|
|
1274
|
+
set is_header_freeze(arg0) {
|
|
1275
|
+
wasm.__wbg_set_excelinfo_is_header_freeze(this.__wbg_ptr, arg0);
|
|
1748
1276
|
}
|
|
1749
1277
|
/**
|
|
1750
|
-
* @param {string}
|
|
1751
|
-
* @returns {ExcelInfo}
|
|
1278
|
+
* @param {string} arg0
|
|
1752
1279
|
*/
|
|
1753
|
-
|
|
1754
|
-
const
|
|
1755
|
-
const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1280
|
+
set name(arg0) {
|
|
1281
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1756
1282
|
const len0 = WASM_VECTOR_LEN;
|
|
1757
|
-
|
|
1758
|
-
return ExcelInfo.__wrap(ret);
|
|
1283
|
+
wasm.__wbg_set_excelinfo_name(this.__wbg_ptr, ptr0, len0);
|
|
1759
1284
|
}
|
|
1760
1285
|
/**
|
|
1761
|
-
* @param {
|
|
1762
|
-
* @returns {ExcelInfo}
|
|
1286
|
+
* @param {string} arg0
|
|
1763
1287
|
*/
|
|
1764
|
-
|
|
1765
|
-
const
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1288
|
+
set sheet_name(arg0) {
|
|
1289
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1290
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1291
|
+
wasm.__wbg_set_excelinfo_sheet_name(this.__wbg_ptr, ptr0, len0);
|
|
1768
1292
|
}
|
|
1769
1293
|
/**
|
|
1770
|
-
* @param {
|
|
1771
|
-
* @returns {ExcelInfo}
|
|
1294
|
+
* @param {ExcelCellFormat | null} [arg0]
|
|
1772
1295
|
*/
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1296
|
+
set title_format(arg0) {
|
|
1297
|
+
let ptr0 = 0;
|
|
1298
|
+
if (!isLikeNone(arg0)) {
|
|
1299
|
+
_assertClass(arg0, ExcelCellFormat);
|
|
1300
|
+
ptr0 = arg0.__destroy_into_raw();
|
|
1301
|
+
}
|
|
1302
|
+
wasm.__wbg_set_excelinfo_title_format(this.__wbg_ptr, ptr0);
|
|
1777
1303
|
}
|
|
1778
1304
|
/**
|
|
1779
|
-
* @param {number}
|
|
1780
|
-
* @returns {ExcelInfo}
|
|
1305
|
+
* @param {number | null} [arg0]
|
|
1781
1306
|
*/
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
const ret = wasm.excelinfo_withTitleHeight(ptr, title_height);
|
|
1785
|
-
return ExcelInfo.__wrap(ret);
|
|
1307
|
+
set title_height(arg0) {
|
|
1308
|
+
wasm.__wbg_set_excelinfo_title_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
1786
1309
|
}
|
|
1787
1310
|
/**
|
|
1788
|
-
* @param {
|
|
1789
|
-
* @returns {ExcelInfo}
|
|
1311
|
+
* @param {string | null} [arg0]
|
|
1790
1312
|
*/
|
|
1791
|
-
|
|
1313
|
+
set title(arg0) {
|
|
1314
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1315
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1316
|
+
wasm.__wbg_set_excelinfo_title(this.__wbg_ptr, ptr0, len0);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
if (Symbol.dispose) ExcelInfo.prototype[Symbol.dispose] = ExcelInfo.prototype.free;
|
|
1320
|
+
|
|
1321
|
+
export class ExcelRowData {
|
|
1322
|
+
static __wrap(ptr) {
|
|
1323
|
+
ptr = ptr >>> 0;
|
|
1324
|
+
const obj = Object.create(ExcelRowData.prototype);
|
|
1325
|
+
obj.__wbg_ptr = ptr;
|
|
1326
|
+
ExcelRowDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1327
|
+
return obj;
|
|
1328
|
+
}
|
|
1329
|
+
static __unwrap(jsValue) {
|
|
1330
|
+
if (!(jsValue instanceof ExcelRowData)) {
|
|
1331
|
+
return 0;
|
|
1332
|
+
}
|
|
1333
|
+
return jsValue.__destroy_into_raw();
|
|
1334
|
+
}
|
|
1335
|
+
__destroy_into_raw() {
|
|
1336
|
+
const ptr = this.__wbg_ptr;
|
|
1337
|
+
this.__wbg_ptr = 0;
|
|
1338
|
+
ExcelRowDataFinalization.unregister(this);
|
|
1339
|
+
return ptr;
|
|
1340
|
+
}
|
|
1341
|
+
free() {
|
|
1792
1342
|
const ptr = this.__destroy_into_raw();
|
|
1793
|
-
|
|
1794
|
-
var ptr0 = title_format.__destroy_into_raw();
|
|
1795
|
-
const ret = wasm.excelinfo_withTitleFormat(ptr, ptr0);
|
|
1796
|
-
return ExcelInfo.__wrap(ret);
|
|
1343
|
+
wasm.__wbg_excelrowdata_free(ptr, 0);
|
|
1797
1344
|
}
|
|
1798
1345
|
/**
|
|
1799
|
-
* @param {
|
|
1800
|
-
* @param {number} dy
|
|
1801
|
-
* @returns {ExcelInfo}
|
|
1346
|
+
* @param {ExcelColumnData[]} columns
|
|
1802
1347
|
*/
|
|
1803
|
-
|
|
1804
|
-
const
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1348
|
+
constructor(columns) {
|
|
1349
|
+
const ptr0 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
|
|
1350
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1351
|
+
const ret = wasm.excelrowdata_new(ptr0, len0);
|
|
1352
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1353
|
+
ExcelRowDataFinalization.register(this, this.__wbg_ptr, this);
|
|
1354
|
+
return this;
|
|
1807
1355
|
}
|
|
1808
1356
|
/**
|
|
1809
|
-
* @
|
|
1810
|
-
* @returns {ExcelInfo}
|
|
1357
|
+
* @returns {ExcelColumnData[]}
|
|
1811
1358
|
*/
|
|
1812
|
-
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
|
|
1359
|
+
get columns() {
|
|
1360
|
+
const ret = wasm.__wbg_get_excelrowdata_columns(this.__wbg_ptr);
|
|
1361
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1362
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1363
|
+
return v1;
|
|
1816
1364
|
}
|
|
1817
1365
|
/**
|
|
1818
|
-
* @param {
|
|
1819
|
-
* @returns {ExcelInfo}
|
|
1366
|
+
* @param {ExcelColumnData[]} arg0
|
|
1820
1367
|
*/
|
|
1821
|
-
|
|
1822
|
-
const
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1368
|
+
set columns(arg0) {
|
|
1369
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
1370
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1371
|
+
wasm.__wbg_set_excelrowdata_columns(this.__wbg_ptr, ptr0, len0);
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
if (Symbol.dispose) ExcelRowData.prototype[Symbol.dispose] = ExcelRowData.prototype.free;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @param {ExcelInfo} info
|
|
1378
|
+
* @returns {Uint8Array}
|
|
1379
|
+
*/
|
|
1380
|
+
export function createTemplate(info) {
|
|
1381
|
+
_assertClass(info, ExcelInfo);
|
|
1382
|
+
var ptr0 = info.__destroy_into_raw();
|
|
1383
|
+
const ret = wasm.createTemplate(ptr0);
|
|
1384
|
+
if (ret[3]) {
|
|
1385
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1386
|
+
}
|
|
1387
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1388
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1389
|
+
return v2;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* @param {ExcelInfo} info
|
|
1394
|
+
* @param {ExcelData} data
|
|
1395
|
+
* @returns {Promise<any>}
|
|
1396
|
+
*/
|
|
1397
|
+
export function exportData(info, data) {
|
|
1398
|
+
_assertClass(info, ExcelInfo);
|
|
1399
|
+
var ptr0 = info.__destroy_into_raw();
|
|
1400
|
+
_assertClass(data, ExcelData);
|
|
1401
|
+
var ptr1 = data.__destroy_into_raw();
|
|
1402
|
+
const ret = wasm.exportData(ptr0, ptr1);
|
|
1403
|
+
return ret;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* @param {ExcelInfo} info
|
|
1408
|
+
* @param {Uint8Array} excel_bytes
|
|
1409
|
+
* @returns {ExcelData}
|
|
1410
|
+
*/
|
|
1411
|
+
export function importData(info, excel_bytes) {
|
|
1412
|
+
_assertClass(info, ExcelInfo);
|
|
1413
|
+
var ptr0 = info.__destroy_into_raw();
|
|
1414
|
+
const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
|
|
1415
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1416
|
+
const ret = wasm.importData(ptr0, ptr1, len1);
|
|
1417
|
+
if (ret[2]) {
|
|
1418
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1419
|
+
}
|
|
1420
|
+
return ExcelData.__wrap(ret[0]);
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
function __wbg_get_imports() {
|
|
1424
|
+
const import0 = {
|
|
1425
|
+
__proto__: null,
|
|
1426
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
1427
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1428
|
+
return ret;
|
|
1429
|
+
},
|
|
1430
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
1431
|
+
const ret = debugString(arg1);
|
|
1432
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1433
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1434
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1435
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1436
|
+
},
|
|
1437
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
1438
|
+
const ret = typeof(arg0) === 'function';
|
|
1439
|
+
return ret;
|
|
1440
|
+
},
|
|
1441
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
1442
|
+
const val = arg0;
|
|
1443
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1444
|
+
return ret;
|
|
1445
|
+
},
|
|
1446
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
1447
|
+
const ret = arg0 === undefined;
|
|
1448
|
+
return ret;
|
|
1449
|
+
},
|
|
1450
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
1451
|
+
const obj = arg1;
|
|
1452
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1453
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1454
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1455
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1456
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1457
|
+
},
|
|
1458
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
1459
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1460
|
+
},
|
|
1461
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
1462
|
+
arg0._wbg_cb_unref();
|
|
1463
|
+
},
|
|
1464
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1465
|
+
const ret = arg0.call(arg1, arg2);
|
|
1466
|
+
return ret;
|
|
1467
|
+
}, arguments); },
|
|
1468
|
+
__wbg_excelcellformat_new: function(arg0) {
|
|
1469
|
+
const ret = ExcelCellFormat.__wrap(arg0);
|
|
1470
|
+
return ret;
|
|
1471
|
+
},
|
|
1472
|
+
__wbg_excelcellformat_unwrap: function(arg0) {
|
|
1473
|
+
const ret = ExcelCellFormat.__unwrap(arg0);
|
|
1474
|
+
return ret;
|
|
1475
|
+
},
|
|
1476
|
+
__wbg_excelcolumndata_new: function(arg0) {
|
|
1477
|
+
const ret = ExcelColumnData.__wrap(arg0);
|
|
1478
|
+
return ret;
|
|
1479
|
+
},
|
|
1480
|
+
__wbg_excelcolumndata_unwrap: function(arg0) {
|
|
1481
|
+
const ret = ExcelColumnData.__unwrap(arg0);
|
|
1482
|
+
return ret;
|
|
1483
|
+
},
|
|
1484
|
+
__wbg_excelcolumninfo_new: function(arg0) {
|
|
1485
|
+
const ret = ExcelColumnInfo.__wrap(arg0);
|
|
1486
|
+
return ret;
|
|
1487
|
+
},
|
|
1488
|
+
__wbg_excelcolumninfo_unwrap: function(arg0) {
|
|
1489
|
+
const ret = ExcelColumnInfo.__unwrap(arg0);
|
|
1490
|
+
return ret;
|
|
1491
|
+
},
|
|
1492
|
+
__wbg_excelrowdata_new: function(arg0) {
|
|
1493
|
+
const ret = ExcelRowData.__wrap(arg0);
|
|
1494
|
+
return ret;
|
|
1495
|
+
},
|
|
1496
|
+
__wbg_excelrowdata_unwrap: function(arg0) {
|
|
1497
|
+
const ret = ExcelRowData.__unwrap(arg0);
|
|
1498
|
+
return ret;
|
|
1499
|
+
},
|
|
1500
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1501
|
+
const ret = arg0.length;
|
|
1502
|
+
return ret;
|
|
1503
|
+
},
|
|
1504
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1505
|
+
const ret = new Uint8Array(arg0);
|
|
1506
|
+
return ret;
|
|
1507
|
+
},
|
|
1508
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
1509
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1510
|
+
return ret;
|
|
1511
|
+
},
|
|
1512
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
1513
|
+
try {
|
|
1514
|
+
var state0 = {a: arg0, b: arg1};
|
|
1515
|
+
var cb0 = (arg0, arg1) => {
|
|
1516
|
+
const a = state0.a;
|
|
1517
|
+
state0.a = 0;
|
|
1518
|
+
try {
|
|
1519
|
+
return wasm_bindgen__convert__closures_____invoke__h20e00ce5d1450bea(a, state0.b, arg0, arg1);
|
|
1520
|
+
} finally {
|
|
1521
|
+
state0.a = a;
|
|
1522
|
+
}
|
|
1523
|
+
};
|
|
1524
|
+
const ret = new Promise(cb0);
|
|
1525
|
+
return ret;
|
|
1526
|
+
} finally {
|
|
1527
|
+
state0.a = state0.b = 0;
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
__wbg_now_16f0c993d5dd6c27: function() {
|
|
1531
|
+
const ret = Date.now();
|
|
1532
|
+
return ret;
|
|
1533
|
+
},
|
|
1534
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1535
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1536
|
+
},
|
|
1537
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
1538
|
+
const ret = arg0.queueMicrotask;
|
|
1539
|
+
return ret;
|
|
1540
|
+
},
|
|
1541
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1542
|
+
queueMicrotask(arg0);
|
|
1543
|
+
},
|
|
1544
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
1545
|
+
const ret = Promise.resolve(arg0);
|
|
1546
|
+
return ret;
|
|
1547
|
+
},
|
|
1548
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1549
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1550
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1551
|
+
},
|
|
1552
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1553
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1554
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1555
|
+
},
|
|
1556
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1557
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1558
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1559
|
+
},
|
|
1560
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1561
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1562
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1563
|
+
},
|
|
1564
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1565
|
+
const ret = arg0.then(arg1);
|
|
1566
|
+
return ret;
|
|
1567
|
+
},
|
|
1568
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1569
|
+
const ret = arg0.then(arg1, arg2);
|
|
1570
|
+
return ret;
|
|
1571
|
+
},
|
|
1572
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1573
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 223, function: Function { arguments: [Externref], shim_idx: 377, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1574
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1014a67ffc8653bf, wasm_bindgen__convert__closures_____invoke__h70bb320d972e2f25);
|
|
1575
|
+
return ret;
|
|
1576
|
+
},
|
|
1577
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
1578
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1579
|
+
const ret = arg0;
|
|
1580
|
+
return ret;
|
|
1581
|
+
},
|
|
1582
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1583
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1584
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1585
|
+
return ret;
|
|
1586
|
+
},
|
|
1587
|
+
__wbindgen_init_externref_table: function() {
|
|
1588
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1589
|
+
const offset = table.grow(4);
|
|
1590
|
+
table.set(0, undefined);
|
|
1591
|
+
table.set(offset + 0, undefined);
|
|
1592
|
+
table.set(offset + 1, null);
|
|
1593
|
+
table.set(offset + 2, true);
|
|
1594
|
+
table.set(offset + 3, false);
|
|
1595
|
+
},
|
|
1596
|
+
};
|
|
1597
|
+
return {
|
|
1598
|
+
__proto__: null,
|
|
1599
|
+
"./imexport_wasm_bg.js": import0,
|
|
1600
|
+
};
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
function wasm_bindgen__convert__closures_____invoke__h70bb320d972e2f25(arg0, arg1, arg2) {
|
|
1604
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h70bb320d972e2f25(arg0, arg1, arg2);
|
|
1605
|
+
if (ret[1]) {
|
|
1606
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
function wasm_bindgen__convert__closures_____invoke__h20e00ce5d1450bea(arg0, arg1, arg2, arg3) {
|
|
1611
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h20e00ce5d1450bea(arg0, arg1, arg2, arg3);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1615
|
+
? { register: () => {}, unregister: () => {} }
|
|
1616
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr >>> 0, 1));
|
|
1617
|
+
const ExcelColumnDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1618
|
+
? { register: () => {}, unregister: () => {} }
|
|
1619
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumndata_free(ptr >>> 0, 1));
|
|
1620
|
+
const ExcelColumnInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1621
|
+
? { register: () => {}, unregister: () => {} }
|
|
1622
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelcolumninfo_free(ptr >>> 0, 1));
|
|
1623
|
+
const ExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1624
|
+
? { register: () => {}, unregister: () => {} }
|
|
1625
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_exceldata_free(ptr >>> 0, 1));
|
|
1626
|
+
const ExcelInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1627
|
+
? { register: () => {}, unregister: () => {} }
|
|
1628
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelinfo_free(ptr >>> 0, 1));
|
|
1629
|
+
const ExcelRowDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1630
|
+
? { register: () => {}, unregister: () => {} }
|
|
1631
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_excelrowdata_free(ptr >>> 0, 1));
|
|
1632
|
+
|
|
1633
|
+
function addToExternrefTable0(obj) {
|
|
1634
|
+
const idx = wasm.__externref_table_alloc();
|
|
1635
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1636
|
+
return idx;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
function _assertClass(instance, klass) {
|
|
1640
|
+
if (!(instance instanceof klass)) {
|
|
1641
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1646
|
+
? { register: () => {}, unregister: () => {} }
|
|
1647
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1648
|
+
|
|
1649
|
+
function debugString(val) {
|
|
1650
|
+
// primitive types
|
|
1651
|
+
const type = typeof val;
|
|
1652
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1653
|
+
return `${val}`;
|
|
1654
|
+
}
|
|
1655
|
+
if (type == 'string') {
|
|
1656
|
+
return `"${val}"`;
|
|
1657
|
+
}
|
|
1658
|
+
if (type == 'symbol') {
|
|
1659
|
+
const description = val.description;
|
|
1660
|
+
if (description == null) {
|
|
1661
|
+
return 'Symbol';
|
|
1662
|
+
} else {
|
|
1663
|
+
return `Symbol(${description})`;
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
if (type == 'function') {
|
|
1667
|
+
const name = val.name;
|
|
1668
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1669
|
+
return `Function(${name})`;
|
|
1670
|
+
} else {
|
|
1671
|
+
return 'Function';
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
// objects
|
|
1675
|
+
if (Array.isArray(val)) {
|
|
1676
|
+
const length = val.length;
|
|
1677
|
+
let debug = '[';
|
|
1678
|
+
if (length > 0) {
|
|
1679
|
+
debug += debugString(val[0]);
|
|
1680
|
+
}
|
|
1681
|
+
for(let i = 1; i < length; i++) {
|
|
1682
|
+
debug += ', ' + debugString(val[i]);
|
|
1683
|
+
}
|
|
1684
|
+
debug += ']';
|
|
1685
|
+
return debug;
|
|
1686
|
+
}
|
|
1687
|
+
// Test for built-in
|
|
1688
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1689
|
+
let className;
|
|
1690
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1691
|
+
className = builtInMatches[1];
|
|
1692
|
+
} else {
|
|
1693
|
+
// Failed to match the standard '[object ClassName]'
|
|
1694
|
+
return toString.call(val);
|
|
1695
|
+
}
|
|
1696
|
+
if (className == 'Object') {
|
|
1697
|
+
// we're a user defined class or Object
|
|
1698
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1699
|
+
// easier than looping through ownProperties of `val`.
|
|
1700
|
+
try {
|
|
1701
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1702
|
+
} catch (_) {
|
|
1703
|
+
return 'Object';
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
// errors
|
|
1707
|
+
if (val instanceof Error) {
|
|
1708
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1825
1709
|
}
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1710
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1711
|
+
return className;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1715
|
+
ptr = ptr >>> 0;
|
|
1716
|
+
const mem = getDataViewMemory0();
|
|
1717
|
+
const result = [];
|
|
1718
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
1719
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
1834
1720
|
}
|
|
1721
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
1722
|
+
return result;
|
|
1835
1723
|
}
|
|
1836
1724
|
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1725
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1726
|
+
ptr = ptr >>> 0;
|
|
1727
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1728
|
+
}
|
|
1840
1729
|
|
|
1841
|
-
|
|
1730
|
+
let cachedDataViewMemory0 = null;
|
|
1731
|
+
function getDataViewMemory0() {
|
|
1732
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1733
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1734
|
+
}
|
|
1735
|
+
return cachedDataViewMemory0;
|
|
1736
|
+
}
|
|
1842
1737
|
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1738
|
+
function getStringFromWasm0(ptr, len) {
|
|
1739
|
+
ptr = ptr >>> 0;
|
|
1740
|
+
return decodeText(ptr, len);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1744
|
+
function getUint8ArrayMemory0() {
|
|
1745
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1746
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1849
1747
|
}
|
|
1748
|
+
return cachedUint8ArrayMemory0;
|
|
1749
|
+
}
|
|
1850
1750
|
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1751
|
+
function handleError(f, args) {
|
|
1752
|
+
try {
|
|
1753
|
+
return f.apply(this, args);
|
|
1754
|
+
} catch (e) {
|
|
1755
|
+
const idx = addToExternrefTable0(e);
|
|
1756
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
function isLikeNone(x) {
|
|
1761
|
+
return x === undefined || x === null;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1765
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1766
|
+
const real = (...args) => {
|
|
1767
|
+
|
|
1768
|
+
// First up with a closure we increment the internal reference
|
|
1769
|
+
// count. This ensures that the Rust closure environment won't
|
|
1770
|
+
// be deallocated while we're invoking it.
|
|
1771
|
+
state.cnt++;
|
|
1772
|
+
const a = state.a;
|
|
1773
|
+
state.a = 0;
|
|
1774
|
+
try {
|
|
1775
|
+
return f(a, state.b, ...args);
|
|
1776
|
+
} finally {
|
|
1777
|
+
state.a = a;
|
|
1778
|
+
real._wbg_cb_unref();
|
|
1854
1779
|
}
|
|
1855
|
-
|
|
1780
|
+
};
|
|
1781
|
+
real._wbg_cb_unref = () => {
|
|
1782
|
+
if (--state.cnt === 0) {
|
|
1783
|
+
state.dtor(state.a, state.b);
|
|
1784
|
+
state.a = 0;
|
|
1785
|
+
CLOSURE_DTORS.unregister(state);
|
|
1786
|
+
}
|
|
1787
|
+
};
|
|
1788
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1789
|
+
return real;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1793
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1794
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1795
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1796
|
+
return ptr;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
1800
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
1801
|
+
for (let i = 0; i < array.length; i++) {
|
|
1802
|
+
const add = addToExternrefTable0(array[i]);
|
|
1803
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
1856
1804
|
}
|
|
1805
|
+
WASM_VECTOR_LEN = array.length;
|
|
1806
|
+
return ptr;
|
|
1807
|
+
}
|
|
1857
1808
|
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1809
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1810
|
+
if (realloc === undefined) {
|
|
1811
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1812
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1813
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1814
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1862
1815
|
return ptr;
|
|
1863
1816
|
}
|
|
1864
1817
|
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1818
|
+
let len = arg.length;
|
|
1819
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1820
|
+
|
|
1821
|
+
const mem = getUint8ArrayMemory0();
|
|
1822
|
+
|
|
1823
|
+
let offset = 0;
|
|
1824
|
+
|
|
1825
|
+
for (; offset < len; offset++) {
|
|
1826
|
+
const code = arg.charCodeAt(offset);
|
|
1827
|
+
if (code > 0x7F) break;
|
|
1828
|
+
mem[ptr + offset] = code;
|
|
1868
1829
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
get columns() {
|
|
1873
|
-
try {
|
|
1874
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1875
|
-
wasm.__wbg_get_excelrowdata_columns(retptr, this.__wbg_ptr);
|
|
1876
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1877
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1878
|
-
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1879
|
-
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
1880
|
-
return v1;
|
|
1881
|
-
} finally {
|
|
1882
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1830
|
+
if (offset !== len) {
|
|
1831
|
+
if (offset !== 0) {
|
|
1832
|
+
arg = arg.slice(offset);
|
|
1883
1833
|
}
|
|
1834
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1835
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1836
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1837
|
+
|
|
1838
|
+
offset += ret.written;
|
|
1839
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1884
1840
|
}
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1841
|
+
|
|
1842
|
+
WASM_VECTOR_LEN = offset;
|
|
1843
|
+
return ptr;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
function takeFromExternrefTable0(idx) {
|
|
1847
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1848
|
+
wasm.__externref_table_dealloc(idx);
|
|
1849
|
+
return value;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1853
|
+
cachedTextDecoder.decode();
|
|
1854
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1855
|
+
let numBytesDecoded = 0;
|
|
1856
|
+
function decodeText(ptr, len) {
|
|
1857
|
+
numBytesDecoded += len;
|
|
1858
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1859
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1860
|
+
cachedTextDecoder.decode();
|
|
1861
|
+
numBytesDecoded = len;
|
|
1903
1862
|
}
|
|
1863
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1867
|
+
|
|
1868
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1869
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1870
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1871
|
+
view.set(buf);
|
|
1872
|
+
return {
|
|
1873
|
+
read: arg.length,
|
|
1874
|
+
written: buf.length
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
let WASM_VECTOR_LEN = 0;
|
|
1880
|
+
|
|
1881
|
+
let wasmModule, wasm;
|
|
1882
|
+
function __wbg_finalize_init(instance, module) {
|
|
1883
|
+
wasm = instance.exports;
|
|
1884
|
+
wasmModule = module;
|
|
1885
|
+
cachedDataViewMemory0 = null;
|
|
1886
|
+
cachedUint8ArrayMemory0 = null;
|
|
1887
|
+
wasm.__wbindgen_start();
|
|
1888
|
+
return wasm;
|
|
1904
1889
|
}
|
|
1905
1890
|
|
|
1906
1891
|
async function __wbg_load(module, imports) {
|
|
@@ -1908,246 +1893,41 @@ async function __wbg_load(module, imports) {
|
|
|
1908
1893
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1909
1894
|
try {
|
|
1910
1895
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1911
|
-
|
|
1912
1896
|
} catch (e) {
|
|
1913
|
-
|
|
1897
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1898
|
+
|
|
1899
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1914
1900
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1915
1901
|
|
|
1916
|
-
} else {
|
|
1917
|
-
throw e;
|
|
1918
|
-
}
|
|
1902
|
+
} else { throw e; }
|
|
1919
1903
|
}
|
|
1920
1904
|
}
|
|
1921
1905
|
|
|
1922
1906
|
const bytes = await module.arrayBuffer();
|
|
1923
1907
|
return await WebAssembly.instantiate(bytes, imports);
|
|
1924
|
-
|
|
1925
1908
|
} else {
|
|
1926
1909
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
1927
1910
|
|
|
1928
1911
|
if (instance instanceof WebAssembly.Instance) {
|
|
1929
1912
|
return { instance, module };
|
|
1930
|
-
|
|
1931
1913
|
} else {
|
|
1932
1914
|
return instance;
|
|
1933
1915
|
}
|
|
1934
1916
|
}
|
|
1935
|
-
}
|
|
1936
1917
|
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
1941
|
-
const ret = getObject(arg0).buffer;
|
|
1942
|
-
return addHeapObject(ret);
|
|
1943
|
-
};
|
|
1944
|
-
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1945
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
1946
|
-
return addHeapObject(ret);
|
|
1947
|
-
}, arguments) };
|
|
1948
|
-
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1949
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1950
|
-
return addHeapObject(ret);
|
|
1951
|
-
}, arguments) };
|
|
1952
|
-
imports.wbg.__wbg_excelcellformat_new = function(arg0) {
|
|
1953
|
-
const ret = ExcelCellFormat.__wrap(arg0);
|
|
1954
|
-
return addHeapObject(ret);
|
|
1955
|
-
};
|
|
1956
|
-
imports.wbg.__wbg_excelcellformat_unwrap = function(arg0) {
|
|
1957
|
-
const ret = ExcelCellFormat.__unwrap(takeObject(arg0));
|
|
1958
|
-
return ret;
|
|
1959
|
-
};
|
|
1960
|
-
imports.wbg.__wbg_excelcolumndata_new = function(arg0) {
|
|
1961
|
-
const ret = ExcelColumnData.__wrap(arg0);
|
|
1962
|
-
return addHeapObject(ret);
|
|
1963
|
-
};
|
|
1964
|
-
imports.wbg.__wbg_excelcolumndata_unwrap = function(arg0) {
|
|
1965
|
-
const ret = ExcelColumnData.__unwrap(takeObject(arg0));
|
|
1966
|
-
return ret;
|
|
1967
|
-
};
|
|
1968
|
-
imports.wbg.__wbg_excelcolumninfo_new = function(arg0) {
|
|
1969
|
-
const ret = ExcelColumnInfo.__wrap(arg0);
|
|
1970
|
-
return addHeapObject(ret);
|
|
1971
|
-
};
|
|
1972
|
-
imports.wbg.__wbg_excelcolumninfo_unwrap = function(arg0) {
|
|
1973
|
-
const ret = ExcelColumnInfo.__unwrap(takeObject(arg0));
|
|
1974
|
-
return ret;
|
|
1975
|
-
};
|
|
1976
|
-
imports.wbg.__wbg_excelrowdata_new = function(arg0) {
|
|
1977
|
-
const ret = ExcelRowData.__wrap(arg0);
|
|
1978
|
-
return addHeapObject(ret);
|
|
1979
|
-
};
|
|
1980
|
-
imports.wbg.__wbg_excelrowdata_unwrap = function(arg0) {
|
|
1981
|
-
const ret = ExcelRowData.__unwrap(takeObject(arg0));
|
|
1982
|
-
return ret;
|
|
1983
|
-
};
|
|
1984
|
-
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1985
|
-
const ret = getObject(arg0).length;
|
|
1986
|
-
return ret;
|
|
1987
|
-
};
|
|
1988
|
-
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1989
|
-
try {
|
|
1990
|
-
var state0 = {a: arg0, b: arg1};
|
|
1991
|
-
var cb0 = (arg0, arg1) => {
|
|
1992
|
-
const a = state0.a;
|
|
1993
|
-
state0.a = 0;
|
|
1994
|
-
try {
|
|
1995
|
-
return __wbg_adapter_184(a, state0.b, arg0, arg1);
|
|
1996
|
-
} finally {
|
|
1997
|
-
state0.a = a;
|
|
1998
|
-
}
|
|
1999
|
-
};
|
|
2000
|
-
const ret = new Promise(cb0);
|
|
2001
|
-
return addHeapObject(ret);
|
|
2002
|
-
} finally {
|
|
2003
|
-
state0.a = state0.b = 0;
|
|
2004
|
-
}
|
|
2005
|
-
};
|
|
2006
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
2007
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
2008
|
-
return addHeapObject(ret);
|
|
2009
|
-
};
|
|
2010
|
-
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
2011
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2012
|
-
return addHeapObject(ret);
|
|
2013
|
-
};
|
|
2014
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
2015
|
-
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
2016
|
-
return addHeapObject(ret);
|
|
2017
|
-
};
|
|
2018
|
-
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
2019
|
-
const ret = Date.now();
|
|
2020
|
-
return ret;
|
|
2021
|
-
};
|
|
2022
|
-
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
2023
|
-
queueMicrotask(getObject(arg0));
|
|
2024
|
-
};
|
|
2025
|
-
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
2026
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
2027
|
-
return addHeapObject(ret);
|
|
2028
|
-
};
|
|
2029
|
-
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
2030
|
-
const ret = Promise.resolve(getObject(arg0));
|
|
2031
|
-
return addHeapObject(ret);
|
|
2032
|
-
};
|
|
2033
|
-
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
2034
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2035
|
-
};
|
|
2036
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
2037
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
2038
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2039
|
-
};
|
|
2040
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
2041
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2042
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2043
|
-
};
|
|
2044
|
-
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
2045
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
2046
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2047
|
-
};
|
|
2048
|
-
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
2049
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
2050
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2051
|
-
};
|
|
2052
|
-
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
2053
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
2054
|
-
return addHeapObject(ret);
|
|
2055
|
-
};
|
|
2056
|
-
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
2057
|
-
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2058
|
-
return addHeapObject(ret);
|
|
2059
|
-
};
|
|
2060
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2061
|
-
const obj = takeObject(arg0).original;
|
|
2062
|
-
if (obj.cnt-- == 1) {
|
|
2063
|
-
obj.a = 0;
|
|
2064
|
-
return true;
|
|
1918
|
+
function expectedResponseType(type) {
|
|
1919
|
+
switch (type) {
|
|
1920
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2065
1921
|
}
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
};
|
|
2069
|
-
imports.wbg.__wbindgen_closure_wrapper822 = function(arg0, arg1, arg2) {
|
|
2070
|
-
const ret = makeMutClosure(arg0, arg1, 230, __wbg_adapter_28);
|
|
2071
|
-
return addHeapObject(ret);
|
|
2072
|
-
};
|
|
2073
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2074
|
-
const ret = debugString(getObject(arg1));
|
|
2075
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2076
|
-
const len1 = WASM_VECTOR_LEN;
|
|
2077
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2078
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2079
|
-
};
|
|
2080
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2081
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2082
|
-
return addHeapObject(ret);
|
|
2083
|
-
};
|
|
2084
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2085
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
2086
|
-
return ret;
|
|
2087
|
-
};
|
|
2088
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2089
|
-
const val = getObject(arg0);
|
|
2090
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2091
|
-
return ret;
|
|
2092
|
-
};
|
|
2093
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2094
|
-
const ret = getObject(arg0) === undefined;
|
|
2095
|
-
return ret;
|
|
2096
|
-
};
|
|
2097
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
2098
|
-
const ret = wasm.memory;
|
|
2099
|
-
return addHeapObject(ret);
|
|
2100
|
-
};
|
|
2101
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2102
|
-
const ret = arg0;
|
|
2103
|
-
return addHeapObject(ret);
|
|
2104
|
-
};
|
|
2105
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2106
|
-
const ret = getObject(arg0);
|
|
2107
|
-
return addHeapObject(ret);
|
|
2108
|
-
};
|
|
2109
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2110
|
-
takeObject(arg0);
|
|
2111
|
-
};
|
|
2112
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2113
|
-
const obj = getObject(arg1);
|
|
2114
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2115
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2116
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2117
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2118
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2119
|
-
};
|
|
2120
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2121
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2122
|
-
return addHeapObject(ret);
|
|
2123
|
-
};
|
|
2124
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
2125
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2126
|
-
};
|
|
2127
|
-
|
|
2128
|
-
return imports;
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
function __wbg_init_memory(imports, memory) {
|
|
2132
|
-
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
|
-
function __wbg_finalize_init(instance, module) {
|
|
2136
|
-
wasm = instance.exports;
|
|
2137
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
2138
|
-
cachedDataViewMemory0 = null;
|
|
2139
|
-
cachedUint8ArrayMemory0 = null;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
return wasm;
|
|
1922
|
+
return false;
|
|
1923
|
+
}
|
|
2144
1924
|
}
|
|
2145
1925
|
|
|
2146
1926
|
function initSync(module) {
|
|
2147
1927
|
if (wasm !== undefined) return wasm;
|
|
2148
1928
|
|
|
2149
1929
|
|
|
2150
|
-
if (
|
|
1930
|
+
if (module !== undefined) {
|
|
2151
1931
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2152
1932
|
({module} = module)
|
|
2153
1933
|
} else {
|
|
@@ -2156,15 +1936,10 @@ function initSync(module) {
|
|
|
2156
1936
|
}
|
|
2157
1937
|
|
|
2158
1938
|
const imports = __wbg_get_imports();
|
|
2159
|
-
|
|
2160
|
-
__wbg_init_memory(imports);
|
|
2161
|
-
|
|
2162
1939
|
if (!(module instanceof WebAssembly.Module)) {
|
|
2163
1940
|
module = new WebAssembly.Module(module);
|
|
2164
1941
|
}
|
|
2165
|
-
|
|
2166
1942
|
const instance = new WebAssembly.Instance(module, imports);
|
|
2167
|
-
|
|
2168
1943
|
return __wbg_finalize_init(instance, module);
|
|
2169
1944
|
}
|
|
2170
1945
|
|
|
@@ -2172,7 +1947,7 @@ async function __wbg_init(module_or_path) {
|
|
|
2172
1947
|
if (wasm !== undefined) return wasm;
|
|
2173
1948
|
|
|
2174
1949
|
|
|
2175
|
-
if (
|
|
1950
|
+
if (module_or_path !== undefined) {
|
|
2176
1951
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2177
1952
|
({module_or_path} = module_or_path)
|
|
2178
1953
|
} else {
|
|
@@ -2180,7 +1955,7 @@ async function __wbg_init(module_or_path) {
|
|
|
2180
1955
|
}
|
|
2181
1956
|
}
|
|
2182
1957
|
|
|
2183
|
-
if (
|
|
1958
|
+
if (module_or_path === undefined) {
|
|
2184
1959
|
module_or_path = new URL('imexport_wasm_bg.wasm', import.meta.url);
|
|
2185
1960
|
}
|
|
2186
1961
|
const imports = __wbg_get_imports();
|
|
@@ -2189,12 +1964,9 @@ async function __wbg_init(module_or_path) {
|
|
|
2189
1964
|
module_or_path = fetch(module_or_path);
|
|
2190
1965
|
}
|
|
2191
1966
|
|
|
2192
|
-
__wbg_init_memory(imports);
|
|
2193
|
-
|
|
2194
1967
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2195
1968
|
|
|
2196
1969
|
return __wbg_finalize_init(instance, module);
|
|
2197
1970
|
}
|
|
2198
1971
|
|
|
2199
|
-
export { initSync };
|
|
2200
|
-
export default __wbg_init;
|
|
1972
|
+
export { initSync, __wbg_init as default };
|