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.
- package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +1 -1
- package/dist/lib/MxModule/MxDbLine/MxDbLine.js +1 -1
- package/dist/lib/MxModule/MxDbText/MxDbText.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/mxdraw.es5.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/dist/types/MxModule/MxDbEntity/MxDbEntity.d.ts +6 -0
- package/dist/types/MxModule/MxDbLine/MxDbLine.d.ts +1 -0
- package/dist/types/MxModule/MxDbText/MxDbText.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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
|
* 更新显示
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
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
|
}
|