@senlinz/import-export-wasm 0.1.0-beta.12 → 0.1.0-beta.14
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/package.json +1 -1
- package/pkg/imexport_wasm.d.ts +50 -34
- package/pkg/imexport_wasm.js +305 -61
- package/pkg/imexport_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/imexport_wasm.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function createTemplate(info: ExcelInfo): Uint8Array;
|
|
4
4
|
export function importData(info: ExcelInfo, excel_bytes: Uint8Array): ExcelData;
|
|
5
|
-
export function exportData(info: ExcelInfo, data: ExcelData):
|
|
5
|
+
export function exportData(info: ExcelInfo, data: ExcelData): Promise<any>;
|
|
6
6
|
export class ExcelCellFormat {
|
|
7
7
|
free(): void;
|
|
8
8
|
constructor();
|
|
@@ -30,74 +30,84 @@ export class ExcelCellFormat {
|
|
|
30
30
|
background_color: string;
|
|
31
31
|
align: string;
|
|
32
32
|
align_vertical: string;
|
|
33
|
-
date_format
|
|
34
|
-
|
|
33
|
+
get date_format(): string | undefined;
|
|
34
|
+
set date_format(value: string | null | undefined);
|
|
35
|
+
get border_color(): string | undefined;
|
|
36
|
+
set border_color(value: string | null | undefined);
|
|
35
37
|
}
|
|
36
38
|
export class ExcelColumnData {
|
|
37
39
|
free(): void;
|
|
38
40
|
constructor(key: string, value: string);
|
|
39
|
-
static newGroup(group_name: string, value: string, children:
|
|
40
|
-
static newRootGroup(group_name: string, children:
|
|
41
|
-
withChildren(children:
|
|
41
|
+
static newGroup(group_name: string, value: string, children: ExcelRowData[]): ExcelColumnData;
|
|
42
|
+
static newRootGroup(group_name: string, children: ExcelRowData[]): ExcelColumnData;
|
|
43
|
+
withChildren(children: ExcelRowData[]): ExcelColumnData;
|
|
42
44
|
key: string;
|
|
43
45
|
value: string;
|
|
44
|
-
children:
|
|
46
|
+
children: ExcelRowData[];
|
|
45
47
|
}
|
|
46
48
|
export class ExcelColumnInfo {
|
|
47
49
|
free(): void;
|
|
48
50
|
constructor(key: string, name: string);
|
|
49
51
|
withNote(note: string): ExcelColumnInfo;
|
|
50
52
|
withDataType(data_type: string): ExcelColumnInfo;
|
|
51
|
-
withAllowedValues(allowed_values:
|
|
53
|
+
withAllowedValues(allowed_values: string[]): ExcelColumnInfo;
|
|
52
54
|
withWidth(width: number): ExcelColumnInfo;
|
|
53
55
|
withFormat(format: ExcelCellFormat): ExcelColumnInfo;
|
|
54
56
|
withParent(parent: string): ExcelColumnInfo;
|
|
55
|
-
withValueFormat(value_format:
|
|
57
|
+
withValueFormat(value_format: ExcelCellFormat[]): ExcelColumnInfo;
|
|
56
58
|
withDataGroup(group: string): ExcelColumnInfo;
|
|
57
59
|
withDataGroupParent(group_parent: string): ExcelColumnInfo;
|
|
58
60
|
key: string;
|
|
59
61
|
name: string;
|
|
60
62
|
width: number;
|
|
61
|
-
note
|
|
63
|
+
get note(): string | undefined;
|
|
64
|
+
set note(value: string | null | undefined);
|
|
62
65
|
data_type: string;
|
|
63
|
-
allowed_values:
|
|
66
|
+
allowed_values: string[];
|
|
64
67
|
parent: string;
|
|
65
|
-
format
|
|
66
|
-
|
|
68
|
+
get format(): ExcelCellFormat | undefined;
|
|
69
|
+
set format(value: ExcelCellFormat | null | undefined);
|
|
70
|
+
value_format: ExcelCellFormat[];
|
|
67
71
|
data_group: string;
|
|
68
72
|
data_group_parent: string;
|
|
69
73
|
}
|
|
70
74
|
export class ExcelData {
|
|
71
75
|
free(): void;
|
|
72
|
-
constructor(rows:
|
|
73
|
-
rows:
|
|
76
|
+
constructor(rows: ExcelRowData[]);
|
|
77
|
+
rows: ExcelRowData[];
|
|
74
78
|
}
|
|
75
79
|
export class ExcelInfo {
|
|
76
80
|
free(): void;
|
|
77
|
-
constructor(name: string, sheet_name: string, columns:
|
|
81
|
+
constructor(name: string, sheet_name: string, columns: ExcelColumnInfo[], author: string, create_time: string);
|
|
78
82
|
withTitle(title: string): ExcelInfo;
|
|
79
83
|
withDefaultRowHeight(row_height: number): ExcelInfo;
|
|
80
84
|
withTitleHeight(title_height: number): ExcelInfo;
|
|
81
85
|
withTitleFormat(title_format: ExcelCellFormat): ExcelInfo;
|
|
82
86
|
withOffset(dx: number, dy: number): ExcelInfo;
|
|
83
87
|
withIsHeaderFreeze(is_header_freeze: boolean): ExcelInfo;
|
|
88
|
+
withProgressCallback(callback: Function): ExcelInfo;
|
|
89
|
+
withImageFetcher(fetcher: Function): ExcelInfo;
|
|
84
90
|
name: string;
|
|
85
91
|
sheet_name: string;
|
|
86
|
-
columns:
|
|
92
|
+
columns: ExcelColumnInfo[];
|
|
87
93
|
author: string;
|
|
88
94
|
create_time: string;
|
|
89
|
-
title
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
get title(): string | undefined;
|
|
96
|
+
set title(value: string | null | undefined);
|
|
97
|
+
get title_format(): ExcelCellFormat | undefined;
|
|
98
|
+
set title_format(value: ExcelCellFormat | null | undefined);
|
|
99
|
+
get title_height(): number | undefined;
|
|
100
|
+
set title_height(value: number | null | undefined);
|
|
101
|
+
get default_row_height(): number | undefined;
|
|
102
|
+
set default_row_height(value: number | null | undefined);
|
|
93
103
|
dx: number;
|
|
94
104
|
dy: number;
|
|
95
105
|
is_header_freeze: boolean;
|
|
96
106
|
}
|
|
97
107
|
export class ExcelRowData {
|
|
98
108
|
free(): void;
|
|
99
|
-
constructor(columns:
|
|
100
|
-
columns:
|
|
109
|
+
constructor(columns: ExcelColumnData[]);
|
|
110
|
+
columns: ExcelColumnData[];
|
|
101
111
|
}
|
|
102
112
|
|
|
103
113
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -106,14 +116,24 @@ export interface InitOutput {
|
|
|
106
116
|
readonly memory: WebAssembly.Memory;
|
|
107
117
|
readonly createTemplate: (a: number, b: number) => void;
|
|
108
118
|
readonly importData: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
-
readonly exportData: (a: number, b: number
|
|
119
|
+
readonly exportData: (a: number, b: number) => number;
|
|
120
|
+
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
121
|
+
readonly __wbg_get_excelrowdata_columns: (a: number, b: number) => void;
|
|
122
|
+
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
123
|
+
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
110
124
|
readonly __wbg_exceldata_free: (a: number, b: number) => void;
|
|
111
125
|
readonly __wbg_get_exceldata_rows: (a: number, b: number) => void;
|
|
112
126
|
readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
|
|
113
127
|
readonly exceldata_new: (a: number, b: number) => number;
|
|
114
128
|
readonly __wbg_excelinfo_free: (a: number, b: number) => void;
|
|
129
|
+
readonly __wbg_get_excelinfo_name: (a: number, b: number) => void;
|
|
130
|
+
readonly __wbg_set_excelinfo_name: (a: number, b: number, c: number) => void;
|
|
131
|
+
readonly __wbg_get_excelinfo_sheet_name: (a: number, b: number) => void;
|
|
132
|
+
readonly __wbg_set_excelinfo_sheet_name: (a: number, b: number, c: number) => void;
|
|
115
133
|
readonly __wbg_get_excelinfo_columns: (a: number, b: number) => void;
|
|
116
134
|
readonly __wbg_set_excelinfo_columns: (a: number, b: number, c: number) => void;
|
|
135
|
+
readonly __wbg_get_excelinfo_author: (a: number, b: number) => void;
|
|
136
|
+
readonly __wbg_set_excelinfo_author: (a: number, b: number, c: number) => void;
|
|
117
137
|
readonly __wbg_get_excelinfo_create_time: (a: number, b: number) => void;
|
|
118
138
|
readonly __wbg_set_excelinfo_create_time: (a: number, b: number, c: number) => void;
|
|
119
139
|
readonly __wbg_get_excelinfo_title: (a: number, b: number) => void;
|
|
@@ -137,6 +157,8 @@ export interface InitOutput {
|
|
|
137
157
|
readonly excelinfo_withTitleFormat: (a: number, b: number) => number;
|
|
138
158
|
readonly excelinfo_withOffset: (a: number, b: number, c: number) => number;
|
|
139
159
|
readonly excelinfo_withIsHeaderFreeze: (a: number, b: number) => number;
|
|
160
|
+
readonly excelinfo_withProgressCallback: (a: number, b: number) => number;
|
|
161
|
+
readonly excelinfo_withImageFetcher: (a: number, b: number) => number;
|
|
140
162
|
readonly __wbg_excelcellformat_free: (a: number, b: number) => void;
|
|
141
163
|
readonly __wbg_get_excelcellformat_rule: (a: number, b: number) => void;
|
|
142
164
|
readonly __wbg_set_excelcellformat_rule: (a: number, b: number, c: number) => void;
|
|
@@ -211,12 +233,6 @@ export interface InitOutput {
|
|
|
211
233
|
readonly excelcolumninfo_withValueFormat: (a: number, b: number, c: number) => number;
|
|
212
234
|
readonly excelcolumninfo_withDataGroup: (a: number, b: number, c: number) => number;
|
|
213
235
|
readonly excelcolumninfo_withDataGroupParent: (a: number, b: number, c: number) => number;
|
|
214
|
-
readonly __wbg_get_excelinfo_name: (a: number, b: number) => void;
|
|
215
|
-
readonly __wbg_get_excelinfo_sheet_name: (a: number, b: number) => void;
|
|
216
|
-
readonly __wbg_get_excelinfo_author: (a: number, b: number) => void;
|
|
217
|
-
readonly __wbg_set_excelinfo_name: (a: number, b: number, c: number) => void;
|
|
218
|
-
readonly __wbg_set_excelinfo_sheet_name: (a: number, b: number, c: number) => void;
|
|
219
|
-
readonly __wbg_set_excelinfo_author: (a: number, b: number, c: number) => void;
|
|
220
236
|
readonly __wbg_excelcolumndata_free: (a: number, b: number) => void;
|
|
221
237
|
readonly __wbg_get_excelcolumndata_key: (a: number, b: number) => void;
|
|
222
238
|
readonly __wbg_set_excelcolumndata_key: (a: number, b: number, c: number) => void;
|
|
@@ -228,14 +244,14 @@ export interface InitOutput {
|
|
|
228
244
|
readonly excelcolumndata_newGroup: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
229
245
|
readonly excelcolumndata_newRootGroup: (a: number, b: number, c: number, d: number) => number;
|
|
230
246
|
readonly excelcolumndata_withChildren: (a: number, b: number, c: number) => number;
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
234
|
-
readonly excelrowdata_new: (a: number, b: number) => number;
|
|
247
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
248
|
+
readonly __wbindgen_export_1: WebAssembly.Table;
|
|
235
249
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
236
250
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
237
251
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
238
252
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
253
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h34f632cd519c3a96: (a: number, b: number, c: number) => void;
|
|
254
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h059b1e71ab984223: (a: number, b: number, c: number, d: number) => void;
|
|
239
255
|
}
|
|
240
256
|
|
|
241
257
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/pkg/imexport_wasm.js
CHANGED
|
@@ -4,6 +4,8 @@ const heap = new Array(128).fill(undefined);
|
|
|
4
4
|
|
|
5
5
|
heap.push(undefined, null, true, false);
|
|
6
6
|
|
|
7
|
+
function getObject(idx) { return heap[idx]; }
|
|
8
|
+
|
|
7
9
|
let heap_next = heap.length;
|
|
8
10
|
|
|
9
11
|
function addHeapObject(obj) {
|
|
@@ -15,7 +17,13 @@ function addHeapObject(obj) {
|
|
|
15
17
|
return idx;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
function
|
|
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
|
+
}
|
|
19
27
|
|
|
20
28
|
function dropObject(idx) {
|
|
21
29
|
if (idx < 132) return;
|
|
@@ -47,6 +55,106 @@ function getStringFromWasm0(ptr, len) {
|
|
|
47
55
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
48
56
|
}
|
|
49
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
|
+
|
|
50
158
|
let WASM_VECTOR_LEN = 0;
|
|
51
159
|
|
|
52
160
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -103,10 +211,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
103
211
|
return ptr;
|
|
104
212
|
}
|
|
105
213
|
|
|
106
|
-
function isLikeNone(x) {
|
|
107
|
-
return x === undefined || x === null;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
214
|
let cachedDataViewMemory0 = null;
|
|
111
215
|
|
|
112
216
|
function getDataViewMemory0() {
|
|
@@ -185,29 +289,15 @@ export function importData(info, excel_bytes) {
|
|
|
185
289
|
/**
|
|
186
290
|
* @param {ExcelInfo} info
|
|
187
291
|
* @param {ExcelData} data
|
|
188
|
-
* @returns {
|
|
292
|
+
* @returns {Promise<any>}
|
|
189
293
|
*/
|
|
190
294
|
export function exportData(info, data) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
wasm.exportData(retptr, ptr0, ptr1);
|
|
198
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
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
|
-
var v3 = getArrayU8FromWasm0(r0, r1).slice();
|
|
206
|
-
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
|
207
|
-
return v3;
|
|
208
|
-
} finally {
|
|
209
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
210
|
-
}
|
|
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);
|
|
211
301
|
}
|
|
212
302
|
|
|
213
303
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
@@ -229,6 +319,13 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
229
319
|
WASM_VECTOR_LEN = array.length;
|
|
230
320
|
return ptr;
|
|
231
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_181(arg0, arg1, arg2, arg3) {
|
|
327
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h059b1e71ab984223(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
328
|
+
}
|
|
232
329
|
|
|
233
330
|
const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
234
331
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -509,7 +606,7 @@ export class ExcelCellFormat {
|
|
|
509
606
|
}
|
|
510
607
|
}
|
|
511
608
|
/**
|
|
512
|
-
* @param {string |
|
|
609
|
+
* @param {string | null} [arg0]
|
|
513
610
|
*/
|
|
514
611
|
set date_format(arg0) {
|
|
515
612
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -536,7 +633,7 @@ export class ExcelCellFormat {
|
|
|
536
633
|
}
|
|
537
634
|
}
|
|
538
635
|
/**
|
|
539
|
-
* @param {string |
|
|
636
|
+
* @param {string | null} [arg0]
|
|
540
637
|
*/
|
|
541
638
|
set border_color(arg0) {
|
|
542
639
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -771,7 +868,7 @@ export class ExcelColumnData {
|
|
|
771
868
|
wasm.__wbg_set_excelcolumndata_value(this.__wbg_ptr, ptr0, len0);
|
|
772
869
|
}
|
|
773
870
|
/**
|
|
774
|
-
* @returns {
|
|
871
|
+
* @returns {ExcelRowData[]}
|
|
775
872
|
*/
|
|
776
873
|
get children() {
|
|
777
874
|
try {
|
|
@@ -787,7 +884,7 @@ export class ExcelColumnData {
|
|
|
787
884
|
}
|
|
788
885
|
}
|
|
789
886
|
/**
|
|
790
|
-
* @param {
|
|
887
|
+
* @param {ExcelRowData[]} arg0
|
|
791
888
|
*/
|
|
792
889
|
set children(arg0) {
|
|
793
890
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -811,7 +908,7 @@ export class ExcelColumnData {
|
|
|
811
908
|
/**
|
|
812
909
|
* @param {string} group_name
|
|
813
910
|
* @param {string} value
|
|
814
|
-
* @param {
|
|
911
|
+
* @param {ExcelRowData[]} children
|
|
815
912
|
* @returns {ExcelColumnData}
|
|
816
913
|
*/
|
|
817
914
|
static newGroup(group_name, value, children) {
|
|
@@ -826,7 +923,7 @@ export class ExcelColumnData {
|
|
|
826
923
|
}
|
|
827
924
|
/**
|
|
828
925
|
* @param {string} group_name
|
|
829
|
-
* @param {
|
|
926
|
+
* @param {ExcelRowData[]} children
|
|
830
927
|
* @returns {ExcelColumnData}
|
|
831
928
|
*/
|
|
832
929
|
static newRootGroup(group_name, children) {
|
|
@@ -838,7 +935,7 @@ export class ExcelColumnData {
|
|
|
838
935
|
return ExcelColumnData.__wrap(ret);
|
|
839
936
|
}
|
|
840
937
|
/**
|
|
841
|
-
* @param {
|
|
938
|
+
* @param {ExcelRowData[]} children
|
|
842
939
|
* @returns {ExcelColumnData}
|
|
843
940
|
*/
|
|
844
941
|
withChildren(children) {
|
|
@@ -969,7 +1066,7 @@ export class ExcelColumnInfo {
|
|
|
969
1066
|
}
|
|
970
1067
|
}
|
|
971
1068
|
/**
|
|
972
|
-
* @param {string |
|
|
1069
|
+
* @param {string | null} [arg0]
|
|
973
1070
|
*/
|
|
974
1071
|
set note(arg0) {
|
|
975
1072
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1004,7 +1101,7 @@ export class ExcelColumnInfo {
|
|
|
1004
1101
|
wasm.__wbg_set_excelcolumninfo_data_type(this.__wbg_ptr, ptr0, len0);
|
|
1005
1102
|
}
|
|
1006
1103
|
/**
|
|
1007
|
-
* @returns {
|
|
1104
|
+
* @returns {string[]}
|
|
1008
1105
|
*/
|
|
1009
1106
|
get allowed_values() {
|
|
1010
1107
|
try {
|
|
@@ -1020,7 +1117,7 @@ export class ExcelColumnInfo {
|
|
|
1020
1117
|
}
|
|
1021
1118
|
}
|
|
1022
1119
|
/**
|
|
1023
|
-
* @param {
|
|
1120
|
+
* @param {string[]} arg0
|
|
1024
1121
|
*/
|
|
1025
1122
|
set allowed_values(arg0) {
|
|
1026
1123
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1062,7 +1159,7 @@ export class ExcelColumnInfo {
|
|
|
1062
1159
|
return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
|
|
1063
1160
|
}
|
|
1064
1161
|
/**
|
|
1065
|
-
* @param {ExcelCellFormat |
|
|
1162
|
+
* @param {ExcelCellFormat | null} [arg0]
|
|
1066
1163
|
*/
|
|
1067
1164
|
set format(arg0) {
|
|
1068
1165
|
let ptr0 = 0;
|
|
@@ -1073,7 +1170,7 @@ export class ExcelColumnInfo {
|
|
|
1073
1170
|
wasm.__wbg_set_excelcolumninfo_format(this.__wbg_ptr, ptr0);
|
|
1074
1171
|
}
|
|
1075
1172
|
/**
|
|
1076
|
-
* @returns {
|
|
1173
|
+
* @returns {ExcelCellFormat[]}
|
|
1077
1174
|
*/
|
|
1078
1175
|
get value_format() {
|
|
1079
1176
|
try {
|
|
@@ -1089,7 +1186,7 @@ export class ExcelColumnInfo {
|
|
|
1089
1186
|
}
|
|
1090
1187
|
}
|
|
1091
1188
|
/**
|
|
1092
|
-
* @param {
|
|
1189
|
+
* @param {ExcelCellFormat[]} arg0
|
|
1093
1190
|
*/
|
|
1094
1191
|
set value_format(arg0) {
|
|
1095
1192
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1187,7 +1284,7 @@ export class ExcelColumnInfo {
|
|
|
1187
1284
|
return ExcelColumnInfo.__wrap(ret);
|
|
1188
1285
|
}
|
|
1189
1286
|
/**
|
|
1190
|
-
* @param {
|
|
1287
|
+
* @param {string[]} allowed_values
|
|
1191
1288
|
* @returns {ExcelColumnInfo}
|
|
1192
1289
|
*/
|
|
1193
1290
|
withAllowedValues(allowed_values) {
|
|
@@ -1229,7 +1326,7 @@ export class ExcelColumnInfo {
|
|
|
1229
1326
|
return ExcelColumnInfo.__wrap(ret);
|
|
1230
1327
|
}
|
|
1231
1328
|
/**
|
|
1232
|
-
* @param {
|
|
1329
|
+
* @param {ExcelCellFormat[]} value_format
|
|
1233
1330
|
* @returns {ExcelColumnInfo}
|
|
1234
1331
|
*/
|
|
1235
1332
|
withValueFormat(value_format) {
|
|
@@ -1289,7 +1386,7 @@ export class ExcelData {
|
|
|
1289
1386
|
wasm.__wbg_exceldata_free(ptr, 0);
|
|
1290
1387
|
}
|
|
1291
1388
|
/**
|
|
1292
|
-
* @returns {
|
|
1389
|
+
* @returns {ExcelRowData[]}
|
|
1293
1390
|
*/
|
|
1294
1391
|
get rows() {
|
|
1295
1392
|
try {
|
|
@@ -1305,7 +1402,7 @@ export class ExcelData {
|
|
|
1305
1402
|
}
|
|
1306
1403
|
}
|
|
1307
1404
|
/**
|
|
1308
|
-
* @param {
|
|
1405
|
+
* @param {ExcelRowData[]} arg0
|
|
1309
1406
|
*/
|
|
1310
1407
|
set rows(arg0) {
|
|
1311
1408
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1313,7 +1410,7 @@ export class ExcelData {
|
|
|
1313
1410
|
wasm.__wbg_set_exceldata_rows(this.__wbg_ptr, ptr0, len0);
|
|
1314
1411
|
}
|
|
1315
1412
|
/**
|
|
1316
|
-
* @param {
|
|
1413
|
+
* @param {ExcelRowData[]} rows
|
|
1317
1414
|
*/
|
|
1318
1415
|
constructor(rows) {
|
|
1319
1416
|
const ptr0 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
|
|
@@ -1358,7 +1455,7 @@ export class ExcelInfo {
|
|
|
1358
1455
|
let deferred1_1;
|
|
1359
1456
|
try {
|
|
1360
1457
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1361
|
-
wasm.
|
|
1458
|
+
wasm.__wbg_get_excelinfo_name(retptr, this.__wbg_ptr);
|
|
1362
1459
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1363
1460
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1364
1461
|
deferred1_0 = r0;
|
|
@@ -1375,7 +1472,7 @@ export class ExcelInfo {
|
|
|
1375
1472
|
set name(arg0) {
|
|
1376
1473
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1377
1474
|
const len0 = WASM_VECTOR_LEN;
|
|
1378
|
-
wasm.
|
|
1475
|
+
wasm.__wbg_set_excelinfo_name(this.__wbg_ptr, ptr0, len0);
|
|
1379
1476
|
}
|
|
1380
1477
|
/**
|
|
1381
1478
|
* @returns {string}
|
|
@@ -1385,7 +1482,7 @@ export class ExcelInfo {
|
|
|
1385
1482
|
let deferred1_1;
|
|
1386
1483
|
try {
|
|
1387
1484
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1388
|
-
wasm.
|
|
1485
|
+
wasm.__wbg_get_excelinfo_sheet_name(retptr, this.__wbg_ptr);
|
|
1389
1486
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1390
1487
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1391
1488
|
deferred1_0 = r0;
|
|
@@ -1402,10 +1499,10 @@ export class ExcelInfo {
|
|
|
1402
1499
|
set sheet_name(arg0) {
|
|
1403
1500
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1404
1501
|
const len0 = WASM_VECTOR_LEN;
|
|
1405
|
-
wasm.
|
|
1502
|
+
wasm.__wbg_set_excelinfo_sheet_name(this.__wbg_ptr, ptr0, len0);
|
|
1406
1503
|
}
|
|
1407
1504
|
/**
|
|
1408
|
-
* @returns {
|
|
1505
|
+
* @returns {ExcelColumnInfo[]}
|
|
1409
1506
|
*/
|
|
1410
1507
|
get columns() {
|
|
1411
1508
|
try {
|
|
@@ -1421,7 +1518,7 @@ export class ExcelInfo {
|
|
|
1421
1518
|
}
|
|
1422
1519
|
}
|
|
1423
1520
|
/**
|
|
1424
|
-
* @param {
|
|
1521
|
+
* @param {ExcelColumnInfo[]} arg0
|
|
1425
1522
|
*/
|
|
1426
1523
|
set columns(arg0) {
|
|
1427
1524
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1436,7 +1533,7 @@ export class ExcelInfo {
|
|
|
1436
1533
|
let deferred1_1;
|
|
1437
1534
|
try {
|
|
1438
1535
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1439
|
-
wasm.
|
|
1536
|
+
wasm.__wbg_get_excelinfo_author(retptr, this.__wbg_ptr);
|
|
1440
1537
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1441
1538
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1442
1539
|
deferred1_0 = r0;
|
|
@@ -1453,7 +1550,7 @@ export class ExcelInfo {
|
|
|
1453
1550
|
set author(arg0) {
|
|
1454
1551
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1455
1552
|
const len0 = WASM_VECTOR_LEN;
|
|
1456
|
-
wasm.
|
|
1553
|
+
wasm.__wbg_set_excelinfo_author(this.__wbg_ptr, ptr0, len0);
|
|
1457
1554
|
}
|
|
1458
1555
|
/**
|
|
1459
1556
|
* @returns {string}
|
|
@@ -1502,7 +1599,7 @@ export class ExcelInfo {
|
|
|
1502
1599
|
}
|
|
1503
1600
|
}
|
|
1504
1601
|
/**
|
|
1505
|
-
* @param {string |
|
|
1602
|
+
* @param {string | null} [arg0]
|
|
1506
1603
|
*/
|
|
1507
1604
|
set title(arg0) {
|
|
1508
1605
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1517,7 +1614,7 @@ export class ExcelInfo {
|
|
|
1517
1614
|
return ret === 0 ? undefined : ExcelCellFormat.__wrap(ret);
|
|
1518
1615
|
}
|
|
1519
1616
|
/**
|
|
1520
|
-
* @param {ExcelCellFormat |
|
|
1617
|
+
* @param {ExcelCellFormat | null} [arg0]
|
|
1521
1618
|
*/
|
|
1522
1619
|
set title_format(arg0) {
|
|
1523
1620
|
let ptr0 = 0;
|
|
@@ -1542,7 +1639,7 @@ export class ExcelInfo {
|
|
|
1542
1639
|
}
|
|
1543
1640
|
}
|
|
1544
1641
|
/**
|
|
1545
|
-
* @param {number |
|
|
1642
|
+
* @param {number | null} [arg0]
|
|
1546
1643
|
*/
|
|
1547
1644
|
set title_height(arg0) {
|
|
1548
1645
|
wasm.__wbg_set_excelinfo_title_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
@@ -1562,7 +1659,7 @@ export class ExcelInfo {
|
|
|
1562
1659
|
}
|
|
1563
1660
|
}
|
|
1564
1661
|
/**
|
|
1565
|
-
* @param {number |
|
|
1662
|
+
* @param {number | null} [arg0]
|
|
1566
1663
|
*/
|
|
1567
1664
|
set default_row_height(arg0) {
|
|
1568
1665
|
wasm.__wbg_set_excelinfo_default_row_height(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
|
|
@@ -1609,7 +1706,7 @@ export class ExcelInfo {
|
|
|
1609
1706
|
/**
|
|
1610
1707
|
* @param {string} name
|
|
1611
1708
|
* @param {string} sheet_name
|
|
1612
|
-
* @param {
|
|
1709
|
+
* @param {ExcelColumnInfo[]} columns
|
|
1613
1710
|
* @param {string} author
|
|
1614
1711
|
* @param {string} create_time
|
|
1615
1712
|
*/
|
|
@@ -1688,6 +1785,24 @@ export class ExcelInfo {
|
|
|
1688
1785
|
const ret = wasm.excelinfo_withIsHeaderFreeze(ptr, is_header_freeze);
|
|
1689
1786
|
return ExcelInfo.__wrap(ret);
|
|
1690
1787
|
}
|
|
1788
|
+
/**
|
|
1789
|
+
* @param {Function} callback
|
|
1790
|
+
* @returns {ExcelInfo}
|
|
1791
|
+
*/
|
|
1792
|
+
withProgressCallback(callback) {
|
|
1793
|
+
const ptr = this.__destroy_into_raw();
|
|
1794
|
+
const ret = wasm.excelinfo_withProgressCallback(ptr, addHeapObject(callback));
|
|
1795
|
+
return ExcelInfo.__wrap(ret);
|
|
1796
|
+
}
|
|
1797
|
+
/**
|
|
1798
|
+
* @param {Function} fetcher
|
|
1799
|
+
* @returns {ExcelInfo}
|
|
1800
|
+
*/
|
|
1801
|
+
withImageFetcher(fetcher) {
|
|
1802
|
+
const ptr = this.__destroy_into_raw();
|
|
1803
|
+
const ret = wasm.excelinfo_withImageFetcher(ptr, addHeapObject(fetcher));
|
|
1804
|
+
return ExcelInfo.__wrap(ret);
|
|
1805
|
+
}
|
|
1691
1806
|
}
|
|
1692
1807
|
|
|
1693
1808
|
const ExcelRowDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1723,7 +1838,7 @@ export class ExcelRowData {
|
|
|
1723
1838
|
wasm.__wbg_excelrowdata_free(ptr, 0);
|
|
1724
1839
|
}
|
|
1725
1840
|
/**
|
|
1726
|
-
* @returns {
|
|
1841
|
+
* @returns {ExcelColumnData[]}
|
|
1727
1842
|
*/
|
|
1728
1843
|
get columns() {
|
|
1729
1844
|
try {
|
|
@@ -1739,7 +1854,7 @@ export class ExcelRowData {
|
|
|
1739
1854
|
}
|
|
1740
1855
|
}
|
|
1741
1856
|
/**
|
|
1742
|
-
* @param {
|
|
1857
|
+
* @param {ExcelColumnData[]} arg0
|
|
1743
1858
|
*/
|
|
1744
1859
|
set columns(arg0) {
|
|
1745
1860
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -1747,7 +1862,7 @@ export class ExcelRowData {
|
|
|
1747
1862
|
wasm.__wbg_set_excelrowdata_columns(this.__wbg_ptr, ptr0, len0);
|
|
1748
1863
|
}
|
|
1749
1864
|
/**
|
|
1750
|
-
* @param {
|
|
1865
|
+
* @param {ExcelColumnData[]} columns
|
|
1751
1866
|
*/
|
|
1752
1867
|
constructor(columns) {
|
|
1753
1868
|
const ptr0 = passArrayJsValueToWasm0(columns, wasm.__wbindgen_malloc);
|
|
@@ -1793,6 +1908,18 @@ async function __wbg_load(module, imports) {
|
|
|
1793
1908
|
function __wbg_get_imports() {
|
|
1794
1909
|
const imports = {};
|
|
1795
1910
|
imports.wbg = {};
|
|
1911
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
1912
|
+
const ret = getObject(arg0).buffer;
|
|
1913
|
+
return addHeapObject(ret);
|
|
1914
|
+
};
|
|
1915
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
1916
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
1917
|
+
return addHeapObject(ret);
|
|
1918
|
+
}, arguments) };
|
|
1919
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1920
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1921
|
+
return addHeapObject(ret);
|
|
1922
|
+
}, arguments) };
|
|
1796
1923
|
imports.wbg.__wbg_excelcellformat_new = function(arg0) {
|
|
1797
1924
|
const ret = ExcelCellFormat.__wrap(arg0);
|
|
1798
1925
|
return addHeapObject(ret);
|
|
@@ -1825,14 +1952,131 @@ function __wbg_get_imports() {
|
|
|
1825
1952
|
const ret = ExcelRowData.__unwrap(takeObject(arg0));
|
|
1826
1953
|
return ret;
|
|
1827
1954
|
};
|
|
1828
|
-
imports.wbg.
|
|
1955
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
1956
|
+
const ret = getObject(arg0).length;
|
|
1957
|
+
return ret;
|
|
1958
|
+
};
|
|
1959
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
1960
|
+
try {
|
|
1961
|
+
var state0 = {a: arg0, b: arg1};
|
|
1962
|
+
var cb0 = (arg0, arg1) => {
|
|
1963
|
+
const a = state0.a;
|
|
1964
|
+
state0.a = 0;
|
|
1965
|
+
try {
|
|
1966
|
+
return __wbg_adapter_181(a, state0.b, arg0, arg1);
|
|
1967
|
+
} finally {
|
|
1968
|
+
state0.a = a;
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
const ret = new Promise(cb0);
|
|
1972
|
+
return addHeapObject(ret);
|
|
1973
|
+
} finally {
|
|
1974
|
+
state0.a = state0.b = 0;
|
|
1975
|
+
}
|
|
1976
|
+
};
|
|
1977
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
1978
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
1979
|
+
return addHeapObject(ret);
|
|
1980
|
+
};
|
|
1981
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
1982
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1983
|
+
return addHeapObject(ret);
|
|
1984
|
+
};
|
|
1985
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
1986
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
1987
|
+
return addHeapObject(ret);
|
|
1988
|
+
};
|
|
1989
|
+
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
1829
1990
|
const ret = Date.now();
|
|
1830
1991
|
return ret;
|
|
1831
1992
|
};
|
|
1993
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
1994
|
+
queueMicrotask(getObject(arg0));
|
|
1995
|
+
};
|
|
1996
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
1997
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
1998
|
+
return addHeapObject(ret);
|
|
1999
|
+
};
|
|
2000
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
2001
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
2002
|
+
return addHeapObject(ret);
|
|
2003
|
+
};
|
|
2004
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
2005
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
2006
|
+
};
|
|
2007
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
2008
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2009
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2010
|
+
};
|
|
2011
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
2012
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2013
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2014
|
+
};
|
|
2015
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
2016
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
2017
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2018
|
+
};
|
|
2019
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
2020
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
2021
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2022
|
+
};
|
|
2023
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
2024
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
2025
|
+
return addHeapObject(ret);
|
|
2026
|
+
};
|
|
2027
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
2028
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2029
|
+
return addHeapObject(ret);
|
|
2030
|
+
};
|
|
2031
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2032
|
+
const obj = takeObject(arg0).original;
|
|
2033
|
+
if (obj.cnt-- == 1) {
|
|
2034
|
+
obj.a = 0;
|
|
2035
|
+
return true;
|
|
2036
|
+
}
|
|
2037
|
+
const ret = false;
|
|
2038
|
+
return ret;
|
|
2039
|
+
};
|
|
2040
|
+
imports.wbg.__wbindgen_closure_wrapper814 = function(arg0, arg1, arg2) {
|
|
2041
|
+
const ret = makeMutClosure(arg0, arg1, 230, __wbg_adapter_28);
|
|
2042
|
+
return addHeapObject(ret);
|
|
2043
|
+
};
|
|
2044
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
2045
|
+
const ret = debugString(getObject(arg1));
|
|
2046
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2047
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2048
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2049
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2050
|
+
};
|
|
1832
2051
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
1833
2052
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1834
2053
|
return addHeapObject(ret);
|
|
1835
2054
|
};
|
|
2055
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
2056
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2057
|
+
return ret;
|
|
2058
|
+
};
|
|
2059
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2060
|
+
const val = getObject(arg0);
|
|
2061
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2062
|
+
return ret;
|
|
2063
|
+
};
|
|
2064
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2065
|
+
const ret = getObject(arg0) === undefined;
|
|
2066
|
+
return ret;
|
|
2067
|
+
};
|
|
2068
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
2069
|
+
const ret = wasm.memory;
|
|
2070
|
+
return addHeapObject(ret);
|
|
2071
|
+
};
|
|
2072
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2073
|
+
const ret = arg0;
|
|
2074
|
+
return addHeapObject(ret);
|
|
2075
|
+
};
|
|
2076
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2077
|
+
const ret = getObject(arg0);
|
|
2078
|
+
return addHeapObject(ret);
|
|
2079
|
+
};
|
|
1836
2080
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1837
2081
|
takeObject(arg0);
|
|
1838
2082
|
};
|
|
Binary file
|