|
@ -26,7 +26,6 @@ class View { |
|
|
this.viewFunction = undefined; |
|
|
this.viewFunction = undefined; |
|
|
|
|
|
|
|
|
this.body.emitter.on("zoomExtent", this.zoomExtent.bind(this)); |
|
|
this.body.emitter.on("zoomExtent", this.zoomExtent.bind(this)); |
|
|
this.body.emitter.on("zoomExtentInstantly", this.zoomExtent.bind(this,{duration:0})); |
|
|
|
|
|
this.body.emitter.on("_setScale", (scale) => this.scale = scale); |
|
|
this.body.emitter.on("_setScale", (scale) => this.scale = scale); |
|
|
this.body.emitter.on("_setTranslation", (translation) => {this.translation.x = translation.x; this.translation.y = translation.y;}); |
|
|
this.body.emitter.on("_setTranslation", (translation) => {this.translation.x = translation.x; this.translation.y = translation.y;}); |
|
|
this.body.emitter.on("animationFinished", () => {this.body.emitter.emit("_stopRendering");}); |
|
|
this.body.emitter.on("animationFinished", () => {this.body.emitter.emit("_stopRendering");}); |
|
|