@senlinz/import-export-wasm 0.0.1-beta.5 → 0.1.0-beta.11

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.
@@ -1,40 +1,22 @@
1
1
  let wasm;
2
2
 
3
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
4
-
5
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
6
-
7
- let cachedUint8ArrayMemory0 = null;
3
+ const heap = new Array(128).fill(undefined);
8
4
 
9
- function getUint8ArrayMemory0() {
10
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
12
- }
13
- return cachedUint8ArrayMemory0;
14
- }
5
+ heap.push(undefined, null, true, false);
15
6
 
16
- function getStringFromWasm0(ptr, len) {
17
- ptr = ptr >>> 0;
18
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
19
- }
7
+ let heap_next = heap.length;
20
8
 
21
- let cachedDataViewMemory0 = null;
9
+ function addHeapObject(obj) {
10
+ if (heap_next === heap.length) heap.push(heap.length + 1);
11
+ const idx = heap_next;
12
+ heap_next = heap[idx];
22
13
 
23
- function getDataViewMemory0() {
24
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
25
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
26
- }
27
- return cachedDataViewMemory0;
14
+ heap[idx] = obj;
15
+ return idx;
28
16
  }
29
17
 
30
- const heap = new Array(128).fill(undefined);
31
-
32
- heap.push(undefined, null, true, false);
33
-
34
18
  function getObject(idx) { return heap[idx]; }
35
19
 
36
- let heap_next = heap.length;
37
-
38
20
  function dropObject(idx) {
39
21
  if (idx < 132) return;
40
22
  heap[idx] = heap_next;
@@ -47,37 +29,26 @@ function takeObject(idx) {
47
29
  return ret;
48
30
  }
49
31
 
50
- function getArrayJsValueFromWasm0(ptr, len) {
51
- ptr = ptr >>> 0;
52
- const mem = getDataViewMemory0();
53
- const result = [];
54
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
55
- result.push(takeObject(mem.getUint32(i, true)));
56
- }
57
- return result;
58
- }
32
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
59
33
 
60
- let WASM_VECTOR_LEN = 0;
34
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
61
35
 
62
- function addHeapObject(obj) {
63
- if (heap_next === heap.length) heap.push(heap.length + 1);
64
- const idx = heap_next;
65
- heap_next = heap[idx];
36
+ let cachedUint8ArrayMemory0 = null;
66
37
 
67
- heap[idx] = obj;
68
- return idx;
38
+ function getUint8ArrayMemory0() {
39
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
40
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
41
+ }
42
+ return cachedUint8ArrayMemory0;
69
43
  }
70
44
 
71
- function passArrayJsValueToWasm0(array, malloc) {
72
- const ptr = malloc(array.length * 4, 4) >>> 0;
73
- const mem = getDataViewMemory0();
74
- for (let i = 0; i < array.length; i++) {
75
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
76
- }
77
- WASM_VECTOR_LEN = array.length;
78
- return ptr;
45
+ function getStringFromWasm0(ptr, len) {
46
+ ptr = ptr >>> 0;
47
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
79
48
  }
80
49
 
50
+ let WASM_VECTOR_LEN = 0;
51
+
81
52
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
82
53
 
83
54
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -136,11 +107,19 @@ function isLikeNone(x) {
136
107
  return x === undefined || x === null;
137
108
  }
138
109
 
110
+ let cachedDataViewMemory0 = null;
111
+
112
+ function getDataViewMemory0() {
113
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
114
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
115
+ }
116
+ return cachedDataViewMemory0;
117
+ }
118
+
139
119
  function _assertClass(instance, klass) {
140
120
  if (!(instance instanceof klass)) {
141
121
  throw new Error(`expected instance of ${klass.name}`);
142
122
  }
143
- return instance.ptr;
144
123
  }
145
124
 
