bc-model-viewer 1.6.31 → 1.6.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bc-model-viewer.min.js +1 -1
- package/examples/clip.html +5 -15
- package/examples/test.dgz +0 -0
- package/package.json +1 -1
package/examples/clip.html
CHANGED
|
@@ -27,19 +27,6 @@
|
|
|
27
27
|
<button onclick="hudTool.activate()">激活工具</button>
|
|
28
28
|
<button onclick="hudTool.deactivate()">停止</button>
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
<button onclick="hudTool.activate({
|
|
32
|
-
fixedY: 1,
|
|
33
|
-
onPut(point, hud) {
|
|
34
|
-
console.log('放置完成', point, hud);
|
|
35
|
-
// hudTool.remove(hud) // 移除指定元素
|
|
36
|
-
}
|
|
37
|
-
})">锁定Y轴为1</button>
|
|
38
|
-
|
|
39
|
-
<button onclick="hudTool.removeLast()">清除上一次标签</button>
|
|
40
|
-
<button onclick="hudTool.clear()">清除所有标签</button>
|
|
41
|
-
<button onclick="hudTool.gets()">获取所有标签</button>
|
|
42
|
-
|
|
43
30
|
</div>
|
|
44
31
|
|
|
45
32
|
<script type="module">
|
|
@@ -55,18 +42,21 @@
|
|
|
55
42
|
},
|
|
56
43
|
load: {
|
|
57
44
|
cache: {
|
|
58
|
-
enabled:
|
|
45
|
+
enabled: true,
|
|
59
46
|
}
|
|
60
47
|
},
|
|
61
48
|
gui: {
|
|
62
49
|
enabled: true
|
|
50
|
+
},
|
|
51
|
+
other: {
|
|
52
|
+
autoSceneIndex: 0
|
|
63
53
|
}
|
|
64
54
|
})
|
|
65
55
|
|
|
66
56
|
// 加载测试模型
|
|
67
57
|
await viewer.loadZipAsync('./test.dgz')
|
|
68
58
|
|
|
69
|
-
|
|
59
|
+
viewer.clipper.activateSectionBox()
|
|
70
60
|
window.viewer = viewer
|
|
71
61
|
</script>
|
|
72
62
|
|
package/examples/test.dgz
CHANGED
|
Binary file
|