stateMachineDemo-mootools.js 340 B

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