@grida/canvas-wasm 0.0.74 → 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.
- package/dist/grida-canvas-wasm.js +1 -1
- package/dist/grida_canvas_wasm.wasm +0 -0
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +153 -125
- package/dist/index.mjs +153 -125
- package/package.json +1 -1
|
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
|
*/
|
|
@@ -473,4 +480,4 @@ declare class ApplicationFactory {
|
|
|
473
480
|
createWebGLCanvasSurfaceById(htmlcanvasid: string): Scene;
|
|
474
481
|
}
|
|
475
482
|
|
|
476
|
-
export { type GridaCanvasModuleInitOptions, Scene, init as default, types, version };
|
|
483
|
+
export { ApplicationFactory, type GridaCanvasModuleInitOptions, Scene, init as default, types, version };
|
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
|
*/
|
|
@@ -473,4 +480,4 @@ declare class ApplicationFactory {
|
|
|
473
480
|
createWebGLCanvasSurfaceById(htmlcanvasid: string): Scene;
|
|
474
481
|
}
|
|
475
482
|
|
|
476
|
-
export { type GridaCanvasModuleInitOptions, Scene, init as default, types, version };
|
|
483
|
+
export { ApplicationFactory, type GridaCanvasModuleInitOptions, Scene, init as default, types, version };
|