@takumi-rs/wasm 1.7.0 → 1.8.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/dist/export.cjs CHANGED
@@ -6,6 +6,10 @@ let _takumi_rs_helpers = require("@takumi-rs/helpers");
6
6
  //#region pkg/takumi_wasm.js
7
7
  /**
8
8
  * The main renderer for Takumi image rendering engine.
9
+ *
10
+ * State lives behind a lock and every method takes `&self`, mirroring the
11
+ * napi bindings: a panic mid-call can't leave the wasm-bindgen borrow flag
12
+ * permanently set, which would otherwise fail all subsequent calls.
9
13
  */
10
14
  var Renderer$1 = class {
11
15
  __destroy_into_raw() {
@@ -22,7 +26,8 @@ var Renderer$1 = class {
22
26
  * Clears the renderer's internal image store.
23
27
  */
24
28
  clearImageStore() {
25
- wasm.renderer_clearImageStore(this.__wbg_ptr);
29
+ const ret = wasm.renderer_clearImageStore(this.__wbg_ptr);
30
+ if (ret[1]) throw takeFromExternrefTable0(ret[0]);
26
31
  }
27
32
  /**
28
33
  * Encodes a precomputed frame sequence into an animated image buffer.
@@ -136,10 +141,10 @@ function __wbg_get_imports() {
136
141
  __proto__: null,
137
142
  "./takumi_wasm_bg.js": {
138
143
  __proto__: null,
139
- __wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
144
+ __wbg_Error_9dc85fe1bc224456: function(arg0, arg1) {
140
145
  return Error(getStringFromWasm0(arg0, arg1));
141
146
  },
142
- __wbg_Number_6b506e6536831eaa: function(arg0) {
147
+ __wbg_Number_4779d427bae39753: function(arg0) {
143
148
  return Number(arg0);
144
149
  },
145
150
  __wbg_String_8564e559799eccda: function(arg0, arg1) {
@@ -148,55 +153,55 @@ function __wbg_get_imports() {
148
153
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
149
154
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
150
155
  },
151
- __wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d: function(arg0, arg1) {
156
+ __wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6: function(arg0, arg1) {
152
157
  const v = arg1;
153
158
  const ret = typeof v === "bigint" ? v : void 0;
154
159
  getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
155
160
  getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
156
161
  },
157
- __wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
162
+ __wbg___wbindgen_boolean_get_b131b2f36d6b2f55: function(arg0) {
158
163
  const v = arg0;
159
164
  const ret = typeof v === "boolean" ? v : void 0;
160
165
  return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
161
166
  },
162
- __wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
167
+ __wbg___wbindgen_debug_string_56c147eb1a51f0c4: function(arg0, arg1) {
163
168
  const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
164
169
  const len1 = WASM_VECTOR_LEN;
165
170
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
166
171
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
167
172
  },
168
- __wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
173
+ __wbg___wbindgen_in_ce8569b2fc6f5088: function(arg0, arg1) {
169
174
  return arg0 in arg1;
170
175
  },
171
- __wbg___wbindgen_is_bigint_6ffd6468a9bc44b9: function(arg0) {
176
+ __wbg___wbindgen_is_bigint_df272c65456269c2: function(arg0) {
172
177
  return typeof arg0 === "bigint";
173
178
  },
174
- __wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
179
+ __wbg___wbindgen_is_function_147961669f068cd4: function(arg0) {
175
180
  return typeof arg0 === "function";
176
181
  },
177
- __wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
182
+ __wbg___wbindgen_is_object_3a2c414391dbf751: function(arg0) {
178
183
  const val = arg0;
179
184
  return typeof val === "object" && val !== null;
180
185
  },
181
- __wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
186
+ __wbg___wbindgen_is_string_6541b0f6ecd4e8e5: function(arg0) {
182
187
  return typeof arg0 === "string";
183
188
  },
184
- __wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
189
+ __wbg___wbindgen_is_undefined_4410e3c20a99fa97: function(arg0) {
185
190
  return arg0 === void 0;
186
191
  },
187
- __wbg___wbindgen_jsval_eq_1068e624fa87f6ab: function(arg0, arg1) {
192
+ __wbg___wbindgen_jsval_eq_174c93ec61bab0c5: function(arg0, arg1) {
188
193
  return arg0 === arg1;
189
194
  },
190
- __wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
195
+ __wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c: function(arg0, arg1) {
191
196
  return arg0 == arg1;
192
197
  },
193
- __wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
198
+ __wbg___wbindgen_number_get_588ed6b97f0d7e14: function(arg0, arg1) {
194
199
  const obj = arg1;
195
200
  const ret = typeof obj === "number" ? obj : void 0;
196
201
  getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
197
202
  getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
198
203
  },
199
- __wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
204
+ __wbg___wbindgen_string_get_fa2687d531ed17a5: function(arg0, arg1) {
200
205
  const obj = arg1;
201
206
  const ret = typeof obj === "string" ? obj : void 0;
202
207
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -204,35 +209,35 @@ function __wbg_get_imports() {
204
209
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
205
210
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
206
211
  },
207
- __wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
212
+ __wbg___wbindgen_throw_bbadd78c1bac3a77: function(arg0, arg1) {
208
213
  throw new Error(getStringFromWasm0(arg0, arg1));
209
214
  },
210
- __wbg_call_8a89609d89f6608a: function() {
215
+ __wbg_call_91f00ddc43e01490: function() {
211
216
  return handleError(function(arg0, arg1) {
212
217
  return arg0.call(arg1);
213
218
  }, arguments);
214
219
  },
215
- __wbg_done_60cf307fcc680536: function(arg0) {
220
+ __wbg_done_6a8439e544ec6206: function(arg0) {
216
221
  return arg0.done;
217
222
  },
218
- __wbg_entries_04b37a02507f1713: function(arg0) {
223
+ __wbg_entries_5a6a7e7e0df09fe5: function(arg0) {
219
224
  return Object.entries(arg0);
220
225
  },
221
- __wbg_get_1f8f054ddbaa7db2: function() {
226
+ __wbg_get_44e98e27bda25b5b: function() {
222
227
  return handleError(function(arg0, arg1) {
223
228
  return Reflect.get(arg0, arg1);
224
229
  }, arguments);
225
230
  },
226
- __wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
231
+ __wbg_get_4b90d6d8c5deb5d5: function(arg0, arg1) {
227
232
  return arg0[arg1 >>> 0];
228
233
  },
229
- __wbg_get_unchecked_33f6e5c9e2f2d6b2: function(arg0, arg1) {
234
+ __wbg_get_unchecked_46e778e3cec74b5e: function(arg0, arg1) {
230
235
  return arg0[arg1 >>> 0];
231
236
  },
232
237
  __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
233
238
  return arg0[arg1];
234
239
  },
235
- __wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
240
+ __wbg_instanceof_ArrayBuffer_a581da923203f29f: function(arg0) {
236
241
  let result;
237
242
  try {
238
243
  result = arg0 instanceof ArrayBuffer;
@@ -241,7 +246,7 @@ function __wbg_get_imports() {
241
246
  }
242
247
  return result;
243
248
  },
244
- __wbg_instanceof_Map_9fc06d9a951bcee6: function(arg0) {
249
+ __wbg_instanceof_Map_7f94c740225003e2: function(arg0) {
245
250
  let result;
246
251
  try {
247
252
  result = arg0 instanceof Map;
@@ -250,7 +255,7 @@ function __wbg_get_imports() {
250
255
  }
251
256
  return result;
252
257
  },
253
- __wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
258
+ __wbg_instanceof_Uint8Array_b6fe1ac89eba107e: function(arg0) {
254
259
  let result;
255
260
  try {
256
261
  result = arg0 instanceof Uint8Array;
@@ -259,51 +264,51 @@ function __wbg_get_imports() {
259
264
  }
260
265
  return result;
261
266
  },
262
- __wbg_isArray_67c2c9c4313f4448: function(arg0) {
267
+ __wbg_isArray_139f48e3c057ede8: function(arg0) {
263
268
  return Array.isArray(arg0);
264
269
  },
265
- __wbg_isSafeInteger_66acec27e09e99a7: function(arg0) {
270
+ __wbg_isSafeInteger_c22ccb4af2201fe9: function(arg0) {
266
271
  return Number.isSafeInteger(arg0);
267
272
  },
268
- __wbg_iterator_8732428d309e270e: function() {
273
+ __wbg_iterator_9b36cebf3be7b7cd: function() {
269
274
  return Symbol.iterator;
270
275
  },
271
- __wbg_length_4a591ecaa01354d9: function(arg0) {
276
+ __wbg_length_68a9d5278d084f4f: function(arg0) {
272
277
  return arg0.length;
273
278
  },
274
- __wbg_length_66f1a4b2e9026940: function(arg0) {
279
+ __wbg_length_fb04d16d7bdf6d4c: function(arg0) {
275
280
  return arg0.length;
276
281
  },
277
- __wbg_new_50bb5ebeecef71a8: function(arg0, arg1) {
278
- return new Error(getStringFromWasm0(arg0, arg1));
279
- },
280
- __wbg_new_578aeef4b6b94378: function(arg0) {
281
- return new Uint8Array(arg0);
282
+ __wbg_new_0b303268aa395a38: function() {
283
+ return new Array();
282
284
  },
283
- __wbg_new_ce1ab61c1c2b300d: function() {
285
+ __wbg_new_20b778a4c5c691c3: function() {
284
286
  return /* @__PURE__ */ new Object();
285
287
  },
286
- __wbg_new_d90091b82fdf5b91: function() {
287
- return new Array();
288
+ __wbg_new_5fae30e6b23db8df: function(arg0, arg1) {
289
+ return new Error(getStringFromWasm0(arg0, arg1));
288
290
  },
289
- __wbg_next_9e03acdf51c4960d: function(arg0) {
290
- return arg0.next;
291
+ __wbg_new_b06772b280cc6e52: function(arg0) {
292
+ return new Uint8Array(arg0);
291
293
  },
292
- __wbg_next_eb8ca7351fa27906: function() {
294
+ __wbg_next_8cb028b6ba50743f: function() {
293
295
  return handleError(function(arg0) {
294
296
  return arg0.next();
295
297
  }, arguments);
296
298
  },
297
- __wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
299
+ __wbg_next_cfd0b146c9538df8: function(arg0) {
300
+ return arg0.next;
301
+ },
302
+ __wbg_prototypesetcall_956c7493c68e29b4: function(arg0, arg1, arg2) {
298
303
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
299
304
  },
300
305
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
301
306
  arg0[arg1] = arg2;
302
307
  },
303
- __wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
308
+ __wbg_set_da33c120a6584674: function(arg0, arg1, arg2) {
304
309
  arg0[arg1 >>> 0] = arg2;
305
310
  },
306
- __wbg_value_f3625092ee4b37f4: function(arg0) {
311
+ __wbg_value_3d3defe09fb1ffca: function(arg0) {
307
312
  return arg0.value;
308
313
  },
309
314
  __wbindgen_cast_0000000000000001: function(arg0) {
package/dist/export.d.cts CHANGED
@@ -170,6 +170,10 @@ type AnimationSceneSource = {
170
170
  };
171
171
  /**
172
172
  * The main renderer for Takumi image rendering engine.
173
+ *
174
+ * State lives behind a lock and every method takes `&self`, mirroring the
175
+ * napi bindings: a panic mid-call can't leave the wasm-bindgen borrow flag
176
+ * permanently set, which would otherwise fail all subsequent calls.
173
177
  */
174
178
  declare class Renderer$1 {
175
179
  free(): void;
@@ -217,7 +221,7 @@ type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Modul
217
221
  interface InitOutput {
218
222
  readonly memory: WebAssembly.Memory;
219
223
  readonly __wbg_renderer_free: (a: number, b: number) => void;
220
- readonly renderer_clearImageStore: (a: number) => void;
224
+ readonly renderer_clearImageStore: (a: number) => [number, number];
221
225
  readonly renderer_encodeFrames: (a: number, b: number, c: number, d: any) => [number, number, number, number];
222
226
  readonly renderer_loadFont: (a: number, b: any) => [number, number];
223
227
  readonly renderer_measure: (a: number, b: any, c: number) => [number, number, number];
package/dist/export.d.mts CHANGED
@@ -170,6 +170,10 @@ type AnimationSceneSource = {
170
170
  };
171
171
  /**
172
172
  * The main renderer for Takumi image rendering engine.
173
+ *
174
+ * State lives behind a lock and every method takes `&self`, mirroring the
175
+ * napi bindings: a panic mid-call can't leave the wasm-bindgen borrow flag
176
+ * permanently set, which would otherwise fail all subsequent calls.
173
177
  */
174
178
  declare class Renderer$1 {
175
179
  free(): void;
@@ -217,7 +221,7 @@ type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Modul
217
221
  interface InitOutput {
218
222
  readonly memory: WebAssembly.Memory;
219
223
  readonly __wbg_renderer_free: (a: number, b: number) => void;
220
- readonly renderer_clearImageStore: (a: number) => void;
224
+ readonly renderer_clearImageStore: (a: number) => [number, number];
221
225
  readonly renderer_encodeFrames: (a: number, b: number, c: number, d: any) => [number, number, number, number];
222
226
  readonly renderer_loadFont: (a: number, b: any) => [number, number];
223
227
  readonly renderer_measure: (a: number, b: any, c: number) => [number, number, number];
package/dist/export.mjs CHANGED
@@ -2,6 +2,10 @@ import { extractResourceUrls } from "@takumi-rs/helpers";
2
2
  //#region pkg/takumi_wasm.js
3
3
  /**
4
4
  * The main renderer for Takumi image rendering engine.
5
+ *
6
+ * State lives behind a lock and every method takes `&self`, mirroring the
7
+ * napi bindings: a panic mid-call can't leave the wasm-bindgen borrow flag
8
+ * permanently set, which would otherwise fail all subsequent calls.
5
9
  */
6
10
  var Renderer$1 = class {
7
11
  __destroy_into_raw() {
@@ -18,7 +22,8 @@ var Renderer$1 = class {
18
22
  * Clears the renderer's internal image store.
19
23
  */
20
24
  clearImageStore() {
21
- wasm.renderer_clearImageStore(this.__wbg_ptr);
25
+ const ret = wasm.renderer_clearImageStore(this.__wbg_ptr);
26
+ if (ret[1]) throw takeFromExternrefTable0(ret[0]);
22
27
  }
23
28
  /**
24
29
  * Encodes a precomputed frame sequence into an animated image buffer.
@@ -132,10 +137,10 @@ function __wbg_get_imports() {
132
137
  __proto__: null,
133
138
  "./takumi_wasm_bg.js": {
134
139
  __proto__: null,
135
- __wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
140
+ __wbg_Error_9dc85fe1bc224456: function(arg0, arg1) {
136
141
  return Error(getStringFromWasm0(arg0, arg1));
137
142
  },
138
- __wbg_Number_6b506e6536831eaa: function(arg0) {
143
+ __wbg_Number_4779d427bae39753: function(arg0) {
139
144
  return Number(arg0);
140
145
  },
141
146
  __wbg_String_8564e559799eccda: function(arg0, arg1) {
@@ -144,55 +149,55 @@ function __wbg_get_imports() {
144
149
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
145
150
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
146
151
  },
147
- __wbg___wbindgen_bigint_get_as_i64_38130e98eecd467d: function(arg0, arg1) {
152
+ __wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6: function(arg0, arg1) {
148
153
  const v = arg1;
149
154
  const ret = typeof v === "bigint" ? v : void 0;
150
155
  getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
151
156
  getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
152
157
  },
153
- __wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
158
+ __wbg___wbindgen_boolean_get_b131b2f36d6b2f55: function(arg0) {
154
159
  const v = arg0;
155
160
  const ret = typeof v === "boolean" ? v : void 0;
156
161
  return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
157
162
  },
158
- __wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
163
+ __wbg___wbindgen_debug_string_56c147eb1a51f0c4: function(arg0, arg1) {
159
164
  const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
160
165
  const len1 = WASM_VECTOR_LEN;
161
166
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
162
167
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
163
168
  },
164
- __wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
169
+ __wbg___wbindgen_in_ce8569b2fc6f5088: function(arg0, arg1) {
165
170
  return arg0 in arg1;
166
171
  },
167
- __wbg___wbindgen_is_bigint_6ffd6468a9bc44b9: function(arg0) {
172
+ __wbg___wbindgen_is_bigint_df272c65456269c2: function(arg0) {
168
173
  return typeof arg0 === "bigint";
169
174
  },
170
- __wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
175
+ __wbg___wbindgen_is_function_147961669f068cd4: function(arg0) {
171
176
  return typeof arg0 === "function";
172
177
  },
173
- __wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
178
+ __wbg___wbindgen_is_object_3a2c414391dbf751: function(arg0) {
174
179
  const val = arg0;
175
180
  return typeof val === "object" && val !== null;
176
181
  },
177
- __wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
182
+ __wbg___wbindgen_is_string_6541b0f6ecd4e8e5: function(arg0) {
178
183
  return typeof arg0 === "string";
179
184
  },
180
- __wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
185
+ __wbg___wbindgen_is_undefined_4410e3c20a99fa97: function(arg0) {
181
186
  return arg0 === void 0;
182
187
  },
183
- __wbg___wbindgen_jsval_eq_1068e624fa87f6ab: function(arg0, arg1) {
188
+ __wbg___wbindgen_jsval_eq_174c93ec61bab0c5: function(arg0, arg1) {
184
189
  return arg0 === arg1;
185
190
  },
186
- __wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
191
+ __wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c: function(arg0, arg1) {
187
192
  return arg0 == arg1;
188
193
  },
189
- __wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
194
+ __wbg___wbindgen_number_get_588ed6b97f0d7e14: function(arg0, arg1) {
190
195
  const obj = arg1;
191
196
  const ret = typeof obj === "number" ? obj : void 0;
192
197
  getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
193
198
  getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
194
199
  },
195
- __wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
200
+ __wbg___wbindgen_string_get_fa2687d531ed17a5: function(arg0, arg1) {
196
201
  const obj = arg1;
197
202
  const ret = typeof obj === "string" ? obj : void 0;
198
203
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -200,35 +205,35 @@ function __wbg_get_imports() {
200
205
  getDataViewMemory0().setInt32(arg0 + 4, len1, true);
201
206
  getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
202
207
  },
203
- __wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
208
+ __wbg___wbindgen_throw_bbadd78c1bac3a77: function(arg0, arg1) {
204
209
  throw new Error(getStringFromWasm0(arg0, arg1));
205
210
  },
206
- __wbg_call_8a89609d89f6608a: function() {
211
+ __wbg_call_91f00ddc43e01490: function() {
207
212
  return handleError(function(arg0, arg1) {
208
213
  return arg0.call(arg1);
209
214
  }, arguments);
210
215
  },
211
- __wbg_done_60cf307fcc680536: function(arg0) {
216
+ __wbg_done_6a8439e544ec6206: function(arg0) {
212
217
  return arg0.done;
213
218
  },
214
- __wbg_entries_04b37a02507f1713: function(arg0) {
219
+ __wbg_entries_5a6a7e7e0df09fe5: function(arg0) {
215
220
  return Object.entries(arg0);
216
221
  },
217
- __wbg_get_1f8f054ddbaa7db2: function() {
222
+ __wbg_get_44e98e27bda25b5b: function() {
218
223
  return handleError(function(arg0, arg1) {
219
224
  return Reflect.get(arg0, arg1);
220
225
  }, arguments);
221
226
  },
222
- __wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
227
+ __wbg_get_4b90d6d8c5deb5d5: function(arg0, arg1) {
223
228
  return arg0[arg1 >>> 0];
224
229
  },
225
- __wbg_get_unchecked_33f6e5c9e2f2d6b2: function(arg0, arg1) {
230
+ __wbg_get_unchecked_46e778e3cec74b5e: function(arg0, arg1) {
226
231
  return arg0[arg1 >>> 0];
227
232
  },
228
233
  __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
229
234
  return arg0[arg1];
230
235
  },
231
- __wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
236
+ __wbg_instanceof_ArrayBuffer_a581da923203f29f: function(arg0) {
232
237
  let result;
233
238
  try {
234
239
  result = arg0 instanceof ArrayBuffer;
@@ -237,7 +242,7 @@ function __wbg_get_imports() {
237
242
  }
238
243
  return result;
239
244
  },
240
- __wbg_instanceof_Map_9fc06d9a951bcee6: function(arg0) {
245
+ __wbg_instanceof_Map_7f94c740225003e2: function(arg0) {
241
246
  let result;
242
247
  try {
243
248
  result = arg0 instanceof Map;
@@ -246,7 +251,7 @@ function __wbg_get_imports() {
246
251
  }
247
252
  return result;
248
253
  },
249
- __wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
254
+ __wbg_instanceof_Uint8Array_b6fe1ac89eba107e: function(arg0) {
250
255
  let result;
251
256
  try {
252
257
  result = arg0 instanceof Uint8Array;
@@ -255,51 +260,51 @@ function __wbg_get_imports() {
255
260
  }
256
261
  return result;
257
262
  },
258
- __wbg_isArray_67c2c9c4313f4448: function(arg0) {
263
+ __wbg_isArray_139f48e3c057ede8: function(arg0) {
259
264
  return Array.isArray(arg0);
260
265
  },
261
- __wbg_isSafeInteger_66acec27e09e99a7: function(arg0) {
266
+ __wbg_isSafeInteger_c22ccb4af2201fe9: function(arg0) {
262
267
  return Number.isSafeInteger(arg0);
263
268
  },
264
- __wbg_iterator_8732428d309e270e: function() {
269
+ __wbg_iterator_9b36cebf3be7b7cd: function() {
265
270
  return Symbol.iterator;
266
271
  },
267
- __wbg_length_4a591ecaa01354d9: function(arg0) {
272
+ __wbg_length_68a9d5278d084f4f: function(arg0) {
268
273
  return arg0.length;
269
274
  },
270
- __wbg_length_66f1a4b2e9026940: function(arg0) {
275
+ __wbg_length_fb04d16d7bdf6d4c: function(arg0) {
271
276
  return arg0.length;
272
277
  },
273
- __wbg_new_50bb5ebeecef71a8: function(arg0, arg1) {
274
- return new Error(getStringFromWasm0(arg0, arg1));
275
- },
276
- __wbg_new_578aeef4b6b94378: function(arg0) {
277
- return new Uint8Array(arg0);
278
+ __wbg_new_0b303268aa395a38: function() {
279
+ return new Array();
278
280
  },
279
- __wbg_new_ce1ab61c1c2b300d: function() {
281
+ __wbg_new_20b778a4c5c691c3: function() {
280
282
  return /* @__PURE__ */ new Object();
281
283
  },
282
- __wbg_new_d90091b82fdf5b91: function() {
283
- return new Array();
284
+ __wbg_new_5fae30e6b23db8df: function(arg0, arg1) {
285
+ return new Error(getStringFromWasm0(arg0, arg1));
284
286
  },
285
- __wbg_next_9e03acdf51c4960d: function(arg0) {
286
- return arg0.next;
287
+ __wbg_new_b06772b280cc6e52: function(arg0) {
288
+ return new Uint8Array(arg0);
287
289
  },
288
- __wbg_next_eb8ca7351fa27906: function() {
290
+ __wbg_next_8cb028b6ba50743f: function() {
289
291
  return handleError(function(arg0) {
290
292
  return arg0.next();
291
293
  }, arguments);
292
294
  },
293
- __wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
295
+ __wbg_next_cfd0b146c9538df8: function(arg0) {
296
+ return arg0.next;
297
+ },
298
+ __wbg_prototypesetcall_956c7493c68e29b4: function(arg0, arg1, arg2) {
294
299
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
295
300
  },
296
301
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
297
302
  arg0[arg1] = arg2;
298
303
  },
299
- __wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
304
+ __wbg_set_da33c120a6584674: function(arg0, arg1, arg2) {
300
305
  arg0[arg1 >>> 0] = arg2;
301
306
  },
302
- __wbg_value_f3625092ee4b37f4: function(arg0) {
307
+ __wbg_value_3d3defe09fb1ffca: function(arg0) {
303
308
  return arg0.value;
304
309
  },
305
310
  __wbindgen_cast_0000000000000001: function(arg0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/wasm",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "keywords": [
5
5
  "css",
6
6
  "image",
@@ -76,7 +76,7 @@
76
76
  "prepublishOnly": "jq '.dependencies[\"@takumi-rs/helpers\"] = .version' package.json > tmp.json && mv tmp.json package.json"
77
77
  },
78
78
  "dependencies": {
79
- "@takumi-rs/helpers": "1.7.0"
79
+ "@takumi-rs/helpers": "1.8.1"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/bun": "catalog:",
Binary file
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_renderer_free: (a: number, b: number) => void;
5
- export const renderer_clearImageStore: (a: number) => void;
5
+ export const renderer_clearImageStore: (a: number) => [number, number];
6
6
  export const renderer_encodeFrames: (a: number, b: number, c: number, d: any) => [number, number, number, number];
7
7
  export const renderer_loadFont: (a: number, b: any) => [number, number];
8
8
  export const renderer_measure: (a: number, b: any, c: number) => [number, number, number];