123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!doctype html>
- <html>
- <head>
- <title>jsPlumb 1.3.7 - State Machine Demonstration - MooTools</title>
- <link rel="stylesheet" href="../css/jsPlumbDemo.css">
- <link rel="stylesheet" href="../css/stateMachineDemo.css">
- </head>
- <body onunload="jsPlumb.unload()" data-demo-id="stateMachineDemo" data-library="mootools">
- <div style="position:absolute">
- <div id="demo">
- <div class="w" id="opened">begin<div class="ep"></div></div>
- <div class="w" id="olga">phone interview 1<div class="ep"></div></div>
- <div class="w" id="nicola">phone interview 2<div class="ep"></div></div>
- <div class="w" id="inperson">in person<div class="ep"></div></div>
- <div class="w" id="rejected">rejected<div class="ep"></div></div>
- </div>
- </div>
- <div id="explanation">
- <p>This is a demonstration of the StateMachine connector type, and of 'Continuous' anchors, which are anchors whose location is calculated based
- on the location of all other connected elements.
- </p>
- <p>These behave in a similar way to 'Dynamic' anchors, which have been in jsPlumb for a while now,
- but Continuous anchors do not require a list of possible locations, and they guarantee that every Connection has its own anchor.
- </p>
- <p>Click and drag new Connections from the red div in each element; the main elements in the UI are configured to be Connection targets. You can
- drag from one of these divs onto its parent element to create a 'loopback' connection.</p>
- <p>Click on a Connection to delete it.</p>
- <p>makeSource is used in a special way in this demonstration: it is provided with a 'parent' parameter, which tells jsPlumb which element should
- be the eventual source of a newly created connection. So although you drag from the red divs, the connection sources are always configured to be the
- main divs in the UI.</p>
- <p>This demonstration uses jsPlumb 1.3.7, MooTools 1.3.2 and MooTools More 1.3.2.1.</p>
- </div>
- <!-- DEP -->
- <script type="text/javascript" src="../../js/lib/mootools-1.3.2-yui-compressed.js"></script>
- <!-- /DEP -->
- <script type="text/javascript" src="../js/mootools-1.3.2.1-more.js"></script>
- <!-- JS -->
- <!-- support lib for bezier stuff -->
- <script type="text/javascript" src="../../js/lib/jsBezier-0.3-min.js"></script>
- <!-- main jsplumb engine -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-1.3.7-RC1.js"></script>
- <!-- connectors, endpoint and overlays -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-defaults-1.3.7-RC1.js"></script>
- <!-- state machine connectors -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-connectors-statemachine-1.3.7-RC1.js"></script>
- <!-- SVG renderer -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-svg-1.3.7-RC1.js"></script>
- <!-- canvas renderer -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-canvas-1.3.7-RC1.js"></script>
- <!-- vml renderer -->
- <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-vml-1.3.7-RC1.js"></script>
- <!-- jquery jsPlumb adapter -->
- <script type="text/javascript" src="../../js/1.3.7/mootools.jsPlumb-1.3.7-RC1.js"></script>
- <!-- /JS -->
- <!-- demo
- code -->
- <script type="text/javascript" src="../js/stateMachineDemo.js"></script>
- <script type="text/javascript" src="../js/stateMachineDemo-mootools.js"></script>
- <script type="text/javascript" src="../js/demo-list.js"></script>
- <script type="text/javascript" src="../js/demo-helper-mootools.js"></script>
- </body>
- </html>
|