mxdraw 0.1.92 → 0.1.95

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.
@@ -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
  }
@@ -578,5 +578,15 @@ export default class MxFun {
578
578
  * ```
579
579
  */
580
580
  docCoord2Cad(x: number, y: number, z: number): THREE.Vector3;
581
+ /**
582
+ * 通过id得到对象.
583
+ * @returns 返MxDbEntity
584
+ * @example
585
+ * ```typescript
586
+ *
587
+ *
588
+ * ```
589
+ */
590
+ getMxEntity(id: number): MxDbEntity | undefined;
581
591
  }
582
592
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.92",
3
+ "version": "0.1.95",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",