 
     @emit 'minimap:updated'
 
+  transparentize: (color, opacity=1) ->
+    color.replace('rgb', 'rgba').replace(')', ", #{opacity})")
+
   getClientRect: ->
     canvas = @lineCanvas[0]
     {

        parent.appendChild(node)
      parent = node

    color = getComputedStyle(parent).getPropertyValue('color')
    root.innerHTML = ''
    color


  getLineHeight: -> 3
  getCharHeight: -> 2
  getCharWidth: -> 1
  getTextOpacity: -> 0.6
  getLinesCount: -> @editorView.getEditor().getScreenLineCount()

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