-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
53 lines (51 loc) · 1.58 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
47
48
49
50
51
52
53
<head>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<!-- faded background -->
<div id="backgroundImage"></div>
<!-- all possible svg items -->
<svg id="allSvg" oncontextmenu="return false;">
<!-- for users drawing -->
<path id="svgPath" marker-mid="url(#markerdot)" />
<!-- to show around nearby point -->
<circle id="highlightCircle" refX="center" refY="center" />
<!-- to show around selected point -->
<circle id="selectionCircle" refX="center" refY="center" />
<!-- to show around control point of selected point -->
<circle id="controlCircle" refX="center" refY="center" r="0" />
<!-- to show around control point #2 of selected point -->
<circle id="controlCircle2" refX="center" refY="center" r="0" />
<path id="controlPath1" />
<path id="controlPath2" />
<defs>
<!-- markers for points -->
<marker id="markerdot" overflow="visible" markerUnits="strokeWidth">
<circle r="1" />
</marker>
<!-- grid for snapping -->
<pattern
id="transformedPattern"
x="0"
y="0"
width="0"
height="0"
patternUnits="userSpaceOnUse"
>
<rect x="0" y="0" width="100%" height="100%" />
</pattern>
</defs>
<rect
x="0"
y="0"
width="100%"
height="100%"
style="fill: url(#transformedPattern);"
/>
</svg>
<!-- display instructions & data -->
<div id="datadiv" oncontextmenu="return false;"></div>
<!-- alert -->
<div id="alertUser" oncontextmenu="return false;"></div>
<script src="index.js"></script>
</body>