     @all = []
 
 class Mark
-  MIN_WIDTH = 15
-  MAX_WIDTH = 150
-
   #move to end of marks-container on mousedown => for mousedown event
 
   constructor: (e, @canvasGraph) ->

    @arrayLength = Math.min @data.x.length, @data.y.length

    @mirrorVertically()

  enableMarking: ->
    @marks = new Marks

    @element.style.pointerEvents = 'auto'
    @element.style.textAlign = 'center'

    @startingPoint = @toCanvasXPoint(e) - @minWidth
    @dragging = false

    @element.addEventListener 'mousemove', @updateCursor
    @element.addEventListener 'mousedown', @onMouseDown

  draw: (e) ->
    markLeftX = Math.max @startingPoint - @maxWidth, Math.min @startingPoint, @toCanvasXPoint(e)
    markRightX = Math.max @startingPoint, @toCanvasXPoint(e)

    width = (Math.min (Math.max (Math.abs markRightX - markLeftX), @minWidth), @maxWidth)

    @element.style.left = markLeftX + "px"
    @element.style.width = width + "px"
