From 1918a634b1ce9589d3f1fd840a0511821453daaf Mon Sep 17 00:00:00 2001 From: ival <610568032@qq.com> Date: Fri, 6 Sep 2019 17:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +-- src/ibp/mouseController.js | 6 +----- src/jmap/mouseController.js | 6 +----- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 7cec057b6..28fc1e618 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,7 @@ yarn-debug.log* yarn-error.log* package-lock.json tests/**/coverage/ -/src/utils/baseUrl.js -/src/utils/ +src/utils/baseUrl.js # Editor directories and files .idea diff --git a/src/ibp/mouseController.js b/src/ibp/mouseController.js index d1db0ebb4..9d91fb7be 100644 --- a/src/ibp/mouseController.js +++ b/src/ibp/mouseController.js @@ -160,7 +160,7 @@ class MouseController extends Eventful { scale = -1; } - this.trigger(this.events.__Zoom, {type: 'zoom', scale, originX, originY }); + this.trigger(this.events.__Zoom, {type: this.events.__Zoom, scale, originX, originY }); } } @@ -217,10 +217,6 @@ class MouseController extends Eventful { return newEm; } - - updateDatazoom(zoom) { - this.trigger(this.events.Datazoom, zoom); - } } export default MouseController; diff --git a/src/jmap/mouseController.js b/src/jmap/mouseController.js index e6e07b95d..7b81500e5 100644 --- a/src/jmap/mouseController.js +++ b/src/jmap/mouseController.js @@ -135,7 +135,7 @@ class MouseController extends Eventful { scale = -1; } - this.trigger(this.events.__Zoom, {type: 'zoom', scale, originX, originY }); + this.trigger(this.events.__Zoom, {type: this.events.__Zoom, scale, originX, originY }); } } @@ -192,10 +192,6 @@ class MouseController extends Eventful { return newEm; } - - updateDatazoom(zoom) { - this.trigger(this.events.Datazoom, zoom); - } } export default MouseController;