bc-model-viewer 1.7.20 → 1.7.21

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.
@@ -60,7 +60,9 @@
60
60
  await viewer.loadZipAsync('../../assets/dgz/建筑.dgz')
61
61
  // await viewer.loadZipAsync('../../assets/new.dgz')
62
62
 
63
- const tool = new AnnotationTool(viewer)
63
+ // AnnotationTool 已在 Viewer 构造函数中自动初始化
64
+ // 可以通过 viewer.annotationTool 访问
65
+ const tool = viewer.annotationTool
64
66
 
65
67
  tool.activate()
66
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-model-viewer",
3
- "version": "1.7.20",
3
+ "version": "1.7.21",
4
4
  "main": "./dist/bc-model-viewer.min.js",
5
5
  "module": "./dist/bc-model-viewer.min.js",
6
6
  "description": "A model viewer",