12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!DOCTYPE html>
- <html>
- <head lang="en">
- <meta charset="UTF-8">
- <title>Fit Curves Demo</title>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.9.3/lodash.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/1.7.0/math.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js"></script>
- <script src="../lib/fit-curve.js"></script>
- <script src="demo.js"></script>
- <style>
- svg {
- border: 1px solid gray;
- }
- #container, #sidebar {
- float: left;
- }
- #sidebar {
- padding-left: 15px;
- width: 300px;
- }
- </style>
- </head>
- <body>
- <div id="container"></div>
- <div id="sidebar">
- <button id="clear-button">Clear</button><br>
- <label for="errorInput">
- Error:
- <input id="errorInput" type="range" min="1" max="300" value="50"/>
- <span id="errorValue">50</span>
- </label><br/>
- <label for="showBezierDotsCheckbox">
- <input type="checkbox" id="showBezierDotsCheckbox"/>
- - Show bezier dots
- </label><br/>
- <label for="showBezierControlPointsCheckbox">
- <input type="checkbox" id="showBezierControlPointsCheckbox"/>
- - Show bezier control points
- </label>
- </div>
- </body>
- </html>
|