   # Performs an update of the minimap.
   update: =>
     return unless @editorView?
-    # return unless @tokenized
 
     #reset canvas virtual width/height
     @lineCanvas[0].width = @lineCanvas[0].offsetWidth

  #    ##        ##    ##  ##     ## ##        ##    ##
  #    ##        ##     ##  #######  ##         ######

  getMinimapHeight: -> @getLinesCount() * @getLineHeight()

  getLineHeight: -> @lineHeight

  getCharHeight: -> @charHeight

  getCharWidth: -> @charWidth

  getTextOpacity: -> @textOpacity

  getLinesCount: -> @editorView.getEditor().getScreenLineCount()

  getMinimapScreenHeight: -> @minimapView.height() #/ @minimapView.scaleY

  getMinimapHeightInLines: -> Math.ceil(@getMinimapScreenHeight() / @getLineHeight())

  getFirstVisibleScreenRow: ->
    screenRow = Math.floor(@scrollTop() / @getLineHeight())
    screenRow = 0 if isNaN(screenRow)
    screenRow

  getLastVisibleScreenRow: ->
    calculatedRow = Math.ceil((@scrollTop() + @getMinimapScreenHeight()) / @getLineHeight()) - 1
    screenRow = Math.max(0, Math.min(@editor.getScreenLineCount() - 1, calculatedRow))
    screenRow = 0 if isNaN(screenRow)
    screenRow

  getClientRect: ->
    canvas = @lineCanvas[0]
    {

    @offscreenLastRow = null
    @requestUpdate()

  # Registers changes in the minimap for the next render call.
  #
  # Registering changes on an instance will trigger an update request.
