@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.
- package/README.md +6 -13
- package/dist/grida-canvas-wasm.js +13 -7944
- package/dist/grida_canvas_wasm.wasm +0 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1929 -3606
- package/dist/index.mjs +1925 -3606
- package/package.json +1 -1
|
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
|
-
|
|
109
|
-
|
|
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
|
-
|
|
109
|
-
|
|
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 };
|