|
@ -145,8 +145,13 @@ class NavigationHandler { |
|
|
_moveDown() {this.body.view.translation.y -= this.options.keyboard.speed.y;} |
|
|
_moveDown() {this.body.view.translation.y -= this.options.keyboard.speed.y;} |
|
|
_moveLeft() {this.body.view.translation.x += this.options.keyboard.speed.x;} |
|
|
_moveLeft() {this.body.view.translation.x += this.options.keyboard.speed.x;} |
|
|
_moveRight(){this.body.view.translation.x -= this.options.keyboard.speed.x;} |
|
|
_moveRight(){this.body.view.translation.x -= this.options.keyboard.speed.x;} |
|
|
_zoomIn() {this.body.view.scale *= 1+this.options.keyboard.speed.zoom;} |
|
|
|
|
|
_zoomOut() {this.body.view.scale /= 1+this.options.keyboard.speed.zoom;} |
|
|
|
|
|
|
|
|
_zoomIn() { |
|
|
|
|
|
this.body.view.scale *= 1+this.options.keyboard.speed.zoom; |
|
|
|
|
|
this.body.emitter.emit('zoom', {direction: '+', scale: this.body.view.scale});} |
|
|
|
|
|
_zoomOut() { |
|
|
|
|
|
this.body.view.scale /= 1+this.options.keyboard.speed.zoom; |
|
|
|
|
|
this.body.emitter.emit('zoom', {direction: '-', scale: this.body.view.scale}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|