Eric Abouaf has released WireIt, a library that answers the though: “wow, I wish there was an API that did the UI bits that Yahoo! Pipes does.”
WireIt uses canvas, excanvas for IE, and YUI to get the job done. Take a look at the docs to see how it works.
Here is the code for simple terminals:
JAVASCRIPT:
-
-
var bl = YAHOO.util.Dom.get(‘blockLeft’);
-
var br = YAHOO.util.Dom.get(‘blockRight’);
-
var bt = YAHOO.util.Dom.get(‘blockTop’);
-
var bb = YAHOO.util.Dom.get(‘blockBottom’);
-
-
for( var i = 0 ; i <7 ; i++) {
-
new WireIt.Terminal(bl, {direction: [1,0], offsetPosition:[0,i*50] });
-
new WireIt.Terminal(br, {direction: [-1,0], offsetPosition:[0,i*50] });
-
new WireIt.Terminal(bt, {direction: [0,1], offsetPosition:[i*50,0] });
-
new WireIt.Terminal(bb, {direction: [0,-1], offsetPosition:[i*50,0] });
-
}
-
And there is even a fun game to check out:
No User Responded in " WireIt: Yahoo! Pipes Canvas Wiring API "
Sorry the comment area are closed