 # How close a point to a line is regarded that the point is **ON** the line.
 Bu.DEFAULT_NEAR_DIST = 5
 
-# Enumeration of mouse button
+# Enumeration of mouse buttons
 Bu.MOUSE_BUTTON_NONE = -1
 Bu.MOUSE_BUTTON_LEFT = 0
 Bu.MOUSE_BUTTON_MIDDLE = 1

# Math
Bu.HALF_PI = Math.PI / 2
Bu.TWO_PI = Math.PI * 2

# Point is rendered as a small circle on screen. This is the radius of the circle.
Bu.POINT_RENDER_SIZE = 2.25

# Point can have label aside it. This is the offset distance from the point.
Bu.POINT_LABEL_OFFSET = 5

# Default font for the text
Bu.DEFAULT_FONT_FAMILY = 'Verdana'
Bu.DEFAULT_FONT_SIZE = 11
Bu.DEFAULT_FONT = '11px Verdana'

# -------------------------------------------------------------------

# Default smooth factor of spline, range in [0, 1] and 1 is the smoothest
Bu.DEFAULT_SPLINE_SMOOTH = 0.25

# Namespace, constants, utility functions and polyfills

#----------------------------------------------------------------------
# Namespace
#----------------------------------------------------------------------

global = window or @
global.Bu = {global}


#----------------------------------------------------------------------
# Constants
#----------------------------------------------------------------------

# Version info
Bu.VERSION = '0.3.5'

# Browser vendor prefixes, used in experimental features
