@keroway/tdsl-wasm 1.18.0 → 1.19.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keroway/tdsl-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for the Timeline DSL compiler (static compile + SVG/HTML render)",
5
- "version": "1.18.0",
5
+ "version": "1.19.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/tdsl_wasm.js CHANGED
@@ -63,7 +63,7 @@ export class JsRenderOptions {
63
63
  }
64
64
  constructor() {
65
65
  const ret = wasm.jsrenderoptions_new();
66
- this.__wbg_ptr = ret >>> 0;
66
+ this.__wbg_ptr = ret;
67
67
  JsRenderOptionsFinalization.register(this, this.__wbg_ptr, this);
68
68
  return this;
69
69
  }
@@ -481,7 +481,7 @@ export function render_svg_from_source_with_options(source, scale, opts) {
481
481
  function __wbg_get_imports() {
482
482
  const import0 = {
483
483
  __proto__: null,
484
- __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
484
+ __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
485
485
  throw new Error(getStringFromWasm0(arg0, arg1));
486
486
  },
487
487
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
@@ -523,7 +523,7 @@ function __wbg_get_imports() {
523
523
 
524
524
  const JsRenderOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
525
525
  ? { register: () => {}, unregister: () => {} }
526
- : new FinalizationRegistry(ptr => wasm.__wbg_jsrenderoptions_free(ptr >>> 0, 1));
526
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsrenderoptions_free(ptr, 1));
527
527
 
528
528
  function addHeapObject(obj) {
529
529
  if (heap_next === heap.length) heap.push(heap.length + 1);
@@ -555,8 +555,7 @@ function getDataViewMemory0() {
555
555
  }
556
556
 
557
557
  function getStringFromWasm0(ptr, len) {
558
- ptr = ptr >>> 0;
559
- return decodeText(ptr, len);
558
+ return decodeText(ptr >>> 0, len);
560
559
  }
561
560
 
562
561
  let cachedUint8ArrayMemory0 = null;
@@ -646,8 +645,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
646
645
 
647
646
  let WASM_VECTOR_LEN = 0;
648
647
 
649
- let wasmModule, wasm;
648
+ let wasmModule, wasmInstance, wasm;
650
649
  function __wbg_finalize_init(instance, module) {
650
+ wasmInstance = instance;
651
651
  wasm = instance.exports;
652
652
  wasmModule = module;
653
653
  cachedDataViewMemory0 = null;
package/tdsl_wasm_bg.wasm CHANGED
Binary file