diff --git a/napi/canvas-napi/canvas.ts b/napi/canvas-napi/canvas.ts index 987d97bc..7eead0b1 100644 --- a/napi/canvas-napi/canvas.ts +++ b/napi/canvas-napi/canvas.ts @@ -75,7 +75,7 @@ NSNotificationCenter.defaultCenter.addObserverForNameObjectQueueUsingBlock(NSApp } }); -const { CanvasRenderingContext2D, WebGLRenderingContext, WebGL2RenderingContext, GPU, GPUCanvasContext, GPUDevice } = require('./canvas-napi.darwin-arm64.node'); +const { CanvasRenderingContext2D, WebGLRenderingContext, WebGL2RenderingContext, GPU, GPUCanvasContext, GPUDevice } = require('./js-binding.js'); GPUDevice.prototype.lost = new Promise((resolve, reject) => {}); diff --git a/napi/canvas-napi/examples/node/main.mts b/napi/canvas-napi/examples/node/main.mts index d9d6c9bc..d3554196 100644 --- a/napi/canvas-napi/examples/node/main.mts +++ b/napi/canvas-napi/examples/node/main.mts @@ -651,7 +651,7 @@ function swarm(canvas, width?: number, height?: number) { //Finally call the update function update(); - ctx.render(); + /// ctx.render(); } // Give every particle some life @@ -1534,13 +1534,13 @@ canvas.addEventListener('ready', (event) => { //flappyBird(canvas); // webgpuTriangle(canvas); // doGL() - //swarm(canvas); + swarm(canvas); //texturedCube(canvas); // twoCubes(canvas); // computeBoids(canvas); // wireframe(canvas); // renderBundles(canvas); - webgpuCube(canvas); + //webgpuCube(canvas); //cubeMap(canvas); //cube(canvas); //webgl_shadowmap(canvas); diff --git a/napi/canvas-napi/npm/darwin-arm64/package.json b/napi/canvas-napi/npm/darwin-arm64/package.json index 1df28ce3..9f36580a 100644 --- a/napi/canvas-napi/npm/darwin-arm64/package.json +++ b/napi/canvas-napi/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript/canvas-napi-darwin-arm64", - "version": "0.0.1", + "version": "0.0.2", "os": [ "darwin" ], diff --git a/napi/canvas-napi/npm/darwin-universal/package.json b/napi/canvas-napi/npm/darwin-universal/package.json index 53a77a28..0d669ef1 100644 --- a/napi/canvas-napi/npm/darwin-universal/package.json +++ b/napi/canvas-napi/npm/darwin-universal/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript/canvas-napi-darwin-universal", - "version": "0.0.1", + "version": "0.0.2", "os": [ "darwin" ], diff --git a/napi/canvas-napi/npm/darwin-x64/package.json b/napi/canvas-napi/npm/darwin-x64/package.json index 83cffb8c..a3ccff63 100644 --- a/napi/canvas-napi/npm/darwin-x64/package.json +++ b/napi/canvas-napi/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript/canvas-napi-darwin-x64", - "version": "0.0.1", + "version": "0.0.2", "os": [ "darwin" ], diff --git a/napi/canvas-napi/package.json b/napi/canvas-napi/package.json index 4d2c15b5..cf46674f 100644 --- a/napi/canvas-napi/package.json +++ b/napi/canvas-napi/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript/canvas-napi", - "version": "0.0.1", + "version": "0.0.2", "main": "index.js", "types": "index.d.ts", "type": "module", @@ -46,8 +46,8 @@ "start-deno": "deno run -A deno.ts" }, "optionalDependencies": { - "@nativescript/canvas-napi-darwin-arm64": "0.0.1", - "@nativescript/canvas-napi-darwin-x64": "0.0.1", - "@nativescript/canvas-napi-darwin-universal": "0.0.1" + "@nativescript/canvas-napi-darwin-arm64": "0.0.2", + "@nativescript/canvas-napi-darwin-x64": "0.0.2", + "@nativescript/canvas-napi-darwin-universal": "0.0.2" } }