@kerebron/odt-wasm 0.3.2 → 0.4.1
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/lib/rs_lib.d.ts +2 -2
- package/lib/rs_lib.internal.js +17 -17
- package/lib/rs_lib.wasm +0 -0
- package/package.json +1 -1
package/lib/rs_lib.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// deno-fmt-ignore-file
|
|
4
4
|
|
|
5
5
|
export function echo(zip_data: Uint8Array): Uint8Array;
|
|
6
|
+
export function add(a: number, b: number): number;
|
|
7
|
+
export function parse_styles(xml_bytes: Uint8Array): any;
|
|
6
8
|
export function unzip(zip_data: Uint8Array): any;
|
|
7
9
|
export function parse_content(xml_bytes: Uint8Array): any;
|
|
8
|
-
export function parse_styles(xml_bytes: Uint8Array): any;
|
|
9
|
-
export function add(a: number, b: number): number;
|
|
10
10
|
export class Greeter {
|
|
11
11
|
free(): void;
|
|
12
12
|
constructor(name: string);
|
package/lib/rs_lib.internal.js
CHANGED
|
@@ -200,13 +200,12 @@ export function echo(zip_data) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
|
-
* @param {
|
|
204
|
-
* @
|
|
203
|
+
* @param {number} a
|
|
204
|
+
* @param {number} b
|
|
205
|
+
* @returns {number}
|
|
205
206
|
*/
|
|
206
|
-
export function
|
|
207
|
-
const
|
|
208
|
-
const len0 = WASM_VECTOR_LEN;
|
|
209
|
-
const ret = wasm.unzip(ptr0, len0);
|
|
207
|
+
export function add(a, b) {
|
|
208
|
+
const ret = wasm.add(a, b);
|
|
210
209
|
return ret;
|
|
211
210
|
}
|
|
212
211
|
|
|
@@ -214,31 +213,32 @@ export function unzip(zip_data) {
|
|
|
214
213
|
* @param {Uint8Array} xml_bytes
|
|
215
214
|
* @returns {any}
|
|
216
215
|
*/
|
|
217
|
-
export function
|
|
216
|
+
export function parse_styles(xml_bytes) {
|
|
218
217
|
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
219
218
|
const len0 = WASM_VECTOR_LEN;
|
|
220
|
-
const ret = wasm.
|
|
219
|
+
const ret = wasm.parse_styles(ptr0, len0);
|
|
221
220
|
return ret;
|
|
222
221
|
}
|
|
223
222
|
|
|
224
223
|
/**
|
|
225
|
-
* @param {Uint8Array}
|
|
224
|
+
* @param {Uint8Array} zip_data
|
|
226
225
|
* @returns {any}
|
|
227
226
|
*/
|
|
228
|
-
export function
|
|
229
|
-
const ptr0 = passArray8ToWasm0(
|
|
227
|
+
export function unzip(zip_data) {
|
|
228
|
+
const ptr0 = passArray8ToWasm0(zip_data, wasm.__wbindgen_malloc);
|
|
230
229
|
const len0 = WASM_VECTOR_LEN;
|
|
231
|
-
const ret = wasm.
|
|
230
|
+
const ret = wasm.unzip(ptr0, len0);
|
|
232
231
|
return ret;
|
|
233
232
|
}
|
|
234
233
|
|
|
235
234
|
/**
|
|
236
|
-
* @param {
|
|
237
|
-
* @
|
|
238
|
-
* @returns {number}
|
|
235
|
+
* @param {Uint8Array} xml_bytes
|
|
236
|
+
* @returns {any}
|
|
239
237
|
*/
|
|
240
|
-
export function
|
|
241
|
-
const
|
|
238
|
+
export function parse_content(xml_bytes) {
|
|
239
|
+
const ptr0 = passArray8ToWasm0(xml_bytes, wasm.__wbindgen_malloc);
|
|
240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
241
|
+
const ret = wasm.parse_content(ptr0, len0);
|
|
242
242
|
return ret;
|
|
243
243
|
}
|
|
244
244
|
|
package/lib/rs_lib.wasm
CHANGED
|
Binary file
|