 				xR = shape.pointRB.x
 				yT = shape.position.y
 				yB = shape.pointRB.y
-				@context.dashedLine xL, yT, xR, yT, shape.dashStyle, shape.dashDelta
-				@context.dashedLine xR, yT, xR, yB, shape.dashStyle, shape.dashDelta
-				@context.dashedLine xR, yB, xL, yB, shape.dashStyle, shape.dashDelta
-				@context.dashedLine xL, yB, xL, yT, shape.dashStyle, shape.dashDelta
+				@context.dashedLine xL, yT, xR, yT, shape.dashStyle, shape.dashOffset
+				@context.dashedLine xR, yT, xR, yB, shape.dashStyle, shape.dashOffset
+				@context.dashedLine xR, yB, xL, yB, shape.dashStyle, shape.dashOffset
+				@context.dashedLine xL, yB, xL, yT, shape.dashStyle, shape.dashOffset
 				@context.stroke()
 		@
 

	drawBounds: (bounds) ->
		@context.strokeStyle = bounds.strokeStyle
		@context.beginPath()
		@context.dashedLine bounds.x1, bounds.y1, bounds.x2, bounds.y1, bounds.dashStyle, bounds.dashDelta
		@context.dashedLine bounds.x2, bounds.y1, bounds.x2, bounds.y2, bounds.dashStyle, bounds.dashDelta
		@context.dashedLine bounds.x2, bounds.y2, bounds.x1, bounds.y2, bounds.dashStyle, bounds.dashDelta
		@context.dashedLine bounds.x1, bounds.y2, bounds.x1, bounds.y1, bounds.dashStyle, bounds.dashDelta
		@context.stroke()
		@


		lenU = 0
		for i in da
			lenU += i
		offset %= lenU
		x = offset

		@moveTo 0, 0
		# TODO need a small fix
