stateMachineDemo-jquery.js 395 B

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