       else if (TouchEvent?) && !_current_line?
         _start_line(xy.x, xy.y)
 
+    _resetAxis = () ->
+      if scope.axis? 
+        scope.axis.remove()
+        scope.axis.clear()
+      if scope.labels?
+        scope.labels.remove()
+        scope.labels.clear()
+      if scope.settings.editing
+        scope.circ.remove()
+
     ############## end local methods ############
 
     ############## Setup ########################

      _handle_click(e)

    glass.mousemove (e) ->
      if Touch? && (e instanceof Touch)
        return
      else
        xy = _get_x_y e
        if scope.mode == 'lining' and _current_line?
          _dragging = true
          snapped = _snap_to_grid(xy.x, xy.y)
          _current_line.dragging(snapped.x, snapped.y)

    ####### End Events ##################
]

    gridSize = 25
    width  = parseInt attrs.width
    height = parseInt attrs.height
    scope.padding = padding = if (scope.settings? and scope.settings.editing?) then 20 else 4

    ######### End Attributes ########

