@cadaclysm/wasm 0.17.0-dev.2 → 0.17.0-dev.3
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/cadaclysm.d.ts +170 -32
- package/cadaclysm.js +661 -86
- package/cadaclysm_bg.wasm +2 -2
- package/package.json +1 -1
package/cadaclysm.js
CHANGED
|
@@ -2647,7 +2647,7 @@ export class View {
|
|
|
2647
2647
|
/**
|
|
2648
2648
|
* Sets clip-plane slot `slot` (0..5): what lies on the side `normal` points to is hidden,
|
|
2649
2649
|
* and with `cap` (`[r, g, b]`) the cut of every body is filled, hatched with `hatch`
|
|
2650
|
-
* (`[r, g, b]`, needs a cap) in lines `hatchAngle`
|
|
2650
|
+
* (`[r, g, b]`, needs a cap) in lines `hatchAngle` radians from the plane's first axis (π/4, 45°),
|
|
2651
2651
|
* `hatchSpacing` apart in model units (0: automatic) and `hatchWidth` points wide (1); with
|
|
2652
2652
|
* `outline` (`[r, g, b]`) the cut is drawn as a line `outlineWidth` points wide (1).
|
|
2653
2653
|
* `point` and `normal` are `[x, y, z]`; every other key optional. `null` clears the slot.
|
|
@@ -3553,18 +3553,18 @@ export class View {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
/**
|
|
3555
3555
|
* The angle lock: snaps that land on no point kind are turned about `point` (world
|
|
3556
|
-
* coordinates) onto the nearest multiple of `
|
|
3557
|
-
* work plane's directions or the plane facing the eye; the snap then answers kind
|
|
3558
|
-
* `"plane"`, its `lockedAngle` in
|
|
3556
|
+
* coordinates) onto the nearest multiple of `step` radians (default 15°, 0.2618; in (0, π]), in
|
|
3557
|
+
* the work plane's directions or the plane facing the eye; the snap then answers kind
|
|
3558
|
+
* `"plane"`, its `lockedAngle` in radians and one guide from `point`. `null` clears it.
|
|
3559
3559
|
* Throws, changing nothing, for a point that is not three finite numbers or a bad step.
|
|
3560
3560
|
* See `View::set_snap_base`.
|
|
3561
3561
|
* @param {[number, number, number] | Float64Array | Float32Array | null} point
|
|
3562
|
-
* @param {number | null} [
|
|
3562
|
+
* @param {number | null} [step]
|
|
3563
3563
|
*/
|
|
3564
|
-
setSnapBase(point,
|
|
3564
|
+
setSnapBase(point, step) {
|
|
3565
3565
|
try {
|
|
3566
3566
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3567
|
-
wasm.view_setSnapBase(retptr, this.__wbg_ptr, addHeapObject(point), !isLikeNone(
|
|
3567
|
+
wasm.view_setSnapBase(retptr, this.__wbg_ptr, addHeapObject(point), !isLikeNone(step), isLikeNone(step) ? 0 : step);
|
|
3568
3568
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3569
3569
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3570
3570
|
if (r1) {
|
|
@@ -4142,7 +4142,7 @@ export class View {
|
|
|
4142
4142
|
* - `programs`: `[{ tool, gcode }]` in run order, each read by the strict Grbl
|
|
4143
4143
|
* reader; a tool is `{ number, shape: "flat" | "ball" | "drill" | "vbit" |
|
|
4144
4144
|
* "bullnose", diameter, flute_length, angle?, corner_radius? }` (`angle` a V-bit's
|
|
4145
|
-
* included angle, `corner_radius` a bull-nose's);
|
|
4145
|
+
* included angle in radians, `corner_radius` a bull-nose's);
|
|
4146
4146
|
* - `part` (optional): a kernel solid's handle, or `{ positions, indices }`, for
|
|
4147
4147
|
* colouring by deviation;
|
|
4148
4148
|
* - `cell` (optional, mm): by default the smaller of 0.1 and the smallest tool's
|
|
@@ -4654,7 +4654,7 @@ export class View {
|
|
|
4654
4654
|
* item's Bezier, a solid's kernel edge; `null` for a face, grid, plane or point snap),
|
|
4655
4655
|
* `tangent` the edge's unit direction there, `axis` and `radius` a circular edge's (zeros
|
|
4656
4656
|
* otherwise), `distancePx` how far the cursor was, `label` a `"point"` snap's
|
|
4657
|
-
* `setSnapPoints` label (else the kind's name), `lockedAngle` the angle in
|
|
4657
|
+
* `setSnapPoints` label (else the kind's name), `lockedAngle` the angle in radians (0..2π)
|
|
4658
4658
|
* `setSnapBase`'s lock turned the point to (`null` unlocked), and `guides` 0 to 2 `{ from,
|
|
4659
4659
|
* to }` world points: an alignment snap's guides, or the lock's ray from its base. `null`
|
|
4660
4660
|
* where nothing in the kinds lies there, and always while snapping is off. The View draws
|
|
@@ -6360,6 +6360,47 @@ export function cadaclysm_blacksmith_assembly_base(assembly, link) {
|
|
|
6360
6360
|
}
|
|
6361
6361
|
}
|
|
6362
6362
|
|
|
6363
|
+
/**
|
|
6364
|
+
* `assembly`'s bill of materials as JSON (or CSV when `csv`), as C's `assembly_bom`:
|
|
6365
|
+
* `mode` `top`, `indented` or `parts`; `columns_json` a JSON list of column names.
|
|
6366
|
+
* @param {number} assembly
|
|
6367
|
+
* @param {string} mode
|
|
6368
|
+
* @param {string | null | undefined} group_by
|
|
6369
|
+
* @param {string | null | undefined} columns_json
|
|
6370
|
+
* @param {boolean} csv
|
|
6371
|
+
* @returns {string}
|
|
6372
|
+
*/
|
|
6373
|
+
export function cadaclysm_blacksmith_assembly_bom(assembly, mode, group_by, columns_json, csv) {
|
|
6374
|
+
let deferred5_0;
|
|
6375
|
+
let deferred5_1;
|
|
6376
|
+
try {
|
|
6377
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6378
|
+
const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6379
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6380
|
+
var ptr1 = isLikeNone(group_by) ? 0 : passStringToWasm0(group_by, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6381
|
+
var len1 = WASM_VECTOR_LEN;
|
|
6382
|
+
var ptr2 = isLikeNone(columns_json) ? 0 : passStringToWasm0(columns_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6383
|
+
var len2 = WASM_VECTOR_LEN;
|
|
6384
|
+
wasm.cadaclysm_blacksmith_assembly_bom(retptr, assembly, ptr0, len0, ptr1, len1, ptr2, len2, csv);
|
|
6385
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6386
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6387
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6388
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
6389
|
+
var ptr4 = r0;
|
|
6390
|
+
var len4 = r1;
|
|
6391
|
+
if (r3) {
|
|
6392
|
+
ptr4 = 0; len4 = 0;
|
|
6393
|
+
throw takeObject(r2);
|
|
6394
|
+
}
|
|
6395
|
+
deferred5_0 = ptr4;
|
|
6396
|
+
deferred5_1 = len4;
|
|
6397
|
+
return getStringFromWasm0(ptr4, len4);
|
|
6398
|
+
} finally {
|
|
6399
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6400
|
+
wasm.__wbindgen_export5(deferred5_0, deferred5_1, 1);
|
|
6401
|
+
}
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6363
6404
|
/**
|
|
6364
6405
|
* [`cadaclysm_blacksmith_assembly_expand`](../cadaclysm_blacksmith_capi): how many placements
|
|
6365
6406
|
* were expanded; `placement` `undefined`/`null` expands every compound part in the tree.
|
|
@@ -6591,6 +6632,43 @@ export function cadaclysm_blacksmith_assembly_link(assembly, name, placements) {
|
|
|
6591
6632
|
}
|
|
6592
6633
|
}
|
|
6593
6634
|
|
|
6635
|
+
/**
|
|
6636
|
+
* `assembly`'s mass properties at rest as JSON text, as C's `assembly_mass_properties`:
|
|
6637
|
+
* densities by placement path, ancestor path or solid name (`densities` a JSON object, absent
|
|
6638
|
+
* for none), else `density`; each distinct body measured once to `accuracy` (0: the default).
|
|
6639
|
+
* @param {number} assembly
|
|
6640
|
+
* @param {number} density
|
|
6641
|
+
* @param {string | null | undefined} densities
|
|
6642
|
+
* @param {number} accuracy
|
|
6643
|
+
* @returns {string}
|
|
6644
|
+
*/
|
|
6645
|
+
export function cadaclysm_blacksmith_assembly_mass_properties(assembly, density, densities, accuracy) {
|
|
6646
|
+
let deferred3_0;
|
|
6647
|
+
let deferred3_1;
|
|
6648
|
+
try {
|
|
6649
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6650
|
+
var ptr0 = isLikeNone(densities) ? 0 : passStringToWasm0(densities, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6651
|
+
var len0 = WASM_VECTOR_LEN;
|
|
6652
|
+
wasm.cadaclysm_blacksmith_assembly_mass_properties(retptr, assembly, density, ptr0, len0, accuracy);
|
|
6653
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6654
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6655
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
6656
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
6657
|
+
var ptr2 = r0;
|
|
6658
|
+
var len2 = r1;
|
|
6659
|
+
if (r3) {
|
|
6660
|
+
ptr2 = 0; len2 = 0;
|
|
6661
|
+
throw takeObject(r2);
|
|
6662
|
+
}
|
|
6663
|
+
deferred3_0 = ptr2;
|
|
6664
|
+
deferred3_1 = len2;
|
|
6665
|
+
return getStringFromWasm0(ptr2, len2);
|
|
6666
|
+
} finally {
|
|
6667
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6668
|
+
wasm.__wbindgen_export5(deferred3_0, deferred3_1, 1);
|
|
6669
|
+
}
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6594
6672
|
/**
|
|
6595
6673
|
* @param {number} assembly
|
|
6596
6674
|
* @returns {string}
|
|
@@ -6938,6 +7016,36 @@ export function cadaclysm_blacksmith_assembly_posed_placements(assembly, joints,
|
|
|
6938
7016
|
}
|
|
6939
7017
|
}
|
|
6940
7018
|
|
|
7019
|
+
/**
|
|
7020
|
+
* `assembly`'s own part properties as a JSON object, as C's `assembly_properties`.
|
|
7021
|
+
* @param {number} assembly
|
|
7022
|
+
* @returns {string}
|
|
7023
|
+
*/
|
|
7024
|
+
export function cadaclysm_blacksmith_assembly_properties(assembly) {
|
|
7025
|
+
let deferred2_0;
|
|
7026
|
+
let deferred2_1;
|
|
7027
|
+
try {
|
|
7028
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7029
|
+
wasm.cadaclysm_blacksmith_assembly_properties(retptr, assembly);
|
|
7030
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7031
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7032
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
7033
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
7034
|
+
var ptr1 = r0;
|
|
7035
|
+
var len1 = r1;
|
|
7036
|
+
if (r3) {
|
|
7037
|
+
ptr1 = 0; len1 = 0;
|
|
7038
|
+
throw takeObject(r2);
|
|
7039
|
+
}
|
|
7040
|
+
deferred2_0 = ptr1;
|
|
7041
|
+
deferred2_1 = len1;
|
|
7042
|
+
return getStringFromWasm0(ptr1, len1);
|
|
7043
|
+
} finally {
|
|
7044
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7045
|
+
wasm.__wbindgen_export5(deferred2_0, deferred2_1, 1);
|
|
7046
|
+
}
|
|
7047
|
+
}
|
|
7048
|
+
|
|
6941
7049
|
/**
|
|
6942
7050
|
* [`cadaclysm_blacksmith_assembly_rescale`](../cadaclysm_blacksmith_capi).
|
|
6943
7051
|
* @param {number} assembly
|
|
@@ -6989,6 +7097,34 @@ export function cadaclysm_blacksmith_assembly_sequence(assembly, name, states, t
|
|
|
6989
7097
|
}
|
|
6990
7098
|
}
|
|
6991
7099
|
|
|
7100
|
+
/**
|
|
7101
|
+
* Set `assembly`'s own part property `key` to `value_json` (absent removes it), as C's
|
|
7102
|
+
* `assembly_set_property`.
|
|
7103
|
+
* @param {number} assembly
|
|
7104
|
+
* @param {string} key
|
|
7105
|
+
* @param {string | null} [value_json]
|
|
7106
|
+
* @returns {boolean}
|
|
7107
|
+
*/
|
|
7108
|
+
export function cadaclysm_blacksmith_assembly_set_property(assembly, key, value_json) {
|
|
7109
|
+
try {
|
|
7110
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7111
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7112
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7113
|
+
var ptr1 = isLikeNone(value_json) ? 0 : passStringToWasm0(value_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7114
|
+
var len1 = WASM_VECTOR_LEN;
|
|
7115
|
+
wasm.cadaclysm_blacksmith_assembly_set_property(retptr, assembly, ptr0, len0, ptr1, len1);
|
|
7116
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7117
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7118
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
7119
|
+
if (r2) {
|
|
7120
|
+
throw takeObject(r1);
|
|
7121
|
+
}
|
|
7122
|
+
return r0 !== 0;
|
|
7123
|
+
} finally {
|
|
7124
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7125
|
+
}
|
|
7126
|
+
}
|
|
7127
|
+
|
|
6992
7128
|
/**
|
|
6993
7129
|
* [`cadaclysm_blacksmith_assembly_state`](../cadaclysm_blacksmith_capi): `joints`
|
|
6994
7130
|
* and `counts` one entry per row, `values` every row's values end to end, as the C
|
|
@@ -10466,6 +10602,29 @@ export function cadaclysm_blacksmith_cylinder(r, h) {
|
|
|
10466
10602
|
}
|
|
10467
10603
|
}
|
|
10468
10604
|
|
|
10605
|
+
/**
|
|
10606
|
+
* Define (or redefine) a user material from `material_json`, as C's `define_material`.
|
|
10607
|
+
* @param {string} material_json
|
|
10608
|
+
* @returns {boolean}
|
|
10609
|
+
*/
|
|
10610
|
+
export function cadaclysm_blacksmith_define_material(material_json) {
|
|
10611
|
+
try {
|
|
10612
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10613
|
+
const ptr0 = passStringToWasm0(material_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
10614
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10615
|
+
wasm.cadaclysm_blacksmith_define_material(retptr, ptr0, len0);
|
|
10616
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10617
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10618
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10619
|
+
if (r2) {
|
|
10620
|
+
throw takeObject(r1);
|
|
10621
|
+
}
|
|
10622
|
+
return r0 !== 0;
|
|
10623
|
+
} finally {
|
|
10624
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
|
|
10469
10628
|
/**
|
|
10470
10629
|
* Applies one op (JSON) and records it as one commit, with `message` (absent or empty: none).
|
|
10471
10630
|
* The changed set as JSON; a refused op throws its reason.
|
|
@@ -11153,6 +11312,37 @@ export function cadaclysm_blacksmith_document_log(doc, branch) {
|
|
|
11153
11312
|
}
|
|
11154
11313
|
}
|
|
11155
11314
|
|
|
11315
|
+
/**
|
|
11316
|
+
* The document's own physical materials as a JSON object by name, as C's
|
|
11317
|
+
* `document_materials`.
|
|
11318
|
+
* @param {number} doc
|
|
11319
|
+
* @returns {string}
|
|
11320
|
+
*/
|
|
11321
|
+
export function cadaclysm_blacksmith_document_materials(doc) {
|
|
11322
|
+
let deferred2_0;
|
|
11323
|
+
let deferred2_1;
|
|
11324
|
+
try {
|
|
11325
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11326
|
+
wasm.cadaclysm_blacksmith_document_materials(retptr, doc);
|
|
11327
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
11328
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
11329
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
11330
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
11331
|
+
var ptr1 = r0;
|
|
11332
|
+
var len1 = r1;
|
|
11333
|
+
if (r3) {
|
|
11334
|
+
ptr1 = 0; len1 = 0;
|
|
11335
|
+
throw takeObject(r2);
|
|
11336
|
+
}
|
|
11337
|
+
deferred2_0 = ptr1;
|
|
11338
|
+
deferred2_1 = len1;
|
|
11339
|
+
return getStringFromWasm0(ptr1, len1);
|
|
11340
|
+
} finally {
|
|
11341
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11342
|
+
wasm.__wbindgen_export5(deferred2_0, deferred2_1, 1);
|
|
11343
|
+
}
|
|
11344
|
+
}
|
|
11345
|
+
|
|
11156
11346
|
/**
|
|
11157
11347
|
* App `app`'s own data about the document as JSON text (what the last `meta` op set), or
|
|
11158
11348
|
* `undefined` when it keeps none.
|
|
@@ -11746,6 +11936,27 @@ export function cadaclysm_blacksmith_document_revision(doc) {
|
|
|
11746
11936
|
}
|
|
11747
11937
|
}
|
|
11748
11938
|
|
|
11939
|
+
/**
|
|
11940
|
+
* The rollback marker, as C's `document_rollback`: the nodes before it are evaluated; -1 for none.
|
|
11941
|
+
* @param {number} doc
|
|
11942
|
+
* @returns {number}
|
|
11943
|
+
*/
|
|
11944
|
+
export function cadaclysm_blacksmith_document_rollback(doc) {
|
|
11945
|
+
try {
|
|
11946
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
11947
|
+
wasm.cadaclysm_blacksmith_document_rollback(retptr, doc);
|
|
11948
|
+
var r0 = getDataViewMemory0().getFloat64(retptr + 8 * 0, true);
|
|
11949
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
11950
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
11951
|
+
if (r3) {
|
|
11952
|
+
throw takeObject(r2);
|
|
11953
|
+
}
|
|
11954
|
+
return r0;
|
|
11955
|
+
} finally {
|
|
11956
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
11957
|
+
}
|
|
11958
|
+
}
|
|
11959
|
+
|
|
11749
11960
|
/**
|
|
11750
11961
|
* The document as canonical JSON text; an open batch or preview is not in it.
|
|
11751
11962
|
* @param {number} doc
|
|
@@ -13364,6 +13575,33 @@ export function cadaclysm_blacksmith_face_area(solid, face, accuracy) {
|
|
|
13364
13575
|
}
|
|
13365
13576
|
}
|
|
13366
13577
|
|
|
13578
|
+
/**
|
|
13579
|
+
* Face `face`'s area, centroid x y z and centroid error bound, five numbers, as C's
|
|
13580
|
+
* `face_area_properties`.
|
|
13581
|
+
* @param {number} solid
|
|
13582
|
+
* @param {number} face
|
|
13583
|
+
* @param {number} accuracy
|
|
13584
|
+
* @returns {Float64Array}
|
|
13585
|
+
*/
|
|
13586
|
+
export function cadaclysm_blacksmith_face_area_properties(solid, face, accuracy) {
|
|
13587
|
+
try {
|
|
13588
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
13589
|
+
wasm.cadaclysm_blacksmith_face_area_properties(retptr, solid, face, accuracy);
|
|
13590
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
13591
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
13592
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
13593
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
13594
|
+
if (r3) {
|
|
13595
|
+
throw takeObject(r2);
|
|
13596
|
+
}
|
|
13597
|
+
var v1 = getArrayF64FromWasm0(r0, r1).slice();
|
|
13598
|
+
wasm.__wbindgen_export5(r0, r1 * 8, 8);
|
|
13599
|
+
return v1;
|
|
13600
|
+
} finally {
|
|
13601
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
13602
|
+
}
|
|
13603
|
+
}
|
|
13604
|
+
|
|
13367
13605
|
/**
|
|
13368
13606
|
* Face `face`'s attribute `key`, `undefined` where it has none.
|
|
13369
13607
|
* @param {number} solid
|
|
@@ -15068,6 +15306,18 @@ export function cadaclysm_blacksmith_fold_flat(profile, frame, bends, rule, tole
|
|
|
15068
15306
|
}
|
|
15069
15307
|
}
|
|
15070
15308
|
|
|
15309
|
+
/**
|
|
15310
|
+
* Remove the user material `name`; whether there was one, as C's `forget_material`.
|
|
15311
|
+
* @param {string} name
|
|
15312
|
+
* @returns {boolean}
|
|
15313
|
+
*/
|
|
15314
|
+
export function cadaclysm_blacksmith_forget_material(name) {
|
|
15315
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
15316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15317
|
+
const ret = wasm.cadaclysm_blacksmith_forget_material(ptr0, len0);
|
|
15318
|
+
return ret !== 0;
|
|
15319
|
+
}
|
|
15320
|
+
|
|
15071
15321
|
/**
|
|
15072
15322
|
* @param {number} solid
|
|
15073
15323
|
* @param {number} edge
|
|
@@ -15733,7 +15983,7 @@ export function cadaclysm_blacksmith_garment_close_dart_cut(h, pattern, internal
|
|
|
15733
15983
|
|
|
15734
15984
|
/**
|
|
15735
15985
|
* Closes pattern `pattern`'s dart `internal` by folding it under: the mark becomes leg
|
|
15736
|
-
* apex-to-`a`; leg apex-to-`b` and the centre fold (
|
|
15986
|
+
* apex-to-`a`; leg apex-to-`b` and the centre fold (2π radians) are appended; tacks pair the
|
|
15737
15987
|
* legs. The number of tacks made (the newest ids, the `a`-`b` tack last).
|
|
15738
15988
|
* @param {number} h
|
|
15739
15989
|
* @param {number} pattern
|
|
@@ -16771,8 +17021,8 @@ export function cadaclysm_blacksmith_garment_seams(h) {
|
|
|
16771
17021
|
}
|
|
16772
17022
|
|
|
16773
17023
|
/**
|
|
16774
|
-
* Sets the fold on pattern `pattern`'s internal line `index` (a fold line): `angle` in
|
|
16775
|
-
* in [0,
|
|
17024
|
+
* Sets the fold on pattern `pattern`'s internal line `index` (a fold line): `angle` in radians
|
|
17025
|
+
* in [0, 2π] (π is flat), `strength` at least 0. A NaN `angle` clears it.
|
|
16776
17026
|
* @param {number} h
|
|
16777
17027
|
* @param {number} pattern
|
|
16778
17028
|
* @param {number} index
|
|
@@ -19638,6 +19888,59 @@ export function cadaclysm_blacksmith_match_side(a, face_a, side_a, b, face_b, si
|
|
|
19638
19888
|
}
|
|
19639
19889
|
}
|
|
19640
19890
|
|
|
19891
|
+
/**
|
|
19892
|
+
* The physical material called `name` as a JSON object, as C's `material`.
|
|
19893
|
+
* @param {string} name
|
|
19894
|
+
* @returns {string}
|
|
19895
|
+
*/
|
|
19896
|
+
export function cadaclysm_blacksmith_material(name) {
|
|
19897
|
+
let deferred3_0;
|
|
19898
|
+
let deferred3_1;
|
|
19899
|
+
try {
|
|
19900
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19901
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
19902
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19903
|
+
wasm.cadaclysm_blacksmith_material(retptr, ptr0, len0);
|
|
19904
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19905
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19906
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19907
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
19908
|
+
var ptr2 = r0;
|
|
19909
|
+
var len2 = r1;
|
|
19910
|
+
if (r3) {
|
|
19911
|
+
ptr2 = 0; len2 = 0;
|
|
19912
|
+
throw takeObject(r2);
|
|
19913
|
+
}
|
|
19914
|
+
deferred3_0 = ptr2;
|
|
19915
|
+
deferred3_1 = len2;
|
|
19916
|
+
return getStringFromWasm0(ptr2, len2);
|
|
19917
|
+
} finally {
|
|
19918
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19919
|
+
wasm.__wbindgen_export5(deferred3_0, deferred3_1, 1);
|
|
19920
|
+
}
|
|
19921
|
+
}
|
|
19922
|
+
|
|
19923
|
+
/**
|
|
19924
|
+
* Every physical material as a JSON array, as C's `materials`.
|
|
19925
|
+
* @returns {string}
|
|
19926
|
+
*/
|
|
19927
|
+
export function cadaclysm_blacksmith_materials() {
|
|
19928
|
+
let deferred1_0;
|
|
19929
|
+
let deferred1_1;
|
|
19930
|
+
try {
|
|
19931
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19932
|
+
wasm.cadaclysm_blacksmith_materials(retptr);
|
|
19933
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19934
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19935
|
+
deferred1_0 = r0;
|
|
19936
|
+
deferred1_1 = r1;
|
|
19937
|
+
return getStringFromWasm0(r0, r1);
|
|
19938
|
+
} finally {
|
|
19939
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19940
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
19941
|
+
}
|
|
19942
|
+
}
|
|
19943
|
+
|
|
19641
19944
|
/**
|
|
19642
19945
|
* `a` and `b` merged into one non-manifold solid that keeps every piece (see
|
|
19643
19946
|
* `cadaclysm_blacksmith_merge` in the C header); progress as `join`'s.
|
|
@@ -28040,6 +28343,87 @@ export function cadaclysm_blacksmith_quaternion_to_transform(q, centre) {
|
|
|
28040
28343
|
}
|
|
28041
28344
|
}
|
|
28042
28345
|
|
|
28346
|
+
/**
|
|
28347
|
+
* The edges an edges `query` picks on `solid`, ascending edge-table rows, as C's `query_edges`.
|
|
28348
|
+
* @param {number} solid
|
|
28349
|
+
* @param {string} query
|
|
28350
|
+
* @returns {Uint32Array}
|
|
28351
|
+
*/
|
|
28352
|
+
export function cadaclysm_blacksmith_query_edges(solid, query) {
|
|
28353
|
+
try {
|
|
28354
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
28355
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
28356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
28357
|
+
wasm.cadaclysm_blacksmith_query_edges(retptr, solid, ptr0, len0);
|
|
28358
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28359
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
28360
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
28361
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
28362
|
+
if (r3) {
|
|
28363
|
+
throw takeObject(r2);
|
|
28364
|
+
}
|
|
28365
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
28366
|
+
wasm.__wbindgen_export5(r0, r1 * 4, 4);
|
|
28367
|
+
return v2;
|
|
28368
|
+
} finally {
|
|
28369
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28370
|
+
}
|
|
28371
|
+
}
|
|
28372
|
+
|
|
28373
|
+
/**
|
|
28374
|
+
* The faces a faces `query` (JSON) picks on `solid`, ascending, as C's `query_faces`.
|
|
28375
|
+
* @param {number} solid
|
|
28376
|
+
* @param {string} query
|
|
28377
|
+
* @returns {Uint32Array}
|
|
28378
|
+
*/
|
|
28379
|
+
export function cadaclysm_blacksmith_query_faces(solid, query) {
|
|
28380
|
+
try {
|
|
28381
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
28382
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
28383
|
+
const len0 = WASM_VECTOR_LEN;
|
|
28384
|
+
wasm.cadaclysm_blacksmith_query_faces(retptr, solid, ptr0, len0);
|
|
28385
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28386
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
28387
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
28388
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
28389
|
+
if (r3) {
|
|
28390
|
+
throw takeObject(r2);
|
|
28391
|
+
}
|
|
28392
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
28393
|
+
wasm.__wbindgen_export5(r0, r1 * 4, 4);
|
|
28394
|
+
return v2;
|
|
28395
|
+
} finally {
|
|
28396
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28397
|
+
}
|
|
28398
|
+
}
|
|
28399
|
+
|
|
28400
|
+
/**
|
|
28401
|
+
* The vertices a vertices `query` picks on `solid`, ascending, as C's `query_vertices`.
|
|
28402
|
+
* @param {number} solid
|
|
28403
|
+
* @param {string} query
|
|
28404
|
+
* @returns {Uint32Array}
|
|
28405
|
+
*/
|
|
28406
|
+
export function cadaclysm_blacksmith_query_vertices(solid, query) {
|
|
28407
|
+
try {
|
|
28408
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
28409
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
28410
|
+
const len0 = WASM_VECTOR_LEN;
|
|
28411
|
+
wasm.cadaclysm_blacksmith_query_vertices(retptr, solid, ptr0, len0);
|
|
28412
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28413
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
28414
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
28415
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
28416
|
+
if (r3) {
|
|
28417
|
+
throw takeObject(r2);
|
|
28418
|
+
}
|
|
28419
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
28420
|
+
wasm.__wbindgen_export5(r0, r1 * 4, 4);
|
|
28421
|
+
return v2;
|
|
28422
|
+
} finally {
|
|
28423
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
28424
|
+
}
|
|
28425
|
+
}
|
|
28426
|
+
|
|
28043
28427
|
/**
|
|
28044
28428
|
* The rail-revolved sheet, or with `solid` the closed body, as C's `rail_revolve`.
|
|
28045
28429
|
* @param {number} profile
|
|
@@ -29542,31 +29926,6 @@ export function cadaclysm_blacksmith_section_profile(designation) {
|
|
|
29542
29926
|
}
|
|
29543
29927
|
}
|
|
29544
29928
|
|
|
29545
|
-
/**
|
|
29546
|
-
* @param {number} solid
|
|
29547
|
-
* @param {number} kind
|
|
29548
|
-
* @param {Float64Array} v
|
|
29549
|
-
* @param {number} index
|
|
29550
|
-
* @returns {number}
|
|
29551
|
-
*/
|
|
29552
|
-
export function cadaclysm_blacksmith_select_face(solid, kind, v, index) {
|
|
29553
|
-
try {
|
|
29554
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
29555
|
-
const ptr0 = passArrayF64ToWasm0(v, wasm.__wbindgen_export);
|
|
29556
|
-
const len0 = WASM_VECTOR_LEN;
|
|
29557
|
-
wasm.cadaclysm_blacksmith_select_face(retptr, solid, kind, ptr0, len0, index);
|
|
29558
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
29559
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
29560
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
29561
|
-
if (r2) {
|
|
29562
|
-
throw takeObject(r1);
|
|
29563
|
-
}
|
|
29564
|
-
return r0 >>> 0;
|
|
29565
|
-
} finally {
|
|
29566
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
29567
|
-
}
|
|
29568
|
-
}
|
|
29569
|
-
|
|
29570
29929
|
/**
|
|
29571
29930
|
* Where `solid` passes through itself, as an intersection handle read and released as
|
|
29572
29931
|
* `intersect`'s, with `solid` on both sides: never along its own edges and vertices, a
|
|
@@ -32308,7 +32667,8 @@ export function cadaclysm_blacksmith_sketch_pattern_circular(h, ids, centre, cou
|
|
|
32308
32667
|
|
|
32309
32668
|
/**
|
|
32310
32669
|
* As `sketch_pattern_circular`, `count_expr` (none or empty for `count`) an `"=expression"` for
|
|
32311
|
-
* the count and `step_expr` (none or empty for `step` radians) one in
|
|
32670
|
+
* the count and `step_expr` (none or empty for `step` radians) one in radians for the step
|
|
32671
|
+
* (`"=deg(360) / holes"`):
|
|
32312
32672
|
* `[feature, k, m, s, d, copies..., steps..., dimensions...]`.
|
|
32313
32673
|
* @param {number} h
|
|
32314
32674
|
* @param {Uint32Array} ids
|
|
@@ -33826,6 +34186,36 @@ export function cadaclysm_blacksmith_solid_profile_hits(solid, profile, frame, t
|
|
|
33826
34186
|
}
|
|
33827
34187
|
}
|
|
33828
34188
|
|
|
34189
|
+
/**
|
|
34190
|
+
* `solid`'s part properties as a JSON object, keys sorted, as C's `solid_properties`.
|
|
34191
|
+
* @param {number} solid
|
|
34192
|
+
* @returns {string}
|
|
34193
|
+
*/
|
|
34194
|
+
export function cadaclysm_blacksmith_solid_properties(solid) {
|
|
34195
|
+
let deferred2_0;
|
|
34196
|
+
let deferred2_1;
|
|
34197
|
+
try {
|
|
34198
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34199
|
+
wasm.cadaclysm_blacksmith_solid_properties(retptr, solid);
|
|
34200
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34201
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34202
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34203
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
34204
|
+
var ptr1 = r0;
|
|
34205
|
+
var len1 = r1;
|
|
34206
|
+
if (r3) {
|
|
34207
|
+
ptr1 = 0; len1 = 0;
|
|
34208
|
+
throw takeObject(r2);
|
|
34209
|
+
}
|
|
34210
|
+
deferred2_0 = ptr1;
|
|
34211
|
+
deferred2_1 = len1;
|
|
34212
|
+
return getStringFromWasm0(ptr1, len1);
|
|
34213
|
+
} finally {
|
|
34214
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34215
|
+
wasm.__wbindgen_export5(deferred2_0, deferred2_1, 1);
|
|
34216
|
+
}
|
|
34217
|
+
}
|
|
34218
|
+
|
|
33829
34219
|
/**
|
|
33830
34220
|
* `solid` placed by `matrix` made rigid, as C's `solid_purge_placement`: `[solid, the rigid
|
|
33831
34221
|
* rest's 16 numbers, inexact]`, C's outs in order.
|
|
@@ -34483,6 +34873,59 @@ export function cadaclysm_blacksmith_solid_weld_bead(solid, edge, size) {
|
|
|
34483
34873
|
}
|
|
34484
34874
|
}
|
|
34485
34875
|
|
|
34876
|
+
/**
|
|
34877
|
+
* `solid` with the `part:<key>` properties among `pairs_json` (`[name, text]` pairs), as C's
|
|
34878
|
+
* `solid_with_file_properties`.
|
|
34879
|
+
* @param {number} solid
|
|
34880
|
+
* @param {string} pairs_json
|
|
34881
|
+
* @returns {number}
|
|
34882
|
+
*/
|
|
34883
|
+
export function cadaclysm_blacksmith_solid_with_file_properties(solid, pairs_json) {
|
|
34884
|
+
try {
|
|
34885
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34886
|
+
const ptr0 = passStringToWasm0(pairs_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
34887
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34888
|
+
wasm.cadaclysm_blacksmith_solid_with_file_properties(retptr, solid, ptr0, len0);
|
|
34889
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34890
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34891
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34892
|
+
if (r2) {
|
|
34893
|
+
throw takeObject(r1);
|
|
34894
|
+
}
|
|
34895
|
+
return r0 >>> 0;
|
|
34896
|
+
} finally {
|
|
34897
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34898
|
+
}
|
|
34899
|
+
}
|
|
34900
|
+
|
|
34901
|
+
/**
|
|
34902
|
+
* `solid` with part property `key` set to `value_json` (a JSON string, number or
|
|
34903
|
+
* `{"date": "YYYY-MM-DD"}`), as C's `solid_with_property`.
|
|
34904
|
+
* @param {number} solid
|
|
34905
|
+
* @param {string} key
|
|
34906
|
+
* @param {string} value_json
|
|
34907
|
+
* @returns {number}
|
|
34908
|
+
*/
|
|
34909
|
+
export function cadaclysm_blacksmith_solid_with_property(solid, key, value_json) {
|
|
34910
|
+
try {
|
|
34911
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34912
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
34913
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34914
|
+
const ptr1 = passStringToWasm0(value_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
34915
|
+
const len1 = WASM_VECTOR_LEN;
|
|
34916
|
+
wasm.cadaclysm_blacksmith_solid_with_property(retptr, solid, ptr0, len0, ptr1, len1);
|
|
34917
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34918
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34919
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34920
|
+
if (r2) {
|
|
34921
|
+
throw takeObject(r1);
|
|
34922
|
+
}
|
|
34923
|
+
return r0 >>> 0;
|
|
34924
|
+
} finally {
|
|
34925
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34926
|
+
}
|
|
34927
|
+
}
|
|
34928
|
+
|
|
34486
34929
|
/**
|
|
34487
34930
|
* A new solid: `solid` declaring `absolute` and `angular` (radians) instead; `undefined`,
|
|
34488
34931
|
* `null`, 0 or NaN declares nothing for that field (JS hands `undefined` over as NaN, `null` as
|
|
@@ -34508,6 +34951,30 @@ export function cadaclysm_blacksmith_solid_with_tolerances(solid, absolute, angu
|
|
|
34508
34951
|
}
|
|
34509
34952
|
}
|
|
34510
34953
|
|
|
34954
|
+
/**
|
|
34955
|
+
* `solid` without part property `key`, as C's `solid_without_property`.
|
|
34956
|
+
* @param {number} solid
|
|
34957
|
+
* @param {string} key
|
|
34958
|
+
* @returns {number}
|
|
34959
|
+
*/
|
|
34960
|
+
export function cadaclysm_blacksmith_solid_without_property(solid, key) {
|
|
34961
|
+
try {
|
|
34962
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
34963
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
34964
|
+
const len0 = WASM_VECTOR_LEN;
|
|
34965
|
+
wasm.cadaclysm_blacksmith_solid_without_property(retptr, solid, ptr0, len0);
|
|
34966
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
34967
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
34968
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
34969
|
+
if (r2) {
|
|
34970
|
+
throw takeObject(r1);
|
|
34971
|
+
}
|
|
34972
|
+
return r0 >>> 0;
|
|
34973
|
+
} finally {
|
|
34974
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34975
|
+
}
|
|
34976
|
+
}
|
|
34977
|
+
|
|
34511
34978
|
/**
|
|
34512
34979
|
* @param {number} r
|
|
34513
34980
|
* @returns {number}
|
|
@@ -36042,19 +36509,19 @@ export function cadaclysm_blacksmith_subd_subdivide(subd, faces) {
|
|
|
36042
36509
|
/**
|
|
36043
36510
|
* The cage as an exact solid and what the conversion did, as `[solid, report]`, where C
|
|
36044
36511
|
* writes the report through an out-pointer: `report` is `{regular, refined, steps,
|
|
36045
|
-
* levels, deviation,
|
|
36046
|
-
* xyz. `tolerance <= 0`, `
|
|
36512
|
+
* levels, deviation, g1_angle, deviation_at, g1_at}`, the two points `Float64Array`s of
|
|
36513
|
+
* xyz, `g1_angle` in radians. `tolerance <= 0`, `g1_angle <= 0` (radians) and `max_levels` 0 take the defaults; a
|
|
36047
36514
|
* cage the conversion cannot hold within them throws with the figures it measured.
|
|
36048
36515
|
* @param {number} subd
|
|
36049
36516
|
* @param {number} tolerance
|
|
36050
|
-
* @param {number}
|
|
36517
|
+
* @param {number} g1_angle
|
|
36051
36518
|
* @param {number} max_levels
|
|
36052
36519
|
* @returns {any}
|
|
36053
36520
|
*/
|
|
36054
|
-
export function cadaclysm_blacksmith_subd_to_solid(subd, tolerance,
|
|
36521
|
+
export function cadaclysm_blacksmith_subd_to_solid(subd, tolerance, g1_angle, max_levels) {
|
|
36055
36522
|
try {
|
|
36056
36523
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
36057
|
-
wasm.cadaclysm_blacksmith_subd_to_solid(retptr, subd, tolerance,
|
|
36524
|
+
wasm.cadaclysm_blacksmith_subd_to_solid(retptr, subd, tolerance, g1_angle, max_levels);
|
|
36058
36525
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
36059
36526
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
36060
36527
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -36070,19 +36537,19 @@ export function cadaclysm_blacksmith_subd_to_solid(subd, tolerance, g1_angle_deg
|
|
|
36070
36537
|
/**
|
|
36071
36538
|
* [`cadaclysm_blacksmith_subd_to_solid`] with packing a choice, as `[solid, report]`:
|
|
36072
36539
|
* `pack` false gives one face per patch, and the report carries C's two out-structs'
|
|
36073
|
-
* fields in one object, `{regular, refined, steps, levels, deviation,
|
|
36540
|
+
* fields in one object, `{regular, refined, steps, levels, deviation, g1_angle,
|
|
36074
36541
|
* deviation_at, g1_at, faces, packed_faces}`.
|
|
36075
36542
|
* @param {number} subd
|
|
36076
36543
|
* @param {number} tolerance
|
|
36077
|
-
* @param {number}
|
|
36544
|
+
* @param {number} g1_angle
|
|
36078
36545
|
* @param {number} max_levels
|
|
36079
36546
|
* @param {boolean} pack
|
|
36080
36547
|
* @returns {any}
|
|
36081
36548
|
*/
|
|
36082
|
-
export function cadaclysm_blacksmith_subd_to_solid_with(subd, tolerance,
|
|
36549
|
+
export function cadaclysm_blacksmith_subd_to_solid_with(subd, tolerance, g1_angle, max_levels, pack) {
|
|
36083
36550
|
try {
|
|
36084
36551
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
36085
|
-
wasm.cadaclysm_blacksmith_subd_to_solid_with(retptr, subd, tolerance,
|
|
36552
|
+
wasm.cadaclysm_blacksmith_subd_to_solid_with(retptr, subd, tolerance, g1_angle, max_levels, pack);
|
|
36086
36553
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
36087
36554
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
36088
36555
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -37408,7 +37875,7 @@ export function cadaclysm_blacksmith_thread_tool(solid, face, designation, pitch
|
|
|
37408
37875
|
}
|
|
37409
37876
|
|
|
37410
37877
|
/**
|
|
37411
|
-
* A V-bit's included angle in
|
|
37878
|
+
* A V-bit's included angle in radians; `NaN` for any other shape, as in C.
|
|
37412
37879
|
* @param {number} t
|
|
37413
37880
|
* @returns {number}
|
|
37414
37881
|
*/
|
|
@@ -37625,13 +38092,13 @@ export function cadaclysm_blacksmith_tool_shape(t) {
|
|
|
37625
38092
|
|
|
37626
38093
|
/**
|
|
37627
38094
|
* @param {number} t
|
|
37628
|
-
* @param {number}
|
|
38095
|
+
* @param {number} angle
|
|
37629
38096
|
* @returns {number}
|
|
37630
38097
|
*/
|
|
37631
|
-
export function cadaclysm_blacksmith_tool_with_ramp_angle(t,
|
|
38098
|
+
export function cadaclysm_blacksmith_tool_with_ramp_angle(t, angle) {
|
|
37632
38099
|
try {
|
|
37633
38100
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
37634
|
-
wasm.cadaclysm_blacksmith_tool_with_ramp_angle(retptr, t,
|
|
38101
|
+
wasm.cadaclysm_blacksmith_tool_with_ramp_angle(retptr, t, angle);
|
|
37635
38102
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
37636
38103
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
37637
38104
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -39548,6 +40015,114 @@ export function cadaclysm_blacksmith_unfillet(solid, face) {
|
|
|
39548
40015
|
}
|
|
39549
40016
|
}
|
|
39550
40017
|
|
|
40018
|
+
/**
|
|
40019
|
+
* `value` in unit `from` as a number in unit `to`, as C's `units_convert`.
|
|
40020
|
+
* @param {number} value
|
|
40021
|
+
* @param {string} from
|
|
40022
|
+
* @param {string} to
|
|
40023
|
+
* @returns {number}
|
|
40024
|
+
*/
|
|
40025
|
+
export function cadaclysm_blacksmith_units_convert(value, from, to) {
|
|
40026
|
+
try {
|
|
40027
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
40028
|
+
const ptr0 = passStringToWasm0(from, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40029
|
+
const len0 = WASM_VECTOR_LEN;
|
|
40030
|
+
const ptr1 = passStringToWasm0(to, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40031
|
+
const len1 = WASM_VECTOR_LEN;
|
|
40032
|
+
wasm.cadaclysm_blacksmith_units_convert(retptr, value, ptr0, len0, ptr1, len1);
|
|
40033
|
+
var r0 = getDataViewMemory0().getFloat64(retptr + 8 * 0, true);
|
|
40034
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
40035
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
40036
|
+
if (r3) {
|
|
40037
|
+
throw takeObject(r2);
|
|
40038
|
+
}
|
|
40039
|
+
return r0;
|
|
40040
|
+
} finally {
|
|
40041
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
40042
|
+
}
|
|
40043
|
+
}
|
|
40044
|
+
|
|
40045
|
+
/**
|
|
40046
|
+
* A unit expression with no names as a number in `unit`, as C's `units_evaluate`.
|
|
40047
|
+
* @param {string} text
|
|
40048
|
+
* @param {string} unit
|
|
40049
|
+
* @returns {number}
|
|
40050
|
+
*/
|
|
40051
|
+
export function cadaclysm_blacksmith_units_evaluate(text, unit) {
|
|
40052
|
+
try {
|
|
40053
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
40054
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40055
|
+
const len0 = WASM_VECTOR_LEN;
|
|
40056
|
+
const ptr1 = passStringToWasm0(unit, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40057
|
+
const len1 = WASM_VECTOR_LEN;
|
|
40058
|
+
wasm.cadaclysm_blacksmith_units_evaluate(retptr, ptr0, len0, ptr1, len1);
|
|
40059
|
+
var r0 = getDataViewMemory0().getFloat64(retptr + 8 * 0, true);
|
|
40060
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
40061
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
40062
|
+
if (r3) {
|
|
40063
|
+
throw takeObject(r2);
|
|
40064
|
+
}
|
|
40065
|
+
return r0;
|
|
40066
|
+
} finally {
|
|
40067
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
40068
|
+
}
|
|
40069
|
+
}
|
|
40070
|
+
|
|
40071
|
+
/**
|
|
40072
|
+
* `value` (in `unit`) with `precision` decimals and the unit, as C's `units_format`.
|
|
40073
|
+
* @param {number} value
|
|
40074
|
+
* @param {string} unit
|
|
40075
|
+
* @param {number} precision
|
|
40076
|
+
* @returns {string}
|
|
40077
|
+
*/
|
|
40078
|
+
export function cadaclysm_blacksmith_units_format(value, unit, precision) {
|
|
40079
|
+
let deferred3_0;
|
|
40080
|
+
let deferred3_1;
|
|
40081
|
+
try {
|
|
40082
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
40083
|
+
const ptr0 = passStringToWasm0(unit, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
40084
|
+
const len0 = WASM_VECTOR_LEN;
|
|
40085
|
+
wasm.cadaclysm_blacksmith_units_format(retptr, value, ptr0, len0, precision);
|
|
40086
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
40087
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
40088
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
40089
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
40090
|
+
var ptr2 = r0;
|
|
40091
|
+
var len2 = r1;
|
|
40092
|
+
if (r3) {
|
|
40093
|
+
ptr2 = 0; len2 = 0;
|
|
40094
|
+
throw takeObject(r2);
|
|
40095
|
+
}
|
|
40096
|
+
deferred3_0 = ptr2;
|
|
40097
|
+
deferred3_1 = len2;
|
|
40098
|
+
return getStringFromWasm0(ptr2, len2);
|
|
40099
|
+
} finally {
|
|
40100
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
40101
|
+
wasm.__wbindgen_export5(deferred3_0, deferred3_1, 1);
|
|
40102
|
+
}
|
|
40103
|
+
}
|
|
40104
|
+
|
|
40105
|
+
/**
|
|
40106
|
+
* The unit words as JSON text, as C's `units_list`.
|
|
40107
|
+
* @returns {string}
|
|
40108
|
+
*/
|
|
40109
|
+
export function cadaclysm_blacksmith_units_list() {
|
|
40110
|
+
let deferred1_0;
|
|
40111
|
+
let deferred1_1;
|
|
40112
|
+
try {
|
|
40113
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
40114
|
+
wasm.cadaclysm_blacksmith_units_list(retptr);
|
|
40115
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
40116
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
40117
|
+
deferred1_0 = r0;
|
|
40118
|
+
deferred1_1 = r1;
|
|
40119
|
+
return getStringFromWasm0(r0, r1);
|
|
40120
|
+
} finally {
|
|
40121
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
40122
|
+
wasm.__wbindgen_export5(deferred1_0, deferred1_1, 1);
|
|
40123
|
+
}
|
|
40124
|
+
}
|
|
40125
|
+
|
|
39551
40126
|
/**
|
|
39552
40127
|
* @param {number} solid
|
|
39553
40128
|
* @param {number} tolerance
|
|
@@ -42531,7 +43106,7 @@ function __wbg_get_imports() {
|
|
|
42531
43106
|
const a = state0.a;
|
|
42532
43107
|
state0.a = 0;
|
|
42533
43108
|
try {
|
|
42534
|
-
return
|
|
43109
|
+
return __wasm_bindgen_func_elem_33027(a, state0.b, arg0, arg1);
|
|
42535
43110
|
} finally {
|
|
42536
43111
|
state0.a = a;
|
|
42537
43112
|
}
|
|
@@ -42589,7 +43164,7 @@ function __wbg_get_imports() {
|
|
|
42589
43164
|
const a = state0.a;
|
|
42590
43165
|
state0.a = 0;
|
|
42591
43166
|
try {
|
|
42592
|
-
return
|
|
43167
|
+
return __wasm_bindgen_func_elem_33027(a, state0.b, arg0, arg1);
|
|
42593
43168
|
} finally {
|
|
42594
43169
|
state0.a = a;
|
|
42595
43170
|
}
|
|
@@ -43788,52 +44363,52 @@ function __wbg_get_imports() {
|
|
|
43788
44363
|
}, arguments); },
|
|
43789
44364
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
43790
44365
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 18, ret: Externref, inner_ret: Some(Externref) }, mutable: false }) -> Externref`.
|
|
43791
|
-
const ret = makeClosure(arg0, arg1,
|
|
44366
|
+
const ret = makeClosure(arg0, arg1, __wasm_bindgen_func_elem_1038);
|
|
43792
44367
|
return addHeapObject(ret);
|
|
43793
44368
|
},
|
|
43794
44369
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
43795
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
43796
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44370
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5368, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
44371
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_33006);
|
|
43797
44372
|
return addHeapObject(ret);
|
|
43798
44373
|
},
|
|
43799
44374
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
43800
44375
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 628, ret: Externref, inner_ret: Some(Externref) }, mutable: true }) -> Externref`.
|
|
43801
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44376
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8184);
|
|
43802
44377
|
return addHeapObject(ret);
|
|
43803
44378
|
},
|
|
43804
44379
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
43805
44380
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1247, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
43806
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44381
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10099);
|
|
43807
44382
|
return addHeapObject(ret);
|
|
43808
44383
|
},
|
|
43809
44384
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
43810
44385
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1252, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
43811
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44386
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10104);
|
|
43812
44387
|
return addHeapObject(ret);
|
|
43813
44388
|
},
|
|
43814
44389
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
43815
44390
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1252, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
43816
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44391
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10104_5);
|
|
43817
44392
|
return addHeapObject(ret);
|
|
43818
44393
|
},
|
|
43819
44394
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
43820
44395
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 20, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
43821
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44396
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1040);
|
|
43822
44397
|
return addHeapObject(ret);
|
|
43823
44398
|
},
|
|
43824
44399
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
43825
44400
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1247, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
43826
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44401
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10099_7);
|
|
43827
44402
|
return addHeapObject(ret);
|
|
43828
44403
|
},
|
|
43829
44404
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
43830
44405
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1247, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
43831
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44406
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_10099_8);
|
|
43832
44407
|
return addHeapObject(ret);
|
|
43833
44408
|
},
|
|
43834
44409
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
43835
44410
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 22, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
43836
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
44411
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1042);
|
|
43837
44412
|
return addHeapObject(ret);
|
|
43838
44413
|
},
|
|
43839
44414
|
__wbindgen_cast_000000000000000b: function(arg0) {
|
|
@@ -43895,36 +44470,36 @@ function __wbg_get_imports() {
|
|
|
43895
44470
|
};
|
|
43896
44471
|
}
|
|
43897
44472
|
|
|
43898
|
-
function
|
|
43899
|
-
wasm.
|
|
44473
|
+
function __wasm_bindgen_func_elem_1042(arg0, arg1) {
|
|
44474
|
+
wasm.__wasm_bindgen_func_elem_1042(arg0, arg1);
|
|
43900
44475
|
}
|
|
43901
44476
|
|
|
43902
|
-
function
|
|
43903
|
-
wasm.
|
|
44477
|
+
function __wasm_bindgen_func_elem_10104(arg0, arg1, arg2) {
|
|
44478
|
+
wasm.__wasm_bindgen_func_elem_10104(arg0, arg1, addHeapObject(arg2));
|
|
43904
44479
|
}
|
|
43905
44480
|
|
|
43906
|
-
function
|
|
43907
|
-
wasm.
|
|
44481
|
+
function __wasm_bindgen_func_elem_10104_5(arg0, arg1, arg2) {
|
|
44482
|
+
wasm.__wasm_bindgen_func_elem_10104_5(arg0, arg1, addHeapObject(arg2));
|
|
43908
44483
|
}
|
|
43909
44484
|
|
|
43910
|
-
function
|
|
43911
|
-
wasm.
|
|
44485
|
+
function __wasm_bindgen_func_elem_1040(arg0, arg1, arg2) {
|
|
44486
|
+
wasm.__wasm_bindgen_func_elem_1040(arg0, arg1, addHeapObject(arg2));
|
|
43912
44487
|
}
|
|
43913
44488
|
|
|
43914
|
-
function
|
|
43915
|
-
const ret = wasm.
|
|
44489
|
+
function __wasm_bindgen_func_elem_1038(arg0, arg1, arg2) {
|
|
44490
|
+
const ret = wasm.__wasm_bindgen_func_elem_1038(arg0, arg1, addHeapObject(arg2));
|
|
43916
44491
|
return takeObject(ret);
|
|
43917
44492
|
}
|
|
43918
44493
|
|
|
43919
|
-
function
|
|
43920
|
-
const ret = wasm.
|
|
44494
|
+
function __wasm_bindgen_func_elem_8184(arg0, arg1, arg2) {
|
|
44495
|
+
const ret = wasm.__wasm_bindgen_func_elem_8184(arg0, arg1, addHeapObject(arg2));
|
|
43921
44496
|
return takeObject(ret);
|
|
43922
44497
|
}
|
|
43923
44498
|
|
|
43924
|
-
function
|
|
44499
|
+
function __wasm_bindgen_func_elem_33006(arg0, arg1, arg2) {
|
|
43925
44500
|
try {
|
|
43926
44501
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
43927
|
-
wasm.
|
|
44502
|
+
wasm.__wasm_bindgen_func_elem_33006(retptr, arg0, arg1, addHeapObject(arg2));
|
|
43928
44503
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
43929
44504
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
43930
44505
|
if (r1) {
|
|
@@ -43935,10 +44510,10 @@ function __wasm_bindgen_func_elem_32654(arg0, arg1, arg2) {
|
|
|
43935
44510
|
}
|
|
43936
44511
|
}
|
|
43937
44512
|
|
|
43938
|
-
function
|
|
44513
|
+
function __wasm_bindgen_func_elem_10099(arg0, arg1, arg2) {
|
|
43939
44514
|
try {
|
|
43940
44515
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
43941
|
-
wasm.
|
|
44516
|
+
wasm.__wasm_bindgen_func_elem_10099(retptr, arg0, arg1, addHeapObject(arg2));
|
|
43942
44517
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
43943
44518
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
43944
44519
|
if (r1) {
|
|
@@ -43949,10 +44524,10 @@ function __wasm_bindgen_func_elem_10053(arg0, arg1, arg2) {
|
|
|
43949
44524
|
}
|
|
43950
44525
|
}
|
|
43951
44526
|
|
|
43952
|
-
function
|
|
44527
|
+
function __wasm_bindgen_func_elem_10099_7(arg0, arg1, arg2) {
|
|
43953
44528
|
try {
|
|
43954
44529
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
43955
|
-
wasm.
|
|
44530
|
+
wasm.__wasm_bindgen_func_elem_10099_7(retptr, arg0, arg1, addHeapObject(arg2));
|
|
43956
44531
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
43957
44532
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
43958
44533
|
if (r1) {
|
|
@@ -43963,10 +44538,10 @@ function __wasm_bindgen_func_elem_10053_7(arg0, arg1, arg2) {
|
|
|
43963
44538
|
}
|
|
43964
44539
|
}
|
|
43965
44540
|
|
|
43966
|
-
function
|
|
44541
|
+
function __wasm_bindgen_func_elem_10099_8(arg0, arg1, arg2) {
|
|
43967
44542
|
try {
|
|
43968
44543
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
43969
|
-
wasm.
|
|
44544
|
+
wasm.__wasm_bindgen_func_elem_10099_8(retptr, arg0, arg1, addHeapObject(arg2));
|
|
43970
44545
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
43971
44546
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
43972
44547
|
if (r1) {
|
|
@@ -43977,8 +44552,8 @@ function __wasm_bindgen_func_elem_10053_8(arg0, arg1, arg2) {
|
|
|
43977
44552
|
}
|
|
43978
44553
|
}
|
|
43979
44554
|
|
|
43980
|
-
function
|
|
43981
|
-
wasm.
|
|
44555
|
+
function __wasm_bindgen_func_elem_33027(arg0, arg1, arg2, arg3) {
|
|
44556
|
+
wasm.__wasm_bindgen_func_elem_33027(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
43982
44557
|
}
|
|
43983
44558
|
|
|
43984
44559
|
|