   events:
     click: "_onclick"
     mousedown: "_onmousedown"
-    mouseup: "_onmouseup"
-    mouseout: "_onmouseout"
-    mousemove: "_onmousemove"
 
   render: ->
     @_createCanvas()

    # duplicate events
    return if @dragStart.length is 0

    @dragEnd = mouse.getMouseCoords e
    @render()
    @ctx.fillStyle = "#ffff00"
    @ctx.globalAlpha = 0.5
    @ctx.fillRect @dragStart[0],@dragStart[1],@dragEnd[0] - @dragStart[0], @dragEnd[1] - @dragStart[1]

  # start the selection mode
  _onmousedown: (e) ->
    @dragStart = arr = mouse.getMouseCoords e
    if e.ctrlKey or e.metaKey
      @prolongSelection = true
    else
      @prolongSelection = false
    return @dragStart

  _endSelection: (dragEnd) ->
    # duplicate events
    return if @dragStart.length is 0


TaylorColors = require "./color/taylor"
ZappoColors = require "./color/zappo"
HydroColors = require "./color/hydrophobicity"
jbone = require "jbone"

module.exports = OverviewBox = view.extend

