-
Notifications
You must be signed in to change notification settings - Fork 581
/
Copy pathstroke_matching.html
87 lines (74 loc) · 1.45 KB
/
stroke_matching.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
layout: default
js: stroke_matching.js
title: Stroke matching visualizer
---
<style type="text/css">
.char-container {
margin: 10px;
border: 1px solid #999;
float: left;
position: relative;
}
.char-target {
width: 200px;
height: 200px;
}
.info-target {
color: #999;
position: absolute;
bottom: 3px;
left: 6px;
font-size: 8px;
}
.count-target {
color: #000;
font-weight: bold;
position: absolute;
top: 3px;
left: 6px;
}
.show-data {
color: #999;
display: block;
position: absolute;
bottom: 3px;
right: 6px;
font-size: 8px;
}
pre {
user-select: all;
}
path {
fill: rgba(0,0,0, 0.1);
}
.target-path {
fill: rgba(0, 0, 150, 0.3);
}
.user-stroke {
fill: none;
stroke-width: 4px;
stroke: #333;
}
.clear {
clear: both;
}
</style>
<div class="container">
<div id="target"></div>
<div class="clear"></div>
</div>
<div class="modal fade" id="data-modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Drawing Points</h4>
</div>
<div class="modal-body"><pre id="modal-content"></pre></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>