146
125
  function getArrayU8FromWasm0(ptr, len) {
@@ -148,9 +127,9 @@ function getArrayU8FromWasm0(ptr, len) {
148
127
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
149
128
  }
150
129
  /**
151
- * @param {ExcelInfo} info
152
- * @returns {Uint8Array}
153
- */
130
+ * @param {ExcelInfo} info
131
+ * @returns {Uint8Array}
132
+ */
154
133
  export function createTemplate(info) {
155
134
  try {
156
135
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -159,6 +138,11 @@ export function createTemplate(info) {
159
138
  wasm.createTemplate(retptr, ptr0);
160
139
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
161
140
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
141
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
142
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
143
+ if (r3) {
144
+ throw takeObject(r2);
145
+ }
162
146
  var v2 = getArrayU8FromWasm0(r0, r1).slice();
163
147
  wasm.__wbindgen_free(r0, r1 * 1, 1);
164
148
  return v2;
@@ -174,24 +158,35 @@ function passArray8ToWasm0(arg, malloc) {
174
158
  return ptr;
175
159
  }
176
160
  /**
177
- * @param {ExcelInfo} info
178
- * @param {Uint8Array} excel_bytes
179
- * @returns {ExcelData}
180
- */
161
+ * @param {ExcelInfo} info
162
+ * @param {Uint8Array} excel_bytes
163
+ * @returns {ExcelData}
164
+ */
181
165
  export function importData(info, excel_bytes) {
182
- _assertClass(info, ExcelInfo);
183
- var ptr0 = info.__destroy_into_raw();
184
- const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
185
- const len1 = WASM_VECTOR_LEN;
186
- const ret = wasm.importData(ptr0, ptr1, len1);
187
- return ExcelData.__wrap(ret);
166
+ try {
167
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
168
+ _assertClass(info, ExcelInfo);
169
+ var ptr0 = info.__destroy_into_raw();
170
+ const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
171
+ const len1 = WASM_VECTOR_LEN;
172
+ wasm.importData(retptr, ptr0, ptr1, len1);
173
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
174
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
175
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
176
+ if (r2) {
177
+ throw takeObject(r1);
178
+ }
179
+ return ExcelData.__wrap(r0);
180
+ } finally {
181
+ wasm.__wbindgen_add_to_stack_pointer(16);
182
+ }
188
183
  }
189
184
 
190
185
  /**
191
- * @param {ExcelInfo} info
192
- * @param {ExcelData} data
193
- * @returns {Uint8Array}
194
- */
186
+ * @param {ExcelInfo} info
187
+ * @param {ExcelData} data
188
+ * @returns {Uint8Array}
189
+ */
195
190
  export function exportData(info, data) {
196
191
  try {
197
192
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -202,6 +197,11 @@ export function exportData(info, data) {
202
197
  wasm.exportData(retptr, ptr0, ptr1);
203
198
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
204
199
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
200
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
201
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
202
+ if (r3) {
203
+ throw takeObject(r2);
204
+ }
205
205
  var v3 = getArrayU8FromWasm0(r0, r1).slice();
206
206
  wasm.__wbindgen_free(r0, r1 * 1, 1);
207
207
  return v3;
@@ -210,11 +210,484 @@ export function exportData(info, data) {
210
210
  }
211
211
  }
212
212
 
213
+ function getArrayJsValueFromWasm0(ptr, len) {
214
+ ptr = ptr >>> 0;
215
+ const mem = getDataViewMemory0();
216
+ const result = [];
217
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
218
+ result.push(takeObject(mem.getUint32(i, true)));
219
+ }
220
+ return result;
221
+ }
222
+
223
+ function passArrayJsValueToWasm0(array, malloc) {
224
+ const ptr = malloc(array.length * 4, 4) >>> 0;
225
+ const mem = getDataViewMemory0();
226
+ for (let i = 0; i < array.length; i++) {
227
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
228
+ }
229
+ WASM_VECTOR_LEN = array.length;
230
+ return ptr;
231
+ }
232
+
233
+ const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
234
+ ? { register: () => {}, unregister: () => {} }
235
+ : new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr >>> 0, 1));
236
+
237
+ export class ExcelCellFormat {
238
+
239
+ static __wrap(ptr) {
240
+ ptr = ptr >>> 0;
241
+ const obj = Object.create(ExcelCellFormat.prototype);
242
+ obj.__wbg_ptr = ptr;
243
+ ExcelCellFormatFinalization.register(obj, obj.__wbg_ptr, obj);
244
+ return obj;
245
+ }
246
+
247
+ static __unwrap(jsValue) {
248
+ if (!(jsValue instanceof ExcelCellFormat)) {
249
+ return 0;
250
+ }
251
+ return jsValue.__destroy_into_raw();
252
+ }
253
+
254
+ __destroy_into_raw() {
255
+ const ptr = this.__wbg_ptr;
256
+ this.__wbg_ptr = 0;
257
+ ExcelCellFormatFinalization.unregister(this);
258
+ return ptr;
259
+ }
260
+
261
+ free() {
262
+ const ptr = this.__destroy_into_raw();
263
+ wasm.__wbg_excelcellformat_free(ptr, 0);
264
+ }
265
+ /**
266
+ * @returns {string}
267
+ */
268
+ get rule() {
269
+ let deferred1_0;
270
+ let deferred1_1;
271
+ try {
272
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
273
+ wasm.__wbg_get_excelcellformat_rule(retptr, this.__wbg_ptr);
274
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
275
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
276
+ deferred1_0 = r0;
277
+ deferred1_1 = r1;
278
+ return getStringFromWasm0(r0, r1);
279
+ } finally {
280
+ wasm.__wbindgen_add_to_stack_pointer(16);
281
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
282
+ }
283
+ }
284
+ /**
285
+ * @param {string} arg0
286
+ */
287
+ set rule(arg0) {
288
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
289
+ const len0 = WASM_VECTOR_LEN;
290
+ wasm.__wbg_set_excelcellformat_rule(this.__wbg_ptr, ptr0, len0);
291
+ }
292
+ /**
293
+ * @returns {string}
294
+ */
295
+ get value() {
296
+ let deferred1_0;
297
+ let deferred1_1;
298
+ try {
299
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
300
+ wasm.__wbg_get_excelcellformat_value(retptr, this.__wbg_ptr);
301
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
302
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
303
+ deferred1_0 = r0;
304
+ deferred1_1 = r1;
305
+ return getStringFromWasm0(r0, r1);
306
+ } finally {
307
+ wasm.__wbindgen_add_to_stack_pointer(16);
308
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
309
+ }
310
+ }
311
+ /**
312
+ * @param {string} arg0
313
+ */
314
+ set value(arg0) {
315
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
+ const len0 = WASM_VECTOR_LEN;
317
+ wasm.__wbg_set_excelcellformat_value(this.__wbg_ptr, ptr0, len0);
318
+ }
319
+ /**
320
+ * @returns {string}
321
+ */
322
+ get color() {
323
+ let deferred1_0;
324
+ let deferred1_1;
325
+ try {
326
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
327
+ wasm.__wbg_get_excelcellformat_color(retptr, this.__wbg_ptr);
328
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
329
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
330
+ deferred1_0 = r0;
331
+ deferred1_1 = r1;
332
+ return getStringFromWasm0(r0, r1);
333
+ } finally {
334
+ wasm.__wbindgen_add_to_stack_pointer(16);
335
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
336
+ }
337
+ }
338
+ /**
339
+ * @param {string} arg0
340
+ */
341
+ set color(arg0) {
342
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
343
+ const len0 = WASM_VECTOR_LEN;
344
+ wasm.__wbg_set_excelcellformat_color(this.__wbg_ptr, ptr0, len0);
345
+ }
346
+ /**
347
+ * @returns {boolean}
348
+ */
349
+ get bold() {
350
+ const ret = wasm.__wbg_get_excelcellformat_bold(this.__wbg_ptr);
351
+ return ret !== 0;
352
+ }
353
+ /**
354
+ * @param {boolean} arg0
355
+ */
356
+ set bold(arg0) {
357
+ wasm.__wbg_set_excelcellformat_bold(this.__wbg_ptr, arg0);
358
+ }
359
+ /**
360
+ * @returns {boolean}
361
+ */
362
+ get italic() {
363
+ const ret = wasm.__wbg_get_excelcellformat_italic(this.__wbg_ptr);
364
+ return ret !== 0;
365
+ }
366
+ /**
367
+ * @param {boolean} arg0
368
+ */
369
+ set italic(arg0) {
370
+ wasm.__wbg_set_excelcellformat_italic(this.__wbg_ptr, arg0);
371
+ }
372
+ /**
373
+ * @returns {boolean}
374
+ */
375
+ get underline() {
376
+ const ret = wasm.__wbg_get_excelcellformat_underline(this.__wbg_ptr);
377
+ return ret !== 0;
378
+ }
379
+ /**
380
+ * @param {boolean} arg0
381
+ */
382
+ set underline(arg0) {
383
+ wasm.__wbg_set_excelcellformat_underline(this.__wbg_ptr, arg0);
384
+ }
385
+ /**
386
+ * @returns {boolean}
387
+ */
388
+ get strikethrough() {
389
+ const ret = wasm.__wbg_get_excelcellformat_strikethrough(this.__wbg_ptr);
390
+ return ret !== 0;
391
+ }
392
+ /**
393
+ * @param {boolean} arg0
394
+ */
395
+ set strikethrough(arg0) {
396
+ wasm.__wbg_set_excelcellformat_strikethrough(this.__wbg_ptr, arg0);
397
+ }
398
+ /**
399
+ * @returns {number}
400
+ */
401
+ get font_size() {
402
+ const ret = wasm.__wbg_get_excelcellformat_font_size(this.__wbg_ptr);
403
+ return ret;
404
+ }
405
+ /**
406
+ * @param {number} arg0
407
+ */
408
+ set font_size(arg0) {
409
+ wasm.__wbg_set_excelcellformat_font_size(this.__wbg_ptr, arg0);
410
+ }
411
+ /**
412
+ * @returns {string}
413
+ */
414
+ get background_color() {
415
+ let deferred1_0;
416
+ let deferred1_1;
417
+ try {
418
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
419
+ wasm.__wbg_get_excelcellformat_background_color(retptr, this.__wbg_ptr);
420
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
421
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
422
+ deferred1_0 = r0;
423
+ deferred1_1 = r1;
424
+ return getStringFromWasm0(r0, r1);
425
+ } finally {
426
+ wasm.__wbindgen_add_to_stack_pointer(16);
427
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
428
+ }
429
+ }
430
+ /**
431
+ * @param {string} arg0
432
+ */
433
+ set background_color(arg0) {
434
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
+ const len0 = WASM_VECTOR_LEN;
436
+ wasm.__wbg_set_excelcellformat_background_color(this.__wbg_ptr, ptr0, len0);
437
+ }
438
+ /**
439
+ * @returns {string}
440
+ */
441
+ get align() {
442
+ let deferred1_0;
443
+ let deferred1_1;
444
+ try {
445
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
446
+ wasm.__wbg_get_excelcellformat_align(retptr, this.__wbg_ptr);
447
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
448
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
449
+ deferred1_0 = r0;
450
+ deferred1_1 = r1;
451
+ return getStringFromWasm0(r0, r1);
452
+ } finally {
453
+ wasm.__wbindgen_add_to_stack_pointer(16);
454
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
455
+ }
456
+ }
457
+ /**
458
+ * @param {string} arg0
459
+ */
460
+ set align(arg0) {
461
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
462
+ const len0 = WASM_VECTOR_LEN;
463
+ wasm.__wbg_set_excelcellformat_align(this.__wbg_ptr, ptr0, len0);
464
+ }
465
+ /**
466
+ * @returns {string}
467
+ */
468
+ get align_vertical() {
469
+ let deferred1_0;
470
+ let deferred1_1;
471
+ try {
472
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
473
+ wasm.__wbg_get_excelcellformat_align_vertical(retptr, this.__wbg_ptr);
474
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
475
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
476
+ deferred1_0 = r0;
477
+ deferred1_1 = r1;
478
+ return getStringFromWasm0(r0, r1);
479
+ } finally {
480
+ wasm.__wbindgen_add_to_stack_pointer(16);
481
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
482
+ }
483
+ }
484
+ /**
485
+ * @param {string} arg0
486
+ */
487
+ set align_vertical(arg0) {
488
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ const len0 = WASM_VECTOR_LEN;
490
+ wasm.__wbg_set_excelcellformat_align_vertical(this.__wbg_ptr, ptr0, len0);
491
+ }
492
+ /**
493
+ * @returns {string | undefined}
494
+ */
495
+ get date_format() {
496
+ try {
497
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
498
+ wasm.__wbg_get_excelcellformat_date_format(retptr, this.__wbg_ptr);
499
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
500
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
501
+ let v1;
502
+ if (r0 !== 0) {
503
+ v1 = getStringFromWasm0(r0, r1).slice();
504
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
505
+ }
506
+ return v1;
507
+ } finally {
508
+ wasm.__wbindgen_add_to_stack_pointer(16);
509
+ }
510
+ }
511
+ /**
512
+ * @param {string | undefined} [arg0]
513
+ */
514
+ set date_format(arg0) {
515
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
+ var len0 = WASM_VECTOR_LEN;
517
+ wasm.__wbg_set_excelcellformat_date_format(this.__wbg_ptr, ptr0, len0);
518
+ }
519
+ /**
520
+ * @returns {string | undefined}
521
+ */
522
+ get border_color() {
523
+ try {
524
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
525
+ wasm.__wbg_get_excelcellformat_border_color(retptr, this.__wbg_ptr);
526
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
527
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
528
+ let v1;
529
+ if (r0 !== 0) {
530
+ v1 = getStringFromWasm0(r0, r1).slice();
531
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
532
+ }
533
+ return v1;
534
+ } finally {
535
+ wasm.__wbindgen_add_to_stack_pointer(16);
536
+ }
537
+ }
538
+ /**
539
+ * @param {string | undefined} [arg0]
540
+ */
541
+ set border_color(arg0) {
542
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
543
+ var len0 = WASM_VECTOR_LEN;
544
+ wasm.__wbg_set_excelcellformat_border_color(this.__wbg_ptr, ptr0, len0);
545
+ }
546
+ constructor() {
547
+ const ret = wasm.excelcellformat_new();
548
+ this.__wbg_ptr = ret >>> 0;
549
+ ExcelCellFormatFinalization.register(this, this.__wbg_ptr, this);
550
+ return this;
551
+ }
552
+ /**
553
+ * @param {string} rule
554
+ * @returns {ExcelCellFormat}
555
+ */
556
+ withRule(rule) {
557
+ const ptr = this.__destroy_into_raw();
558
+ const ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
559
+ const len0 = WASM_VECTOR_LEN;
560
+ const ret = wasm.excelcellformat_withRule(ptr, ptr0, len0);
561
+ return ExcelCellFormat.__wrap(ret);
562
+ }
563
+ /**
564
+ * @param {string} value
565
+ * @returns {ExcelCellFormat}
566
+ */
567
+ withValue(value) {
568
+ const ptr = this.__destroy_into_raw();
569
+ const ptr0 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
570
+ const len0 = WASM_VECTOR_LEN;
571
+ const ret = wasm.excelcellformat_withValue(ptr, ptr0, len0);
572
+ return ExcelCellFormat.__wrap(ret);
573
+ }
574
+ /**
575
+ * @param {string} color
576
+ * @returns {ExcelCellFormat}
577
+ */
578
+ withColor(color) {
579
+ const ptr = this.__destroy_into_raw();
580
+ const ptr0 = passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
581
+ const len0 = WASM_VECTOR_LEN;
582
+ const ret = wasm.excelcellformat_withColor(ptr, ptr0, len0);
583
+ return ExcelCellFormat.__wrap(ret);
584
+ }
585
+ /**
586
+ * @param {boolean} bold
587
+ * @returns {ExcelCellFormat}
588
+ */
589
+ withBold(bold) {
590
+ const ptr = this.__destroy_into_raw();
591
+ const ret = wasm.excelcellformat_withBold(ptr, bold);
592
+ return ExcelCellFormat.__wrap(ret);
593
+ }
594
+ /**
595
+ * @param {boolean} italic
596
+ * @returns {ExcelCellFormat}
597
+ */
598
+ withItalic(italic) {
599
+ const ptr = this.__destroy_into_raw();
600
+ const ret = wasm.excelcellformat_withItalic(ptr, italic);
601
+ return ExcelCellFormat.__wrap(ret);
602
+ }
603
+ /**
604
+ * @param {boolean} underline
605
+ * @returns {ExcelCellFormat}
606
+ */
607
+ withUnderline(underline) {
608
+ const ptr = this.__destroy_into_raw();
609
+ const ret = wasm.excelcellformat_withUnderline(ptr, underline);
610
+ return ExcelCellFormat.__wrap(ret);
611
+ }
612
+ /**
613
+ * @param {boolean} strikethrough
614
+ * @returns {ExcelCellFormat}
615
+ */
616
+ withStrikethrough(strikethrough) {
617
+ const ptr = this.__destroy_into_raw();
618
+ const ret = wasm.excelcellformat_withStrikethrough(ptr, strikethrough);
619
+ return ExcelCellFormat.__wrap(ret);
620
+ }
621
+ /**
622
+ * @param {number} font_size
623
+ * @returns {ExcelCellFormat}
624
+ */
625
+ withFontSize(font_size) {
626
+ const ptr = this.__destroy_into_raw();
627
+ const ret = wasm.excelcellformat_withFontSize(ptr, font_size);
628
+ return ExcelCellFormat.__wrap(ret);
629
+ }
630
+ /**
631
+ * @param {string} background_color
632
+ * @returns {ExcelCellFormat}
633
+ */
634
+ withBackgroundColor(background_color) {
635
+ const ptr = this.__destroy_into_raw();
636
+ const ptr0 = passStringToWasm0(background_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
637
+ const len0 = WASM_VECTOR_LEN;
638
+ const ret = wasm.excelcellformat_withBackgroundColor(ptr, ptr0, len0);
639
+ return ExcelCellFormat.__wrap(ret);
640
+ }
641
+ /**
642
+ * @param {string} align
643
+ * @returns {ExcelCellFormat}
644
+ */
645
+ withAlign(align) {
646
+ const ptr = this.__destroy_into_raw();
647
+ const ptr0 = passStringToWasm0(align, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
648
+ const len0 = WASM_VECTOR_LEN;
649
+ const ret = wasm.excelcellformat_withAlign(ptr, ptr0, len0);
650
+ return ExcelCellFormat.__wrap(ret);
651
+ }
652
+ /**
653
+ * @param {string} align_vertical
654
+ * @returns {ExcelCellFormat}
655
+ */
656
+ withAlignVertical(align_vertical) {
657
+ const ptr = this.__destroy_into_raw();
658
+ const ptr0 = passStringToWasm0(align_vertical, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
659
+ const len0 = WASM_VECTOR_LEN;
660
+ const ret = wasm.excelcellformat_withAlignVertical(ptr, ptr0, len0);
661
+ return ExcelCellFormat.__wrap(ret);
662
+ }
663
+ /**
664
+ * @param {string} date_format
665
+ * @returns {ExcelCellFormat}
666
+ */
667
+ withDateFormat(date_format) {
668
+ const ptr = this.__destroy_into_raw();
669
+ const ptr0 = passStringToWasm0(date_format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
670
+ const len0 = WASM_VECTOR_LEN;
671
+ const ret = wasm.excelcellformat_withDateFormat(ptr, ptr0, len0);
672
+ return ExcelCellFormat.__wrap(ret);
673
+ }
674
+ /**
675
+ * @param {string} border_color
676
+ * @returns {ExcelCellFormat}
677
+ */
678
+ withBorderColor(border_color) {
679
+ const ptr = this.__destroy_into_raw();
680
+ const ptr0 = passStringToWasm0(border_color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
681
+ const len0 = WASM_VECTOR_LEN;
682
+ const ret = wasm.excelcellformat_withBorderColor(ptr, ptr0, len0);
683
+ return ExcelCellFormat.__wrap(ret);
684
+ }
685
+ }
686
+
213
687
  const ExcelColumnDataFinalization = (typeof FinalizationRegistry === 'undefined')
214
688
  ? { register: () => {}, unregister: () => {} }
215
689
  : new FinalizationRegistry(ptr => wasm.__wbg_excelcolumndata_free(ptr >>> 0, 1));
216
- /**
217
- */
690
+
218
691
  export class ExcelColumnData {
219
692
 
220
693
  static __wrap(ptr) {
@@ -244,8 +717,8 @@ export class ExcelColumnData {
244
717
  wasm.__wbg_excelcolumndata_free(ptr, 0);
245
718
  }
246
719
  /**
247
- * @returns {string}
248
- */
720
+ * @returns {string}
721
+ */
249
722
  get key() {
250
723
  let deferred1_0;
251
724
  let deferred1_1;
@@ -263,16 +736,16 @@ export class ExcelColumnData {
263
736
  }
264
737
  }
265
738
  /**
266
- * @param {string} arg0
267
- */
739
+ * @param {string} arg0
740
+ */
268
741
  set key(arg0) {
269
742
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
270
743
  const len0 = WASM_VECTOR_LEN;
271
744
  wasm.__wbg_set_excelcolumndata_key(this.__wbg_ptr, ptr0, len0);
272
745
  }
273
746
  /**
274
- * @returns {string}
275
- */
747
+ * @returns {string}
748
+ */
276
749
  get value() {
277
750
  let deferred1_0;
278
751
  let deferred1_1;
@@ -290,34 +763,97 @@ export class ExcelColumnData {
290
763
  }
291
764
  }
292
765
  /**
293
- * @param {string} arg0
294
- */
766
+ * @param {string} arg0
767
+ */
295
768
  set value(arg0) {
296
769
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
770
  const len0 = WASM_VECTOR_LEN;
298
771
  wasm.__wbg_set_excelcolumndata_value(this.__wbg_ptr, ptr0, len0);
299
772
  }
300
773
  /**
301
- * @param {string} key
302
- * @param {string} value
303
- */
774
+ * @returns {(ExcelRowData)[]}
775
+ */
776
+ get children() {
777
+ try {
778
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
779
+ wasm.__wbg_get_excelcolumndata_children(retptr, this.__wbg_ptr);
780
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
781
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
782
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
783
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
784
+ return v1;
785
+ } finally {
786
+ wasm.__wbindgen_add_to_stack_pointer(16);
787
+ }
788
+ }
789
+ /**
790
+ * @param {(ExcelRowData)[]} arg0
791
+ */
792
+ set children(arg0) {
793
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
794
+ const len0 = WASM_VECTOR_LEN;
795
+ wasm.__wbg_set_excelcolumndata_children(this.__wbg_ptr, ptr0, len0);
796
+ }
797
+ /**
798
+ * @param {string} key
799
+ * @param {string} value
800
+ */
304
801
  constructor(key, value) {
305
802
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
803
  const len0 = WASM_VECTOR_LEN;
307
804
  const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
805
  const len1 = WASM_VECTOR_LEN;
309
- const ret = wasm.excelcolumndata_new(ptr0, len0, ptr1, len1);
806
+ const ret = wasm.excelcolumndata_bind_new(ptr0, len0, ptr1, len1);
310
807
  this.__wbg_ptr = ret >>> 0;
311
808
  ExcelColumnDataFinalization.register(this, this.__wbg_ptr, this);
312
809
  return this;
313
810
  }
811
+ /**
812
+ * @param {string} group_name
813
+ * @param {string} value
814
+ * @param {(ExcelRowData)[]} children
815
+ * @returns {ExcelColumnData}
816
+ */
817
+ static newGroup(group_name, value, children) {
818
+ const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
819
+ const len0 = WASM_VECTOR_LEN;
820
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
821
+ const len1 = WASM_VECTOR_LEN;
822
+ const ptr2 = passArrayJsValueToWasm0(children, wasm.__wbindgen_malloc);
823
+ const len2 = WASM_VECTOR_LEN;
824
+ const ret = wasm.excelcolumndata_newGroup(ptr0, len0, ptr1, len1, ptr2, len2);
825
+ return ExcelColumnData.__wrap(ret);
826
+ }
827
+ /**
828
+ * @param {string} group_name
829
+ * @param {(ExcelRowData)[]} children
830
+ * @returns {ExcelColumnData}
831
+ */
832
+ static newRootGroup(group_name, children) {
833
+ const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
834
+ const len0 = WASM_VECTOR_LEN;
835
+ const ptr1 = passArrayJsValueToWasm0(children, wasm.__wbindgen_malloc);
836
+ const len1 = WASM_VECTOR_LEN;
837
+ const ret = wasm.excelcolumndata_newRootGroup(ptr0, len0, ptr1, len1);
838
+ return ExcelColumnData.__wrap(ret);
839
+ }
840
+ /**
841
+ * @param {(ExcelRowData)[]} children
842
+ * @returns {ExcelColumnData}
843
+ */
844
+ withChildren(children) {
845
+ const ptr = this.__destroy_into_raw();
846
+ const ptr0 = passArrayJsValueToWasm0(children, wasm.__wbindgen_malloc);
847
+ const len0 = WASM_VECTOR_LEN;
848
+ const ret = wasm.excelcolumndata_withChildren(ptr, ptr0, len0);
849
+ return ExcelColumnData.__wrap(ret);
850
+ }
314
851
  }
315
852
 
316
853
  const ExcelColumnInfoFinalization = (typeof FinalizationRegistry === 'undefined')
317
854
  ? { register: () => {}, unregister: () => {} }
318
855
  : new FinalizationRegistry(ptr => wasm.__wbg_excelcolumninfo_free(ptr >>> 0, 1));
319
- /**
320
- */
856
+
321
857
  export class ExcelColumnInfo {
322
858
 
323
859
  static __wrap(ptr) {
@@ -332,29 +868,174 @@ export class ExcelColumnInfo {
332
868
  if (!(jsValue instanceof ExcelColumnInfo)) {
333
869
  return 0;
334
870
  }
335
- return jsValue.__destroy_into_raw();
336
- }
337
-
338
- __destroy_into_raw() {
339
- const ptr = this.__wbg_ptr;
340
- this.__wbg_ptr = 0;
341
- ExcelColumnInfoFinalization.unregister(this);
342
- return ptr;
871
+ return jsValue.__destroy_into_raw();
872
+ }
873
+
874
+ __destroy_into_raw() {
875
+ const ptr = this.__wbg_ptr;
876
+ this.__wbg_ptr = 0;
877
+ ExcelColumnInfoFinalization.unregister(this);
878
+ return ptr;
879
+ }
880
+
881
+ free() {
882
+ const ptr = this.__destroy_into_raw();
883
+ wasm.__wbg_excelcolumninfo_free(ptr, 0);
884
+ }
885
+ /**
886
+ * @returns {string}
887
+ */
888
+ get key() {
889
+ let deferred1_0;
890
+ let deferred1_1;
891
+ try {
892
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
893
+ wasm.__wbg_get_excelcolumninfo_key(retptr, this.__wbg_ptr);
894
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
895
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
896
+ deferred1_0 = r0;
897
+ deferred1_1 = r1;
898
+ return getStringFromWasm0(r0, r1);
899
+ } finally {
900
+ wasm.__wbindgen_add_to_stack_pointer(16);
901
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
902
+ }
903
+ }
904
+ /**
905
+ * @param {string} arg0
906
+ */
907
+ set key(arg0) {
908
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
909
+ const len0 = WASM_VECTOR_LEN;
910
+ wasm.__wbg_set_excelcolumninfo_key(this.__wbg_ptr, ptr0, len0);
911
+ }
912
+ /**
913
+ * @returns {string}
914
+ */
915
+ get name() {
916
+ let deferred1_0;
917
+ let deferred1_1;
918
+ try {
919
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
920
+ wasm.__wbg_get_excelcolumninfo_name(retptr, this.__wbg_ptr);
921
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
922
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
923
+ deferred1_0 = r0;
924
+ deferred1_1 = r1;
925
+ return getStringFromWasm0(r0, r1);
926
+ } finally {
927
+ wasm.__wbindgen_add_to_stack_pointer(16);
928
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
929
+ }
930
+ }
931
+ /**
932
+ * @param {string} arg0
933
+ */
934
+ set name(arg0) {
935
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
936
+ const len0 = WASM_VECTOR_LEN;
937
+ wasm.__wbg_set_excelcolumninfo_name(this.__wbg_ptr, ptr0, len0);
938
+ }
939
+ /**
940
+ * @returns {number}
941
+ */
942
+ get width() {
943
+ const ret = wasm.__wbg_get_excelcolumninfo_width(this.__wbg_ptr);
944
+ return ret;
945
+ }
946
+ /**
947
+ * @param {number} arg0
948
+ */
949
+ set width(arg0) {
950
+ wasm.__wbg_set_excelcolumninfo_width(this.__wbg_ptr, arg0);
951
+ }
952
+ /**
953
+ * @returns {string | undefined}
954
+ */
955
+ get note() {
956
+ try {
957
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
958
+ wasm.__wbg_get_excelcolumninfo_note(retptr, this.__wbg_ptr);
959
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
960
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
961
+ let v1;
962
+ if (r0 !== 0) {
963
+ v1 = getStringFromWasm0(r0, r1).slice();
964
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
965
+ }
966
+ return v1;
967
+ } finally {
968
+ wasm.__wbindgen_add_to_stack_pointer(16);
969
+ }
970
+ }
971
+ /**
972
+ * @param {string | undefined} [arg0]
973
+ */
974
+ set note(arg0) {
975
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
976
+ var len0 = WASM_VECTOR_LEN;
977
+ wasm.__wbg_set_excelcolumninfo_note(this.__wbg_ptr, ptr0, len0);
978
+ }
979
+ /**
980
+ * @returns {string}
981
+ */
982
+ get data_type() {
983
+ let deferred1_0;
984
+ let deferred1_1;
985
+ try {
986
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
987
+ wasm.__wbg_get_excelcolumninfo_data_type(retptr, this.__wbg_ptr);
988
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
989
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
990
+ deferred1_0 = r0;
991
+ deferred1_1 = r1;
992
+ return getStringFromWasm0(r0, r1);
993
+ } finally {
994
+ wasm.__wbindgen_add_to_stack_pointer(16);
995
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
996
+ }
997
+ }
998
+ /**
999
+ * @param {string} arg0
1000
+ */
1001
+ set data_type(arg0) {
1002
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1003
+ const len0 = WASM_VECTOR_LEN;
1004
+ wasm.__wbg_set_excelcolumninfo_data_type(this.__wbg_ptr, ptr0, len0);
1005
+ }
1006
+ /**
1007
+ * @returns {(string)[]}
1008
+ */
1009
+ get allowed_values() {
1010
+ try {
1011
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1012
+ wasm.__wbg_get_excelcolumninfo_allowed_values(retptr, this.__wbg_ptr);
1013
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1014
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1015
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1016
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1017
+ return v1;
1018
+ } finally {
1019
+ wasm.__wbindgen_add_to_stack_pointer(16);
1020
+ }
343
1021
  }
344
-
345
- free() {
346
- const ptr = this.__destroy_into_raw();
347
- wasm.__wbg_excelcolumninfo_free(ptr, 0);
1022
+ /**
1023
+ * @param {(string)[]} arg0
1024
+ */
1025
+ set allowed_values(arg0) {
1026
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
1027
+ const len0 = WASM_VECTOR_LEN;
1028
+ wasm.__wbg_set_excelcolumninfo_allowed_values(this.__wbg_ptr, ptr0, len0);
348
1029
  }
349
1030
  /**
350
- * @returns {string}
351
- */
352
- get key() {
1031
+ * @returns {string}
1032
+ */
1033
+ get parent() {
353
1034
  let deferred1_0;
354
1035
  let deferred1_1;
355
1036
  try {
356
1037
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
357
- wasm.__wbg_get_excelcolumninfo_key(retptr, this.__wbg_ptr);
1038
+ wasm.__wbg_get_excelcolumninfo_parent(retptr, this.__wbg_ptr);
358
1039
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
359
1040
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
360
1041
  deferred1_0 = r0;
@@ -366,22 +1047,64 @@ export class ExcelColumnInfo {
366
1047
  }
367
1048
  }
368
1049
  /**
369
- * @param {string} arg0
370
- */
371
- set key(arg0) {
1050
+ * @param {string} arg0
1051
+ */
1052
+ set parent(arg0) {
372
1053
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
373
1054
  const len0 = WASM_VECTOR_LEN;
374
- wasm.__wbg_set_excelcolumninfo_key(this.__wbg_ptr, ptr0, len0);
1055
+ wasm.__wbg_set_excelcolumninfo_parent(this.__wbg_ptr, ptr0, len0);
375
1056
  }
376
1057
  /**
377
- * @returns {string}
378
- */
379
- get name() {
1058
+ * @returns {ExcelCellFormat | undefined}
1059
+ */
1060
+ get format() {
1061
+ const ret = wasm.__wbg_get_excelcolumninfo_format(this.__wbg_ptr);
1062
+ return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
1063
+ }
1064
+ /**
1065
+ * @param {ExcelCellFormat | undefined} [arg0]
1066
+ */
1067
+ set format(arg0) {
1068
+ let ptr0 = 0;
1069
+ if (!isLikeNone(arg0)) {
1070
+ _assertClass(arg0, ExcelCellFormat);
1071
+ ptr0 = arg0.__destroy_into_raw();
1072
+ }
1073
+ wasm.__wbg_set_excelcolumninfo_format(this.__wbg_ptr, ptr0);
1074
+ }
1075
+ /**
1076
+ * @returns {(ExcelCellFormat)[]}
1077
+ */
1078
+ get value_format() {
1079
+ try {
1080
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1081
+ wasm.__wbg_get_excelcolumninfo_value_format(retptr, this.__wbg_ptr);
1082
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1083
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1084
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1085
+ wasm.__wbindgen_free(r0, r1 * 4, 4);
1086
+ return v1;
1087
+ } finally {
1088
+ wasm.__wbindgen_add_to_stack_pointer(16);
1089
+ }
1090
+ }
1091
+ /**
1092
+ * @param {(ExcelCellFormat)[]} arg0
1093
+ */
1094
+ set value_format(arg0) {
1095
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
1096
+ const len0 = WASM_VECTOR_LEN;
1097
+ wasm.__wbg_set_excelcolumninfo_value_format(this.__wbg_ptr, ptr0, len0);
1098
+ }
1099
+ /**
1100
+ * @returns {string}
1101
+ */
1102
+ get data_group() {
380
1103
  let deferred1_0;
381
1104
  let deferred1_1;
382
1105
  try {
383
1106
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
384
- wasm.__wbg_get_excelcolumninfo_name(retptr, this.__wbg_ptr);
1107
+ wasm.__wbg_get_excelcolumninfo_data_group(retptr, this.__wbg_ptr);
385
1108
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
386
1109
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
387
1110
  deferred1_0 = r0;
@@ -393,55 +1116,157 @@ export class ExcelColumnInfo {
393
1116
  }
394
1117
  }
395
1118
  /**
396
- * @param {string} arg0
397
- */
398
- set name(arg0) {
1119
+ * @param {string} arg0
1120
+ */
1121
+ set data_group(arg0) {
399
1122
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
400
1123
  const len0 = WASM_VECTOR_LEN;
401
- wasm.__wbg_set_excelcolumninfo_name(this.__wbg_ptr, ptr0, len0);
1124
+ wasm.__wbg_set_excelcolumninfo_data_group(this.__wbg_ptr, ptr0, len0);
402
1125
  }
403
1126
  /**
404
- * @returns {number | undefined}
405
- */
406
- get width() {
1127
+ * @returns {string}
1128
+ */
1129
+ get data_group_parent() {
1130
+ let deferred1_0;
1131
+ let deferred1_1;
407
1132
  try {
408
1133
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
409
- wasm.__wbg_get_excelcolumninfo_width(retptr, this.__wbg_ptr);
1134
+ wasm.__wbg_get_excelcolumninfo_data_group_parent(retptr, this.__wbg_ptr);
410
1135
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
411
- var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
412
- return r0 === 0 ? undefined : r2;
1136
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1137
+ deferred1_0 = r0;
1138
+ deferred1_1 = r1;
1139
+ return getStringFromWasm0(r0, r1);
413
1140
  } finally {
414
1141
  wasm.__wbindgen_add_to_stack_pointer(16);
1142
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
415
1143
  }
416
1144
  }
417
1145
  /**
418
- * @param {number | undefined} [arg0]
419
- */
420
- set width(arg0) {
421
- wasm.__wbg_set_excelcolumninfo_width(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1146
+ * @param {string} arg0
1147
+ */
1148
+ set data_group_parent(arg0) {
1149
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1150
+ const len0 = WASM_VECTOR_LEN;
1151
+ wasm.__wbg_set_excelcolumninfo_data_group_parent(this.__wbg_ptr, ptr0, len0);
422
1152
  }
423
1153
  /**
424
- * @param {string} key
425
- * @param {string} name
426
- * @param {number | undefined} [width]
427
- */
428
- constructor(key, name, width) {
1154
+ * @param {string} key
1155
+ * @param {string} name
1156
+ */
1157
+ constructor(key, name) {
429
1158
  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
430
1159
  const len0 = WASM_VECTOR_LEN;
431
1160
  const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
432
1161
  const len1 = WASM_VECTOR_LEN;
433
- const ret = wasm.excelcolumninfo_new(ptr0, len0, ptr1, len1, !isLikeNone(width), isLikeNone(width) ? 0 : width);
1162
+ const ret = wasm.excelcolumninfo_bind_new(ptr0, len0, ptr1, len1);
434
1163
  this.__wbg_ptr = ret >>> 0;
435
1164
  ExcelColumnInfoFinalization.register(this, this.__wbg_ptr, this);
436
1165
  return this;
437
1166
  }
1167
+ /**
1168
+ * @param {string} note
1169
+ * @returns {ExcelColumnInfo}
1170
+ */
1171
+ withNote(note) {
1172
+ const ptr = this.__destroy_into_raw();
1173
+ const ptr0 = passStringToWasm0(note, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1174
+ const len0 = WASM_VECTOR_LEN;
1175
+ const ret = wasm.excelcolumninfo_withNote(ptr, ptr0, len0);
1176
+ return ExcelColumnInfo.__wrap(ret);
1177
+ }
1178
+ /**
1179
+ * @param {string} data_type
1180
+ * @returns {ExcelColumnInfo}
1181
+ */
1182
+ withDataType(data_type) {
1183
+ const ptr = this.__destroy_into_raw();
1184
+ const ptr0 = passStringToWasm0(data_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1185
+ const len0 = WASM_VECTOR_LEN;
1186
+ const ret = wasm.excelcolumninfo_withDataType(ptr, ptr0, len0);
1187
+ return ExcelColumnInfo.__wrap(ret);
1188
+ }
1189
+ /**
1190
+ * @param {(string)[]} allowed_values
1191
+ * @returns {ExcelColumnInfo}
1192
+ */
1193
+ withAllowedValues(allowed_values) {
1194
+ const ptr = this.__destroy_into_raw();
1195
+ const ptr0 = passArrayJsValueToWasm0(allowed_values, wasm.__wbindgen_malloc);
1196
+ const len0 = WASM_VECTOR_LEN;
1197
+ const ret = wasm.excelcolumninfo_withAllowedValues(ptr, ptr0, len0);
1198
+ return ExcelColumnInfo.__wrap(ret);
1199
+ }
1200
+ /**
1201
+ * @param {number} width
1202
+ * @returns {ExcelColumnInfo}
1203
+ */
1204
+ withWidth(width) {
1205
+ const ptr = this.__destroy_into_raw();
1206
+ const ret = wasm.excelcolumninfo_withWidth(ptr, width);
1207
+ return ExcelColumnInfo.__wrap(ret);
1208
+ }
1209
+ /**
1210
+ * @param {ExcelCellFormat} format
1211
+ * @returns {ExcelColumnInfo}
1212
+ */
1213
+ withFormat(format) {
1214
+ const ptr = this.__destroy_into_raw();
1215
+ _assertClass(format, ExcelCellFormat);
1216
+ var ptr0 = format.__destroy_into_raw();
1217
+ const ret = wasm.excelcolumninfo_withFormat(ptr, ptr0);
1218
+ return ExcelColumnInfo.__wrap(ret);
1219
+ }
1220
+ /**
1221
+ * @param {string} parent
1222
+ * @returns {ExcelColumnInfo}
1223
+ */
1224
+ withParent(parent) {
1225
+ const ptr = this.__destroy_into_raw();
1226
+ const ptr0 = passStringToWasm0(parent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1227
+ const len0 = WASM_VECTOR_LEN;
1228
+ const ret = wasm.excelcolumninfo_withParent(ptr, ptr0, len0);
1229
+ return ExcelColumnInfo.__wrap(ret);
1230
+ }
1231
+ /**
1232
+ * @param {(ExcelCellFormat)[]} value_format
1233
+ * @returns {ExcelColumnInfo}
1234
+ */
1235
+ withValueFormat(value_format) {
1236
+ const ptr = this.__destroy_into_raw();
1237
+ const ptr0 = passArrayJsValueToWasm0(value_format, wasm.__wbindgen_malloc);
1238
+ const len0 = WASM_VECTOR_LEN;
1239
+ const ret = wasm.excelcolumninfo_withValueFormat(ptr, ptr0, len0);
1240
+ return ExcelColumnInfo.__wrap(ret);
1241
+ }
1242
+ /**
1243
+ * @param {string} group
1244
+ * @returns {ExcelColumnInfo}
1245
+ */
1246
+ withDataGroup(group) {
1247
+ const ptr = this.__destroy_into_raw();
1248
+ const ptr0 = passStringToWasm0(group, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1249
+ const len0 = WASM_VECTOR_LEN;
1250
+ const ret = wasm.excelcolumninfo_withDataGroup(ptr, ptr0, len0);
1251
+ return ExcelColumnInfo.__wrap(ret);
1252
+ }
1253
+ /**
1254
+ * @param {string} group_parent
1255
+ * @returns {ExcelColumnInfo}
1256
+ */
1257
+ withDataGroupParent(group_parent) {
1258
+ const ptr = this.__destroy_into_raw();
1259
+ const ptr0 = passStringToWasm0(group_parent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1260
+ const len0 = WASM_VECTOR_LEN;
1261
+ const ret = wasm.excelcolumninfo_withDataGroupParent(ptr, ptr0, len0);
1262
+ return ExcelColumnInfo.__wrap(ret);
1263
+ }
438
1264
  }
439
1265
 
440
1266
  const ExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
441
1267
  ? { register: () => {}, unregister: () => {} }
442
1268
  : new FinalizationRegistry(ptr => wasm.__wbg_exceldata_free(ptr >>> 0, 1));
443
- /**
444
- */
1269
+
445
1270
  export class ExcelData {
446
1271
 
447
1272
  static __wrap(ptr) {
@@ -464,8 +1289,8 @@ export class ExcelData {
464
1289
  wasm.__wbg_exceldata_free(ptr, 0);
465
1290
  }
466
1291
  /**
467
- * @returns {(ExcelRowData)[]}
468
- */
1292
+ * @returns {(ExcelRowData)[]}
1293
+ */
469
1294
  get rows() {
470
1295
  try {
471
1296
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -480,16 +1305,16 @@ export class ExcelData {
480
1305
  }
481
1306
  }
482
1307
  /**
483
- * @param {(ExcelRowData)[]} arg0
484
- */
1308
+ * @param {(ExcelRowData)[]} arg0
1309
+ */
485
1310
  set rows(arg0) {
486
1311
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
487
1312
  const len0 = WASM_VECTOR_LEN;
488
1313
  wasm.__wbg_set_exceldata_rows(this.__wbg_ptr, ptr0, len0);
489
1314
  }
490
1315
  /**
491
- * @param {(ExcelRowData)[]} rows
492
- */
1316
+ * @param {(ExcelRowData)[]} rows
1317
+ */
493
1318
  constructor(rows) {
494
1319
  const ptr0 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
495
1320
  const len0 = WASM_VECTOR_LEN;
@@ -503,10 +1328,17 @@ export class ExcelData {
503
1328
  const ExcelInfoFinalization = (typeof FinalizationRegistry === 'undefined')
504
1329
  ? { register: () => {}, unregister: () => {} }
505
1330
  : new FinalizationRegistry(ptr => wasm.__wbg_excelinfo_free(ptr >>> 0, 1));
506
- /**
507
- */
1331
+
508
1332
  export class ExcelInfo {
509
1333
 
1334
+ static __wrap(ptr) {
1335
+ ptr = ptr >>> 0;
1336
+ const obj = Object.create(ExcelInfo.prototype);
1337
+ obj.__wbg_ptr = ptr;
1338
+ ExcelInfoFinalization.register(obj, obj.__wbg_ptr, obj);
1339
+ return obj;
1340
+ }
1341
+
510
1342
  __destroy_into_raw() {
511
1343
  const ptr = this.__wbg_ptr;
512
1344
  this.__wbg_ptr = 0;
@@ -519,14 +1351,14 @@ export class ExcelInfo {
519
1351
  wasm.__wbg_excelinfo_free(ptr, 0);
520
1352
  }
521
1353
  /**
522
- * @returns {string}
523
- */
1354
+ * @returns {string}
1355
+ */
524
1356
  get name() {
525
1357
  let deferred1_0;
526
1358
  let deferred1_1;
527
1359
  try {
528
1360
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
529
- wasm.__wbg_get_excelinfo_name(retptr, this.__wbg_ptr);
1361
+ wasm.__wbg_get_excelcolumninfo_name(retptr, this.__wbg_ptr);
530
1362
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
531
1363
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
532
1364
  deferred1_0 = r0;
@@ -538,22 +1370,22 @@ export class ExcelInfo {
538
1370
  }
539
1371
  }
540
1372
  /**
541
- * @param {string} arg0
542
- */
1373
+ * @param {string} arg0
1374
+ */
543
1375
  set name(arg0) {
544
1376
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
545
1377
  const len0 = WASM_VECTOR_LEN;
546
- wasm.__wbg_set_excelinfo_name(this.__wbg_ptr, ptr0, len0);
1378
+ wasm.__wbg_set_excelcolumninfo_name(this.__wbg_ptr, ptr0, len0);
547
1379
  }
548
1380
  /**
549
- * @returns {string}
550
- */
1381
+ * @returns {string}
1382
+ */
551
1383
  get sheet_name() {
552
1384
  let deferred1_0;
553
1385
  let deferred1_1;
554
1386
  try {
555
1387
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
556
- wasm.__wbg_get_excelinfo_sheet_name(retptr, this.__wbg_ptr);
1388
+ wasm.__wbg_get_excelcolumninfo_data_type(retptr, this.__wbg_ptr);
557
1389
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
558
1390
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
559
1391
  deferred1_0 = r0;
@@ -565,16 +1397,16 @@ export class ExcelInfo {
565
1397
  }
566
1398
  }
567
1399
  /**
568
- * @param {string} arg0
569
- */
1400
+ * @param {string} arg0
1401
+ */
570
1402
  set sheet_name(arg0) {
571
1403
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
572
1404
  const len0 = WASM_VECTOR_LEN;
573
- wasm.__wbg_set_excelinfo_sheet_name(this.__wbg_ptr, ptr0, len0);
1405
+ wasm.__wbg_set_excelcolumninfo_data_type(this.__wbg_ptr, ptr0, len0);
574
1406
  }
575
1407
  /**
576
- * @returns {(ExcelColumnInfo)[]}
577
- */
1408
+ * @returns {(ExcelColumnInfo)[]}
1409
+ */
578
1410
  get columns() {
579
1411
  try {
580
1412
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -589,37 +1421,279 @@ export class ExcelInfo {
589
1421
  }
590
1422
  }
591
1423
  /**
592
- * @param {(ExcelColumnInfo)[]} arg0
593
- */
1424
+ * @param {(ExcelColumnInfo)[]} arg0
1425
+ */
594
1426
  set columns(arg0) {
595
1427
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
596
1428
  const len0 = WASM_VECTOR_LEN;
597
1429
  wasm.__wbg_set_excelinfo_columns(this.__wbg_ptr, ptr0, len0);
598
1430
  }
599
1431
  /**
600
- * @param {string} name
601
- * @param {string} sheet_name
602
- * @param {(ExcelColumnInfo)[]} columns
603
- */
604
- constructor(name, sheet_name, columns) {
1432
+ * @returns {string}
1433
+ */
1434
+ get author() {
1435
+ let deferred1_0;
1436
+ let deferred1_1;
1437
+ try {
1438
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1439
+ wasm.__wbg_get_excelcolumninfo_parent(retptr, this.__wbg_ptr);
1440
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1441
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1442
+ deferred1_0 = r0;
1443
+ deferred1_1 = r1;
1444
+ return getStringFromWasm0(r0, r1);
1445
+ } finally {
1446
+ wasm.__wbindgen_add_to_stack_pointer(16);
1447
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1448
+ }
1449
+ }
1450
+ /**
1451
+ * @param {string} arg0
1452
+ */
1453
+ set author(arg0) {
1454
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1455
+ const len0 = WASM_VECTOR_LEN;
1456
+ wasm.__wbg_set_excelcolumninfo_parent(this.__wbg_ptr, ptr0, len0);
1457
+ }
1458
+ /**
1459
+ * @returns {string}
1460
+ */
1461
+ get create_time() {
1462
+ let deferred1_0;
1463
+ let deferred1_1;
1464
+ try {
1465
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1466
+ wasm.__wbg_get_excelinfo_create_time(retptr, this.__wbg_ptr);
1467
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1468
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1469
+ deferred1_0 = r0;
1470
+ deferred1_1 = r1;
1471
+ return getStringFromWasm0(r0, r1);
1472
+ } finally {
1473
+ wasm.__wbindgen_add_to_stack_pointer(16);
1474
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1475
+ }
1476
+ }
1477
+ /**
1478
+ * @param {string} arg0
1479
+ */
1480
+ set create_time(arg0) {
1481
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1482
+ const len0 = WASM_VECTOR_LEN;
1483
+ wasm.__wbg_set_excelinfo_create_time(this.__wbg_ptr, ptr0, len0);
1484
+ }
1485
+ /**
1486
+ * @returns {string | undefined}
1487
+ */
1488
+ get title() {
1489
+ try {
1490
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1491
+ wasm.__wbg_get_excelinfo_title(retptr, this.__wbg_ptr);
1492
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1493
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1494
+ let v1;
1495
+ if (r0 !== 0) {
1496
+ v1 = getStringFromWasm0(r0, r1).slice();
1497
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
1498
+ }
1499
+ return v1;
1500
+ } finally {
1501
+ wasm.__wbindgen_add_to_stack_pointer(16);
1502
+ }
1503
+ }
1504
+ /**
1505
+ * @param {string | undefined} [arg0]
1506
+ */
1507
+ set title(arg0) {
1508
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1509
+ var len0 = WASM_VECTOR_LEN;
1510
+ wasm.__wbg_set_excelinfo_title(this.__wbg_ptr, ptr0, len0);
1511
+ }
1512
+ /**
1513
+ * @returns {ExcelCellFormat | undefined}
1514
+ */
1515
+ get title_format() {
1516
+ const ret = wasm.__wbg_get_excelinfo_title_format(this.__wbg_ptr);
1517
+ return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
1518
+ }
1519
+ /**
1520
+ * @param {ExcelCellFormat | undefined} [arg0]
1521
+ */
1522
+ set title_format(arg0) {
1523
+ let ptr0 = 0;
1524
+ if (!isLikeNone(arg0)) {
1525
+ _assertClass(arg0, ExcelCellFormat);
1526
+ ptr0 = arg0.__destroy_into_raw();
1527
+ }
1528
+ wasm.__wbg_set_excelinfo_title_format(this.__wbg_ptr, ptr0);
1529
+ }
1530
+ /**
1531
+ * @returns {number | undefined}
1532
+ */
1533
+ get title_height() {
1534
+ try {
1535
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1536
+ wasm.__wbg_get_excelinfo_title_height(retptr, this.__wbg_ptr);
1537
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1538
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1539
+ return r0 === 0 ? undefined : r2;
1540
+ } finally {
1541
+ wasm.__wbindgen_add_to_stack_pointer(16);
1542
+ }
1543
+ }
1544
+ /**
1545
+ * @param {number | undefined} [arg0]
1546
+ */
1547
+ set title_height(arg0) {
1548
+ wasm.__wbg_set_excelinfo_title_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1549
+ }
1550
+ /**
1551
+ * @returns {number | undefined}
1552
+ */
1553
+ get default_row_height() {
1554
+ try {
1555
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1556
+ wasm.__wbg_get_excelinfo_default_row_height(retptr, this.__wbg_ptr);
1557
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1558
+ var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
1559
+ return r0 === 0 ? undefined : r2;
1560
+ } finally {
1561
+ wasm.__wbindgen_add_to_stack_pointer(16);
1562
+ }
1563
+ }
1564
+ /**
1565
+ * @param {number | undefined} [arg0]
1566
+ */
1567
+ set default_row_height(arg0) {
1568
+ wasm.__wbg_set_excelinfo_default_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1569
+ }
1570
+ /**
1571
+ * @returns {number}
1572
+ */
1573
+ get dx() {
1574
+ const ret = wasm.__wbg_get_excelinfo_dx(this.__wbg_ptr);
1575
+ return ret;
1576
+ }
1577
+ /**
1578
+ * @param {number} arg0
1579
+ */
1580
+ set dx(arg0) {
1581
+ wasm.__wbg_set_excelinfo_dx(this.__wbg_ptr, arg0);
1582
+ }
1583
+ /**
1584
+ * @returns {number}
1585
+ */
1586
+ get dy() {
1587
+ const ret = wasm.__wbg_get_excelinfo_dy(this.__wbg_ptr);
1588
+ return ret >>> 0;
1589
+ }
1590
+ /**
1591
+ * @param {number} arg0
1592
+ */
1593
+ set dy(arg0) {
1594
+ wasm.__wbg_set_excelinfo_dy(this.__wbg_ptr, arg0);
1595
+ }
1596
+ /**
1597
+ * @returns {boolean}
1598
+ */
1599
+ get is_header_freeze() {
1600
+ const ret = wasm.__wbg_get_excelinfo_is_header_freeze(this.__wbg_ptr);
1601
+ return ret !== 0;
1602
+ }
1603
+ /**
1604
+ * @param {boolean} arg0
1605
+ */
1606
+ set is_header_freeze(arg0) {
1607
+ wasm.__wbg_set_excelinfo_is_header_freeze(this.__wbg_ptr, arg0);
1608
+ }
1609
+ /**
1610
+ * @param {string} name
1611
+ * @param {string} sheet_name
1612
+ * @param {(ExcelColumnInfo)[]} columns
1613
+ * @param {string} author
1614
+ * @param {string} create_time
1615
+ */
1616
+ constructor(name, sheet_name, columns, author, create_time) {
605
1617
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
606
1618
  const len0 = WASM_VECTOR_LEN;
607
1619
  const ptr1 = passStringToWasm0(sheet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
608
1620
  const len1 = WASM_VECTOR_LEN;
609
1621
  const ptr2 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
610
1622
  const len2 = WASM_VECTOR_LEN;
611
- const ret = wasm.excelinfo_new(ptr0, len0, ptr1, len1, ptr2, len2);
1623
+ const ptr3 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1624
+ const len3 = WASM_VECTOR_LEN;
1625
+ const ptr4 = passStringToWasm0(create_time, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1626
+ const len4 = WASM_VECTOR_LEN;
1627
+ const ret = wasm.excelinfo_bind_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
612
1628
  this.__wbg_ptr = ret >>> 0;
613
1629
  ExcelInfoFinalization.register(this, this.__wbg_ptr, this);
614
1630
  return this;
615
1631
  }
1632
+ /**
1633
+ * @param {string} title
1634
+ * @returns {ExcelInfo}
1635
+ */
1636
+ withTitle(title) {
1637
+ const ptr = this.__destroy_into_raw();
1638
+ const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1639
+ const len0 = WASM_VECTOR_LEN;
1640
+ const ret = wasm.excelinfo_withTitle(ptr, ptr0, len0);
1641
+ return ExcelInfo.__wrap(ret);
1642
+ }
1643
+ /**
1644
+ * @param {number} row_height
1645
+ * @returns {ExcelInfo}
1646
+ */
1647
+ withDefaultRowHeight(row_height) {
1648
+ const ptr = this.__destroy_into_raw();
1649
+ const ret = wasm.excelinfo_withDefaultRowHeight(ptr, row_height);
1650
+ return ExcelInfo.__wrap(ret);
1651
+ }
1652
+ /**
1653
+ * @param {number} title_height
1654
+ * @returns {ExcelInfo}
1655
+ */
1656
+ withTitleHeight(title_height) {
1657
+ const ptr = this.__destroy_into_raw();
1658
+ const ret = wasm.excelinfo_withTitleHeight(ptr, title_height);
1659
+ return ExcelInfo.__wrap(ret);
1660
+ }
1661
+ /**
1662
+ * @param {ExcelCellFormat} title_format
1663
+ * @returns {ExcelInfo}
1664
+ */
1665
+ withTitleFormat(title_format) {
1666
+ const ptr = this.__destroy_into_raw();
1667
+ _assertClass(title_format, ExcelCellFormat);
1668
+ var ptr0 = title_format.__destroy_into_raw();
1669
+ const ret = wasm.excelinfo_withTitleFormat(ptr, ptr0);
1670
+ return ExcelInfo.__wrap(ret);
1671
+ }
1672
+ /**
1673
+ * @param {number} dx
1674
+ * @param {number} dy
1675
+ * @returns {ExcelInfo}
1676
+ */
1677
+ withOffset(dx, dy) {
1678
+ const ptr = this.__destroy_into_raw();
1679
+ const ret = wasm.excelinfo_withOffset(ptr, dx, dy);
1680
+ return ExcelInfo.__wrap(ret);
1681
+ }
1682
+ /**
1683
+ * @param {boolean} is_header_freeze
1684
+ * @returns {ExcelInfo}
1685
+ */
1686
+ withIsHeaderFreeze(is_header_freeze) {
1687
+ const ptr = this.__destroy_into_raw();
1688
+ const ret = wasm.excelinfo_withIsHeaderFreeze(ptr, is_header_freeze);
1689
+ return ExcelInfo.__wrap(ret);
1690
+ }
616
1691
  }
617
1692
 
618
1693
  const ExcelRowDataFinalization = (typeof FinalizationRegistry === 'undefined')
619
1694
  ? { register: () => {}, unregister: () => {} }
620
1695
  : new FinalizationRegistry(ptr => wasm.__wbg_excelrowdata_free(ptr >>> 0, 1));
621
- /**
622
- */
1696
+
623
1697
  export class ExcelRowData {
624
1698
 
625
1699
  static __wrap(ptr) {
@@ -649,8 +1723,8 @@ export class ExcelRowData {
649
1723
  wasm.__wbg_excelrowdata_free(ptr, 0);
650
1724
  }
651
1725
  /**
652
- * @returns {(ExcelColumnData)[]}
653
- */
1726
+ * @returns {(ExcelColumnData)[]}
1727
+ */
654
1728
  get columns() {
655
1729
  try {
656
1730
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -665,16 +1739,16 @@ export class ExcelRowData {
665
1739
  }
666
1740
  }
667
1741
  /**
668
- * @param {(ExcelColumnData)[]} arg0
669
- */
1742
+ * @param {(ExcelColumnData)[]} arg0
1743
+ */
670
1744
  set columns(arg0) {
671
1745
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
672
1746
  const len0 = WASM_VECTOR_LEN;
673
1747
  wasm.__wbg_set_excelrowdata_columns(this.__wbg_ptr, ptr0, len0);
674
1748
  }
675
1749
  /**
676
- * @param {(ExcelColumnData)[]} columns
677
- */
1750
+ * @param {(ExcelColumnData)[]} columns
1751
+ */
678
1752
  constructor(columns) {
679
1753
  const ptr0 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
680
1754
  const len0 = WASM_VECTOR_LEN;
@@ -693,7 +1767,7 @@ async function __wbg_load(module, imports) {
693
1767
 
694
1768
  } catch (e) {
695
1769
  if (module.headers.get('Content-Type') != 'application/wasm') {
696
- 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);
1770
+ 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);
697
1771
 
698
1772
  } else {
699
1773
  throw e;
@@ -719,14 +1793,30 @@ async function __wbg_load(module, imports) {
719
1793
  function __wbg_get_imports() {
720
1794
  const imports = {};
721
1795
  imports.wbg = {};
722
- imports.wbg.__wbg_excelcolumninfo_new = function(arg0) {
723
- const ret = ExcelColumnInfo.__wrap(arg0);
1796
+ imports.wbg.__wbg_excelcellformat_new = function(arg0) {
1797
+ const ret = ExcelCellFormat.__wrap(arg0);
724
1798
  return addHeapObject(ret);
725
1799
  };
1800
+ imports.wbg.__wbg_excelcellformat_unwrap = function(arg0) {
1801
+ const ret = ExcelCellFormat.__unwrap(takeObject(arg0));
1802
+ return ret;
1803
+ };
726
1804
  imports.wbg.__wbg_excelcolumndata_new = function(arg0) {
727
1805
  const ret = ExcelColumnData.__wrap(arg0);
728
1806
  return addHeapObject(ret);
729
1807
  };
1808
+ imports.wbg.__wbg_excelcolumndata_unwrap = function(arg0) {
1809
+ const ret = ExcelColumnData.__unwrap(takeObject(arg0));
1810
+ return ret;
1811
+ };
1812
+ imports.wbg.__wbg_excelcolumninfo_new = function(arg0) {
1813
+ const ret = ExcelColumnInfo.__wrap(arg0);
1814
+ return addHeapObject(ret);
1815
+ };
1816
+ imports.wbg.__wbg_excelcolumninfo_unwrap = function(arg0) {
1817
+ const ret = ExcelColumnInfo.__unwrap(takeObject(arg0));
1818
+ return ret;
1819
+ };
730
1820
  imports.wbg.__wbg_excelrowdata_new = function(arg0) {
731
1821
  const ret = ExcelRowData.__wrap(arg0);
732
1822
  return addHeapObject(ret);
@@ -735,17 +1825,28 @@ function __wbg_get_imports() {
735
1825
  const ret = ExcelRowData.__unwrap(takeObject(arg0));
736
1826
  return ret;
737
1827
  };
738
- imports.wbg.__wbg_excelcolumndata_unwrap = function(arg0) {
739
- const ret = ExcelColumnData.__unwrap(takeObject(arg0));
1828
+ imports.wbg.__wbg_now_64d0bb151e5d3889 = function() {
1829
+ const ret = Date.now();
740
1830
  return ret;
741
1831
  };
742
- imports.wbg.__wbg_excelcolumninfo_unwrap = function(arg0) {
743
- const ret = ExcelColumnInfo.__unwrap(takeObject(arg0));
744
- return ret;
1832
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1833
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1834
+ return addHeapObject(ret);
745
1835
  };
746
- imports.wbg.__wbg_now_b7a162010a9e75b4 = function() {
747
- const ret = Date.now();
748
- return ret;
1836
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1837
+ takeObject(arg0);
1838
+ };
1839
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1840
+ const obj = getObject(arg1);
1841
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1842
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1843
+ var len1 = WASM_VECTOR_LEN;
1844
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1845
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1846
+ };
1847
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1848
+ const ret = getStringFromWasm0(arg0, arg1);
1849
+ return addHeapObject(ret);
749
1850
  };
750
1851
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
751
1852
  throw new Error(getStringFromWasm0(arg0, arg1));
@@ -773,10 +1874,13 @@ function initSync(module) {
773
1874
  if (wasm !== undefined) return wasm;
774
1875
 
775
1876
 
776
- if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
777
- ({module} = module)
778
- else
779
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1877
+ if (typeof module !== 'undefined') {
1878
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1879
+ ({module} = module)
1880
+ } else {
1881
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1882
+ }
1883
+ }
780
1884
 
781
1885
  const imports = __wbg_get_imports();
782
1886
 
@@ -795,10 +1899,13 @@ async function __wbg_init(module_or_path) {
795
1899
  if (wasm !== undefined) return wasm;
796
1900
 
797
1901
 
798
- if (typeof module_or_path !== 'undefined' && Object.getPrototypeOf(module_or_path) === Object.prototype)
799
- ({module_or_path} = module_or_path)
800
- else
801
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1902
+ if (typeof module_or_path !== 'undefined') {
1903
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1904
+ ({module_or_path} = module_or_path)
1905
+ } else {
1906
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1907
+ }
1908
+ }
802
1909
 
803
1910
  if (typeof module_or_path === 'undefined') {
804
1911
  module_or_path = new URL('imexport_wasm_bg.wasm', import.meta.url);