-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (58 loc) · 2.04 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="Description"
content="This is a surf shaping / prototyping app which provides minimal functionnality. It is intended to make it easier to use than Akushaper, SurfCAD, Shape3D X and other surfboard modeling software."
/>
<title>tinyshaper</title>
<link type="text/css" rel="stylesheet" href="style.css" />
</head>
<body>
<div class="toolbar">
<div class="title">
<img src="logo_full.svg"/>
</div>
<hr />
<h4>View</h4>
<div id="positions">
<button>Top</button>
<button>Side</button>
<button>Front</button>
<button>Back</button>
</div>
<hr />
<!--<h4>Point</h4>-->
<!--<label> X <input type="number" id="x" /></label>-->
<!--<label> Y <input type="number" id="y" /></label>-->
<!--<label> Continuity <input type="checkbox" id="continuity" /></label>-->
<!--<hr />-->
<h4>Dimensions</h4>
<div class="dimensions">
<label> Length <input type="number" id="length" min="100" max="400" /> cm</label>
<label> Width <input type="number" id="width" min="18" max="40"/> cm</label>
<label> Thickness <input type="number" id="thickness" min="1" max="15"/> cm</label>
</div>
<footer>
<a href="https://github.com/Kipre/tinyshaper">GitHub</a>
<a href="https://www.instagram.com/cyprienneverov/">Instagram</a>
</footer>
</div>
<div class="content">
<canvas id="threed"></canvas>
<svg class="hidden" id="vis"></svg>
</div>
</body>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"TrackballControls": "https://unpkg.com/[email protected]/examples/jsm/controls/TrackballControls.js",
"tween": "https://cdnjs.cloudflare.com/ajax/libs/tween.js/23.1.2/tween.esm.js",
"d3": "https://cdn.skypack.dev/d3@7"
}
}
</script>
<script type="module" src="js/main.js"></script>
</html>