forked from ecomfe/fonteditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreducePoints.html
71 lines (64 loc) · 1.42 KB
/
reducePoints.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>消减中间点</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
#points, #points-break {
position: absolute;
left: 0;
top: 0;
width: 800px;
height: 800px;
}
#points i,
#points-break i {
position: absolute;
width: 1px;
height: 1px;
background: #ddd;
}
#points-break i.break {
width: 2px;
height: 2px;
background: red;
}
#points-break i.tangency {
width: 2px;
height: 2px;
background: blue;
}
#points-break i.inflexion {
width: 2px;
height: 2px;
background: green;
}
</style>
</head>
<body>
<div id="points"></div>
<div id="points-break"></div>
<script>
require.config({
baseUrl: '../src',
packages: [
{
name: 'fonteditor-core',
location: '../dep/fonteditor-core/src'
}
],
paths: {
demo: '../demo/js',
}
});
define('jquery', $);
</script>
<script>require(['demo/reducePoints'])</script>
</body>
</html>