@molcrafts/molrs 0.0.15 → 0.0.17
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/README.md +5 -1
- package/molrs.d.ts +5 -240
- package/molrs_bg.js +69 -684
- package/molrs_bg.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
WebAssembly bindings for the [molrs](https://github.com/MolCrafts/molrs) molecular modeling toolkit.
|
|
6
6
|
|
|
7
|
+
Full documentation lives at <https://molcrafts.github.io/molrs/>. The WASM
|
|
8
|
+
reference is published at <https://molcrafts.github.io/molrs/reference/wasm/>.
|
|
9
|
+
|
|
7
10
|
## Install
|
|
8
11
|
|
|
9
12
|
```bash
|
|
@@ -80,7 +83,7 @@ Frames without a simulation box are supported — a non-periodic bounding box is
|
|
|
80
83
|
## Build from source
|
|
81
84
|
|
|
82
85
|
```bash
|
|
83
|
-
wasm-pack build --release --target bundler --scope molcrafts
|
|
86
|
+
wasm-pack build --release --target bundler --scope molcrafts --out-name molrs
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
This writes `pkg/` — the npm package. `pkg/package.json` is auto-generated by
|
|
@@ -104,6 +107,7 @@ build a smaller wasm containing only a subset, use Cargo features:
|
|
|
104
107
|
|
|
105
108
|
```bash
|
|
106
109
|
wasm-pack build --release --target bundler --scope molcrafts \
|
|
110
|
+
--out-name molrs \
|
|
107
111
|
--no-default-features --features io,smiles
|
|
108
112
|
```
|
|
109
113
|
|
package/molrs.d.ts
CHANGED
|
@@ -3018,53 +3018,6 @@ export class WasmLammpsDataStream {
|
|
|
3018
3018
|
* throw.
|
|
3019
3019
|
*/
|
|
3020
3020
|
finishIndex(): FrameIndexEntry[];
|
|
3021
|
-
/**
|
|
3022
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
3023
|
-
*/
|
|
3024
|
-
gridArrayCount(grid_idx: number): number;
|
|
3025
|
-
/**
|
|
3026
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
3027
|
-
*/
|
|
3028
|
-
gridArrayLen(grid_idx: number, array_idx: number): number;
|
|
3029
|
-
/**
|
|
3030
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
3031
|
-
* if either index is out of range.
|
|
3032
|
-
*/
|
|
3033
|
-
gridArrayName(grid_idx: number, array_idx: number): string;
|
|
3034
|
-
/**
|
|
3035
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
3036
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
3037
|
-
*
|
|
3038
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
3039
|
-
* call. See the module-level memory-grow contract.
|
|
3040
|
-
*/
|
|
3041
|
-
gridArrayPtrF64(grid_idx: number, array_idx: number): number;
|
|
3042
|
-
/**
|
|
3043
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
3044
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
3045
|
-
*/
|
|
3046
|
-
gridCell(grid_idx: number): Float64Array;
|
|
3047
|
-
/**
|
|
3048
|
-
* Number of named grids attached to the current frame.
|
|
3049
|
-
*/
|
|
3050
|
-
gridCount(): number;
|
|
3051
|
-
/**
|
|
3052
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
3053
|
-
*/
|
|
3054
|
-
gridName(grid_idx: number): string;
|
|
3055
|
-
/**
|
|
3056
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
3057
|
-
*/
|
|
3058
|
-
gridOrigin(grid_idx: number): Float64Array;
|
|
3059
|
-
/**
|
|
3060
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
3061
|
-
* `0` = open).
|
|
3062
|
-
*/
|
|
3063
|
-
gridPbc(grid_idx: number): Uint8Array;
|
|
3064
|
-
/**
|
|
3065
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
3066
|
-
*/
|
|
3067
|
-
gridShape(grid_idx: number): Uint32Array;
|
|
3068
3021
|
/**
|
|
3069
3022
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
3070
3023
|
*/
|
|
@@ -3084,7 +3037,7 @@ export class WasmLammpsDataStream {
|
|
|
3084
3037
|
parseRangeInInput(offset: number, len: number): void;
|
|
3085
3038
|
/**
|
|
3086
3039
|
* Drop the cached output frame, releasing its memory and
|
|
3087
|
-
* invalidating any outstanding `columnPtr*`
|
|
3040
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
3088
3041
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
3089
3042
|
* until the next `parseRangeInInput`.
|
|
3090
3043
|
*/
|
|
@@ -3206,53 +3159,6 @@ export class WasmLammpsDumpStream {
|
|
|
3206
3159
|
* throw.
|
|
3207
3160
|
*/
|
|
3208
3161
|
finishIndex(): FrameIndexEntry[];
|
|
3209
|
-
/**
|
|
3210
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
3211
|
-
*/
|
|
3212
|
-
gridArrayCount(grid_idx: number): number;
|
|
3213
|
-
/**
|
|
3214
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
3215
|
-
*/
|
|
3216
|
-
gridArrayLen(grid_idx: number, array_idx: number): number;
|
|
3217
|
-
/**
|
|
3218
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
3219
|
-
* if either index is out of range.
|
|
3220
|
-
*/
|
|
3221
|
-
gridArrayName(grid_idx: number, array_idx: number): string;
|
|
3222
|
-
/**
|
|
3223
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
3224
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
3225
|
-
*
|
|
3226
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
3227
|
-
* call. See the module-level memory-grow contract.
|
|
3228
|
-
*/
|
|
3229
|
-
gridArrayPtrF64(grid_idx: number, array_idx: number): number;
|
|
3230
|
-
/**
|
|
3231
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
3232
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
3233
|
-
*/
|
|
3234
|
-
gridCell(grid_idx: number): Float64Array;
|
|
3235
|
-
/**
|
|
3236
|
-
* Number of named grids attached to the current frame.
|
|
3237
|
-
*/
|
|
3238
|
-
gridCount(): number;
|
|
3239
|
-
/**
|
|
3240
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
3241
|
-
*/
|
|
3242
|
-
gridName(grid_idx: number): string;
|
|
3243
|
-
/**
|
|
3244
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
3245
|
-
*/
|
|
3246
|
-
gridOrigin(grid_idx: number): Float64Array;
|
|
3247
|
-
/**
|
|
3248
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
3249
|
-
* `0` = open).
|
|
3250
|
-
*/
|
|
3251
|
-
gridPbc(grid_idx: number): Uint8Array;
|
|
3252
|
-
/**
|
|
3253
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
3254
|
-
*/
|
|
3255
|
-
gridShape(grid_idx: number): Uint32Array;
|
|
3256
3162
|
/**
|
|
3257
3163
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
3258
3164
|
*/
|
|
@@ -3272,7 +3178,7 @@ export class WasmLammpsDumpStream {
|
|
|
3272
3178
|
parseRangeInInput(offset: number, len: number): void;
|
|
3273
3179
|
/**
|
|
3274
3180
|
* Drop the cached output frame, releasing its memory and
|
|
3275
|
-
* invalidating any outstanding `columnPtr*`
|
|
3181
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
3276
3182
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
3277
3183
|
* until the next `parseRangeInInput`.
|
|
3278
3184
|
*/
|
|
@@ -3458,53 +3364,6 @@ export class WasmPdbStream {
|
|
|
3458
3364
|
* throw.
|
|
3459
3365
|
*/
|
|
3460
3366
|
finishIndex(): FrameIndexEntry[];
|
|
3461
|
-
/**
|
|
3462
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
3463
|
-
*/
|
|
3464
|
-
gridArrayCount(grid_idx: number): number;
|
|
3465
|
-
/**
|
|
3466
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
3467
|
-
*/
|
|
3468
|
-
gridArrayLen(grid_idx: number, array_idx: number): number;
|
|
3469
|
-
/**
|
|
3470
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
3471
|
-
* if either index is out of range.
|
|
3472
|
-
*/
|
|
3473
|
-
gridArrayName(grid_idx: number, array_idx: number): string;
|
|
3474
|
-
/**
|
|
3475
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
3476
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
3477
|
-
*
|
|
3478
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
3479
|
-
* call. See the module-level memory-grow contract.
|
|
3480
|
-
*/
|
|
3481
|
-
gridArrayPtrF64(grid_idx: number, array_idx: number): number;
|
|
3482
|
-
/**
|
|
3483
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
3484
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
3485
|
-
*/
|
|
3486
|
-
gridCell(grid_idx: number): Float64Array;
|
|
3487
|
-
/**
|
|
3488
|
-
* Number of named grids attached to the current frame.
|
|
3489
|
-
*/
|
|
3490
|
-
gridCount(): number;
|
|
3491
|
-
/**
|
|
3492
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
3493
|
-
*/
|
|
3494
|
-
gridName(grid_idx: number): string;
|
|
3495
|
-
/**
|
|
3496
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
3497
|
-
*/
|
|
3498
|
-
gridOrigin(grid_idx: number): Float64Array;
|
|
3499
|
-
/**
|
|
3500
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
3501
|
-
* `0` = open).
|
|
3502
|
-
*/
|
|
3503
|
-
gridPbc(grid_idx: number): Uint8Array;
|
|
3504
|
-
/**
|
|
3505
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
3506
|
-
*/
|
|
3507
|
-
gridShape(grid_idx: number): Uint32Array;
|
|
3508
3367
|
/**
|
|
3509
3368
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
3510
3369
|
*/
|
|
@@ -3524,7 +3383,7 @@ export class WasmPdbStream {
|
|
|
3524
3383
|
parseRangeInInput(offset: number, len: number): void;
|
|
3525
3384
|
/**
|
|
3526
3385
|
* Drop the cached output frame, releasing its memory and
|
|
3527
|
-
* invalidating any outstanding `columnPtr*`
|
|
3386
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
3528
3387
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
3529
3388
|
* until the next `parseRangeInInput`.
|
|
3530
3389
|
*/
|
|
@@ -3646,53 +3505,6 @@ export class WasmSdfStream {
|
|
|
3646
3505
|
* throw.
|
|
3647
3506
|
*/
|
|
3648
3507
|
finishIndex(): FrameIndexEntry[];
|
|
3649
|
-
/**
|
|
3650
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
3651
|
-
*/
|
|
3652
|
-
gridArrayCount(grid_idx: number): number;
|
|
3653
|
-
/**
|
|
3654
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
3655
|
-
*/
|
|
3656
|
-
gridArrayLen(grid_idx: number, array_idx: number): number;
|
|
3657
|
-
/**
|
|
3658
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
3659
|
-
* if either index is out of range.
|
|
3660
|
-
*/
|
|
3661
|
-
gridArrayName(grid_idx: number, array_idx: number): string;
|
|
3662
|
-
/**
|
|
3663
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
3664
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
3665
|
-
*
|
|
3666
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
3667
|
-
* call. See the module-level memory-grow contract.
|
|
3668
|
-
*/
|
|
3669
|
-
gridArrayPtrF64(grid_idx: number, array_idx: number): number;
|
|
3670
|
-
/**
|
|
3671
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
3672
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
3673
|
-
*/
|
|
3674
|
-
gridCell(grid_idx: number): Float64Array;
|
|
3675
|
-
/**
|
|
3676
|
-
* Number of named grids attached to the current frame.
|
|
3677
|
-
*/
|
|
3678
|
-
gridCount(): number;
|
|
3679
|
-
/**
|
|
3680
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
3681
|
-
*/
|
|
3682
|
-
gridName(grid_idx: number): string;
|
|
3683
|
-
/**
|
|
3684
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
3685
|
-
*/
|
|
3686
|
-
gridOrigin(grid_idx: number): Float64Array;
|
|
3687
|
-
/**
|
|
3688
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
3689
|
-
* `0` = open).
|
|
3690
|
-
*/
|
|
3691
|
-
gridPbc(grid_idx: number): Uint8Array;
|
|
3692
|
-
/**
|
|
3693
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
3694
|
-
*/
|
|
3695
|
-
gridShape(grid_idx: number): Uint32Array;
|
|
3696
3508
|
/**
|
|
3697
3509
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
3698
3510
|
*/
|
|
@@ -3712,7 +3524,7 @@ export class WasmSdfStream {
|
|
|
3712
3524
|
parseRangeInInput(offset: number, len: number): void;
|
|
3713
3525
|
/**
|
|
3714
3526
|
* Drop the cached output frame, releasing its memory and
|
|
3715
|
-
* invalidating any outstanding `columnPtr*`
|
|
3527
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
3716
3528
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
3717
3529
|
* until the next `parseRangeInInput`.
|
|
3718
3530
|
*/
|
|
@@ -3834,53 +3646,6 @@ export class WasmXyzStream {
|
|
|
3834
3646
|
* throw.
|
|
3835
3647
|
*/
|
|
3836
3648
|
finishIndex(): FrameIndexEntry[];
|
|
3837
|
-
/**
|
|
3838
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
3839
|
-
*/
|
|
3840
|
-
gridArrayCount(grid_idx: number): number;
|
|
3841
|
-
/**
|
|
3842
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
3843
|
-
*/
|
|
3844
|
-
gridArrayLen(grid_idx: number, array_idx: number): number;
|
|
3845
|
-
/**
|
|
3846
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
3847
|
-
* if either index is out of range.
|
|
3848
|
-
*/
|
|
3849
|
-
gridArrayName(grid_idx: number, array_idx: number): string;
|
|
3850
|
-
/**
|
|
3851
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
3852
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
3853
|
-
*
|
|
3854
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
3855
|
-
* call. See the module-level memory-grow contract.
|
|
3856
|
-
*/
|
|
3857
|
-
gridArrayPtrF64(grid_idx: number, array_idx: number): number;
|
|
3858
|
-
/**
|
|
3859
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
3860
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
3861
|
-
*/
|
|
3862
|
-
gridCell(grid_idx: number): Float64Array;
|
|
3863
|
-
/**
|
|
3864
|
-
* Number of named grids attached to the current frame.
|
|
3865
|
-
*/
|
|
3866
|
-
gridCount(): number;
|
|
3867
|
-
/**
|
|
3868
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
3869
|
-
*/
|
|
3870
|
-
gridName(grid_idx: number): string;
|
|
3871
|
-
/**
|
|
3872
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
3873
|
-
*/
|
|
3874
|
-
gridOrigin(grid_idx: number): Float64Array;
|
|
3875
|
-
/**
|
|
3876
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
3877
|
-
* `0` = open).
|
|
3878
|
-
*/
|
|
3879
|
-
gridPbc(grid_idx: number): Uint8Array;
|
|
3880
|
-
/**
|
|
3881
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
3882
|
-
*/
|
|
3883
|
-
gridShape(grid_idx: number): Uint32Array;
|
|
3884
3649
|
/**
|
|
3885
3650
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
3886
3651
|
*/
|
|
@@ -3900,7 +3665,7 @@ export class WasmXyzStream {
|
|
|
3900
3665
|
parseRangeInInput(offset: number, len: number): void;
|
|
3901
3666
|
/**
|
|
3902
3667
|
* Drop the cached output frame, releasing its memory and
|
|
3903
|
-
* invalidating any outstanding `columnPtr*`
|
|
3668
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
3904
3669
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
3905
3670
|
* until the next `parseRangeInInput`.
|
|
3906
3671
|
*/
|
package/molrs_bg.js
CHANGED
|
@@ -4812,129 +4812,6 @@ export class WasmLammpsDataStream {
|
|
|
4812
4812
|
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
4813
4813
|
return v1;
|
|
4814
4814
|
}
|
|
4815
|
-
/**
|
|
4816
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
4817
|
-
* @param {number} grid_idx
|
|
4818
|
-
* @returns {number}
|
|
4819
|
-
*/
|
|
4820
|
-
gridArrayCount(grid_idx) {
|
|
4821
|
-
const ret = wasm.wasmlammpsdatastream_gridArrayCount(this.__wbg_ptr, grid_idx);
|
|
4822
|
-
return ret >>> 0;
|
|
4823
|
-
}
|
|
4824
|
-
/**
|
|
4825
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
4826
|
-
* @param {number} grid_idx
|
|
4827
|
-
* @param {number} array_idx
|
|
4828
|
-
* @returns {number}
|
|
4829
|
-
*/
|
|
4830
|
-
gridArrayLen(grid_idx, array_idx) {
|
|
4831
|
-
const ret = wasm.wasmlammpsdatastream_gridArrayLen(this.__wbg_ptr, grid_idx, array_idx);
|
|
4832
|
-
return ret >>> 0;
|
|
4833
|
-
}
|
|
4834
|
-
/**
|
|
4835
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
4836
|
-
* if either index is out of range.
|
|
4837
|
-
* @param {number} grid_idx
|
|
4838
|
-
* @param {number} array_idx
|
|
4839
|
-
* @returns {string}
|
|
4840
|
-
*/
|
|
4841
|
-
gridArrayName(grid_idx, array_idx) {
|
|
4842
|
-
let deferred1_0;
|
|
4843
|
-
let deferred1_1;
|
|
4844
|
-
try {
|
|
4845
|
-
const ret = wasm.wasmlammpsdatastream_gridArrayName(this.__wbg_ptr, grid_idx, array_idx);
|
|
4846
|
-
deferred1_0 = ret[0];
|
|
4847
|
-
deferred1_1 = ret[1];
|
|
4848
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
4849
|
-
} finally {
|
|
4850
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
4851
|
-
}
|
|
4852
|
-
}
|
|
4853
|
-
/**
|
|
4854
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
4855
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
4856
|
-
*
|
|
4857
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
4858
|
-
* call. See the module-level memory-grow contract.
|
|
4859
|
-
* @param {number} grid_idx
|
|
4860
|
-
* @param {number} array_idx
|
|
4861
|
-
* @returns {number}
|
|
4862
|
-
*/
|
|
4863
|
-
gridArrayPtrF64(grid_idx, array_idx) {
|
|
4864
|
-
const ret = wasm.wasmlammpsdatastream_gridArrayPtrF64(this.__wbg_ptr, grid_idx, array_idx);
|
|
4865
|
-
return ret >>> 0;
|
|
4866
|
-
}
|
|
4867
|
-
/**
|
|
4868
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
4869
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
4870
|
-
* @param {number} grid_idx
|
|
4871
|
-
* @returns {Float64Array}
|
|
4872
|
-
*/
|
|
4873
|
-
gridCell(grid_idx) {
|
|
4874
|
-
const ret = wasm.wasmlammpsdatastream_gridCell(this.__wbg_ptr, grid_idx);
|
|
4875
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
4876
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
4877
|
-
return v1;
|
|
4878
|
-
}
|
|
4879
|
-
/**
|
|
4880
|
-
* Number of named grids attached to the current frame.
|
|
4881
|
-
* @returns {number}
|
|
4882
|
-
*/
|
|
4883
|
-
gridCount() {
|
|
4884
|
-
const ret = wasm.wasmlammpsdatastream_gridCount(this.__wbg_ptr);
|
|
4885
|
-
return ret >>> 0;
|
|
4886
|
-
}
|
|
4887
|
-
/**
|
|
4888
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
4889
|
-
* @param {number} grid_idx
|
|
4890
|
-
* @returns {string}
|
|
4891
|
-
*/
|
|
4892
|
-
gridName(grid_idx) {
|
|
4893
|
-
let deferred1_0;
|
|
4894
|
-
let deferred1_1;
|
|
4895
|
-
try {
|
|
4896
|
-
const ret = wasm.wasmlammpsdatastream_gridName(this.__wbg_ptr, grid_idx);
|
|
4897
|
-
deferred1_0 = ret[0];
|
|
4898
|
-
deferred1_1 = ret[1];
|
|
4899
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
4900
|
-
} finally {
|
|
4901
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
4902
|
-
}
|
|
4903
|
-
}
|
|
4904
|
-
/**
|
|
4905
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
4906
|
-
* @param {number} grid_idx
|
|
4907
|
-
* @returns {Float64Array}
|
|
4908
|
-
*/
|
|
4909
|
-
gridOrigin(grid_idx) {
|
|
4910
|
-
const ret = wasm.wasmlammpsdatastream_gridOrigin(this.__wbg_ptr, grid_idx);
|
|
4911
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
4912
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
4913
|
-
return v1;
|
|
4914
|
-
}
|
|
4915
|
-
/**
|
|
4916
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
4917
|
-
* `0` = open).
|
|
4918
|
-
* @param {number} grid_idx
|
|
4919
|
-
* @returns {Uint8Array}
|
|
4920
|
-
*/
|
|
4921
|
-
gridPbc(grid_idx) {
|
|
4922
|
-
const ret = wasm.wasmlammpsdatastream_gridPbc(this.__wbg_ptr, grid_idx);
|
|
4923
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
4924
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
4925
|
-
return v1;
|
|
4926
|
-
}
|
|
4927
|
-
/**
|
|
4928
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
4929
|
-
* @param {number} grid_idx
|
|
4930
|
-
* @returns {Uint32Array}
|
|
4931
|
-
*/
|
|
4932
|
-
gridShape(grid_idx) {
|
|
4933
|
-
const ret = wasm.wasmlammpsdatastream_gridShape(this.__wbg_ptr, grid_idx);
|
|
4934
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
4935
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
4936
|
-
return v1;
|
|
4937
|
-
}
|
|
4938
4815
|
/**
|
|
4939
4816
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
4940
4817
|
* @returns {number}
|
|
@@ -4970,7 +4847,7 @@ export class WasmLammpsDataStream {
|
|
|
4970
4847
|
}
|
|
4971
4848
|
/**
|
|
4972
4849
|
* Drop the cached output frame, releasing its memory and
|
|
4973
|
-
* invalidating any outstanding `columnPtr*`
|
|
4850
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
4974
4851
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
4975
4852
|
* until the next `parseRangeInInput`.
|
|
4976
4853
|
*/
|
|
@@ -5237,129 +5114,6 @@ export class WasmLammpsDumpStream {
|
|
|
5237
5114
|
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
5238
5115
|
return v1;
|
|
5239
5116
|
}
|
|
5240
|
-
/**
|
|
5241
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
5242
|
-
* @param {number} grid_idx
|
|
5243
|
-
* @returns {number}
|
|
5244
|
-
*/
|
|
5245
|
-
gridArrayCount(grid_idx) {
|
|
5246
|
-
const ret = wasm.wasmlammpsdumpstream_gridArrayCount(this.__wbg_ptr, grid_idx);
|
|
5247
|
-
return ret >>> 0;
|
|
5248
|
-
}
|
|
5249
|
-
/**
|
|
5250
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
5251
|
-
* @param {number} grid_idx
|
|
5252
|
-
* @param {number} array_idx
|
|
5253
|
-
* @returns {number}
|
|
5254
|
-
*/
|
|
5255
|
-
gridArrayLen(grid_idx, array_idx) {
|
|
5256
|
-
const ret = wasm.wasmlammpsdumpstream_gridArrayLen(this.__wbg_ptr, grid_idx, array_idx);
|
|
5257
|
-
return ret >>> 0;
|
|
5258
|
-
}
|
|
5259
|
-
/**
|
|
5260
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
5261
|
-
* if either index is out of range.
|
|
5262
|
-
* @param {number} grid_idx
|
|
5263
|
-
* @param {number} array_idx
|
|
5264
|
-
* @returns {string}
|
|
5265
|
-
*/
|
|
5266
|
-
gridArrayName(grid_idx, array_idx) {
|
|
5267
|
-
let deferred1_0;
|
|
5268
|
-
let deferred1_1;
|
|
5269
|
-
try {
|
|
5270
|
-
const ret = wasm.wasmlammpsdumpstream_gridArrayName(this.__wbg_ptr, grid_idx, array_idx);
|
|
5271
|
-
deferred1_0 = ret[0];
|
|
5272
|
-
deferred1_1 = ret[1];
|
|
5273
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5274
|
-
} finally {
|
|
5275
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
5276
|
-
}
|
|
5277
|
-
}
|
|
5278
|
-
/**
|
|
5279
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
5280
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
5281
|
-
*
|
|
5282
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
5283
|
-
* call. See the module-level memory-grow contract.
|
|
5284
|
-
* @param {number} grid_idx
|
|
5285
|
-
* @param {number} array_idx
|
|
5286
|
-
* @returns {number}
|
|
5287
|
-
*/
|
|
5288
|
-
gridArrayPtrF64(grid_idx, array_idx) {
|
|
5289
|
-
const ret = wasm.wasmlammpsdumpstream_gridArrayPtrF64(this.__wbg_ptr, grid_idx, array_idx);
|
|
5290
|
-
return ret >>> 0;
|
|
5291
|
-
}
|
|
5292
|
-
/**
|
|
5293
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
5294
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
5295
|
-
* @param {number} grid_idx
|
|
5296
|
-
* @returns {Float64Array}
|
|
5297
|
-
*/
|
|
5298
|
-
gridCell(grid_idx) {
|
|
5299
|
-
const ret = wasm.wasmlammpsdumpstream_gridCell(this.__wbg_ptr, grid_idx);
|
|
5300
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
5301
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
5302
|
-
return v1;
|
|
5303
|
-
}
|
|
5304
|
-
/**
|
|
5305
|
-
* Number of named grids attached to the current frame.
|
|
5306
|
-
* @returns {number}
|
|
5307
|
-
*/
|
|
5308
|
-
gridCount() {
|
|
5309
|
-
const ret = wasm.wasmlammpsdumpstream_gridCount(this.__wbg_ptr);
|
|
5310
|
-
return ret >>> 0;
|
|
5311
|
-
}
|
|
5312
|
-
/**
|
|
5313
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
5314
|
-
* @param {number} grid_idx
|
|
5315
|
-
* @returns {string}
|
|
5316
|
-
*/
|
|
5317
|
-
gridName(grid_idx) {
|
|
5318
|
-
let deferred1_0;
|
|
5319
|
-
let deferred1_1;
|
|
5320
|
-
try {
|
|
5321
|
-
const ret = wasm.wasmlammpsdumpstream_gridName(this.__wbg_ptr, grid_idx);
|
|
5322
|
-
deferred1_0 = ret[0];
|
|
5323
|
-
deferred1_1 = ret[1];
|
|
5324
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5325
|
-
} finally {
|
|
5326
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
5327
|
-
}
|
|
5328
|
-
}
|
|
5329
|
-
/**
|
|
5330
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
5331
|
-
* @param {number} grid_idx
|
|
5332
|
-
* @returns {Float64Array}
|
|
5333
|
-
*/
|
|
5334
|
-
gridOrigin(grid_idx) {
|
|
5335
|
-
const ret = wasm.wasmlammpsdumpstream_gridOrigin(this.__wbg_ptr, grid_idx);
|
|
5336
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
5337
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
5338
|
-
return v1;
|
|
5339
|
-
}
|
|
5340
|
-
/**
|
|
5341
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
5342
|
-
* `0` = open).
|
|
5343
|
-
* @param {number} grid_idx
|
|
5344
|
-
* @returns {Uint8Array}
|
|
5345
|
-
*/
|
|
5346
|
-
gridPbc(grid_idx) {
|
|
5347
|
-
const ret = wasm.wasmlammpsdumpstream_gridPbc(this.__wbg_ptr, grid_idx);
|
|
5348
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5349
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
5350
|
-
return v1;
|
|
5351
|
-
}
|
|
5352
|
-
/**
|
|
5353
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
5354
|
-
* @param {number} grid_idx
|
|
5355
|
-
* @returns {Uint32Array}
|
|
5356
|
-
*/
|
|
5357
|
-
gridShape(grid_idx) {
|
|
5358
|
-
const ret = wasm.wasmlammpsdumpstream_gridShape(this.__wbg_ptr, grid_idx);
|
|
5359
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
5360
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
5361
|
-
return v1;
|
|
5362
|
-
}
|
|
5363
5117
|
/**
|
|
5364
5118
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
5365
5119
|
* @returns {number}
|
|
@@ -5395,7 +5149,7 @@ export class WasmLammpsDumpStream {
|
|
|
5395
5149
|
}
|
|
5396
5150
|
/**
|
|
5397
5151
|
* Drop the cached output frame, releasing its memory and
|
|
5398
|
-
* invalidating any outstanding `columnPtr*`
|
|
5152
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
5399
5153
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
5400
5154
|
* until the next `parseRangeInInput`.
|
|
5401
5155
|
*/
|
|
@@ -5774,129 +5528,6 @@ export class WasmPdbStream {
|
|
|
5774
5528
|
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
5775
5529
|
return v1;
|
|
5776
5530
|
}
|
|
5777
|
-
/**
|
|
5778
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
5779
|
-
* @param {number} grid_idx
|
|
5780
|
-
* @returns {number}
|
|
5781
|
-
*/
|
|
5782
|
-
gridArrayCount(grid_idx) {
|
|
5783
|
-
const ret = wasm.wasmpdbstream_gridArrayCount(this.__wbg_ptr, grid_idx);
|
|
5784
|
-
return ret >>> 0;
|
|
5785
|
-
}
|
|
5786
|
-
/**
|
|
5787
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
5788
|
-
* @param {number} grid_idx
|
|
5789
|
-
* @param {number} array_idx
|
|
5790
|
-
* @returns {number}
|
|
5791
|
-
*/
|
|
5792
|
-
gridArrayLen(grid_idx, array_idx) {
|
|
5793
|
-
const ret = wasm.wasmpdbstream_gridArrayLen(this.__wbg_ptr, grid_idx, array_idx);
|
|
5794
|
-
return ret >>> 0;
|
|
5795
|
-
}
|
|
5796
|
-
/**
|
|
5797
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
5798
|
-
* if either index is out of range.
|
|
5799
|
-
* @param {number} grid_idx
|
|
5800
|
-
* @param {number} array_idx
|
|
5801
|
-
* @returns {string}
|
|
5802
|
-
*/
|
|
5803
|
-
gridArrayName(grid_idx, array_idx) {
|
|
5804
|
-
let deferred1_0;
|
|
5805
|
-
let deferred1_1;
|
|
5806
|
-
try {
|
|
5807
|
-
const ret = wasm.wasmpdbstream_gridArrayName(this.__wbg_ptr, grid_idx, array_idx);
|
|
5808
|
-
deferred1_0 = ret[0];
|
|
5809
|
-
deferred1_1 = ret[1];
|
|
5810
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5811
|
-
} finally {
|
|
5812
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
5813
|
-
}
|
|
5814
|
-
}
|
|
5815
|
-
/**
|
|
5816
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
5817
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
5818
|
-
*
|
|
5819
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
5820
|
-
* call. See the module-level memory-grow contract.
|
|
5821
|
-
* @param {number} grid_idx
|
|
5822
|
-
* @param {number} array_idx
|
|
5823
|
-
* @returns {number}
|
|
5824
|
-
*/
|
|
5825
|
-
gridArrayPtrF64(grid_idx, array_idx) {
|
|
5826
|
-
const ret = wasm.wasmpdbstream_gridArrayPtrF64(this.__wbg_ptr, grid_idx, array_idx);
|
|
5827
|
-
return ret >>> 0;
|
|
5828
|
-
}
|
|
5829
|
-
/**
|
|
5830
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
5831
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
5832
|
-
* @param {number} grid_idx
|
|
5833
|
-
* @returns {Float64Array}
|
|
5834
|
-
*/
|
|
5835
|
-
gridCell(grid_idx) {
|
|
5836
|
-
const ret = wasm.wasmpdbstream_gridCell(this.__wbg_ptr, grid_idx);
|
|
5837
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
5838
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
5839
|
-
return v1;
|
|
5840
|
-
}
|
|
5841
|
-
/**
|
|
5842
|
-
* Number of named grids attached to the current frame.
|
|
5843
|
-
* @returns {number}
|
|
5844
|
-
*/
|
|
5845
|
-
gridCount() {
|
|
5846
|
-
const ret = wasm.wasmpdbstream_gridCount(this.__wbg_ptr);
|
|
5847
|
-
return ret >>> 0;
|
|
5848
|
-
}
|
|
5849
|
-
/**
|
|
5850
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
5851
|
-
* @param {number} grid_idx
|
|
5852
|
-
* @returns {string}
|
|
5853
|
-
*/
|
|
5854
|
-
gridName(grid_idx) {
|
|
5855
|
-
let deferred1_0;
|
|
5856
|
-
let deferred1_1;
|
|
5857
|
-
try {
|
|
5858
|
-
const ret = wasm.wasmpdbstream_gridName(this.__wbg_ptr, grid_idx);
|
|
5859
|
-
deferred1_0 = ret[0];
|
|
5860
|
-
deferred1_1 = ret[1];
|
|
5861
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5862
|
-
} finally {
|
|
5863
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
/**
|
|
5867
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
5868
|
-
* @param {number} grid_idx
|
|
5869
|
-
* @returns {Float64Array}
|
|
5870
|
-
*/
|
|
5871
|
-
gridOrigin(grid_idx) {
|
|
5872
|
-
const ret = wasm.wasmpdbstream_gridOrigin(this.__wbg_ptr, grid_idx);
|
|
5873
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
5874
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
5875
|
-
return v1;
|
|
5876
|
-
}
|
|
5877
|
-
/**
|
|
5878
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
5879
|
-
* `0` = open).
|
|
5880
|
-
* @param {number} grid_idx
|
|
5881
|
-
* @returns {Uint8Array}
|
|
5882
|
-
*/
|
|
5883
|
-
gridPbc(grid_idx) {
|
|
5884
|
-
const ret = wasm.wasmpdbstream_gridPbc(this.__wbg_ptr, grid_idx);
|
|
5885
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5886
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
5887
|
-
return v1;
|
|
5888
|
-
}
|
|
5889
|
-
/**
|
|
5890
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
5891
|
-
* @param {number} grid_idx
|
|
5892
|
-
* @returns {Uint32Array}
|
|
5893
|
-
*/
|
|
5894
|
-
gridShape(grid_idx) {
|
|
5895
|
-
const ret = wasm.wasmpdbstream_gridShape(this.__wbg_ptr, grid_idx);
|
|
5896
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
5897
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
5898
|
-
return v1;
|
|
5899
|
-
}
|
|
5900
5531
|
/**
|
|
5901
5532
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
5902
5533
|
* @returns {number}
|
|
@@ -5932,7 +5563,7 @@ export class WasmPdbStream {
|
|
|
5932
5563
|
}
|
|
5933
5564
|
/**
|
|
5934
5565
|
* Drop the cached output frame, releasing its memory and
|
|
5935
|
-
* invalidating any outstanding `columnPtr*`
|
|
5566
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
5936
5567
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
5937
5568
|
* until the next `parseRangeInInput`.
|
|
5938
5569
|
*/
|
|
@@ -6199,129 +5830,6 @@ export class WasmSdfStream {
|
|
|
6199
5830
|
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
6200
5831
|
return v1;
|
|
6201
5832
|
}
|
|
6202
|
-
/**
|
|
6203
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
6204
|
-
* @param {number} grid_idx
|
|
6205
|
-
* @returns {number}
|
|
6206
|
-
*/
|
|
6207
|
-
gridArrayCount(grid_idx) {
|
|
6208
|
-
const ret = wasm.wasmsdfstream_gridArrayCount(this.__wbg_ptr, grid_idx);
|
|
6209
|
-
return ret >>> 0;
|
|
6210
|
-
}
|
|
6211
|
-
/**
|
|
6212
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
6213
|
-
* @param {number} grid_idx
|
|
6214
|
-
* @param {number} array_idx
|
|
6215
|
-
* @returns {number}
|
|
6216
|
-
*/
|
|
6217
|
-
gridArrayLen(grid_idx, array_idx) {
|
|
6218
|
-
const ret = wasm.wasmsdfstream_gridArrayLen(this.__wbg_ptr, grid_idx, array_idx);
|
|
6219
|
-
return ret >>> 0;
|
|
6220
|
-
}
|
|
6221
|
-
/**
|
|
6222
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
6223
|
-
* if either index is out of range.
|
|
6224
|
-
* @param {number} grid_idx
|
|
6225
|
-
* @param {number} array_idx
|
|
6226
|
-
* @returns {string}
|
|
6227
|
-
*/
|
|
6228
|
-
gridArrayName(grid_idx, array_idx) {
|
|
6229
|
-
let deferred1_0;
|
|
6230
|
-
let deferred1_1;
|
|
6231
|
-
try {
|
|
6232
|
-
const ret = wasm.wasmsdfstream_gridArrayName(this.__wbg_ptr, grid_idx, array_idx);
|
|
6233
|
-
deferred1_0 = ret[0];
|
|
6234
|
-
deferred1_1 = ret[1];
|
|
6235
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6236
|
-
} finally {
|
|
6237
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
6238
|
-
}
|
|
6239
|
-
}
|
|
6240
|
-
/**
|
|
6241
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
6242
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
6243
|
-
*
|
|
6244
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
6245
|
-
* call. See the module-level memory-grow contract.
|
|
6246
|
-
* @param {number} grid_idx
|
|
6247
|
-
* @param {number} array_idx
|
|
6248
|
-
* @returns {number}
|
|
6249
|
-
*/
|
|
6250
|
-
gridArrayPtrF64(grid_idx, array_idx) {
|
|
6251
|
-
const ret = wasm.wasmsdfstream_gridArrayPtrF64(this.__wbg_ptr, grid_idx, array_idx);
|
|
6252
|
-
return ret >>> 0;
|
|
6253
|
-
}
|
|
6254
|
-
/**
|
|
6255
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
6256
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
6257
|
-
* @param {number} grid_idx
|
|
6258
|
-
* @returns {Float64Array}
|
|
6259
|
-
*/
|
|
6260
|
-
gridCell(grid_idx) {
|
|
6261
|
-
const ret = wasm.wasmsdfstream_gridCell(this.__wbg_ptr, grid_idx);
|
|
6262
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
6263
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
6264
|
-
return v1;
|
|
6265
|
-
}
|
|
6266
|
-
/**
|
|
6267
|
-
* Number of named grids attached to the current frame.
|
|
6268
|
-
* @returns {number}
|
|
6269
|
-
*/
|
|
6270
|
-
gridCount() {
|
|
6271
|
-
const ret = wasm.wasmsdfstream_gridCount(this.__wbg_ptr);
|
|
6272
|
-
return ret >>> 0;
|
|
6273
|
-
}
|
|
6274
|
-
/**
|
|
6275
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
6276
|
-
* @param {number} grid_idx
|
|
6277
|
-
* @returns {string}
|
|
6278
|
-
*/
|
|
6279
|
-
gridName(grid_idx) {
|
|
6280
|
-
let deferred1_0;
|
|
6281
|
-
let deferred1_1;
|
|
6282
|
-
try {
|
|
6283
|
-
const ret = wasm.wasmsdfstream_gridName(this.__wbg_ptr, grid_idx);
|
|
6284
|
-
deferred1_0 = ret[0];
|
|
6285
|
-
deferred1_1 = ret[1];
|
|
6286
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6287
|
-
} finally {
|
|
6288
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
6289
|
-
}
|
|
6290
|
-
}
|
|
6291
|
-
/**
|
|
6292
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
6293
|
-
* @param {number} grid_idx
|
|
6294
|
-
* @returns {Float64Array}
|
|
6295
|
-
*/
|
|
6296
|
-
gridOrigin(grid_idx) {
|
|
6297
|
-
const ret = wasm.wasmsdfstream_gridOrigin(this.__wbg_ptr, grid_idx);
|
|
6298
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
6299
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
6300
|
-
return v1;
|
|
6301
|
-
}
|
|
6302
|
-
/**
|
|
6303
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
6304
|
-
* `0` = open).
|
|
6305
|
-
* @param {number} grid_idx
|
|
6306
|
-
* @returns {Uint8Array}
|
|
6307
|
-
*/
|
|
6308
|
-
gridPbc(grid_idx) {
|
|
6309
|
-
const ret = wasm.wasmsdfstream_gridPbc(this.__wbg_ptr, grid_idx);
|
|
6310
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
6311
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
6312
|
-
return v1;
|
|
6313
|
-
}
|
|
6314
|
-
/**
|
|
6315
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
6316
|
-
* @param {number} grid_idx
|
|
6317
|
-
* @returns {Uint32Array}
|
|
6318
|
-
*/
|
|
6319
|
-
gridShape(grid_idx) {
|
|
6320
|
-
const ret = wasm.wasmsdfstream_gridShape(this.__wbg_ptr, grid_idx);
|
|
6321
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
6322
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
6323
|
-
return v1;
|
|
6324
|
-
}
|
|
6325
5833
|
/**
|
|
6326
5834
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
6327
5835
|
* @returns {number}
|
|
@@ -6357,7 +5865,7 @@ export class WasmSdfStream {
|
|
|
6357
5865
|
}
|
|
6358
5866
|
/**
|
|
6359
5867
|
* Drop the cached output frame, releasing its memory and
|
|
6360
|
-
* invalidating any outstanding `columnPtr*`
|
|
5868
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
6361
5869
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
6362
5870
|
* until the next `parseRangeInInput`.
|
|
6363
5871
|
*/
|
|
@@ -6624,129 +6132,6 @@ export class WasmXyzStream {
|
|
|
6624
6132
|
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
6625
6133
|
return v1;
|
|
6626
6134
|
}
|
|
6627
|
-
/**
|
|
6628
|
-
* Number of named scalar arrays in grid `gridIdx`.
|
|
6629
|
-
* @param {number} grid_idx
|
|
6630
|
-
* @returns {number}
|
|
6631
|
-
*/
|
|
6632
|
-
gridArrayCount(grid_idx) {
|
|
6633
|
-
const ret = wasm.wasmxyzstream_gridArrayCount(this.__wbg_ptr, grid_idx);
|
|
6634
|
-
return ret >>> 0;
|
|
6635
|
-
}
|
|
6636
|
-
/**
|
|
6637
|
-
* Length (number of `f64` elements) of the grid scalar field.
|
|
6638
|
-
* @param {number} grid_idx
|
|
6639
|
-
* @param {number} array_idx
|
|
6640
|
-
* @returns {number}
|
|
6641
|
-
*/
|
|
6642
|
-
gridArrayLen(grid_idx, array_idx) {
|
|
6643
|
-
const ret = wasm.wasmxyzstream_gridArrayLen(this.__wbg_ptr, grid_idx, array_idx);
|
|
6644
|
-
return ret >>> 0;
|
|
6645
|
-
}
|
|
6646
|
-
/**
|
|
6647
|
-
* Name of scalar array `(gridIdx, arrayIdx)`, or empty string
|
|
6648
|
-
* if either index is out of range.
|
|
6649
|
-
* @param {number} grid_idx
|
|
6650
|
-
* @param {number} array_idx
|
|
6651
|
-
* @returns {string}
|
|
6652
|
-
*/
|
|
6653
|
-
gridArrayName(grid_idx, array_idx) {
|
|
6654
|
-
let deferred1_0;
|
|
6655
|
-
let deferred1_1;
|
|
6656
|
-
try {
|
|
6657
|
-
const ret = wasm.wasmxyzstream_gridArrayName(this.__wbg_ptr, grid_idx, array_idx);
|
|
6658
|
-
deferred1_0 = ret[0];
|
|
6659
|
-
deferred1_1 = ret[1];
|
|
6660
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6661
|
-
} finally {
|
|
6662
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
6663
|
-
}
|
|
6664
|
-
}
|
|
6665
|
-
/**
|
|
6666
|
-
* Pointer to the contiguous `f64` slice backing the grid
|
|
6667
|
-
* scalar field, or 0 (null) if either index is out of range.
|
|
6668
|
-
*
|
|
6669
|
-
* **Lifetime**: valid only until the next non-trivial wasm
|
|
6670
|
-
* call. See the module-level memory-grow contract.
|
|
6671
|
-
* @param {number} grid_idx
|
|
6672
|
-
* @param {number} array_idx
|
|
6673
|
-
* @returns {number}
|
|
6674
|
-
*/
|
|
6675
|
-
gridArrayPtrF64(grid_idx, array_idx) {
|
|
6676
|
-
const ret = wasm.wasmxyzstream_gridArrayPtrF64(this.__wbg_ptr, grid_idx, array_idx);
|
|
6677
|
-
return ret >>> 0;
|
|
6678
|
-
}
|
|
6679
|
-
/**
|
|
6680
|
-
* Grid lattice cell as a length-9 `Float64Array` (column-major:
|
|
6681
|
-
* `[col0_x, col0_y, col0_z, col1_x, col1_y, col1_z, col2_x, col2_y, col2_z]`).
|
|
6682
|
-
* @param {number} grid_idx
|
|
6683
|
-
* @returns {Float64Array}
|
|
6684
|
-
*/
|
|
6685
|
-
gridCell(grid_idx) {
|
|
6686
|
-
const ret = wasm.wasmxyzstream_gridCell(this.__wbg_ptr, grid_idx);
|
|
6687
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
6688
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
6689
|
-
return v1;
|
|
6690
|
-
}
|
|
6691
|
-
/**
|
|
6692
|
-
* Number of named grids attached to the current frame.
|
|
6693
|
-
* @returns {number}
|
|
6694
|
-
*/
|
|
6695
|
-
gridCount() {
|
|
6696
|
-
const ret = wasm.wasmxyzstream_gridCount(this.__wbg_ptr);
|
|
6697
|
-
return ret >>> 0;
|
|
6698
|
-
}
|
|
6699
|
-
/**
|
|
6700
|
-
* Name of grid `gridIdx`, or empty string if out of range.
|
|
6701
|
-
* @param {number} grid_idx
|
|
6702
|
-
* @returns {string}
|
|
6703
|
-
*/
|
|
6704
|
-
gridName(grid_idx) {
|
|
6705
|
-
let deferred1_0;
|
|
6706
|
-
let deferred1_1;
|
|
6707
|
-
try {
|
|
6708
|
-
const ret = wasm.wasmxyzstream_gridName(this.__wbg_ptr, grid_idx);
|
|
6709
|
-
deferred1_0 = ret[0];
|
|
6710
|
-
deferred1_1 = ret[1];
|
|
6711
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
6712
|
-
} finally {
|
|
6713
|
-
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
6714
|
-
}
|
|
6715
|
-
}
|
|
6716
|
-
/**
|
|
6717
|
-
* Grid origin (Cartesian, Å) as a length-3 `Float64Array`.
|
|
6718
|
-
* @param {number} grid_idx
|
|
6719
|
-
* @returns {Float64Array}
|
|
6720
|
-
*/
|
|
6721
|
-
gridOrigin(grid_idx) {
|
|
6722
|
-
const ret = wasm.wasmxyzstream_gridOrigin(this.__wbg_ptr, grid_idx);
|
|
6723
|
-
var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
|
|
6724
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 8, 8);
|
|
6725
|
-
return v1;
|
|
6726
|
-
}
|
|
6727
|
-
/**
|
|
6728
|
-
* Grid PBC flags as a length-3 `Uint8Array` (`1` = periodic,
|
|
6729
|
-
* `0` = open).
|
|
6730
|
-
* @param {number} grid_idx
|
|
6731
|
-
* @returns {Uint8Array}
|
|
6732
|
-
*/
|
|
6733
|
-
gridPbc(grid_idx) {
|
|
6734
|
-
const ret = wasm.wasmxyzstream_gridPbc(this.__wbg_ptr, grid_idx);
|
|
6735
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
6736
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 1, 1);
|
|
6737
|
-
return v1;
|
|
6738
|
-
}
|
|
6739
|
-
/**
|
|
6740
|
-
* Grid dimensions `[nx, ny, nz]` as a length-3 `Uint32Array`.
|
|
6741
|
-
* @param {number} grid_idx
|
|
6742
|
-
* @returns {Uint32Array}
|
|
6743
|
-
*/
|
|
6744
|
-
gridShape(grid_idx) {
|
|
6745
|
-
const ret = wasm.wasmxyzstream_gridShape(this.__wbg_ptr, grid_idx);
|
|
6746
|
-
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
6747
|
-
wasm.__wbindgen_free_command_export(ret[0], ret[1] * 4, 4);
|
|
6748
|
-
return v1;
|
|
6749
|
-
}
|
|
6750
6135
|
/**
|
|
6751
6136
|
* Current capacity (in bytes) of the reusable input buffer.
|
|
6752
6137
|
* @returns {number}
|
|
@@ -6782,7 +6167,7 @@ export class WasmXyzStream {
|
|
|
6782
6167
|
}
|
|
6783
6168
|
/**
|
|
6784
6169
|
* Drop the cached output frame, releasing its memory and
|
|
6785
|
-
* invalidating any outstanding `columnPtr*`
|
|
6170
|
+
* invalidating any outstanding `columnPtr*` pointers.
|
|
6786
6171
|
* pointers. Subsequent extraction calls return 0 / empty
|
|
6787
6172
|
* until the next `parseRangeInInput`.
|
|
6788
6173
|
*/
|
|
@@ -7164,18 +6549,18 @@ export function writeFrame(frame, format) {
|
|
|
7164
6549
|
wasm.__wbindgen_free_command_export(deferred3_0, deferred3_1, 1);
|
|
7165
6550
|
}
|
|
7166
6551
|
}
|
|
7167
|
-
export function
|
|
6552
|
+
export function __wbg___wbindgen_debug_string_0accd80f45e5faa2(arg0, arg1) {
|
|
7168
6553
|
const ret = debugString(arg1);
|
|
7169
6554
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
7170
6555
|
const len1 = WASM_VECTOR_LEN;
|
|
7171
6556
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7172
6557
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7173
6558
|
}
|
|
7174
|
-
export function
|
|
6559
|
+
export function __wbg___wbindgen_memory_fbc4c3e30b409f08() {
|
|
7175
6560
|
const ret = wasm.memory;
|
|
7176
6561
|
return ret;
|
|
7177
6562
|
}
|
|
7178
|
-
export function
|
|
6563
|
+
export function __wbg___wbindgen_string_get_72bdf95d3ae505b1(arg0, arg1) {
|
|
7179
6564
|
const obj = arg1;
|
|
7180
6565
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
7181
6566
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
@@ -7183,10 +6568,10 @@ export function __wbg___wbindgen_string_get_965592073e5d848c(arg0, arg1) {
|
|
|
7183
6568
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7184
6569
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7185
6570
|
}
|
|
7186
|
-
export function
|
|
6571
|
+
export function __wbg___wbindgen_throw_1506f2235d1bdba0(arg0, arg1) {
|
|
7187
6572
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
7188
6573
|
}
|
|
7189
|
-
export function
|
|
6574
|
+
export function __wbg_done_60cf307fcc680536(arg0) {
|
|
7190
6575
|
const ret = arg0.done;
|
|
7191
6576
|
return ret;
|
|
7192
6577
|
}
|
|
@@ -7208,35 +6593,35 @@ export function __wbg_frameindexentry_new(arg0) {
|
|
|
7208
6593
|
export function __wbg_getRandomValues_3f44b700395062e5() { return handleError(function (arg0, arg1) {
|
|
7209
6594
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
7210
6595
|
}, arguments); }
|
|
7211
|
-
export function
|
|
6596
|
+
export function __wbg_get_0429a91975f37e2e(arg0, arg1) {
|
|
7212
6597
|
const ret = arg0.get(arg1);
|
|
7213
6598
|
return ret;
|
|
7214
6599
|
}
|
|
7215
|
-
export function
|
|
6600
|
+
export function __wbg_get_unchecked_33f6e5c9e2f2d6b2(arg0, arg1) {
|
|
7216
6601
|
const ret = arg0[arg1 >>> 0];
|
|
7217
6602
|
return ret;
|
|
7218
6603
|
}
|
|
7219
|
-
export function
|
|
6604
|
+
export function __wbg_keys_75e37d4b5a2a8470(arg0) {
|
|
7220
6605
|
const ret = arg0.keys();
|
|
7221
6606
|
return ret;
|
|
7222
6607
|
}
|
|
7223
|
-
export function
|
|
6608
|
+
export function __wbg_length_27cfc5149a8eb2e7(arg0) {
|
|
7224
6609
|
const ret = arg0.length;
|
|
7225
6610
|
return ret;
|
|
7226
6611
|
}
|
|
7227
|
-
export function
|
|
6612
|
+
export function __wbg_length_280688879ee7deb5(arg0) {
|
|
7228
6613
|
const ret = arg0.length;
|
|
7229
6614
|
return ret;
|
|
7230
6615
|
}
|
|
7231
|
-
export function
|
|
6616
|
+
export function __wbg_length_33096ac1966bb961(arg0) {
|
|
7232
6617
|
const ret = arg0.length;
|
|
7233
6618
|
return ret;
|
|
7234
6619
|
}
|
|
7235
|
-
export function
|
|
6620
|
+
export function __wbg_length_4a591ecaa01354d9(arg0) {
|
|
7236
6621
|
const ret = arg0.length;
|
|
7237
6622
|
return ret;
|
|
7238
6623
|
}
|
|
7239
|
-
export function
|
|
6624
|
+
export function __wbg_length_66f1a4b2e9026940(arg0) {
|
|
7240
6625
|
const ret = arg0.length;
|
|
7241
6626
|
return ret;
|
|
7242
6627
|
}
|
|
@@ -7248,72 +6633,72 @@ export function __wbg_new_227d7c05414eb861() {
|
|
|
7248
6633
|
const ret = new Error();
|
|
7249
6634
|
return ret;
|
|
7250
6635
|
}
|
|
7251
|
-
export function
|
|
6636
|
+
export function __wbg_new_578aeef4b6b94378(arg0) {
|
|
6637
|
+
const ret = new Uint8Array(arg0);
|
|
6638
|
+
return ret;
|
|
6639
|
+
}
|
|
6640
|
+
export function __wbg_new_d90091b82fdf5b91() {
|
|
7252
6641
|
const ret = new Array();
|
|
7253
6642
|
return ret;
|
|
7254
6643
|
}
|
|
7255
|
-
export function
|
|
7256
|
-
const ret = new
|
|
6644
|
+
export function __wbg_new_from_slice_1b23616ada25abcb(arg0, arg1) {
|
|
6645
|
+
const ret = new Int32Array(getArrayI32FromWasm0(arg0, arg1));
|
|
7257
6646
|
return ret;
|
|
7258
6647
|
}
|
|
7259
|
-
export function
|
|
6648
|
+
export function __wbg_new_from_slice_3c93d0bc613de8f0(arg0, arg1) {
|
|
7260
6649
|
const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
|
|
7261
6650
|
return ret;
|
|
7262
6651
|
}
|
|
7263
|
-
export function
|
|
6652
|
+
export function __wbg_new_from_slice_47be4219028de35d(arg0, arg1) {
|
|
7264
6653
|
const ret = new Uint32Array(getArrayU32FromWasm0(arg0, arg1));
|
|
7265
6654
|
return ret;
|
|
7266
6655
|
}
|
|
7267
|
-
export function
|
|
7268
|
-
const ret = new Int32Array(
|
|
6656
|
+
export function __wbg_new_with_length_1eb3643ef8ff666a(arg0) {
|
|
6657
|
+
const ret = new Int32Array(arg0 >>> 0);
|
|
7269
6658
|
return ret;
|
|
7270
6659
|
}
|
|
7271
|
-
export function
|
|
7272
|
-
const ret = new
|
|
6660
|
+
export function __wbg_new_with_length_21806dff02ad1c3e(arg0) {
|
|
6661
|
+
const ret = new Uint32Array(arg0 >>> 0);
|
|
7273
6662
|
return ret;
|
|
7274
6663
|
}
|
|
7275
|
-
export function
|
|
6664
|
+
export function __wbg_new_with_length_36a4998e27b014c5(arg0) {
|
|
7276
6665
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
7277
6666
|
return ret;
|
|
7278
6667
|
}
|
|
7279
|
-
export function
|
|
7280
|
-
const ret = new
|
|
7281
|
-
return ret;
|
|
7282
|
-
}
|
|
7283
|
-
export function __wbg_new_with_length_bc64f6940c022f00(arg0) {
|
|
7284
|
-
const ret = new Int32Array(arg0 >>> 0);
|
|
6668
|
+
export function __wbg_new_with_length_b4a87ccced374381(arg0) {
|
|
6669
|
+
const ret = new Float64Array(arg0 >>> 0);
|
|
7285
6670
|
return ret;
|
|
7286
6671
|
}
|
|
7287
|
-
export function
|
|
6672
|
+
export function __wbg_next_eb8ca7351fa27906() { return handleError(function (arg0) {
|
|
7288
6673
|
const ret = arg0.next();
|
|
7289
6674
|
return ret;
|
|
7290
6675
|
}, arguments); }
|
|
7291
|
-
export function
|
|
7292
|
-
|
|
7293
|
-
}
|
|
7294
|
-
export function __wbg_prototypesetcall_442370bc228f2c6b(arg0, arg1, arg2) {
|
|
7295
|
-
Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
|
|
6676
|
+
export function __wbg_prototypesetcall_3249fc62a0fafa30(arg0, arg1, arg2) {
|
|
6677
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
7296
6678
|
}
|
|
7297
|
-
export function
|
|
6679
|
+
export function __wbg_prototypesetcall_3560ffd2e7034ba8(arg0, arg1, arg2) {
|
|
7298
6680
|
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1), arg2);
|
|
7299
6681
|
}
|
|
7300
|
-
export function
|
|
7301
|
-
|
|
6682
|
+
export function __wbg_prototypesetcall_59640349d2c6d881(arg0, arg1, arg2) {
|
|
6683
|
+
Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), arg2);
|
|
6684
|
+
}
|
|
6685
|
+
export function __wbg_prototypesetcall_d1ae8885a2e9d458(arg0, arg1, arg2) {
|
|
6686
|
+
Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
|
|
7302
6687
|
}
|
|
7303
|
-
export function
|
|
6688
|
+
export function __wbg_push_a6822215aa43e71c(arg0, arg1) {
|
|
7304
6689
|
const ret = arg0.push(arg1);
|
|
7305
6690
|
return ret;
|
|
7306
6691
|
}
|
|
7307
|
-
export function
|
|
7308
|
-
arg0.set(getArrayI32FromWasm0(arg1, arg2));
|
|
7309
|
-
}
|
|
7310
|
-
export function __wbg_set_e307b0b9eac6f966(arg0, arg1, arg2) {
|
|
6692
|
+
export function __wbg_set_63b87f7c2d096ec3(arg0, arg1, arg2) {
|
|
7311
6693
|
arg0.set(getArrayF64FromWasm0(arg1, arg2));
|
|
7312
6694
|
}
|
|
7313
|
-
export function
|
|
6695
|
+
export function __wbg_set_ad3bde048c79fe2b(arg0, arg1, arg2) {
|
|
6696
|
+
arg0.set(getArrayI32FromWasm0(arg1, arg2));
|
|
6697
|
+
}
|
|
6698
|
+
export function __wbg_set_index_73ced2e1b4a2a37e(arg0, arg1, arg2) {
|
|
7314
6699
|
arg0[arg1 >>> 0] = arg2;
|
|
7315
6700
|
}
|
|
7316
|
-
export function
|
|
6701
|
+
export function __wbg_set_index_88b4ef962117fc1b(arg0, arg1, arg2) {
|
|
7317
6702
|
arg0[arg1 >>> 0] = arg2 >>> 0;
|
|
7318
6703
|
}
|
|
7319
6704
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
@@ -7323,7 +6708,7 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
7323
6708
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
7324
6709
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7325
6710
|
}
|
|
7326
|
-
export function
|
|
6711
|
+
export function __wbg_value_f3625092ee4b37f4(arg0) {
|
|
7327
6712
|
const ret = arg0.value;
|
|
7328
6713
|
return ret;
|
|
7329
6714
|
}
|
|
@@ -7362,18 +6747,18 @@ const BlockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
7362
6747
|
const BoxFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7363
6748
|
? { register: () => {}, unregister: () => {} }
|
|
7364
6749
|
: new FinalizationRegistry(ptr => wasm.__wbg_box_free(ptr, 1));
|
|
7365
|
-
const CenterOfMassFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7366
|
-
? { register: () => {}, unregister: () => {} }
|
|
7367
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_centerofmass_free(ptr, 1));
|
|
7368
|
-
const CenterOfMassResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7369
|
-
? { register: () => {}, unregister: () => {} }
|
|
7370
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_centerofmassresult_free(ptr, 1));
|
|
7371
6750
|
const CHGCARReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7372
6751
|
? { register: () => {}, unregister: () => {} }
|
|
7373
6752
|
: new FinalizationRegistry(ptr => wasm.__wbg_chgcarreader_free(ptr, 1));
|
|
7374
6753
|
const CIFReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7375
6754
|
? { register: () => {}, unregister: () => {} }
|
|
7376
6755
|
: new FinalizationRegistry(ptr => wasm.__wbg_cifreader_free(ptr, 1));
|
|
6756
|
+
const CenterOfMassFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6757
|
+
? { register: () => {}, unregister: () => {} }
|
|
6758
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_centerofmass_free(ptr, 1));
|
|
6759
|
+
const CenterOfMassResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6760
|
+
? { register: () => {}, unregister: () => {} }
|
|
6761
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_centerofmassresult_free(ptr, 1));
|
|
7377
6762
|
const ClusterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7378
6763
|
? { register: () => {}, unregister: () => {} }
|
|
7379
6764
|
: new FinalizationRegistry(ptr => wasm.__wbg_cluster_free(ptr, 1));
|
|
@@ -7392,18 +6777,21 @@ const DCDReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
7392
6777
|
const FrameFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7393
6778
|
? { register: () => {}, unregister: () => {} }
|
|
7394
6779
|
: new FinalizationRegistry(ptr => wasm.__wbg_frame_free(ptr, 1));
|
|
6780
|
+
const FrameIndexEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6781
|
+
? { register: () => {}, unregister: () => {} }
|
|
6782
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_frameindexentry_free(ptr, 1));
|
|
7395
6783
|
const GyrationTensorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7396
6784
|
? { register: () => {}, unregister: () => {} }
|
|
7397
6785
|
: new FinalizationRegistry(ptr => wasm.__wbg_gyrationtensor_free(ptr, 1));
|
|
7398
6786
|
const InertiaTensorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7399
6787
|
? { register: () => {}, unregister: () => {} }
|
|
7400
6788
|
: new FinalizationRegistry(ptr => wasm.__wbg_inertiatensor_free(ptr, 1));
|
|
7401
|
-
const LAMMPSTrajReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7402
|
-
? { register: () => {}, unregister: () => {} }
|
|
7403
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_lammpstrajreader_free(ptr, 1));
|
|
7404
6789
|
const LAMMPSReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7405
6790
|
? { register: () => {}, unregister: () => {} }
|
|
7406
6791
|
: new FinalizationRegistry(ptr => wasm.__wbg_lammpsreader_free(ptr, 1));
|
|
6792
|
+
const LAMMPSTrajReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6793
|
+
? { register: () => {}, unregister: () => {} }
|
|
6794
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_lammpstrajreader_free(ptr, 1));
|
|
7407
6795
|
const LinkedCellFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7408
6796
|
? { register: () => {}, unregister: () => {} }
|
|
7409
6797
|
: new FinalizationRegistry(ptr => wasm.__wbg_linkedcell_free(ptr, 1));
|
|
@@ -7434,15 +6822,18 @@ const RadiusOfGyrationFinalization = (typeof FinalizationRegistry === 'undefined
|
|
|
7434
6822
|
const SDFReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7435
6823
|
? { register: () => {}, unregister: () => {} }
|
|
7436
6824
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdfreader_free(ptr, 1));
|
|
6825
|
+
const SmilesIRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6826
|
+
? { register: () => {}, unregister: () => {} }
|
|
6827
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_smilesir_free(ptr, 1));
|
|
6828
|
+
const TopologyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6829
|
+
? { register: () => {}, unregister: () => {} }
|
|
6830
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_topology_free(ptr, 1));
|
|
7437
6831
|
const TopologyRingInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7438
6832
|
? { register: () => {}, unregister: () => {} }
|
|
7439
6833
|
: new FinalizationRegistry(ptr => wasm.__wbg_topologyringinfo_free(ptr, 1));
|
|
7440
6834
|
const WasmArrayFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7441
6835
|
? { register: () => {}, unregister: () => {} }
|
|
7442
6836
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmarray_free(ptr, 1));
|
|
7443
|
-
const FrameIndexEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7444
|
-
? { register: () => {}, unregister: () => {} }
|
|
7445
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_frameindexentry_free(ptr, 1));
|
|
7446
6837
|
const WasmKMeansFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7447
6838
|
? { register: () => {}, unregister: () => {} }
|
|
7448
6839
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmkmeans_free(ptr, 1));
|
|
@@ -7464,12 +6855,6 @@ const WasmPdbStreamFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
7464
6855
|
const WasmSdfStreamFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7465
6856
|
? { register: () => {}, unregister: () => {} }
|
|
7466
6857
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsdfstream_free(ptr, 1));
|
|
7467
|
-
const SmilesIRFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7468
|
-
? { register: () => {}, unregister: () => {} }
|
|
7469
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_smilesir_free(ptr, 1));
|
|
7470
|
-
const TopologyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7471
|
-
? { register: () => {}, unregister: () => {} }
|
|
7472
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_topology_free(ptr, 1));
|
|
7473
6858
|
const WasmXyzStreamFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7474
6859
|
? { register: () => {}, unregister: () => {} }
|
|
7475
6860
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmxyzstream_free(ptr, 1));
|
package/molrs_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED