|
|
@@ -130,8 +130,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
add() {
|
|
|
- if (this.mapHeight <= (this.totalHeight - 100) * 3) {
|
|
|
- this.mapHeight += (this.totalHeight - 100) / 5
|
|
|
+ // if (this.mapHeight <= (this.totalHeight - 100) * 3) {
|
|
|
+ this.mapHeight += (this.totalHeight - 100) / 2
|
|
|
|
|
|
setTimeout(() => {
|
|
|
this.mapWidth = this.$refs.bgImg.offsetWidth
|
|
|
@@ -139,12 +139,12 @@ export default {
|
|
|
this.$refs.canvas.height = this.mapHeight
|
|
|
this.drawContent()
|
|
|
}, 500)
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
},
|
|
|
subtraction() {
|
|
|
if (this.mapHeight > this.totalHeight - 100) {
|
|
|
- this.mapHeight -= (this.totalHeight - 100) / 5
|
|
|
+ this.mapHeight -= (this.totalHeight - 100) / 2
|
|
|
if (this.mapHeight < this.totalHeight - 100) {
|
|
|
this.mapHeight = this.totalHeight - 100
|
|
|
}
|