@loaders.gl/las 4.4.0-alpha.11 → 4.4.0-alpha.12
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/dist/dist.min.js +5 -5
- package/dist/index.cjs +1 -1
- package/dist/las-loader.js +1 -1
- package/dist/las-worker.js +1 -1
- package/package.json +7 -7
- package/dist/libs/libs/laz-perf/laz-perf.ts +0 -20616
- package/dist/libs/libs/laz-rs-wasm/laz_rs_wasm.d.ts +0 -80
- package/dist/libs/libs/laz-rs-wasm/laz_rs_wasm.js +0 -477
- package/dist/libs/libs/laz-rs-wasm/package.json +0 -19
- /package/dist/libs/{libs/laz-rs-wasm → laz-rs-wasm}/laz_rs_wasm_bg.wasm +0 -0
- /package/dist/libs/{libs/laz-rs-wasm → laz-rs-wasm}/laz_rs_wasm_bg.wasm.d.ts +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export class WasmLasZipDecompressor {
|
|
4
|
-
free(): void;
|
|
5
|
-
/**
|
|
6
|
-
* @param {Uint8Array} buf
|
|
7
|
-
*/
|
|
8
|
-
constructor(buf: Uint8Array);
|
|
9
|
-
/**
|
|
10
|
-
* @param {Uint8Array} out
|
|
11
|
-
*/
|
|
12
|
-
decompress_many(out: Uint8Array): void;
|
|
13
|
-
header: WasmQuickHeader;
|
|
14
|
-
}
|
|
15
|
-
export class WasmQuickHeader {
|
|
16
|
-
free(): void;
|
|
17
|
-
header_size: number;
|
|
18
|
-
major: number;
|
|
19
|
-
minor: number;
|
|
20
|
-
num_points: bigint;
|
|
21
|
-
num_vlrs: number;
|
|
22
|
-
offset_to_points: number;
|
|
23
|
-
point_format_id: number;
|
|
24
|
-
point_size: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
28
|
-
|
|
29
|
-
export interface InitOutput {
|
|
30
|
-
readonly memory: WebAssembly.Memory;
|
|
31
|
-
readonly __wbg_wasmquickheader_free: (a: number, b: number) => void;
|
|
32
|
-
readonly __wbg_get_wasmquickheader_major: (a: number) => number;
|
|
33
|
-
readonly __wbg_set_wasmquickheader_major: (a: number, b: number) => void;
|
|
34
|
-
readonly __wbg_get_wasmquickheader_minor: (a: number) => number;
|
|
35
|
-
readonly __wbg_set_wasmquickheader_minor: (a: number, b: number) => void;
|
|
36
|
-
readonly __wbg_get_wasmquickheader_offset_to_points: (a: number) => number;
|
|
37
|
-
readonly __wbg_set_wasmquickheader_offset_to_points: (a: number, b: number) => void;
|
|
38
|
-
readonly __wbg_get_wasmquickheader_num_vlrs: (a: number) => number;
|
|
39
|
-
readonly __wbg_set_wasmquickheader_num_vlrs: (a: number, b: number) => void;
|
|
40
|
-
readonly __wbg_get_wasmquickheader_point_format_id: (a: number) => number;
|
|
41
|
-
readonly __wbg_set_wasmquickheader_point_format_id: (a: number, b: number) => void;
|
|
42
|
-
readonly __wbg_get_wasmquickheader_point_size: (a: number) => number;
|
|
43
|
-
readonly __wbg_set_wasmquickheader_point_size: (a: number, b: number) => void;
|
|
44
|
-
readonly __wbg_get_wasmquickheader_num_points: (a: number) => number;
|
|
45
|
-
readonly __wbg_set_wasmquickheader_num_points: (a: number, b: number) => void;
|
|
46
|
-
readonly __wbg_get_wasmquickheader_header_size: (a: number) => number;
|
|
47
|
-
readonly __wbg_set_wasmquickheader_header_size: (a: number, b: number) => void;
|
|
48
|
-
readonly __wbg_wasmlaszipdecompressor_free: (a: number, b: number) => void;
|
|
49
|
-
readonly __wbg_get_wasmlaszipdecompressor_header: (a: number) => number;
|
|
50
|
-
readonly __wbg_set_wasmlaszipdecompressor_header: (a: number, b: number) => void;
|
|
51
|
-
readonly wasmlaszipdecompressor_new: (a: number) => Array;
|
|
52
|
-
readonly wasmlaszipdecompressor_decompress_many: (a: number, b: number, c: number, d: number) => Array;
|
|
53
|
-
readonly __wbindgen_export_0: WebAssembly.Table;
|
|
54
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
55
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
56
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
57
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
58
|
-
readonly __wbindgen_start: () => void;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
62
|
-
/**
|
|
63
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
64
|
-
* a precompiled `WebAssembly.Module`.
|
|
65
|
-
*
|
|
66
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
67
|
-
*
|
|
68
|
-
* @returns {InitOutput}
|
|
69
|
-
*/
|
|
70
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
74
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
75
|
-
*
|
|
76
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
77
|
-
*
|
|
78
|
-
* @returns {Promise<InitOutput>}
|
|
79
|
-
*/
|
|
80
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// laz_rs_wasm is a compiled version of https://github.com/laz-rs/laz-rs-wasm on 2024-11-22.
|
|
5
|
-
|
|
6
|
-
// To regenerate:
|
|
7
|
-
// ```
|
|
8
|
-
// git clone https://github.com/laz-rs/laz-rs-wasm.git
|
|
9
|
-
// cd laz-rs-wasm
|
|
10
|
-
// cargo build
|
|
11
|
-
// wasm-pack build --target web
|
|
12
|
-
// ```
|
|
13
|
-
// Copy results from `./pkg`
|
|
14
|
-
|
|
15
|
-
let wasm;
|
|
16
|
-
|
|
17
|
-
let cachedUint8ArrayMemory0 = null;
|
|
18
|
-
|
|
19
|
-
function getUint8ArrayMemory0() {
|
|
20
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
21
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
22
|
-
}
|
|
23
|
-
return cachedUint8ArrayMemory0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
27
|
-
ptr = ptr >>> 0;
|
|
28
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
32
|
-
|
|
33
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
34
|
-
|
|
35
|
-
function getStringFromWasm0(ptr, len) {
|
|
36
|
-
ptr = ptr >>> 0;
|
|
37
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _assertClass(instance, klass) {
|
|
41
|
-
if (!(instance instanceof klass)) {
|
|
42
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
43
|
-
}
|
|
44
|
-
return instance.ptr;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function takeFromExternrefTable0(idx) {
|
|
48
|
-
const value = wasm.__wbindgen_export_0.get(idx);
|
|
49
|
-
wasm.__externref_table_dealloc(idx);
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let WASM_VECTOR_LEN = 0;
|
|
54
|
-
|
|
55
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
56
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
57
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
58
|
-
WASM_VECTOR_LEN = arg.length;
|
|
59
|
-
return ptr;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
63
|
-
|
|
64
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
65
|
-
? function (arg, view) {
|
|
66
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
67
|
-
}
|
|
68
|
-
: function (arg, view) {
|
|
69
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
70
|
-
view.set(buf);
|
|
71
|
-
return {
|
|
72
|
-
read: arg.length,
|
|
73
|
-
written: buf.length
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
78
|
-
|
|
79
|
-
if (realloc === undefined) {
|
|
80
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
81
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
82
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
83
|
-
WASM_VECTOR_LEN = buf.length;
|
|
84
|
-
return ptr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let len = arg.length;
|
|
88
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
89
|
-
|
|
90
|
-
const mem = getUint8ArrayMemory0();
|
|
91
|
-
|
|
92
|
-
let offset = 0;
|
|
93
|
-
|
|
94
|
-
for (; offset < len; offset++) {
|
|
95
|
-
const code = arg.charCodeAt(offset);
|
|
96
|
-
if (code > 0x7F) break;
|
|
97
|
-
mem[ptr + offset] = code;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (offset !== len) {
|
|
101
|
-
if (offset !== 0) {
|
|
102
|
-
arg = arg.slice(offset);
|
|
103
|
-
}
|
|
104
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
105
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
106
|
-
const ret = encodeString(arg, view);
|
|
107
|
-
|
|
108
|
-
offset += ret.written;
|
|
109
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
WASM_VECTOR_LEN = offset;
|
|
113
|
-
return ptr;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
let cachedDataViewMemory0 = null;
|
|
117
|
-
|
|
118
|
-
function getDataViewMemory0() {
|
|
119
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
120
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
121
|
-
}
|
|
122
|
-
return cachedDataViewMemory0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const WasmLasZipDecompressorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
126
|
-
? { register: () => {}, unregister: () => {} }
|
|
127
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlaszipdecompressor_free(ptr >>> 0, 1));
|
|
128
|
-
|
|
129
|
-
export class WasmLasZipDecompressor {
|
|
130
|
-
|
|
131
|
-
__destroy_into_raw() {
|
|
132
|
-
const ptr = this.__wbg_ptr;
|
|
133
|
-
this.__wbg_ptr = 0;
|
|
134
|
-
WasmLasZipDecompressorFinalization.unregister(this);
|
|
135
|
-
return ptr;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
free() {
|
|
139
|
-
const ptr = this.__destroy_into_raw();
|
|
140
|
-
wasm.__wbg_wasmlaszipdecompressor_free(ptr, 0);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* @returns {WasmQuickHeader}
|
|
144
|
-
*/
|
|
145
|
-
get header() {
|
|
146
|
-
const ret = wasm.__wbg_get_wasmlaszipdecompressor_header(this.__wbg_ptr);
|
|
147
|
-
return WasmQuickHeader.__wrap(ret);
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @param {WasmQuickHeader} arg0
|
|
151
|
-
*/
|
|
152
|
-
set header(arg0) {
|
|
153
|
-
_assertClass(arg0, WasmQuickHeader);
|
|
154
|
-
var ptr0 = arg0.__destroy_into_raw();
|
|
155
|
-
wasm.__wbg_set_wasmlaszipdecompressor_header(this.__wbg_ptr, ptr0);
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* @param {Uint8Array} buf
|
|
159
|
-
*/
|
|
160
|
-
constructor(buf) {
|
|
161
|
-
const ret = wasm.wasmlaszipdecompressor_new(buf);
|
|
162
|
-
if (ret[2]) {
|
|
163
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
164
|
-
}
|
|
165
|
-
this.__wbg_ptr = ret[0] >>> 0;
|
|
166
|
-
WasmLasZipDecompressorFinalization.register(this, this.__wbg_ptr, this);
|
|
167
|
-
return this;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* @param {Uint8Array} out
|
|
171
|
-
*/
|
|
172
|
-
decompress_many(out) {
|
|
173
|
-
var ptr0 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);
|
|
174
|
-
var len0 = WASM_VECTOR_LEN;
|
|
175
|
-
const ret = wasm.wasmlaszipdecompressor_decompress_many(this.__wbg_ptr, ptr0, len0, out);
|
|
176
|
-
if (ret[1]) {
|
|
177
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const WasmQuickHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
183
|
-
? { register: () => {}, unregister: () => {} }
|
|
184
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmquickheader_free(ptr >>> 0, 1));
|
|
185
|
-
|
|
186
|
-
export class WasmQuickHeader {
|
|
187
|
-
|
|
188
|
-
static __wrap(ptr) {
|
|
189
|
-
ptr = ptr >>> 0;
|
|
190
|
-
const obj = Object.create(WasmQuickHeader.prototype);
|
|
191
|
-
obj.__wbg_ptr = ptr;
|
|
192
|
-
WasmQuickHeaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
193
|
-
return obj;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
__destroy_into_raw() {
|
|
197
|
-
const ptr = this.__wbg_ptr;
|
|
198
|
-
this.__wbg_ptr = 0;
|
|
199
|
-
WasmQuickHeaderFinalization.unregister(this);
|
|
200
|
-
return ptr;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
free() {
|
|
204
|
-
const ptr = this.__destroy_into_raw();
|
|
205
|
-
wasm.__wbg_wasmquickheader_free(ptr, 0);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @returns {number}
|
|
209
|
-
*/
|
|
210
|
-
get major() {
|
|
211
|
-
const ret = wasm.__wbg_get_wasmquickheader_major(this.__wbg_ptr);
|
|
212
|
-
return ret;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @param {number} arg0
|
|
216
|
-
*/
|
|
217
|
-
set major(arg0) {
|
|
218
|
-
wasm.__wbg_set_wasmquickheader_major(this.__wbg_ptr, arg0);
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* @returns {number}
|
|
222
|
-
*/
|
|
223
|
-
get minor() {
|
|
224
|
-
const ret = wasm.__wbg_get_wasmquickheader_minor(this.__wbg_ptr);
|
|
225
|
-
return ret;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* @param {number} arg0
|
|
229
|
-
*/
|
|
230
|
-
set minor(arg0) {
|
|
231
|
-
wasm.__wbg_set_wasmquickheader_minor(this.__wbg_ptr, arg0);
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* @returns {number}
|
|
235
|
-
*/
|
|
236
|
-
get offset_to_points() {
|
|
237
|
-
const ret = wasm.__wbg_get_wasmquickheader_offset_to_points(this.__wbg_ptr);
|
|
238
|
-
return ret >>> 0;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @param {number} arg0
|
|
242
|
-
*/
|
|
243
|
-
set offset_to_points(arg0) {
|
|
244
|
-
wasm.__wbg_set_wasmquickheader_offset_to_points(this.__wbg_ptr, arg0);
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* @returns {number}
|
|
248
|
-
*/
|
|
249
|
-
get num_vlrs() {
|
|
250
|
-
const ret = wasm.__wbg_get_wasmquickheader_num_vlrs(this.__wbg_ptr);
|
|
251
|
-
return ret >>> 0;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* @param {number} arg0
|
|
255
|
-
*/
|
|
256
|
-
set num_vlrs(arg0) {
|
|
257
|
-
wasm.__wbg_set_wasmquickheader_num_vlrs(this.__wbg_ptr, arg0);
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* @returns {number}
|
|
261
|
-
*/
|
|
262
|
-
get point_format_id() {
|
|
263
|
-
const ret = wasm.__wbg_get_wasmquickheader_point_format_id(this.__wbg_ptr);
|
|
264
|
-
return ret;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @param {number} arg0
|
|
268
|
-
*/
|
|
269
|
-
set point_format_id(arg0) {
|
|
270
|
-
wasm.__wbg_set_wasmquickheader_point_format_id(this.__wbg_ptr, arg0);
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* @returns {number}
|
|
274
|
-
*/
|
|
275
|
-
get point_size() {
|
|
276
|
-
const ret = wasm.__wbg_get_wasmquickheader_point_size(this.__wbg_ptr);
|
|
277
|
-
return ret;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* @param {number} arg0
|
|
281
|
-
*/
|
|
282
|
-
set point_size(arg0) {
|
|
283
|
-
wasm.__wbg_set_wasmquickheader_point_size(this.__wbg_ptr, arg0);
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* @returns {bigint}
|
|
287
|
-
*/
|
|
288
|
-
get num_points() {
|
|
289
|
-
const ret = wasm.__wbg_get_wasmquickheader_num_points(this.__wbg_ptr);
|
|
290
|
-
return BigInt.asUintN(64, ret);
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* @param {bigint} arg0
|
|
294
|
-
*/
|
|
295
|
-
set num_points(arg0) {
|
|
296
|
-
wasm.__wbg_set_wasmquickheader_num_points(this.__wbg_ptr, arg0);
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* @returns {number}
|
|
300
|
-
*/
|
|
301
|
-
get header_size() {
|
|
302
|
-
const ret = wasm.__wbg_get_wasmquickheader_header_size(this.__wbg_ptr);
|
|
303
|
-
return ret;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* @param {number} arg0
|
|
307
|
-
*/
|
|
308
|
-
set header_size(arg0) {
|
|
309
|
-
wasm.__wbg_set_wasmquickheader_header_size(this.__wbg_ptr, arg0);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
async function __wbg_load(module, imports) {
|
|
314
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
315
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
316
|
-
try {
|
|
317
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
318
|
-
|
|
319
|
-
} catch (e) {
|
|
320
|
-
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
321
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
322
|
-
|
|
323
|
-
} else {
|
|
324
|
-
throw e;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
const bytes = await module.arrayBuffer();
|
|
330
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
331
|
-
|
|
332
|
-
} else {
|
|
333
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
334
|
-
|
|
335
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
336
|
-
return { instance, module };
|
|
337
|
-
|
|
338
|
-
} else {
|
|
339
|
-
return instance;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
function __wbg_get_imports() {
|
|
345
|
-
const imports = {};
|
|
346
|
-
imports.wbg = {};
|
|
347
|
-
imports.wbg.__wbindgen_copy_to_typed_array = function(arg0, arg1, arg2) {
|
|
348
|
-
new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
|
|
349
|
-
};
|
|
350
|
-
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
|
|
351
|
-
const ret = arg0.buffer;
|
|
352
|
-
return ret;
|
|
353
|
-
};
|
|
354
|
-
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
|
|
355
|
-
const ret = new Uint8Array(arg0);
|
|
356
|
-
return ret;
|
|
357
|
-
};
|
|
358
|
-
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
|
|
359
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
360
|
-
};
|
|
361
|
-
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
|
|
362
|
-
const ret = arg0.length;
|
|
363
|
-
return ret;
|
|
364
|
-
};
|
|
365
|
-
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
366
|
-
const ret = new Error();
|
|
367
|
-
return ret;
|
|
368
|
-
};
|
|
369
|
-
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
370
|
-
const ret = arg1.stack;
|
|
371
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
|
-
const len1 = WASM_VECTOR_LEN;
|
|
373
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
374
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
375
|
-
};
|
|
376
|
-
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
377
|
-
let deferred0_0;
|
|
378
|
-
let deferred0_1;
|
|
379
|
-
try {
|
|
380
|
-
deferred0_0 = arg0;
|
|
381
|
-
deferred0_1 = arg1;
|
|
382
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
383
|
-
} finally {
|
|
384
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
385
|
-
}
|
|
386
|
-
};
|
|
387
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
388
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
389
|
-
};
|
|
390
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
391
|
-
const ret = wasm.memory;
|
|
392
|
-
return ret;
|
|
393
|
-
};
|
|
394
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
395
|
-
const table = wasm.__wbindgen_export_0;
|
|
396
|
-
const offset = table.grow(4);
|
|
397
|
-
table.set(0, undefined);
|
|
398
|
-
table.set(offset + 0, undefined);
|
|
399
|
-
table.set(offset + 1, null);
|
|
400
|
-
table.set(offset + 2, true);
|
|
401
|
-
table.set(offset + 3, false);
|
|
402
|
-
;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
return imports;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
function __wbg_init_memory(imports, memory) {
|
|
409
|
-
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
function __wbg_finalize_init(instance, module) {
|
|
413
|
-
wasm = instance.exports;
|
|
414
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
415
|
-
cachedDataViewMemory0 = null;
|
|
416
|
-
cachedUint8ArrayMemory0 = null;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
wasm.__wbindgen_start();
|
|
420
|
-
return wasm;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function initSync(module) {
|
|
424
|
-
if (wasm !== undefined) return wasm;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (typeof module !== 'undefined') {
|
|
428
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
429
|
-
({module} = module)
|
|
430
|
-
} else {
|
|
431
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
const imports = __wbg_get_imports();
|
|
436
|
-
|
|
437
|
-
__wbg_init_memory(imports);
|
|
438
|
-
|
|
439
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
440
|
-
module = new WebAssembly.Module(module);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
444
|
-
|
|
445
|
-
return __wbg_finalize_init(instance, module);
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
async function __wbg_init(module_or_path) {
|
|
449
|
-
if (wasm !== undefined) return wasm;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
if (typeof module_or_path !== 'undefined') {
|
|
453
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
454
|
-
({module_or_path} = module_or_path)
|
|
455
|
-
} else {
|
|
456
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
if (typeof module_or_path === 'undefined') {
|
|
461
|
-
module_or_path = new URL('laz_rs_wasm_bg.wasm', import.meta.url);
|
|
462
|
-
}
|
|
463
|
-
const imports = __wbg_get_imports();
|
|
464
|
-
|
|
465
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
466
|
-
module_or_path = fetch(module_or_path);
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
__wbg_init_memory(imports);
|
|
470
|
-
|
|
471
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
472
|
-
|
|
473
|
-
return __wbg_finalize_init(instance, module);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
export { initSync };
|
|
477
|
-
export default __wbg_init;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "laz-rs-wasm",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"collaborators": [
|
|
5
|
-
"tmontaigu <thomas.montaigu@laposte.net>",
|
|
6
|
-
"Chris Lee <csl170000@utdallas.edu>"
|
|
7
|
-
],
|
|
8
|
-
"version": "0.1.0",
|
|
9
|
-
"files": [
|
|
10
|
-
"laz_rs_wasm_bg.wasm",
|
|
11
|
-
"laz_rs_wasm.js",
|
|
12
|
-
"laz_rs_wasm.d.ts"
|
|
13
|
-
],
|
|
14
|
-
"main": "laz_rs_wasm.js",
|
|
15
|
-
"types": "laz_rs_wasm.d.ts",
|
|
16
|
-
"sideEffects": [
|
|
17
|
-
"./snippets/*"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|