mxdraw 0.1.220 → 0.1.222
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/mxdraw.d.ts +25 -11
- package/dist/mxdraw.esm.js +1 -1
- package/dist/mxdraw.umd.js +1 -1
- package/package.json +1 -1
package/dist/mxdraw.d.ts
CHANGED
|
@@ -577,8 +577,13 @@ declare abstract class MxDbEntity extends RenderOrderNode<EntityEvent, MxDbEntit
|
|
|
577
577
|
dDashArray: number;
|
|
578
578
|
dDashRatio: number;
|
|
579
579
|
layer: string;
|
|
580
|
+
protected use_smallcoord_display: boolean;
|
|
580
581
|
abstract getTypeName(): string;
|
|
581
582
|
initGuid(guid: string): void;
|
|
583
|
+
toSmallcoord2(mxobj: MxDrawObject, x: number, y: number, z?: number): THREE.Vector3;
|
|
584
|
+
toSmallcoord(mxobj: MxDrawObject, pt: THREE.Vector3): THREE.Vector3;
|
|
585
|
+
isUseSmallcoordDisplay(): boolean;
|
|
586
|
+
setUseSmallcoordDisplay(use_smallcoord_display: boolean): void;
|
|
582
587
|
/**
|
|
583
588
|
* 自定义对象的绘制函数。在方法中定义如何绘制图形
|
|
584
589
|
* @param pWorldDraw 绘制对象{@link McGiWorldDraw }
|
|
@@ -2313,17 +2318,21 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
|
|
|
2313
2318
|
*/
|
|
2314
2319
|
getAllMxEntity(): Array<MxDbEntity>;
|
|
2315
2320
|
/**
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2321
|
+
* 设置鼠标中键移动视区。
|
|
2322
|
+
* @param iMethod 设置是否可以鼠标中键移动视区,iMethod= true,iMethod=1
|
|
2323
|
+
* iMethod = 0,中键不移动视区,左键移动
|
|
2324
|
+
* iMethod = 1,中键移动视区,左键不移动
|
|
2325
|
+
* iMethod = 2,中键移动视区,左键移动视区
|
|
2326
|
+
* @returns
|
|
2327
|
+
* @example
|
|
2328
|
+
* ```typescript
|
|
2329
|
+
*
|
|
2330
|
+
*
|
|
2331
|
+
* ```
|
|
2332
|
+
*/
|
|
2333
|
+
setViewMovementMethod(iMethod: boolean | number): void;
|
|
2334
|
+
/**
|
|
2335
|
+
* setMouseMiddlePan函数与setViewMovementMethod一样,为了兼容老程序暂没删除,将来会删除
|
|
2327
2336
|
*/
|
|
2328
2337
|
setMouseMiddlePan(iPan: boolean | number): void;
|
|
2329
2338
|
/**
|
|
@@ -2543,6 +2552,8 @@ declare class MxDrawObject extends Node<MxDrawEvents, Node<any, any>> {
|
|
|
2543
2552
|
*/
|
|
2544
2553
|
cadCoord2Doc(x: number, y: number, z: number): THREE.Vector3;
|
|
2545
2554
|
cadCoord2Doc2(pt: THREE.Vector3): THREE.Vector3;
|
|
2555
|
+
toSmallcoord(pt: THREE.Vector3): THREE.Vector3;
|
|
2556
|
+
toSmallcoord2(x: number, y: number, z?: number): THREE.Vector3;
|
|
2546
2557
|
/**
|
|
2547
2558
|
* 文档坐标坐标到CAD.
|
|
2548
2559
|
* 默认情况下,cad等于doc,当前m_isCorrectLargeCoordinates为true时,doc变成了把cad图纸修改到小范围坐标系下的坐标。
|
|
@@ -4377,6 +4388,7 @@ declare class MxDbCloudLine extends MxDbEntity {
|
|
|
4377
4388
|
private points;
|
|
4378
4389
|
private radius;
|
|
4379
4390
|
private cachePoint;
|
|
4391
|
+
constructor();
|
|
4380
4392
|
getTypeName(): string;
|
|
4381
4393
|
create(): MxDbEntity;
|
|
4382
4394
|
/** 设置构成云线的每个圆弧半径长度
|
|
@@ -4455,6 +4467,7 @@ declare class MxDbLeadComment extends MxDbEntity {
|
|
|
4455
4467
|
textWidth: number;
|
|
4456
4468
|
/** 文字大小,取屏幕像素绘图单位。 */
|
|
4457
4469
|
fixedSize: boolean;
|
|
4470
|
+
constructor();
|
|
4458
4471
|
getTypeName(): string;
|
|
4459
4472
|
create(): MxDbEntity;
|
|
4460
4473
|
worldDraw(pWorldDraw: McGiWorldDraw): void;
|
|
@@ -4488,6 +4501,7 @@ declare class MxDbRectBoxLeadComment extends MxDbEntity {
|
|
|
4488
4501
|
textWidth: number;
|
|
4489
4502
|
/** 文字大小,取屏幕像素绘图单位。 */
|
|
4490
4503
|
fixedSize: boolean;
|
|
4504
|
+
constructor();
|
|
4491
4505
|
getTypeName(): string;
|
|
4492
4506
|
create(): MxDbEntity;
|
|
4493
4507
|
getCloudLine(): any;
|