mxdraw 0.1.85 → 0.1.89

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.
@@ -141,6 +141,12 @@ export default abstract class MxDbEntity {
141
141
  * @returns void
142
142
  */
143
143
  transformBy(mat: THREE.Matrix4): void;
144
+ /**
145
+ * 返回对象最小外包.
146
+ * @param
147
+ * @returns void
148
+ */
149
+ getGeomExtents(): THREE.Box3 | null;
144
150
  private getImp;
145
151
  /**
146
152
  * 更新显示
@@ -23,4 +23,5 @@ export default class MxDbLine extends MxDbEntity {
23
23
  dwgIn(obj: any): boolean;
24
24
  dwgOut(obj: any): object;
25
25
  create(): MxDbEntity;
26
+ getGeomExtents(): THREE.Box3 | null;
26
27
  }
@@ -1,5 +1,4 @@
1
- /** @module MxDbText*/
2
- import { Vector3 } from 'three';
1
+ import THREE, { Vector3 } from 'three';
3
2
  import McGiWorldDraw from '../McGiWorldDraw';
4
3
  import MxDbEntity from '../MxDbEntity';
5
4
  /**
@@ -7,7 +6,7 @@ import MxDbEntity from '../MxDbEntity';
7
6
  */
8
7
  export default class MxDbText extends MxDbEntity {
9
8
  /** 文字所在位置*/
10
- position: Vector3;
9
+ position: THREE.Vector3;
11
10
  /** 文字内容*/
12
11
  text: string;
13
12
  /** 文字高度*/
@@ -21,4 +20,5 @@ export default class MxDbText extends MxDbEntity {
21
20
  create(): MxDbEntity;
22
21
  dwgIn(obj: any): boolean;
23
22
  dwgOut(obj: any): object;
23
+ getGeomExtents(): THREE.Box3 | null;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.85",
3
+ "version": "0.1.89",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",