@databio/gtars 0.5.1 → 0.5.2
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/gtars_js.d.ts +51 -2
- package/gtars_js.js +317 -133
- package/gtars_js_bg.wasm +0 -0
- package/package.json +6 -2
package/gtars_js.d.ts
CHANGED
|
@@ -1,14 +1,45 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function greet(name: string): void;
|
|
4
|
+
export class ChromosomeStatistics {
|
|
5
|
+
private constructor();
|
|
6
|
+
free(): void;
|
|
7
|
+
[Symbol.dispose](): void;
|
|
8
|
+
readonly chromosome: string;
|
|
9
|
+
readonly start_nucleotide_position: number;
|
|
10
|
+
readonly end_nucleotide_position: number;
|
|
11
|
+
readonly number_of_regions: number;
|
|
12
|
+
readonly minimum_region_length: number;
|
|
13
|
+
readonly maximum_region_length: number;
|
|
14
|
+
readonly mean_region_length: number;
|
|
15
|
+
readonly median_region_length: number;
|
|
16
|
+
}
|
|
4
17
|
export class Overlapper {
|
|
5
18
|
free(): void;
|
|
19
|
+
[Symbol.dispose](): void;
|
|
6
20
|
constructor(universe: any, backend: string);
|
|
7
21
|
get_backend(): string;
|
|
8
22
|
find(regions: any): any;
|
|
9
23
|
}
|
|
24
|
+
export class RegionDistribution {
|
|
25
|
+
private constructor();
|
|
26
|
+
free(): void;
|
|
27
|
+
[Symbol.dispose](): void;
|
|
28
|
+
}
|
|
29
|
+
export class RegionSet {
|
|
30
|
+
free(): void;
|
|
31
|
+
[Symbol.dispose](): void;
|
|
32
|
+
constructor(regions: any);
|
|
33
|
+
chromosomeStatistics(): any;
|
|
34
|
+
regionDistribution(n_bins: number): any;
|
|
35
|
+
readonly numberOfRegions: number;
|
|
36
|
+
readonly meanRegionWidth: number;
|
|
37
|
+
readonly nucleotidesLength: number;
|
|
38
|
+
readonly identifier: string;
|
|
39
|
+
}
|
|
10
40
|
export class Tokenizer {
|
|
11
41
|
free(): void;
|
|
42
|
+
[Symbol.dispose](): void;
|
|
12
43
|
constructor(universe: any, backend: string);
|
|
13
44
|
tokenize(regions: any): any;
|
|
14
45
|
encode(tokens: any): any;
|
|
@@ -60,16 +91,34 @@ export interface InitOutput {
|
|
|
60
91
|
readonly tokenizer_getVocab: (a: number) => [number, number, number];
|
|
61
92
|
readonly tokenizer_length: (a: number) => number;
|
|
62
93
|
readonly tokenizer_vocabSize: (a: number) => number;
|
|
63
|
-
readonly
|
|
94
|
+
readonly __wbg_chromosomestatistics_free: (a: number, b: number) => void;
|
|
95
|
+
readonly chromosomestatistics_chromosome: (a: number) => [number, number];
|
|
96
|
+
readonly chromosomestatistics_start_nucleotide_position: (a: number) => number;
|
|
97
|
+
readonly chromosomestatistics_end_nucleotide_position: (a: number) => number;
|
|
98
|
+
readonly chromosomestatistics_number_of_regions: (a: number) => number;
|
|
99
|
+
readonly chromosomestatistics_minimum_region_length: (a: number) => number;
|
|
100
|
+
readonly chromosomestatistics_maximum_region_length: (a: number) => number;
|
|
101
|
+
readonly chromosomestatistics_mean_region_length: (a: number) => number;
|
|
102
|
+
readonly chromosomestatistics_median_region_length: (a: number) => number;
|
|
103
|
+
readonly __wbg_regiondistribution_free: (a: number, b: number) => void;
|
|
104
|
+
readonly __wbg_regionset_free: (a: number, b: number) => void;
|
|
105
|
+
readonly regionset_new: (a: any) => [number, number, number];
|
|
106
|
+
readonly regionset_numberOfRegions: (a: number) => number;
|
|
107
|
+
readonly regionset_meanRegionWidth: (a: number) => number;
|
|
108
|
+
readonly regionset_nucleotidesLength: (a: number) => number;
|
|
109
|
+
readonly regionset_identifier: (a: number) => [number, number];
|
|
110
|
+
readonly regionset_chromosomeStatistics: (a: number) => [number, number, number];
|
|
111
|
+
readonly regionset_regionDistribution: (a: number, b: number) => [number, number, number];
|
|
64
112
|
readonly __wbg_overlapper_free: (a: number, b: number) => void;
|
|
65
113
|
readonly overlapper_new: (a: any, b: number, c: number) => [number, number, number];
|
|
66
114
|
readonly overlapper_get_backend: (a: number) => [number, number];
|
|
67
115
|
readonly overlapper_find: (a: number, b: any) => [number, number, number];
|
|
116
|
+
readonly greet: (a: number, b: number) => void;
|
|
68
117
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
69
118
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
70
119
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
71
120
|
readonly __externref_table_alloc: () => number;
|
|
72
|
-
readonly
|
|
121
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
73
122
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
74
123
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
75
124
|
readonly __wbindgen_start: () => void;
|
package/gtars_js.js
CHANGED
|
@@ -9,16 +9,16 @@ function getUint8ArrayMemory0() {
|
|
|
9
9
|
return cachedUint8ArrayMemory0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
let cachedTextDecoder =
|
|
12
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cachedTextDecoder.decode();
|
|
15
15
|
|
|
16
16
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
17
|
let numBytesDecoded = 0;
|
|
18
18
|
function decodeText(ptr, len) {
|
|
19
19
|
numBytesDecoded += len;
|
|
20
20
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder =
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
22
|
cachedTextDecoder.decode();
|
|
23
23
|
numBytesDecoded = len;
|
|
24
24
|
}
|
|
@@ -32,20 +32,18 @@ function getStringFromWasm0(ptr, len) {
|
|
|
32
32
|
|
|
33
33
|
let WASM_VECTOR_LEN = 0;
|
|
34
34
|
|
|
35
|
-
const cachedTextEncoder =
|
|
35
|
+
const cachedTextEncoder = new TextEncoder();
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
38
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
39
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
40
|
+
view.set(buf);
|
|
41
|
+
return {
|
|
42
|
+
read: arg.length,
|
|
43
|
+
written: buf.length
|
|
44
|
+
};
|
|
45
|
+
}
|
|
40
46
|
}
|
|
41
|
-
: function (arg, view) {
|
|
42
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
43
|
-
view.set(buf);
|
|
44
|
-
return {
|
|
45
|
-
read: arg.length,
|
|
46
|
-
written: buf.length
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
47
|
|
|
50
48
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
51
49
|
|
|
@@ -76,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
76
74
|
}
|
|
77
75
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
78
76
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
79
|
-
const ret =
|
|
77
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
80
78
|
|
|
81
79
|
offset += ret.written;
|
|
82
80
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -95,19 +93,8 @@ function getDataViewMemory0() {
|
|
|
95
93
|
return cachedDataViewMemory0;
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
wasm.__wbindgen_export_4.set(idx, obj);
|
|
101
|
-
return idx;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function handleError(f, args) {
|
|
105
|
-
try {
|
|
106
|
-
return f.apply(this, args);
|
|
107
|
-
} catch (e) {
|
|
108
|
-
const idx = addToExternrefTable0(e);
|
|
109
|
-
wasm.__wbindgen_exn_store(idx);
|
|
110
|
-
}
|
|
96
|
+
function isLikeNone(x) {
|
|
97
|
+
return x === undefined || x === null;
|
|
111
98
|
}
|
|
112
99
|
|
|
113
100
|
function debugString(val) {
|
|
@@ -175,12 +162,28 @@ function debugString(val) {
|
|
|
175
162
|
return className;
|
|
176
163
|
}
|
|
177
164
|
|
|
178
|
-
function
|
|
179
|
-
|
|
165
|
+
function addToExternrefTable0(obj) {
|
|
166
|
+
const idx = wasm.__externref_table_alloc();
|
|
167
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
168
|
+
return idx;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function handleError(f, args) {
|
|
172
|
+
try {
|
|
173
|
+
return f.apply(this, args);
|
|
174
|
+
} catch (e) {
|
|
175
|
+
const idx = addToExternrefTable0(e);
|
|
176
|
+
wasm.__wbindgen_exn_store(idx);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
181
|
+
ptr = ptr >>> 0;
|
|
182
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
180
183
|
}
|
|
181
184
|
|
|
182
185
|
function takeFromExternrefTable0(idx) {
|
|
183
|
-
const value = wasm.
|
|
186
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
184
187
|
wasm.__externref_table_dealloc(idx);
|
|
185
188
|
return value;
|
|
186
189
|
}
|
|
@@ -193,6 +196,90 @@ export function greet(name) {
|
|
|
193
196
|
wasm.greet(ptr0, len0);
|
|
194
197
|
}
|
|
195
198
|
|
|
199
|
+
const ChromosomeStatisticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
200
|
+
? { register: () => {}, unregister: () => {} }
|
|
201
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_chromosomestatistics_free(ptr >>> 0, 1));
|
|
202
|
+
|
|
203
|
+
export class ChromosomeStatistics {
|
|
204
|
+
|
|
205
|
+
__destroy_into_raw() {
|
|
206
|
+
const ptr = this.__wbg_ptr;
|
|
207
|
+
this.__wbg_ptr = 0;
|
|
208
|
+
ChromosomeStatisticsFinalization.unregister(this);
|
|
209
|
+
return ptr;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
free() {
|
|
213
|
+
const ptr = this.__destroy_into_raw();
|
|
214
|
+
wasm.__wbg_chromosomestatistics_free(ptr, 0);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @returns {string}
|
|
218
|
+
*/
|
|
219
|
+
get chromosome() {
|
|
220
|
+
let deferred1_0;
|
|
221
|
+
let deferred1_1;
|
|
222
|
+
try {
|
|
223
|
+
const ret = wasm.chromosomestatistics_chromosome(this.__wbg_ptr);
|
|
224
|
+
deferred1_0 = ret[0];
|
|
225
|
+
deferred1_1 = ret[1];
|
|
226
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
227
|
+
} finally {
|
|
228
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @returns {number}
|
|
233
|
+
*/
|
|
234
|
+
get start_nucleotide_position() {
|
|
235
|
+
const ret = wasm.chromosomestatistics_start_nucleotide_position(this.__wbg_ptr);
|
|
236
|
+
return ret >>> 0;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @returns {number}
|
|
240
|
+
*/
|
|
241
|
+
get end_nucleotide_position() {
|
|
242
|
+
const ret = wasm.chromosomestatistics_end_nucleotide_position(this.__wbg_ptr);
|
|
243
|
+
return ret >>> 0;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* @returns {number}
|
|
247
|
+
*/
|
|
248
|
+
get number_of_regions() {
|
|
249
|
+
const ret = wasm.chromosomestatistics_number_of_regions(this.__wbg_ptr);
|
|
250
|
+
return ret >>> 0;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @returns {number}
|
|
254
|
+
*/
|
|
255
|
+
get minimum_region_length() {
|
|
256
|
+
const ret = wasm.chromosomestatistics_minimum_region_length(this.__wbg_ptr);
|
|
257
|
+
return ret >>> 0;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @returns {number}
|
|
261
|
+
*/
|
|
262
|
+
get maximum_region_length() {
|
|
263
|
+
const ret = wasm.chromosomestatistics_maximum_region_length(this.__wbg_ptr);
|
|
264
|
+
return ret >>> 0;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @returns {number}
|
|
268
|
+
*/
|
|
269
|
+
get mean_region_length() {
|
|
270
|
+
const ret = wasm.chromosomestatistics_mean_region_length(this.__wbg_ptr);
|
|
271
|
+
return ret;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* @returns {number}
|
|
275
|
+
*/
|
|
276
|
+
get median_region_length() {
|
|
277
|
+
const ret = wasm.chromosomestatistics_median_region_length(this.__wbg_ptr);
|
|
278
|
+
return ret;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (Symbol.dispose) ChromosomeStatistics.prototype[Symbol.dispose] = ChromosomeStatistics.prototype.free;
|
|
282
|
+
|
|
196
283
|
const OverlapperFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
197
284
|
? { register: () => {}, unregister: () => {} }
|
|
198
285
|
: new FinalizationRegistry(ptr => wasm.__wbg_overlapper_free(ptr >>> 0, 1));
|
|
@@ -252,6 +339,116 @@ export class Overlapper {
|
|
|
252
339
|
return takeFromExternrefTable0(ret[0]);
|
|
253
340
|
}
|
|
254
341
|
}
|
|
342
|
+
if (Symbol.dispose) Overlapper.prototype[Symbol.dispose] = Overlapper.prototype.free;
|
|
343
|
+
|
|
344
|
+
const RegionDistributionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
345
|
+
? { register: () => {}, unregister: () => {} }
|
|
346
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_regiondistribution_free(ptr >>> 0, 1));
|
|
347
|
+
|
|
348
|
+
export class RegionDistribution {
|
|
349
|
+
|
|
350
|
+
__destroy_into_raw() {
|
|
351
|
+
const ptr = this.__wbg_ptr;
|
|
352
|
+
this.__wbg_ptr = 0;
|
|
353
|
+
RegionDistributionFinalization.unregister(this);
|
|
354
|
+
return ptr;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
free() {
|
|
358
|
+
const ptr = this.__destroy_into_raw();
|
|
359
|
+
wasm.__wbg_regiondistribution_free(ptr, 0);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if (Symbol.dispose) RegionDistribution.prototype[Symbol.dispose] = RegionDistribution.prototype.free;
|
|
363
|
+
|
|
364
|
+
const RegionSetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
365
|
+
? { register: () => {}, unregister: () => {} }
|
|
366
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_regionset_free(ptr >>> 0, 1));
|
|
367
|
+
|
|
368
|
+
export class RegionSet {
|
|
369
|
+
|
|
370
|
+
__destroy_into_raw() {
|
|
371
|
+
const ptr = this.__wbg_ptr;
|
|
372
|
+
this.__wbg_ptr = 0;
|
|
373
|
+
RegionSetFinalization.unregister(this);
|
|
374
|
+
return ptr;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
free() {
|
|
378
|
+
const ptr = this.__destroy_into_raw();
|
|
379
|
+
wasm.__wbg_regionset_free(ptr, 0);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param {any} regions
|
|
383
|
+
*/
|
|
384
|
+
constructor(regions) {
|
|
385
|
+
const ret = wasm.regionset_new(regions);
|
|
386
|
+
if (ret[2]) {
|
|
387
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
388
|
+
}
|
|
389
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
390
|
+
RegionSetFinalization.register(this, this.__wbg_ptr, this);
|
|
391
|
+
return this;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @returns {number}
|
|
395
|
+
*/
|
|
396
|
+
get numberOfRegions() {
|
|
397
|
+
const ret = wasm.regionset_numberOfRegions(this.__wbg_ptr);
|
|
398
|
+
return ret;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @returns {number}
|
|
402
|
+
*/
|
|
403
|
+
get meanRegionWidth() {
|
|
404
|
+
const ret = wasm.regionset_meanRegionWidth(this.__wbg_ptr);
|
|
405
|
+
return ret;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @returns {number}
|
|
409
|
+
*/
|
|
410
|
+
get nucleotidesLength() {
|
|
411
|
+
const ret = wasm.regionset_nucleotidesLength(this.__wbg_ptr);
|
|
412
|
+
return ret;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* @returns {string}
|
|
416
|
+
*/
|
|
417
|
+
get identifier() {
|
|
418
|
+
let deferred1_0;
|
|
419
|
+
let deferred1_1;
|
|
420
|
+
try {
|
|
421
|
+
const ret = wasm.regionset_identifier(this.__wbg_ptr);
|
|
422
|
+
deferred1_0 = ret[0];
|
|
423
|
+
deferred1_1 = ret[1];
|
|
424
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
425
|
+
} finally {
|
|
426
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* @returns {any}
|
|
431
|
+
*/
|
|
432
|
+
chromosomeStatistics() {
|
|
433
|
+
const ret = wasm.regionset_chromosomeStatistics(this.__wbg_ptr);
|
|
434
|
+
if (ret[2]) {
|
|
435
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
436
|
+
}
|
|
437
|
+
return takeFromExternrefTable0(ret[0]);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* @param {number} n_bins
|
|
441
|
+
* @returns {any}
|
|
442
|
+
*/
|
|
443
|
+
regionDistribution(n_bins) {
|
|
444
|
+
const ret = wasm.regionset_regionDistribution(this.__wbg_ptr, n_bins);
|
|
445
|
+
if (ret[2]) {
|
|
446
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
447
|
+
}
|
|
448
|
+
return takeFromExternrefTable0(ret[0]);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (Symbol.dispose) RegionSet.prototype[Symbol.dispose] = RegionSet.prototype.free;
|
|
255
452
|
|
|
256
453
|
const TokenizerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
257
454
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -507,6 +704,7 @@ export class Tokenizer {
|
|
|
507
704
|
return ret >>> 0;
|
|
508
705
|
}
|
|
509
706
|
}
|
|
707
|
+
if (Symbol.dispose) Tokenizer.prototype[Symbol.dispose] = Tokenizer.prototype.free;
|
|
510
708
|
|
|
511
709
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
512
710
|
|
|
@@ -546,7 +744,7 @@ async function __wbg_load(module, imports) {
|
|
|
546
744
|
function __wbg_get_imports() {
|
|
547
745
|
const imports = {};
|
|
548
746
|
imports.wbg = {};
|
|
549
|
-
imports.wbg.
|
|
747
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
550
748
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
551
749
|
return ret;
|
|
552
750
|
};
|
|
@@ -557,30 +755,72 @@ function __wbg_get_imports() {
|
|
|
557
755
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
558
756
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
559
757
|
};
|
|
560
|
-
imports.wbg.
|
|
561
|
-
|
|
758
|
+
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
759
|
+
const v = arg0;
|
|
760
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
761
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
762
|
+
};
|
|
763
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
764
|
+
const ret = debugString(arg1);
|
|
765
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
766
|
+
const len1 = WASM_VECTOR_LEN;
|
|
767
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
768
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
562
769
|
};
|
|
563
|
-
imports.wbg.
|
|
564
|
-
const ret = arg0
|
|
770
|
+
imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
771
|
+
const ret = typeof(arg0) === 'function';
|
|
772
|
+
return ret;
|
|
773
|
+
};
|
|
774
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
775
|
+
const val = arg0;
|
|
776
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
565
777
|
return ret;
|
|
566
778
|
};
|
|
567
|
-
imports.wbg.
|
|
779
|
+
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
780
|
+
const ret = typeof(arg0) === 'string';
|
|
781
|
+
return ret;
|
|
782
|
+
};
|
|
783
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
784
|
+
const ret = arg0 == arg1;
|
|
785
|
+
return ret;
|
|
786
|
+
};
|
|
787
|
+
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
788
|
+
const obj = arg1;
|
|
789
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
790
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
791
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
792
|
+
};
|
|
793
|
+
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
794
|
+
const obj = arg1;
|
|
795
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
796
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
797
|
+
var len1 = WASM_VECTOR_LEN;
|
|
798
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
799
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
800
|
+
};
|
|
801
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
802
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
803
|
+
};
|
|
804
|
+
imports.wbg.__wbg_alert_bc6302c5a36a6d7f = function(arg0, arg1) {
|
|
805
|
+
alert(getStringFromWasm0(arg0, arg1));
|
|
806
|
+
};
|
|
807
|
+
imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
568
808
|
const ret = arg0.call(arg1);
|
|
569
809
|
return ret;
|
|
570
810
|
}, arguments) };
|
|
571
|
-
imports.wbg.
|
|
811
|
+
imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
572
812
|
const ret = arg0.done;
|
|
573
813
|
return ret;
|
|
574
814
|
};
|
|
575
|
-
imports.wbg.
|
|
576
|
-
const ret = Reflect.get(arg0, arg1);
|
|
577
|
-
return ret;
|
|
578
|
-
}, arguments) };
|
|
579
|
-
imports.wbg.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
|
|
815
|
+
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
580
816
|
const ret = arg0[arg1 >>> 0];
|
|
581
817
|
return ret;
|
|
582
818
|
};
|
|
583
|
-
imports.wbg.
|
|
819
|
+
imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
820
|
+
const ret = Reflect.get(arg0, arg1);
|
|
821
|
+
return ret;
|
|
822
|
+
}, arguments) };
|
|
823
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
584
824
|
let result;
|
|
585
825
|
try {
|
|
586
826
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -590,7 +830,7 @@ function __wbg_get_imports() {
|
|
|
590
830
|
const ret = result;
|
|
591
831
|
return ret;
|
|
592
832
|
};
|
|
593
|
-
imports.wbg.
|
|
833
|
+
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
594
834
|
let result;
|
|
595
835
|
try {
|
|
596
836
|
result = arg0 instanceof Uint8Array;
|
|
@@ -600,81 +840,79 @@ function __wbg_get_imports() {
|
|
|
600
840
|
const ret = result;
|
|
601
841
|
return ret;
|
|
602
842
|
};
|
|
603
|
-
imports.wbg.
|
|
843
|
+
imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
604
844
|
const ret = Array.isArray(arg0);
|
|
605
845
|
return ret;
|
|
606
846
|
};
|
|
607
|
-
imports.wbg.
|
|
847
|
+
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
608
848
|
const ret = Number.isSafeInteger(arg0);
|
|
609
849
|
return ret;
|
|
610
850
|
};
|
|
611
|
-
imports.wbg.
|
|
851
|
+
imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
|
|
612
852
|
const ret = Symbol.iterator;
|
|
613
853
|
return ret;
|
|
614
854
|
};
|
|
615
|
-
imports.wbg.
|
|
855
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
616
856
|
const ret = arg0.length;
|
|
617
857
|
return ret;
|
|
618
858
|
};
|
|
619
|
-
imports.wbg.
|
|
859
|
+
imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
620
860
|
const ret = arg0.length;
|
|
621
861
|
return ret;
|
|
622
862
|
};
|
|
623
|
-
imports.wbg.
|
|
863
|
+
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
624
864
|
const ret = new Object();
|
|
625
865
|
return ret;
|
|
626
866
|
};
|
|
627
|
-
imports.wbg.
|
|
628
|
-
const ret = new
|
|
867
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
868
|
+
const ret = new Uint8Array(arg0);
|
|
629
869
|
return ret;
|
|
630
870
|
};
|
|
631
|
-
imports.wbg.
|
|
871
|
+
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
632
872
|
const ret = new Map();
|
|
633
873
|
return ret;
|
|
634
874
|
};
|
|
635
|
-
imports.wbg.
|
|
636
|
-
const ret = new
|
|
637
|
-
return ret;
|
|
638
|
-
};
|
|
639
|
-
imports.wbg.__wbg_next_8bb824d217961b5d = function(arg0) {
|
|
640
|
-
const ret = arg0.next;
|
|
875
|
+
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
876
|
+
const ret = new Array();
|
|
641
877
|
return ret;
|
|
642
878
|
};
|
|
643
|
-
imports.wbg.
|
|
879
|
+
imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
644
880
|
const ret = arg0.next();
|
|
645
881
|
return ret;
|
|
646
882
|
}, arguments) };
|
|
883
|
+
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
884
|
+
const ret = arg0.next;
|
|
885
|
+
return ret;
|
|
886
|
+
};
|
|
887
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
888
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
889
|
+
};
|
|
647
890
|
imports.wbg.__wbg_set_3fda3bac07393de4 = function(arg0, arg1, arg2) {
|
|
648
891
|
arg0[arg1] = arg2;
|
|
649
892
|
};
|
|
650
|
-
imports.wbg.
|
|
651
|
-
arg0[arg1 >>> 0] = arg2;
|
|
652
|
-
};
|
|
653
|
-
imports.wbg.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
|
|
893
|
+
imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
654
894
|
const ret = arg0.set(arg1, arg2);
|
|
655
895
|
return ret;
|
|
656
896
|
};
|
|
657
|
-
imports.wbg.
|
|
658
|
-
arg0
|
|
897
|
+
imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
898
|
+
arg0[arg1 >>> 0] = arg2;
|
|
659
899
|
};
|
|
660
|
-
imports.wbg.
|
|
900
|
+
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
661
901
|
const ret = arg0.value;
|
|
662
902
|
return ret;
|
|
663
903
|
};
|
|
664
|
-
imports.wbg.
|
|
665
|
-
|
|
666
|
-
const ret =
|
|
904
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
905
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
906
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
667
907
|
return ret;
|
|
668
908
|
};
|
|
669
|
-
imports.wbg.
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
674
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
909
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
910
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
911
|
+
const ret = arg0;
|
|
912
|
+
return ret;
|
|
675
913
|
};
|
|
676
914
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
677
|
-
const table = wasm.
|
|
915
|
+
const table = wasm.__wbindgen_externrefs;
|
|
678
916
|
const offset = table.grow(4);
|
|
679
917
|
table.set(0, undefined);
|
|
680
918
|
table.set(offset + 0, undefined);
|
|
@@ -683,60 +921,10 @@ function __wbg_get_imports() {
|
|
|
683
921
|
table.set(offset + 3, false);
|
|
684
922
|
;
|
|
685
923
|
};
|
|
686
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
687
|
-
const ret = typeof(arg0) === 'function';
|
|
688
|
-
return ret;
|
|
689
|
-
};
|
|
690
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
691
|
-
const val = arg0;
|
|
692
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
693
|
-
return ret;
|
|
694
|
-
};
|
|
695
|
-
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
696
|
-
const ret = typeof(arg0) === 'string';
|
|
697
|
-
return ret;
|
|
698
|
-
};
|
|
699
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
700
|
-
const ret = arg0 == arg1;
|
|
701
|
-
return ret;
|
|
702
|
-
};
|
|
703
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
704
|
-
const ret = wasm.memory;
|
|
705
|
-
return ret;
|
|
706
|
-
};
|
|
707
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
708
|
-
const obj = arg1;
|
|
709
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
710
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
711
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
712
|
-
};
|
|
713
|
-
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
714
|
-
const ret = arg0;
|
|
715
|
-
return ret;
|
|
716
|
-
};
|
|
717
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
718
|
-
const obj = arg1;
|
|
719
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
720
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
721
|
-
var len1 = WASM_VECTOR_LEN;
|
|
722
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
723
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
724
|
-
};
|
|
725
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
726
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
727
|
-
return ret;
|
|
728
|
-
};
|
|
729
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
730
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
731
|
-
};
|
|
732
924
|
|
|
733
925
|
return imports;
|
|
734
926
|
}
|
|
735
927
|
|
|
736
|
-
function __wbg_init_memory(imports, memory) {
|
|
737
|
-
|
|
738
|
-
}
|
|
739
|
-
|
|
740
928
|
function __wbg_finalize_init(instance, module) {
|
|
741
929
|
wasm = instance.exports;
|
|
742
930
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -762,8 +950,6 @@ function initSync(module) {
|
|
|
762
950
|
|
|
763
951
|
const imports = __wbg_get_imports();
|
|
764
952
|
|
|
765
|
-
__wbg_init_memory(imports);
|
|
766
|
-
|
|
767
953
|
if (!(module instanceof WebAssembly.Module)) {
|
|
768
954
|
module = new WebAssembly.Module(module);
|
|
769
955
|
}
|
|
@@ -794,8 +980,6 @@ async function __wbg_init(module_or_path) {
|
|
|
794
980
|
module_or_path = fetch(module_or_path);
|
|
795
981
|
}
|
|
796
982
|
|
|
797
|
-
__wbg_init_memory(imports);
|
|
798
|
-
|
|
799
983
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
800
984
|
|
|
801
985
|
return __wbg_finalize_init(instance, module);
|
package/gtars_js_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"collaborators": [
|
|
5
5
|
"Nathan LeRoy <NLeRoy917@gmail.com>"
|
|
6
6
|
],
|
|
7
|
-
"version": "0.5.
|
|
7
|
+
"version": "0.5.2",
|
|
8
8
|
"files": [
|
|
9
9
|
"gtars_js_bg.wasm",
|
|
10
10
|
"gtars_js.js",
|
|
@@ -14,5 +14,9 @@
|
|
|
14
14
|
"types": "gtars_js.d.ts",
|
|
15
15
|
"sideEffects": [
|
|
16
16
|
"./snippets/*"
|
|
17
|
-
]
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/databio/gtars"
|
|
21
|
+
}
|
|
18
22
|
}
|