dynamicAnchorsDemo.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - Dynamic Anchors Demonstration - YUI3</title>
  5. <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  6. <link rel="stylesheet" href="../css/jsPlumbDemo.css">
  7. <link rel="stylesheet" href="../css/dynamicAnchorsDemo.css">
  8. </head>
  9. <body onunload="jsPlumb.unload();" data-demo-id="dynamicAnchorsDemo" data-library="yui3">
  10. <div id="demo">
  11. <div class="window" id="window1"><strong>1</strong><br/><br/></div>
  12. <div class="window" id="window2"><strong>2</strong><br/><br/></div>
  13. <div class="window" id="window3"><strong>3</strong><br/><br/></div>
  14. <div class="window" id="window4"><strong>4</strong><br/><br/></div>
  15. <div class="window" id="window5"><strong>5</strong><br/><br/></div>
  16. <div class="window" id="window6"><strong>6</strong><br/><br/></div>
  17. </div>
  18. <div id="explanation">
  19. <p>This is a demonstration of anchors that change position dependent on the location of the other element in a connection. Each connection is decorated with a jsPlumb.Overlays.Diamond, located halfway along the connector.</p>
  20. <p>You can drag new connections between blue endpoints.</p>
  21. <p>This demonstration uses jsPlumb 1.3.7 and YUI 3.3.0.</p>
  22. </div>
  23. <script type="text/javascript" src="http://yui.yahooapis.com/3.3.0/build/simpleyui/simpleyui-min.js"></script>
  24. <!-- JS -->
  25. <!-- support lib for bezier stuff -->
  26. <script type="text/javascript" src="../../js/lib/jsBezier-0.3-min.js"></script>
  27. <!-- main jsplumb engine -->
  28. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-1.3.7-RC1.js"></script>
  29. <!-- connectors, endpoint and overlays -->
  30. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-defaults-1.3.7-RC1.js"></script>
  31. <!-- SVG renderer -->
  32. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-svg-1.3.7-RC1.js"></script>
  33. <!-- canvas renderer -->
  34. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-canvas-1.3.7-RC1.js"></script>
  35. <!-- vml renderer -->
  36. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-vml-1.3.7-RC1.js"></script>
  37. <!-- yui jsPlumb adapter -->
  38. <script type="text/javascript" src="../../js/1.3.7/yui.jsPlumb-1.3.7-RC1.js"></script>
  39. <!-- /JS -->
  40. <!-- demo code -->
  41. <script type="text/javascript" src="../js/dynamicAnchorsDemo.js"></script>
  42. <!-- demo helper code -->
  43. <script type="text/javascript" src="../js/demo-list.js"></script>
  44. <script type="text/javascript" src="../js/demo-helper-yui3.js"></script>
  45. </body>
  46. </html>