diff --git a/src/App.vue b/src/App.vue index 2e431c2..674fc0b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -121,7 +121,7 @@ export default { this.isControlOpen = false; this.isScreenshotSuccess = false; this.isScreenshot = true; - this.$refs.screenshot.capture(dimensions); + this.$refs.screenshot.capture(dimensions, this.zoom); }, onScreenshot(success = false) { this.isScreenshotSuccess = success; diff --git a/src/components/Player.vue b/src/components/Player.vue index fb34781..5edcb6d 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -69,10 +69,6 @@ export default { isPublic: { type: Boolean, required: true - }, - zoom: { - type: Number, - required: true } }, data() { @@ -81,12 +77,7 @@ export default { methods: { takeScreenshot() { const { width, height, x, y } = this.$refs.player.getBoundingClientRect(); - this.$emit("screenshot", { - width: width * this.zoom, - height: height * this.zoom, - x: x * this.zoom, - y: y * this.zoom - }); + this.$emit("screenshot", { width, height, x, y }); }, toggleStatus() { if (this.isPublic) { diff --git a/src/components/RoleSelectionModal.vue b/src/components/RoleSelectionModal.vue index c95a073..f61b873 100644 --- a/src/components/RoleSelectionModal.vue +++ b/src/components/RoleSelectionModal.vue @@ -1,5 +1,10 @@