Skip to content

Commit b3082da

Browse files
committed
explored a lot with troisjs except for models
1 parent 4ba418f commit b3082da

23 files changed

+28673
-113
lines changed

.DS_Store

0 Bytes
Binary file not shown.

three-js-tutorials/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

three-js-tutorials/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11+
"@element-plus/icons-vue": "^1.1.4",
1112
"core-js": "^3.8.3",
1213
"element-plus": "^2.1.7",
1314
"troisjs": "^0.3.4",

three-js-tutorials/src/App.vue

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<template>
22
<div>
33
<el-row>
4-
<img alt="Vue logo" src="./assets/logo.png" :width="100" />
4+
<img alt="Vue logo" src="./assets/logo.png" width="1000" height="10"/>
55
</el-row>
66
<el-row :gutter="20">
7-
<el-col :span="6">
8-
<HelloWorld msg="Welcome to Your Vue.js App" />
7+
<el-col :span="12">
8+
<troisInternal msg="Welcome to Your Vue.js App" />
99
</el-col>
10-
<el-col :span="6">
11-
<SpinningCube />
10+
<el-col :span="12">
11+
<troisModel />
1212
</el-col>
13-
<el-col :span="6">
14-
<HelloWorld msg="Welcome to Your Vue.js App" />
13+
</el-row>
14+
<el-row :gutter="20">
15+
<el-col :span="12">
16+
<threeJS />
1517
</el-col>
16-
<el-col :span="6">
17-
<HelloWorld msg="Welcome to Your Vue.js App" />
18+
<el-col :span="12">
19+
<threeModel />
1820
</el-col>
1921
</el-row>
2022
</div>
@@ -23,14 +25,19 @@
2325

2426
<script>
2527
/* eslint-disable */
26-
import HelloWorld from "./components/HelloWorld.vue";
27-
import SpinningCube from "./components/SpinningCube.vue";
28+
import HelloWorld from "./components/TroisCube.vue";
29+
import troisModel from "./components/TroisLoadModel.vue";
30+
import ThreeJS from "./components/ThreeJS.vue";
31+
import ThreeJSModel from "./components/ThreeJSModel.vue";
2832
2933
export default {
34+
components: { ThreeJS },
3035
name: "App",
3136
components: {
32-
HelloWorld,
33-
SpinningCube,
37+
troisInternal: HelloWorld,
38+
troisModel,
39+
threeJS: ThreeJS,
40+
threeModel: ThreeJSModel,
3441
},
3542
};
3643
</script>
-5.88 MB
Binary file not shown.

0 commit comments

Comments
 (0)