brepkit-wasm 2.90.2 → 2.91.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brepkit_wasm.d.ts +19 -0
- package/brepkit_wasm.js +1 -1
- package/brepkit_wasm_bg.js +36 -0
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +37 -0
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -2048,3 +2048,22 @@ export class JsVec3 {
|
|
|
2048
2048
|
*/
|
|
2049
2049
|
z: number;
|
|
2050
2050
|
}
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
2054
|
+
* error}`. Without this every `log::warn!` in the engine is silently
|
|
2055
|
+
* dropped under wasm-pack.
|
|
2056
|
+
*
|
|
2057
|
+
* `level` is one of `"off"`, `"error"`, `"warn"`, `"info"`, `"debug"`,
|
|
2058
|
+
* `"trace"` (case-insensitive). Default is `"off"` (no log calls reach
|
|
2059
|
+
* the console). Idempotent — call as often as you like to change the
|
|
2060
|
+
* filter.
|
|
2061
|
+
*
|
|
2062
|
+
* Throws a JS Error if `level` is not one of the recognised values so a
|
|
2063
|
+
* typo surfaces immediately instead of producing the same observable
|
|
2064
|
+
* behaviour as never calling `setLogLevel` at all.
|
|
2065
|
+
*
|
|
2066
|
+
* Recommended: call once at app start with `"warn"` to surface boolean /
|
|
2067
|
+
* validation diagnostics without flooding the console.
|
|
2068
|
+
*/
|
|
2069
|
+
export function setLogLevel(level: string): void;
|
package/brepkit_wasm.js
CHANGED
package/brepkit_wasm_bg.js
CHANGED
|
@@ -4570,6 +4570,33 @@ export class JsVec3 {
|
|
|
4570
4570
|
}
|
|
4571
4571
|
}
|
|
4572
4572
|
if (Symbol.dispose) JsVec3.prototype[Symbol.dispose] = JsVec3.prototype.free;
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
4576
|
+
* error}`. Without this every `log::warn!` in the engine is silently
|
|
4577
|
+
* dropped under wasm-pack.
|
|
4578
|
+
*
|
|
4579
|
+
* `level` is one of `"off"`, `"error"`, `"warn"`, `"info"`, `"debug"`,
|
|
4580
|
+
* `"trace"` (case-insensitive). Default is `"off"` (no log calls reach
|
|
4581
|
+
* the console). Idempotent — call as often as you like to change the
|
|
4582
|
+
* filter.
|
|
4583
|
+
*
|
|
4584
|
+
* Throws a JS Error if `level` is not one of the recognised values so a
|
|
4585
|
+
* typo surfaces immediately instead of producing the same observable
|
|
4586
|
+
* behaviour as never calling `setLogLevel` at all.
|
|
4587
|
+
*
|
|
4588
|
+
* Recommended: call once at app start with `"warn"` to surface boolean /
|
|
4589
|
+
* validation diagnostics without flooding the console.
|
|
4590
|
+
* @param {string} level
|
|
4591
|
+
*/
|
|
4592
|
+
export function setLogLevel(level) {
|
|
4593
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4595
|
+
const ret = wasm.setLogLevel(ptr0, len0);
|
|
4596
|
+
if (ret[1]) {
|
|
4597
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
4598
|
+
}
|
|
4599
|
+
}
|
|
4573
4600
|
export function __wbg_Error_bce6d499ff0a4aff(arg0, arg1) {
|
|
4574
4601
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
4575
4602
|
return ret;
|
|
@@ -4584,6 +4611,15 @@ export function __wbg___wbindgen_debug_string_edece8177ad01481(arg0, arg1) {
|
|
|
4584
4611
|
export function __wbg___wbindgen_throw_9c31b086c2b26051(arg0, arg1) {
|
|
4585
4612
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4586
4613
|
}
|
|
4614
|
+
export function __wbg_error_790e2be51a23c313(arg0, arg1) {
|
|
4615
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
4616
|
+
}
|
|
4617
|
+
export function __wbg_log_008325d06e32e8a6(arg0, arg1) {
|
|
4618
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
4619
|
+
}
|
|
4620
|
+
export function __wbg_warn_87c4c375d431d2fa(arg0, arg1) {
|
|
4621
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4622
|
+
}
|
|
4587
4623
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
4588
4624
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
4589
4625
|
const ret = getStringFromWasm0(arg0, arg1);
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -4577,6 +4577,34 @@ class JsVec3 {
|
|
|
4577
4577
|
}
|
|
4578
4578
|
if (Symbol.dispose) JsVec3.prototype[Symbol.dispose] = JsVec3.prototype.free;
|
|
4579
4579
|
exports.JsVec3 = JsVec3;
|
|
4580
|
+
|
|
4581
|
+
/**
|
|
4582
|
+
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
4583
|
+
* error}`. Without this every `log::warn!` in the engine is silently
|
|
4584
|
+
* dropped under wasm-pack.
|
|
4585
|
+
*
|
|
4586
|
+
* `level` is one of `"off"`, `"error"`, `"warn"`, `"info"`, `"debug"`,
|
|
4587
|
+
* `"trace"` (case-insensitive). Default is `"off"` (no log calls reach
|
|
4588
|
+
* the console). Idempotent — call as often as you like to change the
|
|
4589
|
+
* filter.
|
|
4590
|
+
*
|
|
4591
|
+
* Throws a JS Error if `level` is not one of the recognised values so a
|
|
4592
|
+
* typo surfaces immediately instead of producing the same observable
|
|
4593
|
+
* behaviour as never calling `setLogLevel` at all.
|
|
4594
|
+
*
|
|
4595
|
+
* Recommended: call once at app start with `"warn"` to surface boolean /
|
|
4596
|
+
* validation diagnostics without flooding the console.
|
|
4597
|
+
* @param {string} level
|
|
4598
|
+
*/
|
|
4599
|
+
function setLogLevel(level) {
|
|
4600
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4601
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4602
|
+
const ret = wasm.setLogLevel(ptr0, len0);
|
|
4603
|
+
if (ret[1]) {
|
|
4604
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
4605
|
+
}
|
|
4606
|
+
}
|
|
4607
|
+
exports.setLogLevel = setLogLevel;
|
|
4580
4608
|
function __wbg_get_imports() {
|
|
4581
4609
|
const import0 = {
|
|
4582
4610
|
__proto__: null,
|
|
@@ -4594,6 +4622,15 @@ function __wbg_get_imports() {
|
|
|
4594
4622
|
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
4595
4623
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4596
4624
|
},
|
|
4625
|
+
__wbg_error_790e2be51a23c313: function(arg0, arg1) {
|
|
4626
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
4627
|
+
},
|
|
4628
|
+
__wbg_log_008325d06e32e8a6: function(arg0, arg1) {
|
|
4629
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
4630
|
+
},
|
|
4631
|
+
__wbg_warn_87c4c375d431d2fa: function(arg0, arg1) {
|
|
4632
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
4633
|
+
},
|
|
4597
4634
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
4598
4635
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
4599
4636
|
const ret = getStringFromWasm0(arg0, arg1);
|
package/package.json
CHANGED