@grida/canvas-wasm 0.0.2 → 0.0.4

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
@@ -105,8 +105,8 @@ declare function init(opts?: GridaCanvasInitOptions): Promise<ApplicationFactory
105
105
  declare class ApplicationFactory {
106
106
  private readonly module;
107
107
  constructor(module: createGridaCanvas.GridaCanvasWasmBindings);
108
- createCanvasSurface(htmlcanvasid: string): Grida2D;
109
- createSurface(width: number, height: number): Grida2D;
108
+ createWebGLCanvasSurface(canvas: HTMLCanvasElement): Grida2D;
109
+ createWebGLCanvasSurfaceById(htmlcanvasid: string): Grida2D;
110
110
  }
111
111
  declare class Grida2D {
112
112
  private ptr;
@@ -170,4 +170,4 @@ declare class Grida2D {
170
170
  devtools_rendering_set_show_ruler(show: boolean): void;
171
171
  }
172
172
 
173
- export { init as default };
173
+ export { Grida2D, init as default };
package/dist/index.d.ts CHANGED
@@ -105,8 +105,8 @@ declare function init(opts?: GridaCanvasInitOptions): Promise<ApplicationFactory
105
105
  declare class ApplicationFactory {
106
106
  private readonly module;
107
107
  constructor(module: createGridaCanvas.GridaCanvasWasmBindings);
108
- createCanvasSurface(htmlcanvasid: string): Grida2D;
109
- createSurface(width: number, height: number): Grida2D;
108
+ createWebGLCanvasSurface(canvas: HTMLCanvasElement): Grida2D;
109
+ createWebGLCanvasSurfaceById(htmlcanvasid: string): Grida2D;
110
110
  }
111
111
  declare class Grida2D {
112
112
  private ptr;
@@ -170,4 +170,4 @@ declare class Grida2D {
170
170
  devtools_rendering_set_show_ruler(show: boolean): void;
171
171
  }
172
172
 
173
- export { init as default };
173
+ export { Grida2D, init as default };