adjust initials height

This commit is contained in:
Pete Matsyburka
2024-05-18 17:51:12 +03:00
parent 95f3eb0e5d
commit 2df05f0327
@@ -189,7 +189,7 @@ export default {
this.$nextTick(() => {
if (this.$refs.canvas) {
this.$refs.canvas.width = this.$refs.canvas.parentNode.clientWidth * scale
this.$refs.canvas.height = (this.$refs.canvas.parentNode.clientWidth / 3) * scale
this.$refs.canvas.height = (this.$refs.canvas.parentNode.clientWidth / 4.5) * scale
this.$refs.canvas.getContext('2d').scale(scale, scale)
}
@@ -208,7 +208,7 @@ export default {
entries.forEach(entry => {
if (entry.isIntersecting) {
this.$refs.canvas.width = this.$refs.canvas.parentNode.clientWidth * scale
this.$refs.canvas.height = (this.$refs.canvas.parentNode.clientWidth / 3) * scale
this.$refs.canvas.height = (this.$refs.canvas.parentNode.clientWidth / 4.5) * scale
this.$refs.canvas.getContext('2d').scale(scale, scale)