-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (28 loc) · 1.3 KB
/
Copy pathindex.html
File metadata and controls
28 lines (28 loc) · 1.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>leo x</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="dist/index.js"></script>
<script src="ghp/js/index.js"></script>
</head>
<body>
<div id="trg"></div>
<p><pre>Leo.positionInspector</pre> accepts a template whith by default is: </p>
<pre><code>'%({%x} {%y}) rel-%({r%x} {r%y}) px({x} {y}) rel-px({rx} {ry})'</code></pre>
<br />
Where
<ul>
<li><code>{%x}</code>: width relative percentage of x coordinate</li>
<li><code>{%y}</code>: height relative percentage of y coordinate</li>
<li><code>{r%x}</code>: width relative percentage of x coordinate relative to previous point</li>
<li><code>{r%y}</code>: height relative percentage of y coordinate relative to previous point</li>
<li><code>{x}</code>: x coordinate</li>
<li><code>{y}</code>: y coordinate</li>
<li><code>{rx}</code>: x coordinate relative to previous point</li>
<li><code>{ry}</code>: y coordinate relative to previous point</li>
</ul>
In this page was invoked as <code>Leo.positionInspector('[{r%x}, {r%y}],');</code>
</body>
</html>