issue80_test.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <style type="text/css">
  5. .d {
  6. width:5em;
  7. height:5em;
  8. line-height:5em;
  9. border:0.3em dotted blue;
  10. position:absolute;
  11. text-align:center;
  12. }
  13. #d1 { top:10em;left:20em; }
  14. #d2 { top:11em;left:55em; }
  15. </style>
  16. </head>
  17. <body>
  18. Test page for issue 80: arrows that point in the opposite direction to the travel of the connection.<br/>
  19. the left arrow should point to div 1.
  20. <div class="d" id="d1">1</div>
  21. <div class="d" id="d2">2</div>
  22. <script type="text/javascript" src="http://explorercanvas.googlecode.com/svn/trunk/excanvas.js"></script>
  23. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  24. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
  25. <script type="text/javascript" src="../js/lib/jsBezier-0.2-min.js"></script>
  26. <script type="text/javascript" src="../js/1.2.6/jsPlumb-1.2.6-RC1.js"></script>
  27. <script type="text/javascript" src="../js/1.2.6/jsPlumb-defaults-1.2.6-RC1.js"></script>
  28. <script type="text/javascript" src="../js/1.2.6/jquery.jsPlumb-1.2.6-RC1.js"></script>
  29. <script type="text/javascript">
  30. $(function() {
  31. jsPlumb.connect({
  32. source:$("#d1"),
  33. target:$("#d2"),
  34. overlays:[["Arrow", { location:0.3, direction:-1 }], ["Arrow", { location:0.7 }]],
  35. anchors:["RightMiddle","LeftMiddle"],
  36. paintStyle:{lineWidth:5}
  37. });
  38. });
  39. </script>
  40. </body>
  41. </html>