12345678910111213141516171819202122232425 |
- ;(function() {
- jsPlumbDemo.initEndpoints = function(nextColour) {
- $(".ep").each(function(i,e) {
- var p = $(e).parent();
- jsPlumb.makeSource($(e), {
- parent:p,
- endpoint:{
- anchor:"Continuous",
- connector:[ "StateMachine", { curviness:20 } ],
- connectorStyle:{ strokeStyle:nextColour(),lineWidth:2 },
- maxConnections:-1
- }
- });
- });
- jsPlumb.makeTarget($(".w"), {
- dropOptions:{ hoverClass:"dragHover" },
- endpoint:{
- anchor:"Continuous"
- }
- });
- };
- })();
|