build-dxf 0.0.13 → 0.0.15

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/README.md CHANGED
@@ -27,7 +27,9 @@ detailsPoint.addEventListener("handleSuccess", () => {
27
27
  // 下载dxf文件
28
28
  dxfSystem.Dxf.download("01.dxf")
29
29
  // 下载白模,obj格式
30
- whiteModel.download("001.obj")
30
+ whiteModel.downloadOBJ("001.obj")
31
+ // 下载白模,gltf或glb格式, 第二个参数为true时是glb,默认为true
32
+ whiteModel.downloadGltf("001.glb", true)
31
33
 
32
34
  // desPoints 为射线点集合,根据需要使用
33
35
  console.log("handleSuccess", detailsPoint.desPoints)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -38,7 +38,8 @@
38
38
  "three-bvh-csg": ">=0.0.17",
39
39
  "three-csg-ts": ">=3.2.0",
40
40
  "@tweenjs/tween.js": ">=25.0.0",
41
- "vue": ">=3.0.0"
41
+ "vue": ">=3.0.0",
42
+ "obj2gltf": ">=3.1.6"
42
43
  },
43
44
  "author": "夏过初秋",
44
45
  "license": "ISC"