-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (91 loc) · 2.36 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
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
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<title>meemoo-elements demo 🎛</title>
<style>
body {
/* System font stack */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.mm-debug--inspect {
display: flex;
/* flex-direction: column; */
gap: 16px;
flex-wrap: wrap;
}
.mm-debug--tag {
padding-top: 16px;
width: 100%;
}
label {
display: flex;
gap: 8px;
}
input[type="number"] {
width: 5em;
}
#debug {
position: fixed;
top: 8px;
right: 8px;
border-radius: 8px;
border: 1px dashed rgba(0, 0, 0, 0.5);
padding: 8px;
max-height: 80%;
overflow: auto;
width: 240px;
max-width: 50%;
}
</style>
</head>
<body>
<a href="https://github.com/meemoo/meemoo-elements">About</a>
<!-- This "meta" mm-debug shows the "hidden" control on the inner mm-debug. 🤗 -->
<!-- <mm-debug shallow> -->
<mm-debug mount="#debug">
<h2>mm-webcam</h2>
<mm-webcam></mm-webcam>
<h2>mm-quadwarp</h2>
<p>
Takes position of 4 corners and adds a transform matrix to the first
child. Potentially useful for real-size projections onto a table or
object.
</p>
<p>The first one shows a PDF in an iframe.</p>
<mm-quadwarp
xtl="232"
ytl="800"
xtr="794"
ytr="667"
xbr="794"
ybr="1600"
xbl="200"
ybl="1185"
>
<iframe src="./static/a4Calibration.pdf" width="720" height="720">
</iframe>
</mm-quadwarp>
<p>The second one has an mm-webcam inside.</p>
<mm-quadwarp
xtl="794"
ytl="667"
xtr="1241"
ytr="805"
xbr="1288"
ybr="1366"
xbl="794"
ybl="1600"
>
<mm-webcam
style="width: 640px; height: 480px; background-color: pink"
></mm-webcam>
</mm-quadwarp>
</mm-debug>
<!-- </mm-debug> -->
<div id="debug"></div>
<script type="module" src="./src/mm-debug.js"></script>
<script type="module" src="./src/mm-webcam.js"></script>
<script type="module" src="./src/mm-quadwarp.js"></script>
</body>
</html>