src/js/Navigator.js
function calculateCanvasSize() {
    var width = view.getCanvasWidth();
    var _scale = docSize.x / width;
    var height = docSize.y / _scale;

    view.setCanvasHeight(height);

    canvasSize.x = width;
    canvasSize.y = height;
  }
function calculateCanvasSize() {
    var width = view.getCanvasWidth();
    var _scale = docSize.x / width;
    var height = docSize.y / _scale;

    view.setCanvasHeight(height);

    canvasSize.x = width;
    canvasSize.y = height;
  }
function calculateCanvasSize ( ) { var width = view . getCanvasWidth ( ) ; var _scale = docSize . x / width ; var height = docSize . y / _scale ; view . setCanvasHeight ( height ) ; canvasSize . x = width ; canvasSize . y = height ; }
Calculates and sets the size of the mini canvas.
Calculates and sets the size of the mini canvas .