brepkit-wasm 2.44.0 → 2.45.0

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.
@@ -2880,7 +2880,7 @@ export class BrepKernel {
2880
2880
  */
2881
2881
  constructor() {
2882
2882
  const ret = wasm.brepkernel_new();
2883
- this.__wbg_ptr = ret >>> 0;
2883
+ this.__wbg_ptr = ret;
2884
2884
  BrepKernelFinalization.register(this, this.__wbg_ptr, this);
2885
2885
  return this;
2886
2886
  }
@@ -4074,7 +4074,6 @@ if (Symbol.dispose) BrepKernel.prototype[Symbol.dispose] = BrepKernel.prototype.
4074
4074
  */
4075
4075
  export class JsEdgeLines {
4076
4076
  static __wrap(ptr) {
4077
- ptr = ptr >>> 0;
4078
4077
  const obj = Object.create(JsEdgeLines.prototype);
4079
4078
  obj.__wbg_ptr = ptr;
4080
4079
  JsEdgeLinesFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -4146,7 +4145,6 @@ if (Symbol.dispose) JsEdgeLines.prototype[Symbol.dispose] = JsEdgeLines.prototyp
4146
4145
  */
4147
4146
  export class JsMesh {
4148
4147
  static __wrap(ptr) {
4149
- ptr = ptr >>> 0;
4150
4148
  const obj = Object.create(JsMesh.prototype);
4151
4149
  obj.__wbg_ptr = ptr;
4152
4150
  JsMeshFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -4273,7 +4271,7 @@ export class JsPoint3 {
4273
4271
  */
4274
4272
  constructor(x, y, z) {
4275
4273
  const ret = wasm.jspoint3_new(x, y, z);
4276
- this.__wbg_ptr = ret >>> 0;
4274
+ this.__wbg_ptr = ret;
4277
4275
  JsPoint3Finalization.register(this, this.__wbg_ptr, this);
4278
4276
  return this;
4279
4277
  }
@@ -4355,7 +4353,7 @@ export class JsVec3 {
4355
4353
  */
4356
4354
  constructor(x, y, z) {
4357
4355
  const ret = wasm.jsvec3_new(x, y, z);
4358
- this.__wbg_ptr = ret >>> 0;
4356
+ this.__wbg_ptr = ret;
4359
4357
  JsVec3Finalization.register(this, this.__wbg_ptr, this);
4360
4358
  return this;
4361
4359
  }
@@ -4382,18 +4380,18 @@ export class JsVec3 {
4382
4380
  }
4383
4381
  }
4384
4382
  if (Symbol.dispose) JsVec3.prototype[Symbol.dispose] = JsVec3.prototype.free;
4385
- export function __wbg_Error_960c155d3d49e4c2(arg0, arg1) {
4383
+ export function __wbg_Error_3639a60ed15f87e7(arg0, arg1) {
4386
4384
  const ret = Error(getStringFromWasm0(arg0, arg1));
4387
4385
  return ret;
4388
4386
  }
4389
- export function __wbg___wbindgen_debug_string_ab4b34d23d6778bd(arg0, arg1) {
4387
+ export function __wbg___wbindgen_debug_string_07cb72cfcc952e2b(arg0, arg1) {
4390
4388
  const ret = debugString(arg1);
4391
4389
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4392
4390
  const len1 = WASM_VECTOR_LEN;
4393
4391
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4394
4392
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4395
4393
  }
4396
- export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
4394
+ export function __wbg___wbindgen_throw_9c75d47bf9e7731e(arg0, arg1) {
4397
4395
  throw new Error(getStringFromWasm0(arg0, arg1));
4398
4396
  }
4399
4397
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
@@ -4412,19 +4410,19 @@ export function __wbindgen_init_externref_table() {
4412
4410
  }
4413
4411
  const BrepKernelFinalization = (typeof FinalizationRegistry === 'undefined')
4414
4412
  ? { register: () => {}, unregister: () => {} }
4415
- : new FinalizationRegistry(ptr => wasm.__wbg_brepkernel_free(ptr >>> 0, 1));
4413
+ : new FinalizationRegistry(ptr => wasm.__wbg_brepkernel_free(ptr, 1));
4416
4414
  const JsEdgeLinesFinalization = (typeof FinalizationRegistry === 'undefined')
4417
4415
  ? { register: () => {}, unregister: () => {} }
4418
- : new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr >>> 0, 1));
4416
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr, 1));
4419
4417
  const JsMeshFinalization = (typeof FinalizationRegistry === 'undefined')
4420
4418
  ? { register: () => {}, unregister: () => {} }
4421
- : new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr >>> 0, 1));
4419
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr, 1));
4422
4420
  const JsPoint3Finalization = (typeof FinalizationRegistry === 'undefined')
