@grida/canvas-wasm 0.0.7 → 0.0.8

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
@@ -13,6 +13,7 @@ declare function createGridaCanvas(moduleArg?: {
13
13
 
14
14
  declare namespace createGridaCanvas {
15
15
  interface GridaCanvasWasmBindings {
16
+ // #region
16
17
  // ====================================================================================================
17
18
  // EMSCRIPTEN EXPOSED METHODS
18
19
  // ====================================================================================================
@@ -23,19 +24,26 @@ declare namespace createGridaCanvas {
23
24
  ): number;
24
25
  makeContextCurrent(handle: number): void;
25
26
  };
27
+
26
28
  HEAP8: Int8Array;
27
29
  HEAP16: Int16Array;
28
30
  HEAP32: Int32Array;
29
31
  HEAPF32: Float32Array;
30
32
  HEAPF64: Float64Array;
31
33
  HEAPU8: Uint8Array;
34
+ HEAPU16: Uint16Array;
35
+ HEAPU32: Uint32Array;
36
+
37
+ UTF8ToString(ptr: number, maxBytesToRead?: number): string;
32
38
  stringToUTF8(str: string, outPtr: number, maxBytesToWrite: number): void;
33
39
  lengthBytesUTF8(str: string): number;
34
- UTF8ToString(ptr: number, maxBytesToRead?: number): string;
40
+
35
41
  ___wbindgen_malloc(a0: number, a1: number): number;
36
42
  ___wbindgen_free(a0: number, a1: number, a2: number): void;
37
43
  ___wbindgen_realloc(a0: number, a1: number, a2: number, a3: number): number;
38
44
 
45
+ // #endregion
46
+
39
47
  // core memory wrapper
40
48
  _allocate(len: number): number;
41
49
  _deallocate(ptr: number, len: number): void;
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ declare function createGridaCanvas(moduleArg?: {
13
13
 
14
14
  declare namespace createGridaCanvas {
15
15
  interface GridaCanvasWasmBindings {
16
+ // #region
16
17
  // ====================================================================================================
17
18
  // EMSCRIPTEN EXPOSED METHODS
18
19
  // ====================================================================================================
@@ -23,19 +24,26 @@ declare namespace createGridaCanvas {
23
24
  ): number;
24
25
  makeContextCurrent(handle: number): void;
25
26
  };
27
+
26
28
  HEAP8: Int8Array;
27
29
  HEAP16: Int16Array;
28
30
  HEAP32: Int32Array;
29
31
  HEAPF32: Float32Array;
30
32
  HEAPF64: Float64Array;
31
33
  HEAPU8: Uint8Array;
34
+ HEAPU16: Uint16Array;
35
+ HEAPU32: Uint32Array;
36
+
37
+ UTF8ToString(ptr: number, maxBytesToRead?: number): string;
32
38
  stringToUTF8(str: string, outPtr: number, maxBytesToWrite: number): void;
33
39
  lengthBytesUTF8(str: string): number;
34
- UTF8ToString(ptr: number, maxBytesToRead?: number): string;
40
+
35
41
  ___wbindgen_malloc(a0: number, a1: number): number;
36
42
  ___wbindgen_free(a0: number, a1: number, a2: number): void;
37
43
  ___wbindgen_realloc(a0: number, a1: number, a2: number, a3: number): number;
38
44
 
45
+ // #endregion
46
+
39
47
  // core memory wrapper
40
48
  _allocate(len: number): number;
41
49
  _deallocate(ptr: number, len: number): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grida/canvas-wasm",
3
3
  "description": "WASM bindings for Grida Canvas",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "keywords": [
6
6
  "grida",
7
7
  "canvas",