Browse Source

Publish npm

tentone 5 years ago
parent
commit
b049d964f5
3 changed files with 511 additions and 160 deletions
  1. 0 0
      build/escher.min.js
  2. 505 154
      build/escher.module.js
  3. 6 6
      examples/node.html

File diff suppressed because it is too large
+ 0 - 0
build/escher.min.js


File diff suppressed because it is too large
+ 505 - 154
build/escher.module.js


+ 6 - 6
examples/node.html

@@ -68,13 +68,13 @@
 
 
 			registerSockets()
 			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 = () =>
 				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()
 			registerSockets()
 			{
 			{
-				this.out = this.addOutput("number", "v");
+				this.out = this.addOutput("string", "v");
 				this.out.getValue = () =>
 				this.out.getValue = () =>
 				{
 				{
 					return this.div.element.value;
 					return this.div.element.value;
@@ -122,7 +122,7 @@
 
 
 			registerSockets()
 			registerSockets()
 			{
 			{
-				this.r = this.addInput("number", "r");
+				this.r = this.addInput("string", "r");
 			}
 			}
 
 
 			onUpdate()
 			onUpdate()

Some files were not shown because too many files changed in this diff