build-dxf 0.0.37 → 0.0.38

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
@@ -7,7 +7,7 @@ npm i build-dxf
7
7
 
8
8
  # node 使用示例
9
9
  ```typescript
10
- import { DxfSystem, ModelDataPlugin, components } from "build-dxf"
10
+ import { DxfSystem, ModelDataPlugin, components, utils } from "build-dxf"
11
11
  /**
12
12
  * json 文件格式为{ start: {x: number, y: number}, end: {x: number, y: number } , insetionArr: {index: number}[] }[]
13
13
  */
@@ -22,6 +22,11 @@ const whiteModel = dxfSystem.findComponentByType(components.WhiteModel)
22
22
  // 获取详情点数据生成组件
23
23
  const detailsPoint = dxfSystem.findComponentByType(components.DetailsPoint)
24
24
 
25
+ // trajectory222为轨迹文件数据
26
+ dxfSystem.Dxf.addEventListener("preprocessing", ({ setData, data }) => {
27
+ setData( utils.BoundExt.boundExtbyTraj.call(dxfSystem.Dxf, data, trajectory222 ) )
28
+ }, { once: true })
29
+
25
30
  // 监听详情点数据处理完成
26
31
  detailsPoint.addEventListener("handleSuccess", () => {
27
32
  // 下载dxf文件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",