Sha256: 4a72bca8a7216dd0a3459c24a815bf6b18b3ed4d4ce505d020e2f3427fbbda26
Contents?: true
Size: 1.03 KB
Versions: 15
Compression:
Stored size: 1.03 KB
Contents
<script type="text/javascript"> jsPlumb.importDefaults({ // default drag options DragOptions : { cursor: 'pointer', zIndex:2000 }, // default to blue at one end and green at the other EndpointStyles : [{ fillStyle:'#225588' }, { fillStyle:'#558822' }], // blue endpoints 7 px; green endpoints 11. Endpoints : [ [ "Dot", {radius:2} ], [ "Dot", { radius:2 } ]], // the overlays to decorate each connection with. note that the label overlay uses a function to generate the label text; in this // case it returns the 'labelText' member that we set on each connection in the 'init' method below. ConnectionOverlays : [ [ "Arrow", { location:0.9 } ], ], ConnectorZIndex:5 }); // this is the paint style for the connecting lines.. var connectorPaintStyle = { lineWidth:5, strokeStyle:"#deea18", joinstyle:"round", outlineColor:"white", outlineWidth:7 }; jsPlumb.bind("ready", function() { jsPlumb.connect({source:"element1", target:"element2"}); }); </script>
Version data entries
15 entries across 15 versions & 1 rubygems