cleanup MinimapController

This commit is contained in:
jdescottes 2014-12-18 22:29:14 +01:00
parent 2db04fe7d6
commit e1ba57c92f
4 changed files with 6 additions and 5 deletions

3
.gitignore vendored
View file

@ -20,5 +20,8 @@ diff.txt
dest
build/closure/closure_compiled_binary.js
# plato report directory
report
# marked as private
*.private.*

View file

@ -60,7 +60,7 @@
this.animationController = new pskl.controller.AnimatedPreviewController(this.piskelController, $('#animated-preview-canvas-container'));
this.animationController.init();
this.minimapController = new pskl.controller.MinimapController(this.piskelController, this.animationController, this.drawingController, $('#animated-preview-canvas-container'));
this.minimapController = new pskl.controller.MinimapController(this.piskelController, this.animationController, this.drawingController, $('.minimap-container'));
this.minimapController.init();
this.previewFilmController = new pskl.controller.PreviewFilmController(this.piskelController, $('#preview-list'));

View file

@ -5,7 +5,7 @@
this.piskelController = piskelController;
this.animationController = animationController;
this.drawingController = drawingController;
this.container = container.parent();
this.container = container;
this.isClicked = false;
};
@ -27,8 +27,6 @@
ns.MinimapController.prototype.renderMinimap_ = function () {
var zoomRatio = this.getDrawingAreaZoomRatio_();
console.log('zoomRatio', zoomRatio);
console.log('this.animationController.getZoom()', this.animationController.getZoom());
if (zoomRatio > 1) {
this.displayCropFrame_(zoomRatio, this.drawingController.getRenderer().getOffset());
} else {

View file

@ -1,5 +1,5 @@
<div id="animated-preview-container" class="preview-container">
<div class="canvas-container-wrapper">
<div class="canvas-container-wrapper minimap-container">
<div id="animated-preview-canvas-container" class="canvas-container">
<div class="canvas-background"></div>
</div>