forked from soswow/fit-curve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (43 loc) · 1.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!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/svg.js/2.3.6/svg.min.js"></script>
<script src="lib/fit-curve.js"></script>
<script src="demo/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>