Skip to content

Commit 3b88f8b

Browse files
committed
feat: 0.0.2
1 parent 6bbcf8b commit 3b88f8b

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

napi/canvas-napi/canvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ NSNotificationCenter.defaultCenter.addObserverForNameObjectQueueUsingBlock(NSApp
7575
}
7676
});
7777

78-
const { CanvasRenderingContext2D, WebGLRenderingContext, WebGL2RenderingContext, GPU, GPUCanvasContext, GPUDevice } = require('./canvas-napi.darwin-arm64.node');
78+
const { CanvasRenderingContext2D, WebGLRenderingContext, WebGL2RenderingContext, GPU, GPUCanvasContext, GPUDevice } = require('./js-binding.js');
7979

8080
GPUDevice.prototype.lost = new Promise((resolve, reject) => {});
8181

napi/canvas-napi/examples/node/main.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ function swarm(canvas, width?: number, height?: number) {
651651
//Finally call the update function
652652
update();
653653

654-
ctx.render();
654+
/// ctx.render();
655655
}
656656

657657
// Give every particle some life
@@ -1534,13 +1534,13 @@ canvas.addEventListener('ready', (event) => {
15341534
//flappyBird(canvas);
15351535
// webgpuTriangle(canvas);
15361536
// doGL()
1537-
//swarm(canvas);
1537+
swarm(canvas);
15381538
//texturedCube(canvas);
15391539
// twoCubes(canvas);
15401540
// computeBoids(canvas);
15411541
// wireframe(canvas);
15421542
// renderBundles(canvas);
1543-
webgpuCube(canvas);
1543+
//webgpuCube(canvas);
15441544
//cubeMap(canvas);
15451545
//cube(canvas);
15461546
//webgl_shadowmap(canvas);

napi/canvas-napi/npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-napi-darwin-arm64",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"os": [
55
"darwin"
66
],

napi/canvas-napi/npm/darwin-universal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-napi-darwin-universal",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"os": [
55
"darwin"
66
],

napi/canvas-napi/npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-napi-darwin-x64",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"os": [
55
"darwin"
66
],

napi/canvas-napi/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/canvas-napi",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"main": "index.js",
55
"types": "index.d.ts",
66
"type": "module",
@@ -46,8 +46,8 @@
4646
"start-deno": "deno run -A deno.ts"
4747
},
4848
"optionalDependencies": {
49-
"@nativescript/canvas-napi-darwin-arm64": "0.0.1",
50-
"@nativescript/canvas-napi-darwin-x64": "0.0.1",
51-
"@nativescript/canvas-napi-darwin-universal": "0.0.1"
49+
"@nativescript/canvas-napi-darwin-arm64": "0.0.2",
50+
"@nativescript/canvas-napi-darwin-x64": "0.0.2",
51+
"@nativescript/canvas-napi-darwin-universal": "0.0.2"
5252
}
5353
}

0 commit comments

Comments
 (0)