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.
@@ -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
  }
@@ -9,7 +9,9 @@ declare enum MxCloneType {
9
9
  /** 正常Clone */
10
10
  kClone = 1,
11
11
  /** 动态拖动Clone */
12
- kDragClone = 2
12
+ kDragClone = 2,
13
+ /** 数据归档 */
14
+ kMxFileClone = 3
13
15
  }
14
16
  /**
15
17
  * 控件对象缺省的绘制顺序
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.93",
3
+ "version": "0.1.96",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/mxdraw.umd.js",