Skip to content

Commit d350444

Browse files
authored
Merge pull request #5 from mkeblx/fit-sample
Add fit test
2 parents bbd281b + 2f85f24 commit d350444

File tree

5 files changed

+83
-0
lines changed

5 files changed

+83
-0
lines changed

cube.glb

5.81 KB
Binary file not shown.

cube.png

2.22 KB
Loading

cube.usdz

7.65 KB
Binary file not shown.

fit.html

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Model: fit test</title>
8+
<link rel="stylesheet" href="style.css" />
9+
<style>
10+
.container {
11+
margin-bottom: 20px;
12+
}
13+
14+
model {
15+
background-color: #007700;
16+
}
17+
18+
model img {
19+
width: 400px;
20+
height: 400px;
21+
}
22+
23+
#model1 {
24+
width: 400px;
25+
height: 400px;
26+
}
27+
28+
#model2 {
29+
width: 400px;
30+
height: 600px;
31+
}
32+
33+
#model2 img {
34+
margin-top: 100px;
35+
}
36+
37+
#model3 {
38+
width: 600px;
39+
height: 400px;
40+
}
41+
42+
#model3 img {
43+
margin-left: 100px;
44+
}
45+
</style>
46+
</head>
47+
<body>
48+
<h1>Model: Fit test</h1>
49+
<hr />
50+
<pre>
51+
&lt;model alt="A model of a cube"&gt;
52+
&lt;source src="./cube.usdz" type="model/vnd.usdz+zip" /&gt;
53+
&lt;source src="./cube.glb" type="model/gltf-binary" /&gt;
54+
&lt;/model&gt;
55+
</pre
56+
>
57+
58+
<div class="container">
59+
<model id="model1" alt="A model of a cube">
60+
<source src="./cube.usdz" type="model/vnd.usdz+zip" />
61+
<source src="./cube.glb" type="model/gltf-binary" />
62+
<img src="./cube.png" alt="An image of a model of a cube" />
63+
</model>
64+
</div>
65+
66+
<div class="container">
67+
<model id="model2" alt="A model of a cube">
68+
<source src="./cube.usdz" type="model/vnd.usdz+zip" />
69+
<source src="./cube.glb" type="model/gltf-binary" />
70+
<img src="./cube.png" alt="An image of a model of a cube" />
71+
</model>
72+
</div>
73+
74+
<div class="container">
75+
<model id="model3" alt="A model of a cube">
76+
<source src="./cube.usdz" type="model/vnd.usdz+zip" />
77+
<source src="./cube.glb" type="model/gltf-binary" />
78+
<img src="./cube.png" alt="An image of a model of a cube" />
79+
</model>
80+
</div>
81+
</body>
82+
</html>

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h1>List of model samples:</h1>
2222
<a href="./orbit.html">orbit</a>
2323
<a href="./jsorbit.html">jsorbit</a>
2424
<a href="./playbackrate.html">playbackrate</a>
25+
<a href="./fit.html">fit</a>
2526
</ul>
2627
</body>
2728
</html>

0 commit comments

Comments
 (0)