@vizejs/wasm 0.134.0 → 0.137.0
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/vize_vitrine.d.ts +6 -0
- package/vize_vitrine.js +29 -0
- package/vize_vitrine_bg.wasm +0 -0
package/package.json
CHANGED
package/vize_vitrine.d.ts
CHANGED
|
@@ -57,6 +57,10 @@ export function analyzeSfc(source: string, options: any): any;
|
|
|
57
57
|
*/
|
|
58
58
|
export function artToCsf(source: string, options: any): any;
|
|
59
59
|
|
|
60
|
+
export function buildInspectorDiff(left: string, right: string): any;
|
|
61
|
+
|
|
62
|
+
export function buildInspectorGraph(files: any): any;
|
|
63
|
+
|
|
60
64
|
/**
|
|
61
65
|
* Compile template to VDom (free function)
|
|
62
66
|
*/
|
|
@@ -173,6 +177,8 @@ export interface InitOutput {
|
|
|
173
177
|
readonly analyzeCrossFile: (a: any, b: any) => [number, number, number];
|
|
174
178
|
readonly analyzeSfc: (a: number, b: number, c: any) => [number, number, number];
|
|
175
179
|
readonly artToCsf: (a: number, b: number, c: any) => [number, number, number];
|
|
180
|
+
readonly buildInspectorDiff: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
181
|
+
readonly buildInspectorGraph: (a: any) => [number, number, number];
|
|
176
182
|
readonly compile: (a: number, b: number, c: any) => [number, number, number];
|
|
177
183
|
readonly compileCss: (a: number, b: number, c: any) => [number, number, number];
|
|
178
184
|
readonly compileSfc: (a: number, b: number, c: any) => [number, number, number];
|
package/vize_vitrine.js
CHANGED
|
@@ -187,6 +187,35 @@ export function artToCsf(source, options) {
|
|
|
187
187
|
return takeFromExternrefTable0(ret[0]);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
/**
|
|
191
|
+
* @param {string} left
|
|
192
|
+
* @param {string} right
|
|
193
|
+
* @returns {any}
|
|
194
|
+
*/
|
|
195
|
+
export function buildInspectorDiff(left, right) {
|
|
196
|
+
const ptr0 = passStringToWasm0(left, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
+
const len0 = WASM_VECTOR_LEN;
|
|
198
|
+
const ptr1 = passStringToWasm0(right, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
199
|
+
const len1 = WASM_VECTOR_LEN;
|
|
200
|
+
const ret = wasm.buildInspectorDiff(ptr0, len0, ptr1, len1);
|
|
201
|
+
if (ret[2]) {
|
|
202
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
203
|
+
}
|
|
204
|
+
return takeFromExternrefTable0(ret[0]);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @param {any} files
|
|
209
|
+
* @returns {any}
|
|
210
|
+
*/
|
|
211
|
+
export function buildInspectorGraph(files) {
|
|
212
|
+
const ret = wasm.buildInspectorGraph(files);
|
|
213
|
+
if (ret[2]) {
|
|
214
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
215
|
+
}
|
|
216
|
+
return takeFromExternrefTable0(ret[0]);
|
|
217
|
+
}
|
|
218
|
+
|
|
190
219
|
/**
|
|
191
220
|
* Compile template to VDom (free function)
|
|
192
221
|
* @param {string} template
|
package/vize_vitrine_bg.wasm
CHANGED
|
Binary file
|