@buncanvas/core 0.1.5 → 0.1.6
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/index.js +1 -2
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -3134,7 +3134,6 @@ class Window {
|
|
|
3134
3134
|
const { vsync = true, maxFramerate = 0 } = args ?? {};
|
|
3135
3135
|
this.#vsync = vsync;
|
|
3136
3136
|
this.maxFramerate = maxFramerate;
|
|
3137
|
-
let lastFrame = performance.now();
|
|
3138
3137
|
if (process.platform !== "darwin") {
|
|
3139
3138
|
render_thread.onerror = (msg) => {
|
|
3140
3139
|
console.error("Render thread error:", msg);
|
|
@@ -3151,7 +3150,7 @@ class Window {
|
|
|
3151
3150
|
let lastFrame = performance.now();
|
|
3152
3151
|
render_thread.onmessage = (msg) => {
|
|
3153
3152
|
const frameSignal = msg.data;
|
|
3154
|
-
if (frameSignal
|
|
3153
|
+
if (frameSignal == 2) {
|
|
3155
3154
|
lib.symbols.destroy_window();
|
|
3156
3155
|
lib.symbols.images_cleanup();
|
|
3157
3156
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@buncanvas/core",
|
|
3
3
|
"module": "index.js",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.6",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"typescript": "^7"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@buncanvas/native-linux-x64": "0.1.
|
|
17
|
-
"@buncanvas/native-win32-x64": "0.1.
|
|
18
|
-
"@buncanvas/native-darwin-x64": "0.1.
|
|
16
|
+
"@buncanvas/native-linux-x64": "0.1.6",
|
|
17
|
+
"@buncanvas/native-win32-x64": "0.1.6",
|
|
18
|
+
"@buncanvas/native-darwin-x64": "0.1.6"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"canvas",
|