Removed old render()

This commit is contained in:
Devine Lu Linvega
2017-05-24 20:16:13 -10:00
parent b59abbd3bc
commit 5d8d7cadb5
27 changed files with 98 additions and 76 deletions

View File

@@ -6,7 +6,7 @@ function Angle(angle_str = "0'")
this.degrees = parseFloat(angle_str.replace('\'',''));
this.render = function()
this.toString = function()
{
return this.degrees+"'";
}

View File

@@ -5,7 +5,7 @@ function Any(str)
this.example = "";
this.string = str;
this.render = function()
this.toString = function()
{
return this.string;
}

View File

@@ -4,7 +4,7 @@ function Bang()
this.example = "";
this.render = function()
this.toString = function()
{
return "BANG";
}

View File

@@ -26,7 +26,7 @@ function Color(hex = '#000000')
return { r:rgb.r/255, g:rgb.g/255, b:rgb.b/255 }
}
this.render = function()
this.toString = function()
{
return this.hex;
}

View File

@@ -5,7 +5,7 @@ function Filepath(path_str)
this.example = "assets/demo.png";
this.path = path_str;
this.render = function()
this.toString = function()
{
return this.path;
}

View File

@@ -6,11 +6,6 @@ function Mode(name,key = "")
this.name = name;
this.key = key;
this.render = function()
{
return "?";
}
this.toString = function()
{
return "<span class='mode'>~"+this.name+(this.key ? '['+this.key+']' : '')+"</span>"

View File

@@ -40,7 +40,7 @@ function Position(position_str = "0,0",y = null)
}
}
this.render = function()
this.toString = function()
{
return (isNaN(this.x) ? 0 : this.x)+","+(isNaN(this.y) ? 0 : this.y);
}

View File

@@ -8,7 +8,7 @@ function Range(range_str)
this.from = parseFloat(this.range_str.split("..")[0]);
this.to = parseFloat(this.range_str.split("..")[1]);
this.render = function()
this.toString = function()
{
return this.from+".."+this.to;
}

View File

@@ -9,7 +9,7 @@ function Rect(rect_str)
this.example = "200x300";
this.render = function()
this.toString = function()
{
return (isNaN(this.width) ? 0 : this.width)+"x"+(isNaN(this.height) ? 0 : this.height);
}

View File

@@ -6,7 +6,7 @@ function Setting(name,value)
this.name = name;
this.value = value;
this.render = function()
this.toString = function()
{
return "?";
}

View File

@@ -7,7 +7,7 @@ function Value(value_str)
this.float = parseFloat(this.value);
this.int = parseInt(this.value);
this.render = function()
this.toString = function()
{
return this.value;
}