       , true)
     @add_dependencies('inner_range_vertical', this, ['border_bottom', 'inner_height'])
 
-  # transform our coordinate space to the underlying device (svg)
+  # transform screen coordinates to underlying device coordinates
   sx_to_device: (x) ->
     return x
   sy_to_device: (y) ->

      yy[idx] = canvas_height - (y+border_bottom)
    return yy

  # transform underlying device (svg) to our coordinate space
  device_to_sx: (x) ->
    return x
  device_to_sy: (y) ->


  # vectorized versions of rxpos/rypos, these are mutating, in-place operations
  v_device_to_sx: (xx) ->
    border_left = @get('border_left')
    for x, idx in xx
      xx[idx] -= border_left
    return xx
  v_device_to_sy: (yy) ->
    canvas_height = @get('canvas_height')
    border_bottom = @get('border_bottom')
    for y, idx in yy
      yy[idx] = (canvas_height-y) - border_bottom
    return yy


