index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title>Fit Curves Demo</title>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.9.3/lodash.js"></script>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/1.7.0/math.min.js"></script>
  8. <script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js"></script>
  9. <script src="../lib/fit-curve.js"></script>
  10. <script src="demo.js"></script>
  11. <style>
  12. svg {
  13. border: 1px solid gray;
  14. }
  15. #container, #sidebar {
  16. float: left;
  17. }
  18. #sidebar {
  19. padding-left: 15px;
  20. width: 300px;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div id="container"></div>
  26. <div id="sidebar">
  27. <button id="clear-button">Clear</button><br>
  28. <label for="errorInput">
  29. Error:
  30. <input id="errorInput" type="range" min="1" max="300" value="50"/>
  31. <span id="errorValue">50</span>
  32. </label><br/>
  33. <label for="showBezierDotsCheckbox">
  34. <input type="checkbox" id="showBezierDotsCheckbox"/>
  35. - Show bezier dots
  36. </label><br/>
  37. <label for="showBezierControlPointsCheckbox">
  38. <input type="checkbox" id="showBezierControlPointsCheckbox"/>
  39. - Show bezier control points
  40. </label>
  41. </div>
  42. </body>
  43. </html>