Sync Bevy canvas size with browser viewport size

This commit is contained in:
Danny McGee
2023-09-29 22:15:18 -04:00
parent c1f92cc2d6
commit 2e3979b336
7 changed files with 120 additions and 20 deletions
+9 -2
View File
@@ -9,6 +9,7 @@
"version": "0.0.0",
"license": "MIT",
"dependencies": {
"lodash": "^4.17.21",
"tslib": "^2.3.0"
},
"devDependencies": {
@@ -18,6 +19,7 @@
"@nx/workspace": "16.9.1",
"@nxrs/cargo": "^0.3.3",
"@swc/core": "~1.3.85",
"@types/lodash": "^4.14.199",
"@types/node": "18.7.1",
"@vitest/ui": "~0.32.0",
"jsdom": "~22.1.0",
@@ -3187,6 +3189,12 @@
"dev": true,
"peer": true
},
"node_modules/@types/lodash": {
"version": "4.14.199",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.199.tgz",
"integrity": "sha512-Vrjz5N5Ia4SEzWWgIVwnHNEnb1UE1XMkvY5DGXrAeOGE9imk0hgTHh5GyDjLDJi9OTCn9oo9dXH1uToK1VRfrg==",
"dev": true
},
"node_modules/@types/node": {
"version": "18.7.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.1.tgz",
@@ -5608,8 +5616,7 @@
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"node_modules/lodash.debounce": {
"version": "4.0.8",