mxdraw 0.1.90 → 0.1.93
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/MrxDbgUtils/MrxDbgUtils.js +1 -0
- package/dist/lib/MxModule/MrxDbgUtils/index.js +1 -0
- package/dist/lib/MxModule/MxDbEntity/MxDbEntity.js +1 -1
- package/dist/lib/MxModule/MxDbLine/MxDbLine.js +1 -1
- package/dist/lib/MxModule/MxFun/MxFun.js +1 -1
- package/dist/lib/MxModule/loadCoreCode/mxfun.es5.js +1 -1
- package/dist/lib/doc.js +1 -1
- package/dist/lib/mxdraw.js +1 -1
- package/dist/mxdraw.es5.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/dist/types/MxModule/MrxDbgUtils/MrxDbgUtils.d.ts +29 -0
- package/dist/types/MxModule/MrxDbgUtils/index.d.ts +4 -0
- package/dist/types/MxModule/MxDbEntity/MxDbEntity.d.ts +37 -16
- package/dist/types/MxModule/MxDbLine/MxDbLine.d.ts +5 -0
- package/dist/types/MxModule/MxFun/MxFun.d.ts +10 -0
- package/dist/types/doc.d.ts +2 -1
- package/dist/types/mxdraw.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @module McGeTool */
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import MxDrawObject from '../MxDrawObject';
|
|
4
|
+
/**
|
|
5
|
+
* MrxDbgUtils
|
|
6
|
+
* 当常用的工具类.
|
|
7
|
+
* @example ```typescript
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export default class MrxDbgUtils {
|
|
11
|
+
private imp;
|
|
12
|
+
private initImp;
|
|
13
|
+
/**
|
|
14
|
+
* 查找某个位置的对象.
|
|
15
|
+
* @param pt 查找位置
|
|
16
|
+
* @return 返回找到的对象id数组.
|
|
17
|
+
* @example
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
findEntAtPoint(pt: THREE.Vector3, filter?: any, mxObj?: MxDrawObject): Promise<number[]>;
|
|
21
|
+
/**
|
|
22
|
+
* 交互选择对象.
|
|
23
|
+
* @param strPrompt 提示字符串
|
|
24
|
+
* @return 返回找到的对象id数组.
|
|
25
|
+
* @example
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
selectEnt(strPrompt?: string, filter?: any): Promise<number[]>;
|
|
29
|
+
}
|
|
@@ -228,43 +228,64 @@ export default abstract class MxDbEntity {
|
|
|
228
228
|
*/
|
|
229
229
|
getRenderOrder(): number;
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
231
|
+
* 设置线宽是否随像素
|
|
232
232
|
* @returns number
|
|
233
233
|
*/
|
|
234
|
-
|
|
234
|
+
setLineWidthByPixels(isPixels: boolean): void;
|
|
235
235
|
/**
|
|
236
|
-
*
|
|
236
|
+
* 线宽是否随像素
|
|
237
237
|
* @returns number
|
|
238
238
|
*/
|
|
239
|
-
|
|
239
|
+
getLineWidthByPixels(): boolean;
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* 设置线宽
|
|
242
242
|
* @returns number
|
|
243
243
|
*/
|
|
244
|
-
|
|
244
|
+
setLineWidth(dLineWidth: number): void;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* 得到线宽
|
|
247
247
|
* @returns number
|
|
248
248
|
*/
|
|
249
|
-
|
|
249
|
+
getLineWidth(): number;
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
251
|
+
* 返回曲线长度
|
|
252
252
|
* @returns number
|
|
253
253
|
*/
|
|
254
|
-
|
|
254
|
+
getGetLength(): number;
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* 设置虚线 +实线的长度.
|
|
257
|
+
* dDashRatio确定虚线,与实线的比率.
|
|
257
258
|
* @returns number
|
|
258
259
|
*/
|
|
259
|
-
|
|
260
|
+
setDashLen(dashLen: number): void;
|
|
260
261
|
/**
|
|
261
|
-
*
|
|
262
|
+
* 设置虚线,与实线的比率
|
|
262
263
|
* @returns number
|
|
263
264
|
*/
|
|
264
|
-
|
|
265
|
+
setDashRatio(dDashRatio: number): void;
|
|
265
266
|
/**
|
|
266
|
-
*
|
|
267
|
+
* 设置实线虚线总段数 = 1 / dashArray
|
|
267
268
|
* @returns number
|
|
268
269
|
*/
|
|
269
|
-
|
|
270
|
+
setDashArray(dDashArray: number): void;
|
|
271
|
+
/**
|
|
272
|
+
* 设置虚线数据
|
|
273
|
+
* @returns number
|
|
274
|
+
*/
|
|
275
|
+
setDash(dDashArray: number, dDashRatio: number): void;
|
|
276
|
+
/**
|
|
277
|
+
* 得到虚线数据
|
|
278
|
+
* @returns number
|
|
279
|
+
*/
|
|
280
|
+
getDash(): any;
|
|
281
|
+
/**
|
|
282
|
+
* 设置虚线显示。并初始化一个默认值。
|
|
283
|
+
* @returns number
|
|
284
|
+
*/
|
|
285
|
+
setDashLineDisplay(isDashLine: boolean): void;
|
|
286
|
+
/**
|
|
287
|
+
* 是否虚线显示
|
|
288
|
+
* @returns number
|
|
289
|
+
*/
|
|
290
|
+
isDashLineDisplay(): boolean;
|
|
270
291
|
}
|
|
@@ -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/dist/types/doc.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import McGiWorldDraw from './MxModule/McGiWorldDraw';
|
|
|
22
22
|
import McGiWorldDrawType from './MxModule/McGiWorldDrawType';
|
|
23
23
|
import MxType from './MxModule/MxType';
|
|
24
24
|
import Mxassembly from './MxModule/Mxassembly';
|
|
25
|
+
import MrxDbgUtils from './MxModule/MrxDbgUtils';
|
|
25
26
|
import MxDbArea from './MxModule/MxDbArea';
|
|
26
27
|
import MxDbAnyLine from './MxModule/MxDbAnyLine';
|
|
27
28
|
import MxDbCloudLine from './MxModule/MxDbCloudLine';
|
|
@@ -38,4 +39,4 @@ import MxDbDatabase from './MxModule/MxDbDatabase';
|
|
|
38
39
|
import MxDbLayerTableRecord from './MxModule/MxDbLayerTableRecord';
|
|
39
40
|
import MxDbGroup from './MxModule/MxDbGroup';
|
|
40
41
|
import MxCADObject from './MxModule/MxCADObject';
|
|
41
|
-
export { MxFun, Mxassembly, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGePoint3d, McGePoint3dArray, McGeTool, MxDbEntity, MxFilters, MxDbImage, MxDbLine, MxDbSVG, MxDbSVGText, MxDbPolyline, Mx3PointArc, MxDbCoord, MxDb2LineAngularDimension, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, MxDrawObject, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxType, MxDbArea, MxDbAnyLine, MxDbCloudLine, MxDbLeadComment, MxDbRectBoxLeadComment, MxDbEllipse, MxDbText, MxDbRegularPolygon, MxDbDatabase, MxCADObject, MxDbLayerTableRecord, MxDbGroup };
|
|
42
|
+
export { MxFun, Mxassembly, MrxDbgUtils, MxThreeJS, McEdGetPointWorldDrawObject, MrxDbgUiPrPoint, McGePoint3d, McGePoint3dArray, McGeTool, MxDbEntity, MxFilters, MxDbImage, MxDbLine, MxDbSVG, MxDbSVGText, MxDbPolyline, Mx3PointArc, MxDbCoord, MxDb2LineAngularDimension, MxDbRect, MxDbAlignedDimension, useCanvasResizeListener, loadCoreCode, store, MxDrawObject, McGiWorldDraw, McGiWorldDrawType, MrxDbgUiPrBaseReturn, MxType, MxDbArea, MxDbAnyLine, MxDbCloudLine, MxDbLeadComment, MxDbRectBoxLeadComment, MxDbEllipse, MxDbText, MxDbRegularPolygon, MxDbDatabase, MxCADObject, MxDbLayerTableRecord, MxDbGroup };
|
package/dist/types/mxdraw.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import McGiWorldDraw from './MxModule/McGiWorldDraw';
|
|
|
22
22
|
import McGiWorldDrawType from './MxModule/McGiWorldDrawType';
|
|
23
23
|
import MxType from './MxModule/MxType';
|
|
24
24
|
import Mxassembly from './MxModule/Mxassembly';
|
|
25
|
+
import MrxDbgUtils from './MxModule/MrxDbgUtils';
|
|
25
26
|
import MxDbArea from './MxModule/MxDbArea';
|
|
26
27
|
import MxDbLeadTag from './MxModule/MxDbLeadTag';
|
|
27
28
|
import MxDbAnyLine from './MxModule/MxDbAnyLine';
|
|
@@ -40,10 +41,11 @@ import MxDbLayerTableRecord from './MxModule/MxDbLayerTableRecord';
|
|
|
40
41
|
import MxDbDatabase from './MxModule/MxDbDatabase';
|
|
41
42
|
import MxCADObject from './MxModule/MxCADObject';
|
|
42
43
|
import MxDbGroup from './MxModule/MxDbGroup';
|
|
43
|
-
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, MxCADObject, MxDbLayerTableRecord, MxDbGroup };
|
|
44
|
+
export { MxFun, Mxassembly, MrxDbgUtils, 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, MxCADObject, MxDbLayerTableRecord, MxDbGroup };
|
|
44
45
|
declare const _default: {
|
|
45
46
|
MxFun: import("./doc").MxFun;
|
|
46
47
|
Mxassembly: import("./MxModule/Mxassembly/Mxassembly").default;
|
|
48
|
+
MrxDbgUtils: import("./MxModule/MrxDbgUtils/MrxDbgUtils").default;
|
|
47
49
|
McGeTool: import("./MxModule/McGeTool/McGeTool").default;
|
|
48
50
|
MxThreeJS: import("./MxModule/MxThreeJS/MxThreeJS").default;
|
|
49
51
|
McEdGetPointWorldDrawObject: typeof McEdGetPointWorldDrawObject;
|