mxdraw 0.1.93 → 0.1.96
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/MxDbAlignedDimension/MxDbAlignedDimension.js +1 -1
- package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +1 -1
- package/dist/lib/MxModule/MxDbImage/MxDbImage.js +1 -1
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +1 -1
- package/dist/lib/MxModule/MxType/MxType.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 +7 -0
- package/dist/types/MxModule/MxDbImage/MxDbImage.d.ts +3 -0
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +18 -0
- package/dist/types/MxModule/MxType/MxType.d.ts +3 -1
- package/package.json +1 -1
|
@@ -45,12 +45,14 @@ export default abstract class MxDbEntity {
|
|
|
45
45
|
userData: {
|
|
46
46
|
[key: string]: any;
|
|
47
47
|
};
|
|
48
|
+
private sGuid;
|
|
48
49
|
private dLineWidth;
|
|
49
50
|
private lineWidthByPixels;
|
|
50
51
|
private dDashArray;
|
|
51
52
|
private dDashRatio;
|
|
52
53
|
private layer;
|
|
53
54
|
abstract getTypeName(): string;
|
|
55
|
+
initGuid(guid: string): void;
|
|
54
56
|
/**
|
|
55
57
|
* 自定义对象的绘制函数。在方法中定义如何绘制图形
|
|
56
58
|
* @param pWorldDraw 绘制对象{@link McGiWorldDraw }
|
|
@@ -288,4 +290,9 @@ export default abstract class MxDbEntity {
|
|
|
288
290
|
* @returns number
|
|
289
291
|
*/
|
|
290
292
|
isDashLineDisplay(): boolean;
|
|
293
|
+
/**
|
|
294
|
+
* 返回唯一标识guid
|
|
295
|
+
* @returns string
|
|
296
|
+
*/
|
|
297
|
+
guid(): string;
|
|
291
298
|
}
|
|
@@ -32,6 +32,9 @@ export default class MxDbImage extends MxDbEntity {
|
|
|
32
32
|
* @param material THREE.MeshLambertMaterial
|
|
33
33
|
* */
|
|
34
34
|
setMaterial(material: THREE.MeshLambertMaterial): void;
|
|
35
|
+
/** 加载图片材质
|
|
36
|
+
* */
|
|
37
|
+
loadMaterial(imagePath?: string): void;
|
|
35
38
|
/** 设置图片对角点1
|
|
36
39
|
* @param pt1 THREE.Vector3坐标点
|
|
37
40
|
* */
|
|
@@ -793,4 +793,22 @@ export default class MxDrawObject {
|
|
|
793
793
|
* ```
|
|
794
794
|
*/
|
|
795
795
|
docCoord2Cad(x: number, y: number, z: number): THREE.Vector3;
|
|
796
|
+
/**
|
|
797
|
+
* 设置视区的旋转角度
|
|
798
|
+
* @example
|
|
799
|
+
* ```typescript
|
|
800
|
+
*
|
|
801
|
+
*
|
|
802
|
+
* ```
|
|
803
|
+
*/
|
|
804
|
+
setViewAngle(ang: number): void;
|
|
805
|
+
/**
|
|
806
|
+
* 得到视区的旋转角度
|
|
807
|
+
* @example
|
|
808
|
+
* ```typescript
|
|
809
|
+
*
|
|
810
|
+
*
|
|
811
|
+
* ```
|
|
812
|
+
*/
|
|
813
|
+
getViewAngle(): number;
|
|
796
814
|
}
|