File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,14 @@ const code = `
48
48
<button @click="toggle('zoom')">{{ enableZoom ? 'disable' : 'enable' }} zoom</button>
49
49
<button @click="toggle('rotate')">{{ enableRotate ? 'disable' : 'enable' }} rotation</button>
50
50
</div>
51
- <model-obj src="static/models/obj/tree.obj"></model-obj>
51
+ <model-obj
52
+ src="static/models/obj/tree.obj"
53
+ :controlsOptions="{
54
+ enablePan,
55
+ enableZoom,
56
+ enableRotate,
57
+ }"
58
+ ></model-obj>
52
59
</div>
53
60
</template>
54
61
@@ -85,7 +92,14 @@ const htmlCode = `
85
92
<button @click="toggle('zoom')">{{ enableZoom ? 'disable' : 'enable' }} zoom</button>
86
93
<button @click="toggle('rotate')">{{ enableRotate ? 'disable' : 'enable' }} rotation</button>
87
94
</div>
88
- <model-obj src="static/models/obj/tree.obj"></model-obj>
95
+ <model-obj
96
+ src="static/models/obj/tree.obj"
97
+ :controlsOptions="{
98
+ enablePan,
99
+ enableZoom,
100
+ enableRotate,
101
+ }"
102
+ ></model-obj>
89
103
</div>
90
104
#scripts#
91
105
<script>
You can’t perform that action at this time.
0 commit comments