@grida/canvas-wasm 0.0.75 → 0.0.76

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.
Binary file
package/dist/index.d.mts CHANGED
@@ -273,6 +273,12 @@ interface CreateImageResourceResult {
273
273
  height: number;
274
274
  type: string;
275
275
  }
276
+ interface TransactionApplyReport {
277
+ success: boolean;
278
+ applied: number;
279
+ total: number;
280
+ error?: string;
281
+ }
276
282
  declare class Scene {
277
283
  private appptr;
278
284
  private module;
@@ -295,6 +301,7 @@ declare class Scene {
295
301
  * @param data - The JSON string to load.
296
302
  */
297
303
  loadScene(data: string): void;
304
+ applyTransactions(batch: unknown[][]): TransactionApplyReport[] | null;
298
305
  /**
299
306
  * @deprecated - test use only
300
307
  */
package/dist/index.d.ts CHANGED
@@ -273,6 +273,12 @@ interface CreateImageResourceResult {
273
273
  height: number;
274
274
  type: string;
275
275
  }
276
+ interface TransactionApplyReport {
277
+ success: boolean;
278
+ applied: number;
279
+ total: number;
280
+ error?: string;
281
+ }
276
282
  declare class Scene {
277
283
  private appptr;
278
284
  private module;
@@ -295,6 +301,7 @@ declare class Scene {
295
301
  * @param data - The JSON string to load.
296
302
  */
297
303
  loadScene(data: string): void;
304
+ applyTransactions(batch: unknown[][]): TransactionApplyReport[] | null;
298
305
  /**
299
306
  * @deprecated - test use only
300
307
  */