This commit is contained in:
fan 2019-09-06 18:18:18 +08:00
commit 31454a72c5
3 changed files with 3 additions and 12 deletions

3
.gitignore vendored
View File

@ -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

View File

@ -164,7 +164,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 });
}
}
@ -221,10 +221,6 @@ class MouseController extends Eventful {
return newEm;
}
updateDatazoom(zoom) {
this.trigger(this.events.Datazoom, zoom);
}
}
export default MouseController;

View File

@ -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;