brepkit-wasm 2.124.13 → 2.125.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 +15 -0
- package/brepkit_wasm.js +1 -1
- package/brepkit_wasm_bg.js +29 -3
- package/brepkit_wasm_bg.wasm +0 -0
- package/brepkit_wasm_node.cjs +31 -3
- package/package.json +1 -1
package/brepkit_wasm.d.ts
CHANGED
|
@@ -2319,6 +2319,21 @@ export class JsVec3 {
|
|
|
2319
2319
|
z: number;
|
|
2320
2320
|
}
|
|
2321
2321
|
|
|
2322
|
+
/**
|
|
2323
|
+
* Clears the stored panic message so later reads reflect only new panics.
|
|
2324
|
+
*/
|
|
2325
|
+
export function clearLastPanicMessage(): void;
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Returns the message and source location of the most recent panic inside
|
|
2329
|
+
* the kernel, or `undefined` if none has occurred.
|
|
2330
|
+
*
|
|
2331
|
+
* After a panic the kernel object is unusable (every method throws
|
|
2332
|
+
* "recursive use of an object"); this free function remains callable and
|
|
2333
|
+
* carries the root-cause text for the failed call.
|
|
2334
|
+
*/
|
|
2335
|
+
export function lastPanicMessage(): string | undefined;
|
|
2336
|
+
|
|
2322
2337
|
/**
|
|
2323
2338
|
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
2324
2339
|
* error}`. Without this every `log::warn!` in the engine is silently
|
package/brepkit_wasm.js
CHANGED
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./brepkit_wasm_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
wasm.__wbindgen_start();
|
|
7
7
|
export {
|
|
8
|
-
BrepKernel, JsEdgeLines, JsGroupedMesh, JsMesh, JsPoint3, JsVec3, setLogLevel
|
|
8
|
+
BrepKernel, JsEdgeLines, JsGroupedMesh, JsMesh, JsPoint3, JsVec3, clearLastPanicMessage, lastPanicMessage, setLogLevel
|
|
9
9
|
} from "./brepkit_wasm_bg.js";
|
package/brepkit_wasm_bg.js
CHANGED
|
@@ -5136,6 +5136,32 @@ export class JsVec3 {
|
|
|
5136
5136
|
}
|
|
5137
5137
|
if (Symbol.dispose) JsVec3.prototype[Symbol.dispose] = JsVec3.prototype.free;
|
|
5138
5138
|
|
|
5139
|
+
/**
|
|
5140
|
+
* Clears the stored panic message so later reads reflect only new panics.
|
|
5141
|
+
*/
|
|
5142
|
+
export function clearLastPanicMessage() {
|
|
5143
|
+
wasm.clearLastPanicMessage();
|
|
5144
|
+
}
|
|
5145
|
+
|
|
5146
|
+
/**
|
|
5147
|
+
* Returns the message and source location of the most recent panic inside
|
|
5148
|
+
* the kernel, or `undefined` if none has occurred.
|
|
5149
|
+
*
|
|
5150
|
+
* After a panic the kernel object is unusable (every method throws
|
|
5151
|
+
* "recursive use of an object"); this free function remains callable and
|
|
5152
|
+
* carries the root-cause text for the failed call.
|
|
5153
|
+
* @returns {string | undefined}
|
|
5154
|
+
*/
|
|
5155
|
+
export function lastPanicMessage() {
|
|
5156
|
+
const ret = wasm.lastPanicMessage();
|
|
5157
|
+
let v1;
|
|
5158
|
+
if (ret[0] !== 0) {
|
|
5159
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
5160
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5161
|
+
}
|
|
5162
|
+
return v1;
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5139
5165
|
/**
|
|
5140
5166
|
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
5141
5167
|
* error}`. Without this every `log::warn!` in the engine is silently
|
|
@@ -5176,13 +5202,13 @@ export function __wbg___wbindgen_debug_string_c25d447a39f5578f(arg0, arg1) {
|
|
|
5176
5202
|
export function __wbg___wbindgen_throw_344f42d3211c4765(arg0, arg1) {
|
|
5177
5203
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5178
5204
|
}
|
|
5179
|
-
export function
|
|
5205
|
+
export function __wbg_error_1605411b8468f126(arg0, arg1) {
|
|
5180
5206
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5181
5207
|
}
|
|
5182
|
-
export function
|
|
5208
|
+
export function __wbg_log_1968923abccc1e03(arg0, arg1) {
|
|
5183
5209
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5184
5210
|
}
|
|
5185
|
-
export function
|
|
5211
|
+
export function __wbg_warn_1d44e443c0c683b5(arg0, arg1) {
|
|
5186
5212
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5187
5213
|
}
|
|
5188
5214
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
package/brepkit_wasm_bg.wasm
CHANGED
|
Binary file
|
package/brepkit_wasm_node.cjs
CHANGED
|
@@ -5144,6 +5144,34 @@ class JsVec3 {
|
|
|
5144
5144
|
if (Symbol.dispose) JsVec3.prototype[Symbol.dispose] = JsVec3.prototype.free;
|
|
5145
5145
|
exports.JsVec3 = JsVec3;
|
|
5146
5146
|
|
|
5147
|
+
/**
|
|
5148
|
+
* Clears the stored panic message so later reads reflect only new panics.
|
|
5149
|
+
*/
|
|
5150
|
+
function clearLastPanicMessage() {
|
|
5151
|
+
wasm.clearLastPanicMessage();
|
|
5152
|
+
}
|
|
5153
|
+
exports.clearLastPanicMessage = clearLastPanicMessage;
|
|
5154
|
+
|
|
5155
|
+
/**
|
|
5156
|
+
* Returns the message and source location of the most recent panic inside
|
|
5157
|
+
* the kernel, or `undefined` if none has occurred.
|
|
5158
|
+
*
|
|
5159
|
+
* After a panic the kernel object is unusable (every method throws
|
|
5160
|
+
* "recursive use of an object"); this free function remains callable and
|
|
5161
|
+
* carries the root-cause text for the failed call.
|
|
5162
|
+
* @returns {string | undefined}
|
|
5163
|
+
*/
|
|
5164
|
+
function lastPanicMessage() {
|
|
5165
|
+
const ret = wasm.lastPanicMessage();
|
|
5166
|
+
let v1;
|
|
5167
|
+
if (ret[0] !== 0) {
|
|
5168
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
5169
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5170
|
+
}
|
|
5171
|
+
return v1;
|
|
5172
|
+
}
|
|
5173
|
+
exports.lastPanicMessage = lastPanicMessage;
|
|
5174
|
+
|
|
5147
5175
|
/**
|
|
5148
5176
|
* Route brepkit's Rust `log::*` calls to JavaScript `console.{log, warn,
|
|
5149
5177
|
* error}`. Without this every `log::warn!` in the engine is silently
|
|
@@ -5188,13 +5216,13 @@ function __wbg_get_imports() {
|
|
|
5188
5216
|
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
5189
5217
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5190
5218
|
},
|
|
5191
|
-
|
|
5219
|
+
__wbg_error_1605411b8468f126: function(arg0, arg1) {
|
|
5192
5220
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5193
5221
|
},
|
|
5194
|
-
|
|
5222
|
+
__wbg_log_1968923abccc1e03: function(arg0, arg1) {
|
|
5195
5223
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
5196
5224
|
},
|
|
5197
|
-
|
|
5225
|
+
__wbg_warn_1d44e443c0c683b5: function(arg0, arg1) {
|
|
5198
5226
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
5199
5227
|
},
|
|
5200
5228
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
package/package.json
CHANGED