build-dxf 0.0.38 → 0.0.40

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
@@ -22,6 +22,8 @@ const whiteModel = dxfSystem.findComponentByType(components.WhiteModel)
22
22
  // 获取详情点数据生成组件
23
23
  const detailsPoint = dxfSystem.findComponentByType(components.DetailsPoint)
24
24
 
25
+ const threeVJia = dxfSystem.findComponentByName("ThreeVJia")
26
+
25
27
  // trajectory222为轨迹文件数据
26
28
  dxfSystem.Dxf.addEventListener("preprocessing", ({ setData, data }) => {
27
29
  setData( utils.BoundExt.boundExtbyTraj.call(dxfSystem.Dxf, data, trajectory222 ) )
@@ -36,6 +38,9 @@ detailsPoint.addEventListener("handleSuccess", () => {
36
38
  // 下载白模,gltf或glb格式, 第二个参数为true时是glb,默认为true
37
39
  whiteModel.downloadGltf("001.glb", true)
38
40
 
41
+ // 下载三维家 json
42
+ threeVJia.download("json.json")
43
+
39
44
  // 下载为图片
40
45
  dxfSystem.AngleCorrectionDxf.downloadImage("001.jpg")
41
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",