mxdraw 0.1.46 → 0.1.49
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/MxDbHatch/MxDbHatch.js +1 -1
- package/dist/lib/MxModule/MxDbLeadTag/MxDbLeadTag.js +1 -0
- package/dist/lib/MxModule/MxDbLeadTag/index.js +1 -0
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/loadCoreCode.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/lib/mxdraw.js +1 -1
- package/dist/lib/tools/dynamicImport/index.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 +2 -5
- package/dist/types/MxModule/MxDbHatch/MxDbHatch.d.ts +1 -0
- package/dist/types/MxModule/MxDbLeadTag/MxDbLeadTag.d.ts +21 -0
- package/dist/types/MxModule/MxDbLeadTag/index.d.ts +3 -0
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +20 -0
- package/dist/types/mxdraw.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @module MxDbEntity*/
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
import McGiWorldDraw from '../McGiWorldDraw';
|
|
3
4
|
import MxDrawObject from '../MxDrawObject';
|
|
4
5
|
/**
|
|
@@ -49,6 +50,7 @@ export default abstract class MxDbEntity {
|
|
|
49
50
|
private dDashArray;
|
|
50
51
|
private dDashRatio;
|
|
51
52
|
private layer;
|
|
53
|
+
abstract getTypeName(): string;
|
|
52
54
|
/**
|
|
53
55
|
* 自定义对象的绘制函数。在方法中定义如何绘制图形
|
|
54
56
|
* @param pWorldDraw 绘制对象{@link McGiWorldDraw }
|
|
@@ -97,11 +99,6 @@ export default abstract class MxDbEntity {
|
|
|
97
99
|
* ```
|
|
98
100
|
*/
|
|
99
101
|
protected dwgOutHelp(obj: any, aryProp: string[]): any;
|
|
100
|
-
/**
|
|
101
|
-
* 得到对象类型名
|
|
102
|
-
* @returns string
|
|
103
|
-
*/
|
|
104
|
-
getTypeName(): string;
|
|
105
102
|
/**
|
|
106
103
|
* 新创建一个自定义对象 (默认调用该对象的构造函数来创建新的对象)
|
|
107
104
|
* @param
|
|
@@ -7,6 +7,7 @@ import MxDbEntity from '../MxDbEntity';
|
|
|
7
7
|
export default class MxDbHatch extends MxDbEntity {
|
|
8
8
|
points: THREE.Vector3[];
|
|
9
9
|
worldDraw(pWorldDraw: McGiWorldDraw): void;
|
|
10
|
+
getTypeName(): string;
|
|
10
11
|
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
|
|
11
12
|
/** 设置顶点坐标 */
|
|
12
13
|
setPoints(points: THREE.Vector3[]): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** @module MxDbLeadTag*/
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import McGiWorldDraw from '../McGiWorldDraw';
|
|
4
|
+
import MxDbEntity from '../MxDbEntity';
|
|
5
|
+
/**
|
|
6
|
+
* MxDbLeadTag 引出标注
|
|
7
|
+
* */
|
|
8
|
+
export default class MxDbLeadTag extends MxDbEntity {
|
|
9
|
+
point: THREE.Vector3;
|
|
10
|
+
leadLen: number;
|
|
11
|
+
text: string;
|
|
12
|
+
textHeight: number;
|
|
13
|
+
getTypeName(): string;
|
|
14
|
+
private createDots;
|
|
15
|
+
worldDraw(pWorldDraw: McGiWorldDraw): void;
|
|
16
|
+
getGripPoints(): THREE.Vector3[];
|
|
17
|
+
onViewChange(): boolean;
|
|
18
|
+
moveGripPointsAt(index: number, offset: THREE.Vector3): boolean;
|
|
19
|
+
dwgIn(obj: any): boolean;
|
|
20
|
+
dwgOut(obj: any): any;
|
|
21
|
+
}
|
|
@@ -297,6 +297,26 @@ export default class MxDrawObject {
|
|
|
297
297
|
* ```
|
|
298
298
|
*/
|
|
299
299
|
addEvent(eventNaem: string, fun: (...parmes: any) => any): void;
|
|
300
|
+
/**
|
|
301
|
+
* 控件对象的事件监听
|
|
302
|
+
* @param eventNaem 事件名称
|
|
303
|
+
* @param fun 回调函数
|
|
304
|
+
* @returns void
|
|
305
|
+
* @example
|
|
306
|
+
* ```typescript
|
|
307
|
+
* Mx.MxFun.getCurrentDraw().on("addResizeEvent", ()=> {})
|
|
308
|
+
* Mx.MxFun.getCurrentDraw().on("viewchange", ()=> {})
|
|
309
|
+
* 图纸加载完成
|
|
310
|
+
* Mx.MxFun.getCurrentDraw().on("loadComplete", ()=> {})
|
|
311
|
+
* 视区重绘事件.
|
|
312
|
+
* Mx.MxFun.getCurrentDraw().on("render", (renderer)=> {})
|
|
313
|
+
* 视区大小被修改事件.,viewsize={viewWidth:viewWidth,viewHeight:viewHeight}
|
|
314
|
+
* Mx.MxFun.getCurrentDraw().on("viewsizechange", (viewsize)=> {})
|
|
315
|
+
* 实体选择状态发生改变的事件.
|
|
316
|
+
* Mx.MxFun.getCurrentDraw().on("MxEntitySelectChange", (aryId:Array<number>)=> {})
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
on(eventNaem: string, fun: (...parmes: any) => any): void;
|
|
300
320
|
/**
|
|
301
321
|
* INI设置
|
|
302
322
|
* @param options { EnableOsnapFunction: boolean; }
|
package/dist/types/mxdraw.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import McGiWorldDrawType from './MxModule/McGiWorldDrawType';
|
|
|
23
23
|
import MxType from './MxModule/MxType';
|
|
24
24
|
import Mxassembly from './MxModule/Mxassembly';
|
|
25
25
|
import MxDbArea from './MxModule/MxDbArea';
|
|
26
|
+
import MxDbLeadTag from './MxModule/MxDbLeadTag';
|
|
26
27
|
import MxDbAnyLine from './MxModule/MxDbAnyLine';
|
|
27
28
|
import MxDbCloudLine from './MxModule/MxDbCloudLine';
|
|
28
29
|
import MxDbRegularPolygon from './MxModule/MxDbRegularPolygon';
|
|
@@ -37,7 +38,7 @@ import MxDrawObject from './MxModule/MxDrawObject';
|
|
|
37
38
|
import MxDbHatch from './MxModule/MxDbHatch';
|
|
38
39
|
import MxDbLayerTableRecord from './MxModule/MxDbLayerTableRecord';
|
|
39
40
|
import MxDbDatabase from './MxModule/MxDbDatabase';
|
|
40
|
-
export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGePoint3d, McGePoint3dArray, McGeTool, MxDbEntity, MxFilters, MxDbImage, MxDbLine, MxDbSVG, MxDbSVGText, MxDbPolyline, Mx3PointArc, MxDbCoord, MxDbHatch, MxDb2LineAngularDimension, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxDrawObject, MxType, MxDbArea, MxDbAnyLine, MxDbCloudLine, MxDbLeadComment, MxDbRectBoxLeadComment, MxDbEllipse, MxDbText, MxDbRegularPolygon, MxDbDatabase, MxDbLayerTableRecord };
|
|
41
|
+
export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGePoint3d, McGePoint3dArray, McGeTool, MxDbEntity, MxFilters, MxDbImage, MxDbLine, MxDbSVG, MxDbSVGText, MxDbPolyline, Mx3PointArc, MxDbCoord, MxDbHatch, MxDb2LineAngularDimension, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxDrawObject, MxType, MxDbArea, MxDbLeadTag, MxDbAnyLine, MxDbCloudLine, MxDbLeadComment, MxDbRectBoxLeadComment, MxDbEllipse, MxDbText, MxDbRegularPolygon, MxDbDatabase, MxDbLayerTableRecord };
|
|
41
42
|
declare const _default: {
|
|
42
43
|
MxFun: import("./doc").MxFun;
|
|
43
44
|
Mxassembly: import("./MxModule/Mxassembly/Mxassembly").default;
|
|
@@ -69,6 +70,7 @@ declare const _default: {
|
|
|
69
70
|
MrxDbgUiPrBaseReturn: typeof MrxDbgUiPrBaseReturn;
|
|
70
71
|
McGiWorldDrawType: typeof McGiWorldDrawType;
|
|
71
72
|
MxDbArea: typeof MxDbArea;
|
|
73
|
+
MxDbLeadTag: typeof MxDbLeadTag;
|
|
72
74
|
MxDbAnyLine: typeof MxDbAnyLine;
|
|
73
75
|
MxDbCloudLine: typeof MxDbCloudLine;
|
|
74
76
|
MxDbLeadComment: typeof MxDbLeadComment;
|