Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
feat(vue): upgrade to latest vue
Browse files Browse the repository at this point in the history
  • Loading branch information
basvanmeurs committed May 19, 2020
1 parent 3236dd5 commit d2da2ef
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 159 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"@planning.nl/webpack-config": "^1.0.4",
"eslint": "^6.8.0",
"ts-loader": "^6.2.2",
"typescript": "^3.8.3",
"vue": "^3.0.0-beta.13"
"typescript": "3.8.3",
"vue": "3.0.0-beta.13"
},
"files": [
"lib/**",
Expand All @@ -32,7 +32,7 @@
"jsdelivr": "dist/vugel.js",
"unpkg": "dist/vugel.js",
"peerDependencies": {
"vue": "^3.0.0-beta.13"
"vue": "3.0.0-beta.13"
},
"repository": "github:Planning-nl/vugel",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const Vugel = defineComponent({
stageRoot["func-w"] = (w: number) => w;
stageRoot["func-h"] = (w: number, h: number) => h;

// Keep correct aspect-ratio issues when the page is zoomed out.
const maxTextureSize = stage.getMaxTextureSize();
maxWidth.value = maxTextureSize / stage.pixelRatio;
maxHeight.value = maxTextureSize / stage.pixelRatio;
Expand Down
Loading

0 comments on commit d2da2ef

Please sign in to comment.