mxdraw 0.1.94 → 0.1.97
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/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.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/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/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.d.ts +4 -4
- package/dist/types/MxModule/MxDbEntity/MxDbEntity.d.ts +29 -0
- package/dist/types/MxModule/MxDbImage/MxDbImage.d.ts +3 -0
- package/dist/types/MxModule/MxType/MxType.d.ts +3 -1
- package/package.json +1 -1
package/dist/types/MxModule/McEdGetPointWorldDrawObject/McEdGetPointWorldDrawObjectClass.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export interface McEdGetPointWorldDrawObjectClass {
|
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
drawCircle(cen: THREE.Vector3, dRadius: number): void;
|
|
5
5
|
drawLine(pt1: THREE.Vector3, pt2: THREE.Vector3): void;
|
|
6
|
-
drawEntity(ent: THREE.Object3D | null): void;
|
|
6
|
+
drawEntity(ent: THREE.Object3D | null, renderOrder?: number): void;
|
|
7
7
|
drawText(sText: string, iSize: number, dAngle: number, pt: THREE.Vector3): void;
|
|
8
8
|
setDraw(call: (currentPoint: THREE.Vector3, pWorldDraw: McEdGetPointWorldDrawObjectClass) => void): void;
|
|
9
|
-
drawCustomEntity(ent: any): void;
|
|
9
|
+
drawCustomEntity(ent: any, renderOrder?: number): void;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* McEdGetPointWorldDrawObject 用于构建一个动态绘制回调对象
|
|
@@ -52,7 +52,7 @@ export default class McEdGetPointWorldDrawObject {
|
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
|
-
drawEntity(ent: THREE.Object3D | null): void;
|
|
55
|
+
drawEntity(ent: THREE.Object3D | null, renderOrder?: number): void;
|
|
56
56
|
/**
|
|
57
57
|
* 绘制一个文档对象
|
|
58
58
|
* @param sText 文本
|
|
@@ -106,5 +106,5 @@ export default class McEdGetPointWorldDrawObject {
|
|
|
106
106
|
*
|
|
107
107
|
* ```
|
|
108
108
|
*/
|
|
109
|
-
drawCustomEntity(ent: any): void;
|
|
109
|
+
drawCustomEntity(ent: any, renderOrder?: number): void;
|
|
110
110
|
}
|
|
@@ -45,12 +45,15 @@ 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;
|
|
54
|
+
private _event;
|
|
53
55
|
abstract getTypeName(): string;
|
|
56
|
+
initGuid(guid: string): void;
|
|
54
57
|
/**
|
|
55
58
|
* 自定义对象的绘制函数。在方法中定义如何绘制图形
|
|
56
59
|
* @param pWorldDraw 绘制对象{@link McGiWorldDraw }
|
|
@@ -99,6 +102,7 @@ export default abstract class MxDbEntity {
|
|
|
99
102
|
* ```
|
|
100
103
|
*/
|
|
101
104
|
protected dwgOutHelp(obj: any, aryProp: string[]): any;
|
|
105
|
+
protected callEvent(sEventName: string, param?: any): any;
|
|
102
106
|
/**
|
|
103
107
|
* 新创建一个自定义对象 (默认调用该对象的构造函数来创建新的对象)
|
|
104
108
|
* @param
|
|
@@ -288,4 +292,29 @@ export default abstract class MxDbEntity {
|
|
|
288
292
|
* @returns number
|
|
289
293
|
*/
|
|
290
294
|
isDashLineDisplay(): boolean;
|
|
295
|
+
/**
|
|
296
|
+
* 返回唯一标识guid
|
|
297
|
+
* @returns string
|
|
298
|
+
*/
|
|
299
|
+
guid(): string;
|
|
300
|
+
/**
|
|
301
|
+
* 对象结束开始编辑
|
|
302
|
+
* @returns string
|
|
303
|
+
*/
|
|
304
|
+
onEndGripEidt(): void;
|
|
305
|
+
/**
|
|
306
|
+
* 对象开始开始编辑
|
|
307
|
+
* @returns string
|
|
308
|
+
*/
|
|
309
|
+
onStartGripEidt(): any;
|
|
310
|
+
/**
|
|
311
|
+
* 添加一个事件处理
|
|
312
|
+
* @returns void
|
|
313
|
+
*/
|
|
314
|
+
addEvent(name: string, fun: object): void;
|
|
315
|
+
/**
|
|
316
|
+
* 删除一个事件处理
|
|
317
|
+
* @returns void
|
|
318
|
+
*/
|
|
319
|
+
removeEvent(name: string): void;
|
|
291
320
|
}
|
|
@@ -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
|
* */
|