 		return match[1] if match
 		return null
 
-	className = extract(item.toString()) 
+	className = extract(item.toString())
 	return className if className
 	className = extract(item.constructor?.toString())
 	return className.replace("Constructor", "") if className
 	return item
 
 Utils.inspect = (item, max=5, l=0) ->
-	
+
 	return "null" if item is null
 	return "undefined" if item is undefined
-	
+
 	if _.isFunction(item.toInspect)
 		return item.toInspect()
 	if _.isString(item)

			window.document.body.appendChild(_textSizeNode)

	rect = _textSizeNode.getBoundingClientRect()
	
	frame =
		width: rect.right - rect.left
		height: rect.bottom - rect.top

_.extend exports, Utils


Utils.frameGetMinY = (frame) -> frame.y
Utils.frameSetMinY = (frame, value) -> frame.y = value

Utils.frameGetMidY = (frame) ->
	if frame.height is 0 then 0 else frame.y + (frame.height / 2.0)
Utils.frameSetMidY = (frame, value) ->
	frame.y = if frame.height is 0 then 0 else value - (frame.height / 2.0)

Utils.frameGetMaxY = (frame) ->
	if frame.height is 0 then 0 else frame.y + frame.height
Utils.frameSetMaxY = (frame, value) ->
	frame.y = if frame.height is 0 then 0 else value - frame.height
