 rad2deg = (rad) ->
 	rad * 180/Math.PI
 
+{now} = Date
+
 SIGNALS =
 	'pointerClicked': 'click'
 	'pointerPressed': 'mousedown'

		items[id].scale

	setItemScale: (id, val) ->
		items[id].scale = val
		updateTransforms id

	getItemRotation: (id) ->
		items[id].rotation

	setItemRotation: (id, val) ->
		items[id].rotation = val
		updateTransforms id

	getItemOpacity: (id) ->
		opacity = items[id].elem.style.opacity

	setItemHeight: (id, val) ->
		items[id].elem.style.height = "#{val}px"

	getItemX: getItemX = (id) ->
		item = items[id]
		item.x or parseFloat(item.elem.style.left) or 0

	setItemX: (id, val) ->
		item = items[id]

		if item.isHot
			item.x = val
			updateTransforms item
		else
			item.elem.style.left = val
			markAction item

	getItemY: getItemY = (id) ->
		item = items[id]
		item.y or parseFloat(item.elem.style.top) or 0

	setItemY: (id, val) ->
		item = items[id]

		if item.isHot
			item.y = val
			updateTransforms item
		else
			item.elem.style.top = val
			markAction item

	getItemZ: (id) ->
		val = items[id].elem.style.zIndex
