Skip to content

Commit

Permalink
feat: 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Dec 16, 2024
1 parent 6bbcf8b commit 3b88f8b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion napi/canvas-napi/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {});

Expand Down
6 changes: 3 additions & 3 deletions napi/canvas-napi/examples/node/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion napi/canvas-napi/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-napi-darwin-arm64",
"version": "0.0.1",
"version": "0.0.2",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion napi/canvas-napi/npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-napi-darwin-universal",
"version": "0.0.1",
"version": "0.0.2",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion napi/canvas-napi/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/canvas-napi-darwin-x64",
"version": "0.0.1",
"version": "0.0.2",
"os": [
"darwin"
],
Expand Down
8 changes: 4 additions & 4 deletions napi/canvas-napi/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit 3b88f8b

Please sign in to comment.