4423
4421
  ? { register: () => {}, unregister: () => {} }
4424
- : new FinalizationRegistry(ptr => wasm.__wbg_jspoint3_free(ptr >>> 0, 1));
4422
+ : new FinalizationRegistry(ptr => wasm.__wbg_jspoint3_free(ptr, 1));
4425
4423
  const JsVec3Finalization = (typeof FinalizationRegistry === 'undefined')
4426
4424
  ? { register: () => {}, unregister: () => {} }
4427
- : new FinalizationRegistry(ptr => wasm.__wbg_jsvec3_free(ptr >>> 0, 1));
4425
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsvec3_free(ptr, 1));
4428
4426
 
4429
4427
  function debugString(val) {
4430
4428
  // primitive types
@@ -4523,8 +4521,7 @@ function getFloat64ArrayMemory0() {
4523
4521
  }
4524
4522
 
4525
4523
  function getStringFromWasm0(ptr, len) {
4526
- ptr = ptr >>> 0;
4527
- return decodeText(ptr, len);
4524
+ return decodeText(ptr >>> 0, len);
4528
4525
  }
4529
4526
 
4530
4527
  let cachedUint32ArrayMemory0 = null;
Binary file
@@ -2882,7 +2882,7 @@ class BrepKernel {
2882
2882
  */
2883
2883
  constructor() {
2884
2884
  const ret = wasm.brepkernel_new();
2885
- this.__wbg_ptr = ret >>> 0;
2885
+ this.__wbg_ptr = ret;
2886
2886
  BrepKernelFinalization.register(this, this.__wbg_ptr, this);
2887
2887
  return this;
2888
2888
  }
@@ -4077,7 +4077,6 @@ exports.BrepKernel = BrepKernel;
4077
4077
  */
4078
4078
  class JsEdgeLines {
4079
4079
  static __wrap(ptr) {
4080
- ptr = ptr >>> 0;
4081
4080
  const obj = Object.create(JsEdgeLines.prototype);
4082
4081
  obj.__wbg_ptr = ptr;
4083
4082
  JsEdgeLinesFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -4150,7 +4149,6 @@ exports.JsEdgeLines = JsEdgeLines;
4150
4149
  */
4151
4150
  class JsMesh {
4152
4151
  static __wrap(ptr) {
4153
- ptr = ptr >>> 0;
4154
4152
  const obj = Object.create(JsMesh.prototype);
4155
4153
  obj.__wbg_ptr = ptr;
4156
4154
  JsMeshFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -4278,7 +4276,7 @@ class JsPoint3 {
4278
4276
  */
4279
4277
  constructor(x, y, z) {
4280
4278
  const ret = wasm.jspoint3_new(x, y, z);
4281
- this.__wbg_ptr = ret >>> 0;
4279
+ this.__wbg_ptr = ret;
4282
4280
  JsPoint3Finalization.register(this, this.__wbg_ptr, this);
4283
4281
  return this;
4284
4282
  }
@@ -4361,7 +4359,7 @@ class JsVec3 {
4361
4359
  */
4362
4360
  constructor(x, y, z) {
4363
4361
  const ret = wasm.jsvec3_new(x, y, z);
4364
- this.__wbg_ptr = ret >>> 0;
4362
+ this.__wbg_ptr = ret;
4365
4363
  JsVec3Finalization.register(this, this.__wbg_ptr, this);
4366
4364
  return this;
4367
4365
  }
@@ -4392,18 +4390,18 @@ exports.JsVec3 = JsVec3;
4392
4390
  function __wbg_get_imports() {
4393
4391
  const import0 = {
4394
4392
  __proto__: null,
4395
- __wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
4393
+ __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
4396
4394
  const ret = Error(getStringFromWasm0(arg0, arg1));
4397
4395
  return ret;
4398
4396
  },
4399
- __wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
4397
+ __wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
4400
4398
  const ret = debugString(arg1);
4401
4399
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4402
4400
  const len1 = WASM_VECTOR_LEN;
4403
4401
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4404
4402
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4405
4403
  },
4406
- __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
4404
+ __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
4407
4405
  throw new Error(getStringFromWasm0(arg0, arg1));
4408
4406
  },
4409
4407
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
@@ -4429,19 +4427,19 @@ function __wbg_get_imports() {
4429
4427
 
4430
4428
  const BrepKernelFinalization = (typeof FinalizationRegistry === 'undefined')
4431
4429
  ? { register: () => {}, unregister: () => {} }
4432
- : new FinalizationRegistry(ptr => wasm.__wbg_brepkernel_free(ptr >>> 0, 1));
4430
+ : new FinalizationRegistry(ptr => wasm.__wbg_brepkernel_free(ptr, 1));
4433
4431
  const JsEdgeLinesFinalization = (typeof FinalizationRegistry === 'undefined')
4434
4432
  ? { register: () => {}, unregister: () => {} }
4435
- : new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr >>> 0, 1));
4433
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsedgelines_free(ptr, 1));
4436
4434
  const JsMeshFinalization = (typeof FinalizationRegistry === 'undefined')
4437
4435
  ? { register: () => {}, unregister: () => {} }
4438
- : new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr >>> 0, 1));
4436
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsmesh_free(ptr, 1));
4439
4437
  const JsPoint3Finalization = (typeof FinalizationRegistry === 'undefined')
4440
4438
  ? { register: () => {}, unregister: () => {} }
4441
- : new FinalizationRegistry(ptr => wasm.__wbg_jspoint3_free(ptr >>> 0, 1));
4439
+ : new FinalizationRegistry(ptr => wasm.__wbg_jspoint3_free(ptr, 1));
4442
4440
  const JsVec3Finalization = (typeof FinalizationRegistry === 'undefined')
4443
4441
  ? { register: () => {}, unregister: () => {} }
4444
- : new FinalizationRegistry(ptr => wasm.__wbg_jsvec3_free(ptr >>> 0, 1));
4442
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsvec3_free(ptr, 1));
4445
4443
 
4446
4444
  function debugString(val) {
4447
4445
  // primitive types
@@ -4540,8 +4538,7 @@ function getFloat64ArrayMemory0() {
4540
4538
  }
4541
4539
 
4542
4540
  function getStringFromWasm0(ptr, len) {
4543
- ptr = ptr >>> 0;
4544
- return decodeText(ptr, len);
4541
+ return decodeText(ptr >>> 0, len);
4545
4542
  }
4546
4543
 
4547
4544
  let cachedUint32ArrayMemory0 = null;
@@ -4648,5 +4645,6 @@ let WASM_VECTOR_LEN = 0;
4648
4645
  const wasmPath = `${__dirname}/brepkit_wasm_bg.wasm`;
4649
4646
  const wasmBytes = require('fs').readFileSync(wasmPath);
4650
4647
  const wasmModule = new WebAssembly.Module(wasmBytes);
4651
- let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
4648
+ let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
4649
+ let wasm = wasmInstance.exports;
4652
4650
  wasm.__wbindgen_start();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "brepkit-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for brepkit — browser-native B-Rep solid modeling",
5
- "version": "2.44.0",
5
+ "version": "2.45.0",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",