Added mouse drag and various minor visual changes.
This commit is contained in:
@@ -4,8 +4,8 @@ function Rect(rect_str)
|
||||
|
||||
this.rect_str = rect_str;
|
||||
|
||||
this.width = parseFloat(this.rect_str.split("x")[0]);
|
||||
this.height = parseFloat(this.rect_str.split("x")[1]);
|
||||
this.width = rect_str ? parseFloat(this.rect_str.split("x")[0]) : 0;
|
||||
this.height = rect_str ? parseFloat(this.rect_str.split("x")[1]) : 0;
|
||||
|
||||
this.render = function()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user