@devup-ui/wasm 1.0.45 → 1.0.46
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 +7 -7
- package/pkg/index.js +84 -83
- package/pkg/index_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
4
|
-
export function
|
|
3
|
+
export function getCss(file_num: number | null | undefined, import_main_css: boolean): string;
|
|
4
|
+
export function exportSheet(): string;
|
|
5
5
|
export function exportClassMap(): string;
|
|
6
|
+
export function importClassMap(sheet_object: any): void;
|
|
7
|
+
export function importSheet(sheet_object: any): void;
|
|
8
|
+
export function getDefaultTheme(): string | undefined;
|
|
6
9
|
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
10
|
export function exportFileMap(): string;
|
|
8
|
-
export function isDebug(): boolean;
|
|
9
11
|
export function registerTheme(theme_object: any): void;
|
|
10
12
|
export function getThemeInterface(package_name: string, color_interface_name: string, typography_interface_name: string, theme_interface_name: string): string;
|
|
11
|
-
export function
|
|
12
|
-
export function importClassMap(sheet_object: any): void;
|
|
13
|
+
export function isDebug(): boolean;
|
|
13
14
|
export function importFileMap(sheet_object: any): void;
|
|
14
|
-
export function
|
|
15
|
-
export function exportSheet(): string;
|
|
15
|
+
export function setDebug(debug: boolean): void;
|
|
16
16
|
export class Output {
|
|
17
17
|
private constructor();
|
|
18
18
|
free(): void;
|
package/pkg/index.js
CHANGED
|
@@ -175,12 +175,6 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
175
175
|
ptr = ptr >>> 0;
|
|
176
176
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
177
177
|
}
|
|
178
|
-
/**
|
|
179
|
-
* @param {boolean} debug
|
|
180
|
-
*/
|
|
181
|
-
exports.setDebug = function(debug) {
|
|
182
|
-
wasm.setDebug(debug);
|
|
183
|
-
};
|
|
184
178
|
|
|
185
179
|
function takeFromExternrefTable0(idx) {
|
|
186
180
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -188,12 +182,48 @@ function takeFromExternrefTable0(idx) {
|
|
|
188
182
|
return value;
|
|
189
183
|
}
|
|
190
184
|
/**
|
|
191
|
-
* @param {
|
|
185
|
+
* @param {number | null | undefined} file_num
|
|
186
|
+
* @param {boolean} import_main_css
|
|
187
|
+
* @returns {string}
|
|
192
188
|
*/
|
|
193
|
-
exports.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
exports.getCss = function(file_num, import_main_css) {
|
|
190
|
+
let deferred2_0;
|
|
191
|
+
let deferred2_1;
|
|
192
|
+
try {
|
|
193
|
+
const ret = wasm.getCss(isLikeNone(file_num) ? 0x100000001 : (file_num) >>> 0, import_main_css);
|
|
194
|
+
var ptr1 = ret[0];
|
|
195
|
+
var len1 = ret[1];
|
|
196
|
+
if (ret[3]) {
|
|
197
|
+
ptr1 = 0; len1 = 0;
|
|
198
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
199
|
+
}
|
|
200
|
+
deferred2_0 = ptr1;
|
|
201
|
+
deferred2_1 = len1;
|
|
202
|
+
return getStringFromWasm0(ptr1, len1);
|
|
203
|
+
} finally {
|
|
204
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @returns {string}
|
|
210
|
+
*/
|
|
211
|
+
exports.exportSheet = function() {
|
|
212
|
+
let deferred2_0;
|
|
213
|
+
let deferred2_1;
|
|
214
|
+
try {
|
|
215
|
+
const ret = wasm.exportSheet();
|
|
216
|
+
var ptr1 = ret[0];
|
|
217
|
+
var len1 = ret[1];
|
|
218
|
+
if (ret[3]) {
|
|
219
|
+
ptr1 = 0; len1 = 0;
|
|
220
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
221
|
+
}
|
|
222
|
+
deferred2_0 = ptr1;
|
|
223
|
+
deferred2_1 = len1;
|
|
224
|
+
return getStringFromWasm0(ptr1, len1);
|
|
225
|
+
} finally {
|
|
226
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
197
227
|
}
|
|
198
228
|
};
|
|
199
229
|
|
|
@@ -219,6 +249,42 @@ exports.exportClassMap = function() {
|
|
|
219
249
|
}
|
|
220
250
|
};
|
|
221
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @param {any} sheet_object
|
|
254
|
+
*/
|
|
255
|
+
exports.importClassMap = function(sheet_object) {
|
|
256
|
+
const ret = wasm.importClassMap(sheet_object);
|
|
257
|
+
if (ret[1]) {
|
|
258
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @param {any} sheet_object
|
|
264
|
+
*/
|
|
265
|
+
exports.importSheet = function(sheet_object) {
|
|
266
|
+
const ret = wasm.importSheet(sheet_object);
|
|
267
|
+
if (ret[1]) {
|
|
268
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @returns {string | undefined}
|
|
274
|
+
*/
|
|
275
|
+
exports.getDefaultTheme = function() {
|
|
276
|
+
const ret = wasm.getDefaultTheme();
|
|
277
|
+
if (ret[3]) {
|
|
278
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
279
|
+
}
|
|
280
|
+
let v1;
|
|
281
|
+
if (ret[0] !== 0) {
|
|
282
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
283
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
284
|
+
}
|
|
285
|
+
return v1;
|
|
286
|
+
};
|
|
287
|
+
|
|
222
288
|
/**
|
|
223
289
|
* @param {string} filename
|
|
224
290
|
* @param {string} code
|
|
@@ -267,14 +333,6 @@ exports.exportFileMap = function() {
|
|
|
267
333
|
}
|
|
268
334
|
};
|
|
269
335
|
|
|
270
|
-
/**
|
|
271
|
-
* @returns {boolean}
|
|
272
|
-
*/
|
|
273
|
-
exports.isDebug = function() {
|
|
274
|
-
const ret = wasm.isDebug();
|
|
275
|
-
return ret !== 0;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
336
|
/**
|
|
279
337
|
* @param {any} theme_object
|
|
280
338
|
*/
|
|
@@ -314,37 +372,11 @@ exports.getThemeInterface = function(package_name, color_interface_name, typogra
|
|
|
314
372
|
};
|
|
315
373
|
|
|
316
374
|
/**
|
|
317
|
-
* @
|
|
318
|
-
* @param {boolean} import_main_css
|
|
319
|
-
* @returns {string}
|
|
320
|
-
*/
|
|
321
|
-
exports.getCss = function(file_num, import_main_css) {
|
|
322
|
-
let deferred2_0;
|
|
323
|
-
let deferred2_1;
|
|
324
|
-
try {
|
|
325
|
-
const ret = wasm.getCss(isLikeNone(file_num) ? 0x100000001 : (file_num) >>> 0, import_main_css);
|
|
326
|
-
var ptr1 = ret[0];
|
|
327
|
-
var len1 = ret[1];
|
|
328
|
-
if (ret[3]) {
|
|
329
|
-
ptr1 = 0; len1 = 0;
|
|
330
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
331
|
-
}
|
|
332
|
-
deferred2_0 = ptr1;
|
|
333
|
-
deferred2_1 = len1;
|
|
334
|
-
return getStringFromWasm0(ptr1, len1);
|
|
335
|
-
} finally {
|
|
336
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @param {any} sheet_object
|
|
375
|
+
* @returns {boolean}
|
|
342
376
|
*/
|
|
343
|
-
exports.
|
|
344
|
-
const ret = wasm.
|
|
345
|
-
|
|
346
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
347
|
-
}
|
|
377
|
+
exports.isDebug = function() {
|
|
378
|
+
const ret = wasm.isDebug();
|
|
379
|
+
return ret !== 0;
|
|
348
380
|
};
|
|
349
381
|
|
|
350
382
|
/**
|
|
@@ -358,41 +390,10 @@ exports.importFileMap = function(sheet_object) {
|
|
|
358
390
|
};
|
|
359
391
|
|
|
360
392
|
/**
|
|
361
|
-
* @
|
|
362
|
-
*/
|
|
363
|
-
exports.getDefaultTheme = function() {
|
|
364
|
-
const ret = wasm.getDefaultTheme();
|
|
365
|
-
if (ret[3]) {
|
|
366
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
367
|
-
}
|
|
368
|
-
let v1;
|
|
369
|
-
if (ret[0] !== 0) {
|
|
370
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
371
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
372
|
-
}
|
|
373
|
-
return v1;
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* @returns {string}
|
|
393
|
+
* @param {boolean} debug
|
|
378
394
|
*/
|
|
379
|
-
exports.
|
|
380
|
-
|
|
381
|
-
let deferred2_1;
|
|
382
|
-
try {
|
|
383
|
-
const ret = wasm.exportSheet();
|
|
384
|
-
var ptr1 = ret[0];
|
|
385
|
-
var len1 = ret[1];
|
|
386
|
-
if (ret[3]) {
|
|
387
|
-
ptr1 = 0; len1 = 0;
|
|
388
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
389
|
-
}
|
|
390
|
-
deferred2_0 = ptr1;
|
|
391
|
-
deferred2_1 = len1;
|
|
392
|
-
return getStringFromWasm0(ptr1, len1);
|
|
393
|
-
} finally {
|
|
394
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
395
|
-
}
|
|
395
|
+
exports.setDebug = function(debug) {
|
|
396
|
+
wasm.setDebug(debug);
|
|
396
397
|
};
|
|
397
398
|
|
|
398
399
|
const OutputFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/index_bg.wasm
CHANGED
|
Binary file
|