@devup-ui/wasm 1.0.43 → 1.0.45
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/index.d.ts +13 -13
- package/pkg/index.js +228 -228
- package/pkg/index_bg.wasm +0 -0
- package/pkg/index_bg.wasm.d.ts +15 -15
package/package.json
CHANGED
package/pkg/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function setDebug(debug: boolean): void;
|
|
4
|
-
export function isDebug(): boolean;
|
|
5
4
|
export function importSheet(sheet_object: any): void;
|
|
6
|
-
export function exportSheet(): string;
|
|
7
|
-
export function importClassMap(sheet_object: any): void;
|
|
8
5
|
export function exportClassMap(): string;
|
|
9
|
-
export function importFileMap(sheet_object: any): void;
|
|
10
|
-
export function exportFileMap(): string;
|
|
11
6
|
export function codeExtract(filename: string, code: string, _package: string, css_dir: string, single_css: boolean, import_main_css_in_code: boolean, import_main_css_in_css: boolean): Output;
|
|
7
|
+
export function exportFileMap(): string;
|
|
8
|
+
export function isDebug(): boolean;
|
|
12
9
|
export function registerTheme(theme_object: any): void;
|
|
13
|
-
export function getDefaultTheme(): string | undefined;
|
|
14
|
-
export function getCss(file_num: number | null | undefined, import_main_css: boolean): string;
|
|
15
10
|
export function getThemeInterface(package_name: string, color_interface_name: string, typography_interface_name: string, theme_interface_name: string): string;
|
|
11
|
+
export function getCss(file_num: number | null | undefined, import_main_css: boolean): string;
|
|
12
|
+
export function importClassMap(sheet_object: any): void;
|
|
13
|
+
export function importFileMap(sheet_object: any): void;
|
|
14
|
+
export function getDefaultTheme(): string | undefined;
|
|
15
|
+
export function exportSheet(): string;
|
|
16
16
|
export class Output {
|
|
17
17
|
private constructor();
|
|
18
18
|
free(): void;
|
|
19
19
|
[Symbol.dispose](): void;
|
|
20
|
-
/**
|
|
21
|
-
* Get the code
|
|
22
|
-
*/
|
|
23
|
-
readonly code: string;
|
|
24
|
-
readonly cssFile: string | undefined;
|
|
25
|
-
readonly map: string | undefined;
|
|
26
20
|
readonly updatedBaseStyle: boolean;
|
|
27
21
|
/**
|
|
28
22
|
* Get the css
|
|
29
23
|
*/
|
|
30
24
|
readonly css: string | undefined;
|
|
25
|
+
readonly map: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Get the code
|
|
28
|
+
*/
|
|
29
|
+
readonly code: string;
|
|
30
|
+
readonly cssFile: string | undefined;
|
|
31
31
|
}
|
package/pkg/index.js
CHANGED
|
@@ -87,26 +87,6 @@ function getDataViewMemory0() {
|
|
|
87
87
|
return cachedDataViewMemory0;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function addToExternrefTable0(obj) {
|
|
91
|
-
const idx = wasm.__externref_table_alloc();
|
|
92
|
-
wasm.__wbindgen_export_4.set(idx, obj);
|
|
93
|
-
return idx;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function handleError(f, args) {
|
|
97
|
-
try {
|
|
98
|
-
return f.apply(this, args);
|
|
99
|
-
} catch (e) {
|
|
100
|
-
const idx = addToExternrefTable0(e);
|
|
101
|
-
wasm.__wbindgen_exn_store(idx);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
106
|
-
ptr = ptr >>> 0;
|
|
107
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
90
|
function isLikeNone(x) {
|
|
111
91
|
return x === undefined || x === null;
|
|
112
92
|
}
|
|
@@ -175,6 +155,26 @@ function debugString(val) {
|
|
|
175
155
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
176
156
|
return className;
|
|
177
157
|
}
|
|
158
|
+
|
|
159
|
+
function addToExternrefTable0(obj) {
|
|
160
|
+
const idx = wasm.__externref_table_alloc();
|
|
161
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
162
|
+
return idx;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function handleError(f, args) {
|
|
166
|
+
try {
|
|
167
|
+
return f.apply(this, args);
|
|
168
|
+
} catch (e) {
|
|
169
|
+
const idx = addToExternrefTable0(e);
|
|
170
|
+
wasm.__wbindgen_exn_store(idx);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
175
|
+
ptr = ptr >>> 0;
|
|
176
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
177
|
+
}
|
|
178
178
|
/**
|
|
179
179
|
* @param {boolean} debug
|
|
180
180
|
*/
|
|
@@ -182,16 +182,8 @@ exports.setDebug = function(debug) {
|
|
|
182
182
|
wasm.setDebug(debug);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
/**
|
|
186
|
-
* @returns {boolean}
|
|
187
|
-
*/
|
|
188
|
-
exports.isDebug = function() {
|
|
189
|
-
const ret = wasm.isDebug();
|
|
190
|
-
return ret !== 0;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
185
|
function takeFromExternrefTable0(idx) {
|
|
194
|
-
const value = wasm.
|
|
186
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
195
187
|
wasm.__externref_table_dealloc(idx);
|
|
196
188
|
return value;
|
|
197
189
|
}
|
|
@@ -208,11 +200,11 @@ exports.importSheet = function(sheet_object) {
|
|
|
208
200
|
/**
|
|
209
201
|
* @returns {string}
|
|
210
202
|
*/
|
|
211
|
-
exports.
|
|
203
|
+
exports.exportClassMap = function() {
|
|
212
204
|
let deferred2_0;
|
|
213
205
|
let deferred2_1;
|
|
214
206
|
try {
|
|
215
|
-
const ret = wasm.
|
|
207
|
+
const ret = wasm.exportClassMap();
|
|
216
208
|
var ptr1 = ret[0];
|
|
217
209
|
var len1 = ret[1];
|
|
218
210
|
if (ret[3]) {
|
|
@@ -228,23 +220,39 @@ exports.exportSheet = function() {
|
|
|
228
220
|
};
|
|
229
221
|
|
|
230
222
|
/**
|
|
231
|
-
* @param {
|
|
223
|
+
* @param {string} filename
|
|
224
|
+
* @param {string} code
|
|
225
|
+
* @param {string} _package
|
|
226
|
+
* @param {string} css_dir
|
|
227
|
+
* @param {boolean} single_css
|
|
228
|
+
* @param {boolean} import_main_css_in_code
|
|
229
|
+
* @param {boolean} import_main_css_in_css
|
|
230
|
+
* @returns {Output}
|
|
232
231
|
*/
|
|
233
|
-
exports.
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
exports.codeExtract = function(filename, code, _package, css_dir, single_css, import_main_css_in_code, import_main_css_in_css) {
|
|
233
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
const len0 = WASM_VECTOR_LEN;
|
|
235
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
const len1 = WASM_VECTOR_LEN;
|
|
237
|
+
const ptr2 = passStringToWasm0(_package, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len2 = WASM_VECTOR_LEN;
|
|
239
|
+
const ptr3 = passStringToWasm0(css_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
+
const len3 = WASM_VECTOR_LEN;
|
|
241
|
+
const ret = wasm.codeExtract(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, single_css, import_main_css_in_code, import_main_css_in_css);
|
|
242
|
+
if (ret[2]) {
|
|
243
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
237
244
|
}
|
|
245
|
+
return Output.__wrap(ret[0]);
|
|
238
246
|
};
|
|
239
247
|
|
|
240
248
|
/**
|
|
241
249
|
* @returns {string}
|
|
242
250
|
*/
|
|
243
|
-
exports.
|
|
251
|
+
exports.exportFileMap = function() {
|
|
244
252
|
let deferred2_0;
|
|
245
253
|
let deferred2_1;
|
|
246
254
|
try {
|
|
247
|
-
const ret = wasm.
|
|
255
|
+
const ret = wasm.exportFileMap();
|
|
248
256
|
var ptr1 = ret[0];
|
|
249
257
|
var len1 = ret[1];
|
|
250
258
|
if (ret[3]) {
|
|
@@ -260,23 +268,61 @@ exports.exportClassMap = function() {
|
|
|
260
268
|
};
|
|
261
269
|
|
|
262
270
|
/**
|
|
263
|
-
* @
|
|
271
|
+
* @returns {boolean}
|
|
264
272
|
*/
|
|
265
|
-
exports.
|
|
266
|
-
const ret = wasm.
|
|
273
|
+
exports.isDebug = function() {
|
|
274
|
+
const ret = wasm.isDebug();
|
|
275
|
+
return ret !== 0;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {any} theme_object
|
|
280
|
+
*/
|
|
281
|
+
exports.registerTheme = function(theme_object) {
|
|
282
|
+
const ret = wasm.registerTheme(theme_object);
|
|
267
283
|
if (ret[1]) {
|
|
268
284
|
throw takeFromExternrefTable0(ret[0]);
|
|
269
285
|
}
|
|
270
286
|
};
|
|
271
287
|
|
|
272
288
|
/**
|
|
289
|
+
* @param {string} package_name
|
|
290
|
+
* @param {string} color_interface_name
|
|
291
|
+
* @param {string} typography_interface_name
|
|
292
|
+
* @param {string} theme_interface_name
|
|
293
|
+
* @returns {string}
|
|
294
|
+
*/
|
|
295
|
+
exports.getThemeInterface = function(package_name, color_interface_name, typography_interface_name, theme_interface_name) {
|
|
296
|
+
let deferred5_0;
|
|
297
|
+
let deferred5_1;
|
|
298
|
+
try {
|
|
299
|
+
const ptr0 = passStringToWasm0(package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
300
|
+
const len0 = WASM_VECTOR_LEN;
|
|
301
|
+
const ptr1 = passStringToWasm0(color_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
+
const len1 = WASM_VECTOR_LEN;
|
|
303
|
+
const ptr2 = passStringToWasm0(typography_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
+
const len2 = WASM_VECTOR_LEN;
|
|
305
|
+
const ptr3 = passStringToWasm0(theme_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len3 = WASM_VECTOR_LEN;
|
|
307
|
+
const ret = wasm.getThemeInterface(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
308
|
+
deferred5_0 = ret[0];
|
|
309
|
+
deferred5_1 = ret[1];
|
|
310
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
311
|
+
} finally {
|
|
312
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @param {number | null | undefined} file_num
|
|
318
|
+
* @param {boolean} import_main_css
|
|
273
319
|
* @returns {string}
|
|
274
320
|
*/
|
|
275
|
-
exports.
|
|
321
|
+
exports.getCss = function(file_num, import_main_css) {
|
|
276
322
|
let deferred2_0;
|
|
277
323
|
let deferred2_1;
|
|
278
324
|
try {
|
|
279
|
-
const ret = wasm.
|
|
325
|
+
const ret = wasm.getCss(isLikeNone(file_num) ? 0x100000001 : (file_num) >>> 0, import_main_css);
|
|
280
326
|
var ptr1 = ret[0];
|
|
281
327
|
var len1 = ret[1];
|
|
282
328
|
if (ret[3]) {
|
|
@@ -292,36 +338,20 @@ exports.exportFileMap = function() {
|
|
|
292
338
|
};
|
|
293
339
|
|
|
294
340
|
/**
|
|
295
|
-
* @param {
|
|
296
|
-
* @param {string} code
|
|
297
|
-
* @param {string} _package
|
|
298
|
-
* @param {string} css_dir
|
|
299
|
-
* @param {boolean} single_css
|
|
300
|
-
* @param {boolean} import_main_css_in_code
|
|
301
|
-
* @param {boolean} import_main_css_in_css
|
|
302
|
-
* @returns {Output}
|
|
341
|
+
* @param {any} sheet_object
|
|
303
342
|
*/
|
|
304
|
-
exports.
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
const len1 = WASM_VECTOR_LEN;
|
|
309
|
-
const ptr2 = passStringToWasm0(_package, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
-
const len2 = WASM_VECTOR_LEN;
|
|
311
|
-
const ptr3 = passStringToWasm0(css_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
312
|
-
const len3 = WASM_VECTOR_LEN;
|
|
313
|
-
const ret = wasm.codeExtract(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, single_css, import_main_css_in_code, import_main_css_in_css);
|
|
314
|
-
if (ret[2]) {
|
|
315
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
343
|
+
exports.importClassMap = function(sheet_object) {
|
|
344
|
+
const ret = wasm.importClassMap(sheet_object);
|
|
345
|
+
if (ret[1]) {
|
|
346
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
316
347
|
}
|
|
317
|
-
return Output.__wrap(ret[0]);
|
|
318
348
|
};
|
|
319
349
|
|
|
320
350
|
/**
|
|
321
|
-
* @param {any}
|
|
351
|
+
* @param {any} sheet_object
|
|
322
352
|
*/
|
|
323
|
-
exports.
|
|
324
|
-
const ret = wasm.
|
|
353
|
+
exports.importFileMap = function(sheet_object) {
|
|
354
|
+
const ret = wasm.importFileMap(sheet_object);
|
|
325
355
|
if (ret[1]) {
|
|
326
356
|
throw takeFromExternrefTable0(ret[0]);
|
|
327
357
|
}
|
|
@@ -344,15 +374,13 @@ exports.getDefaultTheme = function() {
|
|
|
344
374
|
};
|
|
345
375
|
|
|
346
376
|
/**
|
|
347
|
-
* @param {number | null | undefined} file_num
|
|
348
|
-
* @param {boolean} import_main_css
|
|
349
377
|
* @returns {string}
|
|
350
378
|
*/
|
|
351
|
-
exports.
|
|
379
|
+
exports.exportSheet = function() {
|
|
352
380
|
let deferred2_0;
|
|
353
381
|
let deferred2_1;
|
|
354
382
|
try {
|
|
355
|
-
const ret = wasm.
|
|
383
|
+
const ret = wasm.exportSheet();
|
|
356
384
|
var ptr1 = ret[0];
|
|
357
385
|
var len1 = ret[1];
|
|
358
386
|
if (ret[3]) {
|
|
@@ -367,34 +395,6 @@ exports.getCss = function(file_num, import_main_css) {
|
|
|
367
395
|
}
|
|
368
396
|
};
|
|
369
397
|
|
|
370
|
-
/**
|
|
371
|
-
* @param {string} package_name
|
|
372
|
-
* @param {string} color_interface_name
|
|
373
|
-
* @param {string} typography_interface_name
|
|
374
|
-
* @param {string} theme_interface_name
|
|
375
|
-
* @returns {string}
|
|
376
|
-
*/
|
|
377
|
-
exports.getThemeInterface = function(package_name, color_interface_name, typography_interface_name, theme_interface_name) {
|
|
378
|
-
let deferred5_0;
|
|
379
|
-
let deferred5_1;
|
|
380
|
-
try {
|
|
381
|
-
const ptr0 = passStringToWasm0(package_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
382
|
-
const len0 = WASM_VECTOR_LEN;
|
|
383
|
-
const ptr1 = passStringToWasm0(color_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
384
|
-
const len1 = WASM_VECTOR_LEN;
|
|
385
|
-
const ptr2 = passStringToWasm0(typography_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
386
|
-
const len2 = WASM_VECTOR_LEN;
|
|
387
|
-
const ptr3 = passStringToWasm0(theme_interface_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
-
const len3 = WASM_VECTOR_LEN;
|
|
389
|
-
const ret = wasm.getThemeInterface(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
390
|
-
deferred5_0 = ret[0];
|
|
391
|
-
deferred5_1 = ret[1];
|
|
392
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
393
|
-
} finally {
|
|
394
|
-
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
|
|
398
398
|
const OutputFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
399
399
|
? { register: () => {}, unregister: () => {} }
|
|
400
400
|
: new FinalizationRegistry(ptr => wasm.__wbg_output_free(ptr >>> 0, 1));
|
|
@@ -421,26 +421,18 @@ class Output {
|
|
|
421
421
|
wasm.__wbg_output_free(ptr, 0);
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
|
-
*
|
|
425
|
-
* @returns {string}
|
|
424
|
+
* @returns {boolean}
|
|
426
425
|
*/
|
|
427
|
-
get
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
try {
|
|
431
|
-
const ret = wasm.output_code(this.__wbg_ptr);
|
|
432
|
-
deferred1_0 = ret[0];
|
|
433
|
-
deferred1_1 = ret[1];
|
|
434
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
435
|
-
} finally {
|
|
436
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
437
|
-
}
|
|
426
|
+
get updatedBaseStyle() {
|
|
427
|
+
const ret = wasm.output_updatedBaseStyle(this.__wbg_ptr);
|
|
428
|
+
return ret !== 0;
|
|
438
429
|
}
|
|
439
430
|
/**
|
|
431
|
+
* Get the css
|
|
440
432
|
* @returns {string | undefined}
|
|
441
433
|
*/
|
|
442
|
-
get
|
|
443
|
-
const ret = wasm.
|
|
434
|
+
get css() {
|
|
435
|
+
const ret = wasm.output_css(this.__wbg_ptr);
|
|
444
436
|
let v1;
|
|
445
437
|
if (ret[0] !== 0) {
|
|
446
438
|
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -461,18 +453,26 @@ class Output {
|
|
|
461
453
|
return v1;
|
|
462
454
|
}
|
|
463
455
|
/**
|
|
464
|
-
*
|
|
456
|
+
* Get the code
|
|
457
|
+
* @returns {string}
|
|
465
458
|
*/
|
|
466
|
-
get
|
|
467
|
-
|
|
468
|
-
|
|
459
|
+
get code() {
|
|
460
|
+
let deferred1_0;
|
|
461
|
+
let deferred1_1;
|
|
462
|
+
try {
|
|
463
|
+
const ret = wasm.output_code(this.__wbg_ptr);
|
|
464
|
+
deferred1_0 = ret[0];
|
|
465
|
+
deferred1_1 = ret[1];
|
|
466
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
467
|
+
} finally {
|
|
468
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
469
|
+
}
|
|
469
470
|
}
|
|
470
471
|
/**
|
|
471
|
-
* Get the css
|
|
472
472
|
* @returns {string | undefined}
|
|
473
473
|
*/
|
|
474
|
-
get
|
|
475
|
-
const ret = wasm.
|
|
474
|
+
get cssFile() {
|
|
475
|
+
const ret = wasm.output_cssFile(this.__wbg_ptr);
|
|
476
476
|
let v1;
|
|
477
477
|
if (ret[0] !== 0) {
|
|
478
478
|
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
@@ -485,12 +485,12 @@ if (Symbol.dispose) Output.prototype[Symbol.dispose] = Output.prototype.free;
|
|
|
485
485
|
|
|
486
486
|
exports.Output = Output;
|
|
487
487
|
|
|
488
|
-
exports.
|
|
488
|
+
exports.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
489
489
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
490
490
|
return ret;
|
|
491
491
|
};
|
|
492
492
|
|
|
493
|
-
exports.
|
|
493
|
+
exports.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
494
494
|
const ret = Number(arg0);
|
|
495
495
|
return ret;
|
|
496
496
|
};
|
|
@@ -503,37 +503,119 @@ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
|
503
503
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
504
504
|
};
|
|
505
505
|
|
|
506
|
-
exports.
|
|
506
|
+
exports.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
507
|
+
const v = arg1;
|
|
508
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
509
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
510
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
exports.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
514
|
+
const v = arg0;
|
|
515
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
516
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
520
|
+
const ret = debugString(arg1);
|
|
521
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
522
|
+
const len1 = WASM_VECTOR_LEN;
|
|
523
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
524
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
exports.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
528
|
+
const ret = arg0 in arg1;
|
|
529
|
+
return ret;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
exports.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
533
|
+
const ret = typeof(arg0) === 'bigint';
|
|
534
|
+
return ret;
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
exports.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
538
|
+
const ret = typeof(arg0) === 'function';
|
|
539
|
+
return ret;
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
exports.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
543
|
+
const val = arg0;
|
|
544
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
545
|
+
return ret;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
exports.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
549
|
+
const ret = typeof(arg0) === 'string';
|
|
550
|
+
return ret;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
exports.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
554
|
+
const ret = arg0 === undefined;
|
|
555
|
+
return ret;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
exports.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
559
|
+
const ret = arg0 === arg1;
|
|
560
|
+
return ret;
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
exports.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
564
|
+
const ret = arg0 == arg1;
|
|
565
|
+
return ret;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
exports.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
569
|
+
const obj = arg1;
|
|
570
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
571
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
572
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
exports.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
576
|
+
const obj = arg1;
|
|
577
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
578
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
579
|
+
var len1 = WASM_VECTOR_LEN;
|
|
580
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
581
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
exports.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
585
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
507
589
|
const ret = arg0.call(arg1);
|
|
508
590
|
return ret;
|
|
509
591
|
}, arguments) };
|
|
510
592
|
|
|
511
|
-
exports.
|
|
593
|
+
exports.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
512
594
|
const ret = arg0.done;
|
|
513
595
|
return ret;
|
|
514
596
|
};
|
|
515
597
|
|
|
516
|
-
exports.
|
|
598
|
+
exports.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
517
599
|
const ret = Object.entries(arg0);
|
|
518
600
|
return ret;
|
|
519
601
|
};
|
|
520
602
|
|
|
521
|
-
exports.
|
|
603
|
+
exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
522
604
|
const ret = arg0[arg1 >>> 0];
|
|
523
605
|
return ret;
|
|
524
606
|
};
|
|
525
607
|
|
|
526
|
-
exports.
|
|
608
|
+
exports.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
527
609
|
const ret = Reflect.get(arg0, arg1);
|
|
528
610
|
return ret;
|
|
529
611
|
}, arguments) };
|
|
530
612
|
|
|
531
|
-
exports.
|
|
613
|
+
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
532
614
|
const ret = arg0[arg1];
|
|
533
615
|
return ret;
|
|
534
616
|
};
|
|
535
617
|
|
|
536
|
-
exports.
|
|
618
|
+
exports.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
537
619
|
let result;
|
|
538
620
|
try {
|
|
539
621
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -544,7 +626,7 @@ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
|
|
|
544
626
|
return ret;
|
|
545
627
|
};
|
|
546
628
|
|
|
547
|
-
exports.
|
|
629
|
+
exports.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
548
630
|
let result;
|
|
549
631
|
try {
|
|
550
632
|
result = arg0 instanceof Map;
|
|
@@ -555,7 +637,7 @@ exports.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
|
|
|
555
637
|
return ret;
|
|
556
638
|
};
|
|
557
639
|
|
|
558
|
-
exports.
|
|
640
|
+
exports.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
559
641
|
let result;
|
|
560
642
|
try {
|
|
561
643
|
result = arg0 instanceof Uint8Array;
|
|
@@ -566,137 +648,55 @@ exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
|
|
|
566
648
|
return ret;
|
|
567
649
|
};
|
|
568
650
|
|
|
569
|
-
exports.
|
|
651
|
+
exports.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
570
652
|
const ret = Array.isArray(arg0);
|
|
571
653
|
return ret;
|
|
572
654
|
};
|
|
573
655
|
|
|
574
|
-
exports.
|
|
656
|
+
exports.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
575
657
|
const ret = Number.isSafeInteger(arg0);
|
|
576
658
|
return ret;
|
|
577
659
|
};
|
|
578
660
|
|
|
579
|
-
exports.
|
|
661
|
+
exports.__wbg_iterator_e5822695327a3c39 = function() {
|
|
580
662
|
const ret = Symbol.iterator;
|
|
581
663
|
return ret;
|
|
582
664
|
};
|
|
583
665
|
|
|
584
|
-
exports.
|
|
666
|
+
exports.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
585
667
|
const ret = arg0.length;
|
|
586
668
|
return ret;
|
|
587
669
|
};
|
|
588
670
|
|
|
589
|
-
exports.
|
|
671
|
+
exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
590
672
|
const ret = arg0.length;
|
|
591
673
|
return ret;
|
|
592
674
|
};
|
|
593
675
|
|
|
594
|
-
exports.
|
|
676
|
+
exports.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
595
677
|
const ret = new Uint8Array(arg0);
|
|
596
678
|
return ret;
|
|
597
679
|
};
|
|
598
680
|
|
|
599
|
-
exports.
|
|
600
|
-
const ret = arg0.next;
|
|
601
|
-
return ret;
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
681
|
+
exports.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
605
682
|
const ret = arg0.next();
|
|
606
683
|
return ret;
|
|
607
684
|
}, arguments) };
|
|
608
685
|
|
|
609
|
-
exports.
|
|
610
|
-
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
exports.__wbg_value_dd9372230531eade = function(arg0) {
|
|
614
|
-
const ret = arg0.value;
|
|
615
|
-
return ret;
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
619
|
-
const v = arg1;
|
|
620
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
621
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
622
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
|
|
626
|
-
const v = arg0;
|
|
627
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
628
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
632
|
-
const ret = debugString(arg1);
|
|
633
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
634
|
-
const len1 = WASM_VECTOR_LEN;
|
|
635
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
636
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
637
|
-
};
|
|
638
|
-
|
|
639
|
-
exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
|
|
640
|
-
const ret = arg0 in arg1;
|
|
641
|
-
return ret;
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
|
|
645
|
-
const ret = typeof(arg0) === 'bigint';
|
|
646
|
-
return ret;
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
650
|
-
const ret = typeof(arg0) === 'function';
|
|
651
|
-
return ret;
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
655
|
-
const val = arg0;
|
|
656
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
657
|
-
return ret;
|
|
658
|
-
};
|
|
659
|
-
|
|
660
|
-
exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
661
|
-
const ret = typeof(arg0) === 'string';
|
|
662
|
-
return ret;
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
666
|
-
const ret = arg0 === undefined;
|
|
686
|
+
exports.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
687
|
+
const ret = arg0.next;
|
|
667
688
|
return ret;
|
|
668
689
|
};
|
|
669
690
|
|
|
670
|
-
exports.
|
|
671
|
-
|
|
672
|
-
return ret;
|
|
691
|
+
exports.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
692
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
673
693
|
};
|
|
674
694
|
|
|
675
|
-
exports.
|
|
676
|
-
const ret = arg0
|
|
695
|
+
exports.__wbg_value_692627309814bb8c = function(arg0) {
|
|
696
|
+
const ret = arg0.value;
|
|
677
697
|
return ret;
|
|
678
698
|
};
|
|
679
699
|
|
|
680
|
-
exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
681
|
-
const obj = arg1;
|
|
682
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
683
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
684
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
685
|
-
};
|
|
686
|
-
|
|
687
|
-
exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
688
|
-
const obj = arg1;
|
|
689
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
690
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
691
|
-
var len1 = WASM_VECTOR_LEN;
|
|
692
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
693
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
697
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
698
|
-
};
|
|
699
|
-
|
|
700
700
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
701
701
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
702
702
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -716,7 +716,7 @@ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
|
716
716
|
};
|
|
717
717
|
|
|
718
718
|
exports.__wbindgen_init_externref_table = function() {
|
|
719
|
-
const table = wasm.
|
|
719
|
+
const table = wasm.__wbindgen_externrefs;
|
|
720
720
|
const offset = table.grow(4);
|
|
721
721
|
table.set(0, undefined);
|
|
722
722
|
table.set(offset + 0, undefined);
|
package/pkg/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/index_bg.wasm.d.ts
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_output_free: (a: number, b: number) => void;
|
|
5
|
+
export const codeExtract: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number, number];
|
|
6
|
+
export const exportClassMap: () => [number, number, number, number];
|
|
7
|
+
export const exportFileMap: () => [number, number, number, number];
|
|
8
|
+
export const exportSheet: () => [number, number, number, number];
|
|
9
|
+
export const getCss: (a: number, b: number) => [number, number, number, number];
|
|
10
|
+
export const getDefaultTheme: () => [number, number, number, number];
|
|
11
|
+
export const getThemeInterface: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
12
|
+
export const importClassMap: (a: any) => [number, number];
|
|
13
|
+
export const importFileMap: (a: any) => [number, number];
|
|
14
|
+
export const importSheet: (a: any) => [number, number];
|
|
15
|
+
export const isDebug: () => number;
|
|
5
16
|
export const output_code: (a: number) => [number, number];
|
|
17
|
+
export const output_css: (a: number) => [number, number];
|
|
6
18
|
export const output_cssFile: (a: number) => [number, number];
|
|
7
19
|
export const output_map: (a: number) => [number, number];
|
|
8
20
|
export const output_updatedBaseStyle: (a: number) => number;
|
|
9
|
-
export const output_css: (a: number) => [number, number];
|
|
10
|
-
export const setDebug: (a: number) => void;
|
|
11
|
-
export const isDebug: () => number;
|
|
12
|
-
export const importSheet: (a: any) => [number, number];
|
|
13
|
-
export const exportSheet: () => [number, number, number, number];
|
|
14
|
-
export const importClassMap: (a: any) => [number, number];
|
|
15
|
-
export const exportClassMap: () => [number, number, number, number];
|
|
16
|
-
export const importFileMap: (a: any) => [number, number];
|
|
17
|
-
export const exportFileMap: () => [number, number, number, number];
|
|
18
|
-
export const codeExtract: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => [number, number, number];
|
|
19
21
|
export const registerTheme: (a: any) => [number, number];
|
|
20
|
-
export const
|
|
21
|
-
export const getCss: (a: number, b: number) => [number, number, number, number];
|
|
22
|
-
export const getThemeInterface: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
22
|
+
export const setDebug: (a: number) => void;
|
|
23
23
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
24
24
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
25
25
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
26
26
|
export const __externref_table_alloc: () => number;
|
|
27
|
-
export const
|
|
28
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
27
|
+
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
29
28
|
export const __externref_table_dealloc: (a: number) => void;
|
|
29
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
30
30
|
export const __wbindgen_start: () => void;
|