tentone 5 gadi atpakaļ
vecāks
revīzija
b049d964f5
3 mainītis faili ar 511 papildinājumiem un 160 dzēšanām
  1. 0 0
      build/escher.min.js
  2. 505 154
      build/escher.module.js
  3. 6 6
      examples/node.html

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
build/escher.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 505 - 154
build/escher.module.js


+ 6 - 6
examples/node.html

@@ -68,13 +68,13 @@
 
 			registerSockets()
 			{
-				this.a = this.addInput("number", "a");
-				this.b = this.addInput("number", "b");
+				this.a = this.addInput("string", "a");
+				this.b = this.addInput("string", "b");
 
-				this.r = this.addOutput("number", "r");
+				this.r = this.addOutput("string", "r");
 				this.r.getValue = () =>
 				{
-					return "(" + this.a.getValue() + this.operation +  this.b.getValue() + ")";
+					return "(" + this.a.getValue() + this.operation + this.b.getValue() + ")";
 				};
 			}
 		}
@@ -97,7 +97,7 @@
 
 			registerSockets()
 			{
-				this.out = this.addOutput("number", "v");
+				this.out = this.addOutput("string", "v");
 				this.out.getValue = () =>
 				{
 					return this.div.element.value;
@@ -122,7 +122,7 @@
 
 			registerSockets()
 			{
-				this.r = this.addInput("number", "r");
+				this.r = this.addInput("string", "r");
 			}
 
 			onUpdate()

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels