stateMachineDemo-yui3.js 369 B

12345678910111213141516
  1. ;(function() {
  2. jsPlumbDemo.initEndpoints = function(nextColour) {
  3. Y.all(".ep").each(function(e) {
  4. var p = e.get("parentNode");
  5. jsPlumb.makeSource(e, {
  6. parent:p,
  7. anchor:"Continuous",
  8. connector:[ "StateMachine", { curviness:20 } ],
  9. connectorStyle:{ strokeStyle:nextColour(),lineWidth:2 },
  10. maxConnections:-1
  11. });
  12. });
  13. };
  14. })();