mxcad 1.0.231 → 1.0.233
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/mxcad.d.ts +137 -38
- package/dist/mxcad.es.js +48 -39
- package/dist/mxcad.umd.js +3 -3
- package/dist/wasm/2d/mxdrawassembly_min.js +1322 -1320
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +1328 -1326
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/dist/wasm/3d/mxdraw3d_min.js +222 -2
- package/dist/wasm/3d/mxdraw3d_min.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -11471,6 +11471,10 @@ export declare class McObject {
|
|
|
11471
11471
|
* ```
|
|
11472
11472
|
*/
|
|
11473
11473
|
addImageDefine(imageUrl: string, sName?: string, isConvertBase64?: boolean): McObjectId;
|
|
11474
|
+
/**
|
|
11475
|
+
* 显示线重
|
|
11476
|
+
*/
|
|
11477
|
+
showLineWeight(isShow: boolean): boolean;
|
|
11474
11478
|
/**
|
|
11475
11479
|
* 加载另一个dwg文件当前背景对象绘制.
|
|
11476
11480
|
*/
|
|
@@ -12385,6 +12389,10 @@ export interface MxCADUI {
|
|
|
12385
12389
|
saveUrl: string;
|
|
12386
12390
|
printPdfUrl: string;
|
|
12387
12391
|
};
|
|
12392
|
+
/**
|
|
12393
|
+
* 获取mxServerConfig.json文件配置
|
|
12394
|
+
*/
|
|
12395
|
+
getServerConfig: () => any;
|
|
12388
12396
|
/**
|
|
12389
12397
|
* 初始化
|
|
12390
12398
|
* @param plugin 基础配置
|
|
@@ -14094,6 +14102,12 @@ export declare namespace MdGe {
|
|
|
14094
14102
|
Quant_Area = 1,
|
|
14095
14103
|
Quant_Volume = 2
|
|
14096
14104
|
}
|
|
14105
|
+
enum MxOrientation {
|
|
14106
|
+
Orientation_FORWARD = 0,
|
|
14107
|
+
Orientation_REVERSED = 1,
|
|
14108
|
+
Orientation_INTERNAL = 2,
|
|
14109
|
+
Orientation_EXTERNAL = 3
|
|
14110
|
+
}
|
|
14097
14111
|
}
|
|
14098
14112
|
/** wasm importObject 的可配置选项 */
|
|
14099
14113
|
export interface WasmConfig {
|
|
@@ -17047,11 +17061,7 @@ export declare class MxOldMx3dGePoint extends MxOldMx3dGeObject {
|
|
|
17047
17061
|
setY(theY: number): void;
|
|
17048
17062
|
setZ(theZ: number): void;
|
|
17049
17063
|
}
|
|
17050
|
-
|
|
17051
|
-
/**
|
|
17052
|
-
* MxCppType 类
|
|
17053
|
-
*/
|
|
17054
|
-
export declare class MxApp3DType extends PubSub<{
|
|
17064
|
+
declare class MxApp3DType extends PubSub<{
|
|
17055
17065
|
eventModesSelected: (ids: number[]) => void;
|
|
17056
17066
|
eventAddToTree: (node: string) => void;
|
|
17057
17067
|
eventRemoveFromTree: (ids: number[]) => void;
|
|
@@ -17061,10 +17071,25 @@ export declare class MxApp3DType extends PubSub<{
|
|
|
17061
17071
|
eventUpdateViewSize: (pointer: number[]) => void;
|
|
17062
17072
|
eventUpdateAttribute: (attrStr: string) => void;
|
|
17063
17073
|
}> {
|
|
17074
|
+
/**
|
|
17075
|
+
* @internal
|
|
17076
|
+
*/
|
|
17064
17077
|
init(imp: any): void;
|
|
17078
|
+
/**
|
|
17079
|
+
* @internal
|
|
17080
|
+
*/
|
|
17065
17081
|
imp?: any;
|
|
17082
|
+
/**
|
|
17083
|
+
* @internal
|
|
17084
|
+
*/
|
|
17066
17085
|
cpp_app: any;
|
|
17086
|
+
/**
|
|
17087
|
+
* @internal
|
|
17088
|
+
*/
|
|
17067
17089
|
tool: any;
|
|
17090
|
+
/**
|
|
17091
|
+
* @internal
|
|
17092
|
+
*/
|
|
17068
17093
|
globalMethods: any;
|
|
17069
17094
|
/**
|
|
17070
17095
|
* 为当前应用程序创建一个视图
|
|
@@ -17078,7 +17103,10 @@ export declare class MxApp3DType extends PubSub<{
|
|
|
17078
17103
|
*/
|
|
17079
17104
|
getCurrentActiveView(): Mx3dView;
|
|
17080
17105
|
}
|
|
17081
|
-
|
|
17106
|
+
/**
|
|
17107
|
+
* 全局应用程序单实例
|
|
17108
|
+
*/
|
|
17109
|
+
export declare const MxApp3D: MxApp3DType;
|
|
17082
17110
|
export interface MxCAD3DConfig {
|
|
17083
17111
|
[x: string]: any;
|
|
17084
17112
|
canvas: string | HTMLCanvasElement;
|
|
@@ -17095,10 +17123,25 @@ export interface MxCAD3DConfig {
|
|
|
17095
17123
|
* 一个文档视图对象对应一个Canvas视图和一个文档
|
|
17096
17124
|
*/
|
|
17097
17125
|
export declare class MxCAD3DObject {
|
|
17126
|
+
/**
|
|
17127
|
+
* @internal
|
|
17128
|
+
*/
|
|
17098
17129
|
private event;
|
|
17130
|
+
/**
|
|
17131
|
+
* @internal
|
|
17132
|
+
*/
|
|
17099
17133
|
private imp;
|
|
17134
|
+
/**
|
|
17135
|
+
* @internal
|
|
17136
|
+
*/
|
|
17100
17137
|
private canvas;
|
|
17138
|
+
/**
|
|
17139
|
+
* @internal
|
|
17140
|
+
*/
|
|
17101
17141
|
private ctx;
|
|
17142
|
+
/**
|
|
17143
|
+
* @internal
|
|
17144
|
+
*/
|
|
17102
17145
|
private updateCanvasSizeFun;
|
|
17103
17146
|
constructor();
|
|
17104
17147
|
/**
|
|
@@ -17259,35 +17302,34 @@ export declare class MxCAD3DObject {
|
|
|
17259
17302
|
*/
|
|
17260
17303
|
create(config: MxCAD3DConfig): void;
|
|
17261
17304
|
}
|
|
17262
|
-
|
|
17263
|
-
* 点和数组的联合类型
|
|
17264
|
-
*/
|
|
17265
|
-
export type UniPoint = Mx3dGePoint | [
|
|
17305
|
+
export type Vector = [
|
|
17266
17306
|
theX: number,
|
|
17267
17307
|
theY: number,
|
|
17268
17308
|
theZ: number
|
|
17269
17309
|
];
|
|
17310
|
+
/**
|
|
17311
|
+
* 点和数组的联合类型
|
|
17312
|
+
*/
|
|
17313
|
+
export type UniPoint = Mx3dGePoint | Vector;
|
|
17270
17314
|
/**
|
|
17271
17315
|
* 方向向量和数组的联合类型
|
|
17272
17316
|
*/
|
|
17273
|
-
export type UniDir = Mx3dGeDir |
|
|
17274
|
-
theX: number,
|
|
17275
|
-
theY: number,
|
|
17276
|
-
theZ: number
|
|
17277
|
-
];
|
|
17317
|
+
export type UniDir = Mx3dGeDir | Vector;
|
|
17278
17318
|
/**
|
|
17279
17319
|
* 向量和数组的联合类型
|
|
17280
17320
|
*/
|
|
17281
|
-
export type UniVec = Mx3dGeVec |
|
|
17282
|
-
theX: number,
|
|
17283
|
-
theY: number,
|
|
17284
|
-
theZ: number
|
|
17285
|
-
];
|
|
17321
|
+
export type UniVec = Mx3dGeVec | Vector;
|
|
17286
17322
|
/**
|
|
17287
17323
|
* 应用程序类,全局单实例
|
|
17288
17324
|
*/
|
|
17289
17325
|
export declare class Mx3dApplication {
|
|
17326
|
+
/**
|
|
17327
|
+
* @internal
|
|
17328
|
+
*/
|
|
17290
17329
|
protected imp: any;
|
|
17330
|
+
/**
|
|
17331
|
+
* @internal
|
|
17332
|
+
*/
|
|
17291
17333
|
constructor();
|
|
17292
17334
|
/**
|
|
17293
17335
|
* 为当前应用程序创建一个视图
|
|
@@ -17305,51 +17347,84 @@ export declare class Mx3dApplication {
|
|
|
17305
17347
|
* 管理对象生命周期的基类
|
|
17306
17348
|
*/
|
|
17307
17349
|
export declare class Mx3dBaseObject {
|
|
17350
|
+
/**
|
|
17351
|
+
* @internal
|
|
17352
|
+
*/
|
|
17308
17353
|
protected imp: any;
|
|
17354
|
+
/**
|
|
17355
|
+
* @internal
|
|
17356
|
+
*/
|
|
17309
17357
|
constructor(imp?: any);
|
|
17358
|
+
/**
|
|
17359
|
+
* @internal
|
|
17360
|
+
*/
|
|
17310
17361
|
getImp(): any;
|
|
17362
|
+
/**
|
|
17363
|
+
* @internal
|
|
17364
|
+
*/
|
|
17311
17365
|
protected initTempObject(imp: any): void;
|
|
17312
17366
|
}
|
|
17313
17367
|
/**
|
|
17314
17368
|
* 尺寸标注的基类
|
|
17315
17369
|
*/
|
|
17316
17370
|
export declare class Mx3dDimObject extends Mx3dBaseObject {
|
|
17371
|
+
/**
|
|
17372
|
+
* @internal
|
|
17373
|
+
*/
|
|
17317
17374
|
constructor(p?: object);
|
|
17318
17375
|
}
|
|
17319
17376
|
/**
|
|
17320
17377
|
* 符号的基类
|
|
17321
17378
|
*/
|
|
17322
17379
|
export declare class Mx3dSymbolObject extends Mx3dBaseObject {
|
|
17380
|
+
/**
|
|
17381
|
+
* @internal
|
|
17382
|
+
*/
|
|
17323
17383
|
constructor(p?: object);
|
|
17324
17384
|
}
|
|
17325
17385
|
/**
|
|
17326
17386
|
* 模型算法的基类
|
|
17327
17387
|
*/
|
|
17328
17388
|
export declare class Mx3dAlgoObject extends Mx3dBaseObject {
|
|
17389
|
+
/**
|
|
17390
|
+
* @internal
|
|
17391
|
+
*/
|
|
17329
17392
|
constructor(p?: object);
|
|
17330
17393
|
}
|
|
17331
17394
|
/**
|
|
17332
17395
|
* 样式基类
|
|
17333
17396
|
*/
|
|
17334
17397
|
export declare class Mx3dAspectObject extends Mx3dBaseObject {
|
|
17398
|
+
/**
|
|
17399
|
+
* @internal
|
|
17400
|
+
*/
|
|
17335
17401
|
constructor(p?: object);
|
|
17336
17402
|
}
|
|
17337
17403
|
/**
|
|
17338
17404
|
* 数学几何基类
|
|
17339
17405
|
*/
|
|
17340
17406
|
export declare class Mx3dGeObject extends Mx3dBaseObject {
|
|
17407
|
+
/**
|
|
17408
|
+
* @internal
|
|
17409
|
+
*/
|
|
17341
17410
|
constructor(p?: object);
|
|
17342
17411
|
}
|
|
17343
17412
|
/**
|
|
17344
17413
|
* 曲线基类
|
|
17345
17414
|
*/
|
|
17346
17415
|
export declare class Mx3dGeCurve extends Mx3dGeObject {
|
|
17416
|
+
/**
|
|
17417
|
+
* @internal
|
|
17418
|
+
*/
|
|
17347
17419
|
constructor(p?: object);
|
|
17348
17420
|
}
|
|
17349
17421
|
/**
|
|
17350
17422
|
* 圆锥曲线基类
|
|
17351
17423
|
*/
|
|
17352
17424
|
export declare class Mx3dGeConic extends Mx3dGeCurve {
|
|
17425
|
+
/**
|
|
17426
|
+
* @internal
|
|
17427
|
+
*/
|
|
17353
17428
|
constructor(p?: object);
|
|
17354
17429
|
}
|
|
17355
17430
|
/**
|
|
@@ -17367,11 +17442,7 @@ export declare class Mx3dGePoint extends Mx3dGeObject {
|
|
|
17367
17442
|
*
|
|
17368
17443
|
* @param theXYZ - 包含X, Y, Z坐标值的数组。
|
|
17369
17444
|
*/
|
|
17370
|
-
constructor(theXYZ:
|
|
17371
|
-
theX: number,
|
|
17372
|
-
theY: number,
|
|
17373
|
-
theZ: number
|
|
17374
|
-
]);
|
|
17445
|
+
constructor(theXYZ: Vector);
|
|
17375
17446
|
/**
|
|
17376
17447
|
* 使用给定的X, Y, Z坐标值构造一个点。
|
|
17377
17448
|
*
|
|
@@ -17519,28 +17590,28 @@ export declare class Mx3dGeTrsf extends Mx3dGeObject {
|
|
|
17519
17590
|
*/
|
|
17520
17591
|
Inverted(): Mx3dGeTrsf;
|
|
17521
17592
|
/**
|
|
17522
|
-
*
|
|
17593
|
+
* 获取矩阵相乘之后的结果,[res] = [me] * t,[res]代表结果,[me]代表自身,t是另外的变换矩阵
|
|
17523
17594
|
* @param t 另一个变换矩阵
|
|
17524
17595
|
* @returns 矩阵相乘后的结果
|
|
17525
17596
|
*/
|
|
17526
17597
|
Multiplied(t: Mx3dGeTrsf): Mx3dGeTrsf;
|
|
17527
17598
|
/**
|
|
17528
|
-
*
|
|
17599
|
+
* 自身乘以另外一个变换矩阵,[me] = [me] * t,[me]代表自身,t是另外的变换矩阵
|
|
17529
17600
|
* @param t 另一个变换矩阵
|
|
17530
17601
|
*/
|
|
17531
17602
|
Multiply(t: Mx3dGeTrsf): void;
|
|
17532
17603
|
/**
|
|
17533
|
-
*
|
|
17604
|
+
* 另外一个变换矩阵乘以自身,[me] = t * [me],[me]代表自身,t是另外的变换矩阵
|
|
17534
17605
|
* @param t 另一个变换矩阵
|
|
17535
17606
|
*/
|
|
17536
17607
|
PreMultiply(t: Mx3dGeTrsf): void;
|
|
17537
17608
|
/**
|
|
17538
|
-
* 自身n
|
|
17609
|
+
* 自身n幂次方运算,[me] * [me] * .......* [me],[me]代表自身,乘以n次
|
|
17539
17610
|
* @param n 次数
|
|
17540
17611
|
*/
|
|
17541
17612
|
Power(n: number): void;
|
|
17542
17613
|
/**
|
|
17543
|
-
* 获取当前变换矩阵n
|
|
17614
|
+
* 获取当前变换矩阵n次幂方运算后的结果,[res] = [me] * [me] * .......* [me],[res]代表结果,[me]代表自身,n个[me]相乘
|
|
17544
17615
|
* @param n 次数
|
|
17545
17616
|
* @returns n幂次方的结果
|
|
17546
17617
|
*/
|
|
@@ -17682,37 +17753,37 @@ export declare class Mx3dGeDir extends Mx3dGeObject {
|
|
|
17682
17753
|
*/
|
|
17683
17754
|
AngleWithRef(theOther: Mx3dGeDir, theVRef: Mx3dGeDir): number;
|
|
17684
17755
|
/**
|
|
17685
|
-
*
|
|
17756
|
+
* [me] = [me] ^ theRight,[me]代表自身,^代表叉乘
|
|
17686
17757
|
* @param theRight 另一个方向向量
|
|
17687
17758
|
*/
|
|
17688
17759
|
Cross(theRight: Mx3dGeDir): void;
|
|
17689
17760
|
/**
|
|
17690
|
-
*
|
|
17761
|
+
* [res] = [me] ^ theRight,[me]代表自身,[res]代表结果,^代表叉乘
|
|
17691
17762
|
* @param theRight 另一个方向向量
|
|
17692
17763
|
* @returns 叉乘结果
|
|
17693
17764
|
*/
|
|
17694
17765
|
Crossed(theRight: Mx3dGeDir): Mx3dGeDir;
|
|
17695
17766
|
/**
|
|
17696
|
-
*
|
|
17767
|
+
* [me] ^ (theV1 ^ theV2),[me]代表自身,^代表叉乘
|
|
17697
17768
|
* @param theV1 另一个方向向量
|
|
17698
17769
|
* @param theV2 另一个方向向量
|
|
17699
17770
|
*/
|
|
17700
17771
|
CrossCross(theV1: Mx3dGeDir, theV2: Mx3dGeDir): void;
|
|
17701
17772
|
/**
|
|
17702
|
-
*
|
|
17773
|
+
* [res] ^ (theV1 ^ theV2),[me]代表自身,[res]代表结果,^代表叉乘
|
|
17703
17774
|
* @param theV1 另一个方向向量
|
|
17704
17775
|
* @param theV2 另一个方向向量
|
|
17705
17776
|
* @returns 叉乘结果
|
|
17706
17777
|
*/
|
|
17707
17778
|
CrossCrossed(theV1: Mx3dGeDir, theV2: Mx3dGeDir): Mx3dGeDir;
|
|
17708
17779
|
/**
|
|
17709
|
-
*
|
|
17780
|
+
* [res] = [me] * theOther,[me]代表自身,[res]代表结果,*代表点乘
|
|
17710
17781
|
* @param theOther 另一个方向向量
|
|
17711
17782
|
* @returns 点乘结果
|
|
17712
17783
|
*/
|
|
17713
17784
|
Dot(theOther: Mx3dGeDir): number;
|
|
17714
17785
|
/**
|
|
17715
|
-
*
|
|
17786
|
+
* [res] = [me] * (theV1 ^ theV2),[me]代表自身,[res]代表结果,^代表叉乘,*代表点乘
|
|
17716
17787
|
* @param theV1 另一个方向向量
|
|
17717
17788
|
* @param theV2 另一个方向向量
|
|
17718
17789
|
* @returns 最后点乘结果
|
|
@@ -18759,6 +18830,20 @@ export declare class Mx3dShapeObject extends Mx3dBaseObject {
|
|
|
18759
18830
|
* @returns 边界框对象。
|
|
18760
18831
|
*/
|
|
18761
18832
|
getBndBox(): Mx3dGeBndBox;
|
|
18833
|
+
/**
|
|
18834
|
+
* 形状反向
|
|
18835
|
+
*/
|
|
18836
|
+
reverse(): void;
|
|
18837
|
+
/**
|
|
18838
|
+
* 获取反向后的新形状
|
|
18839
|
+
* @returns 反向后的新形状
|
|
18840
|
+
*/
|
|
18841
|
+
reversed(): Mx3dShapeObject;
|
|
18842
|
+
/**
|
|
18843
|
+
* 获取形状的朝向
|
|
18844
|
+
* @returns 朝向
|
|
18845
|
+
*/
|
|
18846
|
+
Orientation(): MdGe.MxOrientation;
|
|
18762
18847
|
/**
|
|
18763
18848
|
* 移动形状对象到指定位置。
|
|
18764
18849
|
* @param theLocation 移动的位置。
|
|
@@ -19004,8 +19089,21 @@ export declare class Mx3dAlgoFillet extends Mx3dAlgoObject {
|
|
|
19004
19089
|
* 倒斜角算法
|
|
19005
19090
|
*/
|
|
19006
19091
|
export declare class Mx3dAlgoChamfer extends Mx3dAlgoObject {
|
|
19092
|
+
/**
|
|
19093
|
+
* 构造函数,输入需要倒斜角的对象
|
|
19094
|
+
* @param S 进行倒斜角算法的对象
|
|
19095
|
+
*/
|
|
19007
19096
|
constructor(S: Mx3dShapeObject);
|
|
19097
|
+
/**
|
|
19098
|
+
* 添加对象上需要倒斜角的边
|
|
19099
|
+
* @param Dis 倒斜角距离
|
|
19100
|
+
* @param E 对象上的边
|
|
19101
|
+
*/
|
|
19008
19102
|
Add(Dis: number, E: Mx3dShapeEdge): void;
|
|
19103
|
+
/**
|
|
19104
|
+
* 获取倒斜角后的形状对象
|
|
19105
|
+
* @returns 倒斜角后的形状对象
|
|
19106
|
+
*/
|
|
19009
19107
|
Shape(): Mx3dShapeObject;
|
|
19010
19108
|
}
|
|
19011
19109
|
/**
|
|
@@ -22422,10 +22520,10 @@ export declare class Mx3dMkPolygon extends Mx3dMkObject {
|
|
|
22422
22520
|
export declare class Mx3dMkFace extends Mx3dMkObject {
|
|
22423
22521
|
/**
|
|
22424
22522
|
* 构造函数,接受一个Wire对象和一个布尔值来初始化面对象。
|
|
22425
|
-
* @param theWire
|
|
22523
|
+
* @param theWire 要使用的线条对象 或 面形状对象(可添加Wire,形成Hole)。
|
|
22426
22524
|
* @param OnlyPlane 是否仅限于平面构建,默认为 false。
|
|
22427
22525
|
*/
|
|
22428
|
-
constructor(theWire: Mx3dShapeWire, OnlyPlane?: boolean);
|
|
22526
|
+
constructor(theWire: Mx3dShapeWire | Mx3dShapeFace, OnlyPlane?: boolean);
|
|
22429
22527
|
/**
|
|
22430
22528
|
* 执行面的建模算法。
|
|
22431
22529
|
*/
|
|
@@ -22445,6 +22543,7 @@ export declare class Mx3dMkFace extends Mx3dMkObject {
|
|
|
22445
22543
|
* @returns 建模算法执行是否完成的标志,true 完成,false 失败。
|
|
22446
22544
|
*/
|
|
22447
22545
|
IsDone(): boolean;
|
|
22546
|
+
Add(W: Mx3dShapeWire): void;
|
|
22448
22547
|
}
|
|
22449
22548
|
/**
|
|
22450
22549
|
* 表示建模厚壁固体的类,继承自 Mx3dMkObject。
|
package/dist/mxcad.es.js
CHANGED
|
@@ -14145,7 +14145,7 @@ win.McDrawObjectEvent_asciiToUTF8 = function (hexstr) {
|
|
|
14145
14145
|
return MxG2312Obj.decodeFromGb2312(hexstr);
|
|
14146
14146
|
};
|
|
14147
14147
|
|
|
14148
|
-
const version$1 = "1.0.
|
|
14148
|
+
const version$1 = "1.0.233";
|
|
14149
14149
|
|
|
14150
14150
|
var isSharedArrayBuffer = ("SharedArrayBuffer" in window);
|
|
14151
14151
|
var isCdn = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src);
|
|
@@ -20544,6 +20544,13 @@ var McObject = /*#__PURE__*/function () {
|
|
|
20544
20544
|
var isConvertBase64 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
20545
20545
|
return new McObjectId(this.imp.addImageDefine(MxG2312Obj.encodeToGb2312(imageUrl), MxG2312Obj.encodeToGb2312(sName), isConvertBase64));
|
|
20546
20546
|
}
|
|
20547
|
+
}, {
|
|
20548
|
+
key: "showLineWeight",
|
|
20549
|
+
value: function showLineWeight(isShow) {
|
|
20550
|
+
var ret = this.imp.showLineWeight(isShow);
|
|
20551
|
+
this.updateDisplay(false);
|
|
20552
|
+
return ret;
|
|
20553
|
+
}
|
|
20547
20554
|
}, {
|
|
20548
20555
|
key: "loadDwgBackground",
|
|
20549
20556
|
value: function loadDwgBackground(sFileUrl, call) {
|
|
@@ -20572,7 +20579,7 @@ var McObject = /*#__PURE__*/function () {
|
|
|
20572
20579
|
}, {
|
|
20573
20580
|
key: "clearDwgBackground",
|
|
20574
20581
|
value: function clearDwgBackground() {
|
|
20575
|
-
this.
|
|
20582
|
+
this.getBackgroundEntity().clearAll();
|
|
20576
20583
|
}
|
|
20577
20584
|
}, {
|
|
20578
20585
|
key: "addSystemVarNameForEvent",
|
|
@@ -29465,7 +29472,7 @@ function _Mx_WindowZoom() {
|
|
|
29465
29472
|
case 0:
|
|
29466
29473
|
getPoint = new MxCADUiPrPoint();
|
|
29467
29474
|
getPoint.disableAllTrace();
|
|
29468
|
-
getPoint.setMessage("\u70B9\u53D6\u7F29\u653E\u533A\u57DF");
|
|
29475
|
+
getPoint.setMessage("\n\u70B9\u53D6\u7F29\u653E\u533A\u57DF");
|
|
29469
29476
|
getPoint.setDynamicInputType(DynamicInputType.kDynTip);
|
|
29470
29477
|
_context8.next = 6;
|
|
29471
29478
|
return getPoint.go();
|
|
@@ -34984,6 +34991,12 @@ var MdGe;
|
|
|
34984
34991
|
MxQuantAspect2[MxQuantAspect2["Quant_Area"] = 1] = "Quant_Area";
|
|
34985
34992
|
MxQuantAspect2[MxQuantAspect2["Quant_Volume"] = 2] = "Quant_Volume";
|
|
34986
34993
|
})(MdGe2.MxQuantAspect || (MdGe2.MxQuantAspect = {}));
|
|
34994
|
+
(function (MxOrientation2) {
|
|
34995
|
+
MxOrientation2[MxOrientation2["Orientation_FORWARD"] = 0] = "Orientation_FORWARD";
|
|
34996
|
+
MxOrientation2[MxOrientation2["Orientation_REVERSED"] = 1] = "Orientation_REVERSED";
|
|
34997
|
+
MxOrientation2[MxOrientation2["Orientation_INTERNAL"] = 2] = "Orientation_INTERNAL";
|
|
34998
|
+
MxOrientation2[MxOrientation2["Orientation_EXTERNAL"] = 3] = "Orientation_EXTERNAL";
|
|
34999
|
+
})(MdGe2.MxOrientation || (MdGe2.MxOrientation = {}));
|
|
34987
35000
|
})(MdGe || (MdGe = {}));
|
|
34988
35001
|
|
|
34989
35002
|
var _excluded = ["canvas", "minWidth", "minHeight", "updateCanvasSize"];
|
|
@@ -46760,35 +46773,6 @@ var _mxFinalizationRegistry$1 = new FinalizationRegistry(function (key) {
|
|
|
46760
46773
|
});
|
|
46761
46774
|
var _mxFinalizationRegistry_token$1 = {};
|
|
46762
46775
|
|
|
46763
|
-
function loadMxCADassembly3d(config, call) {
|
|
46764
|
-
return new Promise( /*#__PURE__*/function () {
|
|
46765
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(res, rej) {
|
|
46766
|
-
var mxDraw3d;
|
|
46767
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
46768
|
-
while (1) switch (_context.prev = _context.next) {
|
|
46769
|
-
case 0:
|
|
46770
|
-
try {
|
|
46771
|
-
if (!config.locateFile) config.locateFile = get3DFileURL;
|
|
46772
|
-
mxDraw3d = new MxDraw3d(config);
|
|
46773
|
-
MxDraw3d.onloadWasmMxDraw3dModel = function () {
|
|
46774
|
-
res(mxDraw3d);
|
|
46775
|
-
call && call(mxDraw3d);
|
|
46776
|
-
};
|
|
46777
|
-
} catch (e) {
|
|
46778
|
-
rej(e);
|
|
46779
|
-
}
|
|
46780
|
-
case 1:
|
|
46781
|
-
case "end":
|
|
46782
|
-
return _context.stop();
|
|
46783
|
-
}
|
|
46784
|
-
}, _callee);
|
|
46785
|
-
}));
|
|
46786
|
-
return function (_x, _x2) {
|
|
46787
|
-
return _ref.apply(this, arguments);
|
|
46788
|
-
};
|
|
46789
|
-
}());
|
|
46790
|
-
}
|
|
46791
|
-
|
|
46792
46776
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
46793
46777
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46794
46778
|
var MxApp3DType = /*#__PURE__*/function (_PubSub) {
|
|
@@ -47091,7 +47075,7 @@ var MxCAD3DObject = /*#__PURE__*/function () {
|
|
|
47091
47075
|
_config$minWidth = config.minWidth,
|
|
47092
47076
|
minWidth = _config$minWidth === void 0 ? 300 : _config$minWidth,
|
|
47093
47077
|
_config$minHeight = config.minHeight,
|
|
47094
|
-
minHeight = _config$minHeight === void 0 ? 300
|
|
47078
|
+
minHeight = _config$minHeight === void 0 ? 300 : _config$minHeight,
|
|
47095
47079
|
_config$updateCanvasS = config.updateCanvasSize,
|
|
47096
47080
|
updateCanvasSize = _config$updateCanvasS === void 0 ? _updateCanvasSize : _config$updateCanvasS;
|
|
47097
47081
|
var isInit = false;
|
|
@@ -48858,6 +48842,21 @@ var Mx3dShapeObject = /*#__PURE__*/function (_Mx3dBaseObject6) {
|
|
|
48858
48842
|
value: function getBndBox() {
|
|
48859
48843
|
return new Mx3dGeBndBox(this.imp.getBndBox());
|
|
48860
48844
|
}
|
|
48845
|
+
}, {
|
|
48846
|
+
key: "reverse",
|
|
48847
|
+
value: function reverse() {
|
|
48848
|
+
this.imp.reverse();
|
|
48849
|
+
}
|
|
48850
|
+
}, {
|
|
48851
|
+
key: "reversed",
|
|
48852
|
+
value: function reversed() {
|
|
48853
|
+
return new Mx3dShapeObject(this.imp.reversed());
|
|
48854
|
+
}
|
|
48855
|
+
}, {
|
|
48856
|
+
key: "Orientation",
|
|
48857
|
+
value: function Orientation() {
|
|
48858
|
+
return this.imp.Orientation();
|
|
48859
|
+
}
|
|
48861
48860
|
}, {
|
|
48862
48861
|
key: "move",
|
|
48863
48862
|
value: function move(theLocation) {
|
|
@@ -49192,6 +49191,8 @@ var Mx3dAlgoChamfer = /*#__PURE__*/function (_Mx3dAlgoObject2) {
|
|
|
49192
49191
|
if (S instanceof Mx3dShapeObject) {
|
|
49193
49192
|
_this22 = _super28.call(this);
|
|
49194
49193
|
_this22.initTempObject(new MxApp3D.imp.Mx3dAlgoChamfer(S.getImp()));
|
|
49194
|
+
} else if (S instanceof Object) {
|
|
49195
|
+
_this22 = _super28.call(this, S);
|
|
49195
49196
|
}
|
|
49196
49197
|
return _possibleConstructorReturn$1(_this22);
|
|
49197
49198
|
}
|
|
@@ -52702,9 +52703,14 @@ var Mx3dMkFace = /*#__PURE__*/function (_Mx3dMkObject12) {
|
|
|
52702
52703
|
var _this54;
|
|
52703
52704
|
var OnlyPlane = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
52704
52705
|
_classCallCheck$1(this, Mx3dMkFace);
|
|
52705
|
-
|
|
52706
|
-
|
|
52707
|
-
|
|
52706
|
+
if (theWire instanceof Mx3dShapeWire) {
|
|
52707
|
+
_this54 = _super64.call(this);
|
|
52708
|
+
_this54.initTempObject(new MxApp3D.imp.Mx3dMkFace(theWire.getImp(), OnlyPlane));
|
|
52709
|
+
} else {
|
|
52710
|
+
_this54 = _super64.call(this);
|
|
52711
|
+
_this54.initTempObject(new MxApp3D.imp.Mx3dMkFace(theWire.getImp()));
|
|
52712
|
+
}
|
|
52713
|
+
return _possibleConstructorReturn$1(_this54);
|
|
52708
52714
|
}
|
|
52709
52715
|
_createClass$1(Mx3dMkFace, [{
|
|
52710
52716
|
key: "Build",
|
|
@@ -52726,6 +52732,11 @@ var Mx3dMkFace = /*#__PURE__*/function (_Mx3dMkObject12) {
|
|
|
52726
52732
|
value: function IsDone() {
|
|
52727
52733
|
return this.imp.IsDone();
|
|
52728
52734
|
}
|
|
52735
|
+
}, {
|
|
52736
|
+
key: "Add",
|
|
52737
|
+
value: function Add(W) {
|
|
52738
|
+
this.imp.Add(W.getImp());
|
|
52739
|
+
}
|
|
52729
52740
|
}]);
|
|
52730
52741
|
return Mx3dMkFace;
|
|
52731
52742
|
}(Mx3dMkObject);
|
|
@@ -59833,8 +59844,6 @@ const mxcad = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
59833
59844
|
MxOldMx3dGeLocation,
|
|
59834
59845
|
MxOldMx3dGePoint,
|
|
59835
59846
|
get MdGe () { return MdGe; },
|
|
59836
|
-
loadMxCADassembly3d,
|
|
59837
|
-
MxApp3DType,
|
|
59838
59847
|
MxApp3D,
|
|
59839
59848
|
MxCAD3DObject,
|
|
59840
59849
|
Mx3dApplication,
|
|
@@ -59934,4 +59943,4 @@ const mxcad = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
59934
59943
|
mx_gcj02_To_gps84
|
|
59935
59944
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
59936
59945
|
|
|
59937
|
-
export { ColorIndexType, ColorMethod, DxfCode, FetchAttributes, IMcDbDwgFiler, IsZero, McAppType, McCmColor, McDb, McDb2LineAngularDimension, McDbAlignedDimension, McDbArc, McDbAttribute, McDbAttributeDefinition, McDbBackgroundEntity, McDbBlockReference, McDbBlockTable, McDbBlockTableRecord, McDbCircle, McDbCurve, McDbCustomEntity, McDbDatabase, McDbDictionary, McDbDimension, McDbEllipse, McDbEntity, McDbGroup, McDbHatch, McDbLayerTable, McDbLayerTableRecord, McDbLine, McDbLinetypeTable, McDbLinetypeTableRecord, McDbMText, McDbObject, McDbObjectArray, McDbPoint, McDbPolyline, McDbProxyEntity, McDbRasterImage, McDbRasterImageDef, McDbRotatedDimension, McDbText, McDbTextStyleTable, McDbTextStyleTableRecord, McDbXrecord, McGeBound, McGeDoubleArray, McGeLongArray, McGeMatrix3d, McGePoint3d, McGePoint3dArray, McGeStringArray, McGeVector3d, McObject, McObjectId, McObjectIdType, McRxObject, MdGe, MdGeAisContext, MdGeAisObject, MdGeAisShape, MdGeAisTexturedShape, MdGeAngleDim, MdGeApplication, MdGeArray1OfInteger, MdGeArray1OfPnt, MdGeArray1OfReal, MdGeArray2OfPnt, MdGeArray2OfReal, MdGeArrowAspect, MdGeAxis, MdGeBRep, MdGeBSplineCurve, MdGeBSplineSurface, MdGeBezierCurve, MdGeBezierSurface, MdGeBndBox, MdGeBox, MdGeCSYS, MdGeCSYSR, MdGeChamfer, MdGeCircle, MdGeColor, MdGeCompSolid, MdGeCompound, MdGeCone, MdGeCylinder, MdGeDiameterDim, MdGeDimAspect, MdGeDir, MdGeDocColorTool, MdGeDocReader, MdGeDocShapeTool, MdGeDocWriter, MdGeDocument, MdGeEdge, MdGeEllipse, MdGeExplorer, MdGeFace, MdGeFillet, MdGeHGeomPlane, MdGeHGeomSurface, MdGeHypr, MdGeInterpolateBSpl, MdGeLabel, MdGeLabelSequence, MdGeLabelTree, MdGeLengthDim, MdGeLight, MdGeLine, MdGeLineAspect, MdGeListIteratorOfListOfShape, MdGeListOfShape, MdGeLocation, MdGeLoft, MdGeMakeArcOfCircle, MdGeMakeFace, MdGeMakeThickSolid, MdGeMakeWires, MdGeMat, MdGeMaterialAspect, MdGeParab, MdGePipe, MdGePlane, MdGePoint, MdGePointsToBSpl, MdGePointsToBSplSurface, MdGePrism, MdGeRadiusDim, MdGeRect, MdGeRevol, MdGeSequenceIteratorOfSequenceOfShape, MdGeSequenceOfShape, MdGeShape, MdGeShell, MdGeSolid, MdGeSphere, MdGeSpliter, MdGeText, MdGeTextAspect, MdGeTextLabel, MdGeTopo, MdGeTorus, MdGeTransform, MdGeTrsf, MdGeVec, MdGeVertex, MdGeWedge, MdGeWire, MdGeXYZ, Mx3dAlgoChamfer, Mx3dAlgoFillet, Mx3dAlgoObject, Mx3dApplication, Mx3dAspectArrow, Mx3dAspectDim, Mx3dAspectLine, Mx3dAspectObject, Mx3dAspectText, Mx3dBaseObject, Mx3dBrepCastGeom, Mx3dDbDocument, Mx3dDbLabel, Mx3dDbObject, Mx3dDimAngle, Mx3dDimDiameter, Mx3dDimLength, Mx3dDimObject, Mx3dDimRadius, Mx3dGeAxis, Mx3dGeBndBox, Mx3dGeCSYS, Mx3dGeCSYSR, Mx3dGeCircle, Mx3dGeColor, Mx3dGeConic, Mx3dGeCurve, Mx3dGeCylinder, Mx3dGeDir, Mx3dGeEllipse, Mx3dGeHyperbola, Mx3dGeLine, Mx3dGeLocation, Mx3dGeMaterial, Mx3dGeObject, Mx3dGePlane, Mx3dGePoint, Mx3dGeTrsf, Mx3dGeVec, Mx3dGeomBSplineCurve, Mx3dGeomBSplineSurface, Mx3dGeomBezierCurve, Mx3dGeomBezierSurface, Mx3dGeomBoundedCurve, Mx3dGeomBoundedSurface, Mx3dGeomCircle, Mx3dGeomConic, Mx3dGeomConicalSurface, Mx3dGeomCurve, Mx3dGeomCylindricalSurface, Mx3dGeomElementarySurface, Mx3dGeomEllipse, Mx3dGeomHyperbola, Mx3dGeomLine, Mx3dGeomObject, Mx3dGeomParabola, Mx3dGeomPlane, Mx3dGeomSphericalSurface, Mx3dGeomSurface, Mx3dGeomToroidalSurface, Mx3dInterpolateBSplineCurve, Mx3dMkBox, Mx3dMkCone, Mx3dMkCylinder, Mx3dMkFace, Mx3dMkLoft, Mx3dMkObject, Mx3dMkPipe, Mx3dMkPolygon, Mx3dMkPrism, Mx3dMkRevol, Mx3dMkSphere, Mx3dMkThickSolid, Mx3dMkTorus, Mx3dMkWedge, Mx3dShapeCompSolid, Mx3dShapeCompound, Mx3dShapeDownCast, Mx3dShapeEdge, Mx3dShapeFace, Mx3dShapeObject, Mx3dShapeShell, Mx3dShapeSolid, Mx3dShapeVertex, Mx3dShapeWire, Mx3dSymbolObject, Mx3dSymbolText, Mx3dUtils, Mx3dView, Mx3dWireTool, MxApp3D,
|
|
59946
|
+
export { ColorIndexType, ColorMethod, DxfCode, FetchAttributes, IMcDbDwgFiler, IsZero, McAppType, McCmColor, McDb, McDb2LineAngularDimension, McDbAlignedDimension, McDbArc, McDbAttribute, McDbAttributeDefinition, McDbBackgroundEntity, McDbBlockReference, McDbBlockTable, McDbBlockTableRecord, McDbCircle, McDbCurve, McDbCustomEntity, McDbDatabase, McDbDictionary, McDbDimension, McDbEllipse, McDbEntity, McDbGroup, McDbHatch, McDbLayerTable, McDbLayerTableRecord, McDbLine, McDbLinetypeTable, McDbLinetypeTableRecord, McDbMText, McDbObject, McDbObjectArray, McDbPoint, McDbPolyline, McDbProxyEntity, McDbRasterImage, McDbRasterImageDef, McDbRotatedDimension, McDbText, McDbTextStyleTable, McDbTextStyleTableRecord, McDbXrecord, McGeBound, McGeDoubleArray, McGeLongArray, McGeMatrix3d, McGePoint3d, McGePoint3dArray, McGeStringArray, McGeVector3d, McObject, McObjectId, McObjectIdType, McRxObject, MdGe, MdGeAisContext, MdGeAisObject, MdGeAisShape, MdGeAisTexturedShape, MdGeAngleDim, MdGeApplication, MdGeArray1OfInteger, MdGeArray1OfPnt, MdGeArray1OfReal, MdGeArray2OfPnt, MdGeArray2OfReal, MdGeArrowAspect, MdGeAxis, MdGeBRep, MdGeBSplineCurve, MdGeBSplineSurface, MdGeBezierCurve, MdGeBezierSurface, MdGeBndBox, MdGeBox, MdGeCSYS, MdGeCSYSR, MdGeChamfer, MdGeCircle, MdGeColor, MdGeCompSolid, MdGeCompound, MdGeCone, MdGeCylinder, MdGeDiameterDim, MdGeDimAspect, MdGeDir, MdGeDocColorTool, MdGeDocReader, MdGeDocShapeTool, MdGeDocWriter, MdGeDocument, MdGeEdge, MdGeEllipse, MdGeExplorer, MdGeFace, MdGeFillet, MdGeHGeomPlane, MdGeHGeomSurface, MdGeHypr, MdGeInterpolateBSpl, MdGeLabel, MdGeLabelSequence, MdGeLabelTree, MdGeLengthDim, MdGeLight, MdGeLine, MdGeLineAspect, MdGeListIteratorOfListOfShape, MdGeListOfShape, MdGeLocation, MdGeLoft, MdGeMakeArcOfCircle, MdGeMakeFace, MdGeMakeThickSolid, MdGeMakeWires, MdGeMat, MdGeMaterialAspect, MdGeParab, MdGePipe, MdGePlane, MdGePoint, MdGePointsToBSpl, MdGePointsToBSplSurface, MdGePrism, MdGeRadiusDim, MdGeRect, MdGeRevol, MdGeSequenceIteratorOfSequenceOfShape, MdGeSequenceOfShape, MdGeShape, MdGeShell, MdGeSolid, MdGeSphere, MdGeSpliter, MdGeText, MdGeTextAspect, MdGeTextLabel, MdGeTopo, MdGeTorus, MdGeTransform, MdGeTrsf, MdGeVec, MdGeVertex, MdGeWedge, MdGeWire, MdGeXYZ, Mx3dAlgoChamfer, Mx3dAlgoFillet, Mx3dAlgoObject, Mx3dApplication, Mx3dAspectArrow, Mx3dAspectDim, Mx3dAspectLine, Mx3dAspectObject, Mx3dAspectText, Mx3dBaseObject, Mx3dBrepCastGeom, Mx3dDbDocument, Mx3dDbLabel, Mx3dDbObject, Mx3dDimAngle, Mx3dDimDiameter, Mx3dDimLength, Mx3dDimObject, Mx3dDimRadius, Mx3dGeAxis, Mx3dGeBndBox, Mx3dGeCSYS, Mx3dGeCSYSR, Mx3dGeCircle, Mx3dGeColor, Mx3dGeConic, Mx3dGeCurve, Mx3dGeCylinder, Mx3dGeDir, Mx3dGeEllipse, Mx3dGeHyperbola, Mx3dGeLine, Mx3dGeLocation, Mx3dGeMaterial, Mx3dGeObject, Mx3dGePlane, Mx3dGePoint, Mx3dGeTrsf, Mx3dGeVec, Mx3dGeomBSplineCurve, Mx3dGeomBSplineSurface, Mx3dGeomBezierCurve, Mx3dGeomBezierSurface, Mx3dGeomBoundedCurve, Mx3dGeomBoundedSurface, Mx3dGeomCircle, Mx3dGeomConic, Mx3dGeomConicalSurface, Mx3dGeomCurve, Mx3dGeomCylindricalSurface, Mx3dGeomElementarySurface, Mx3dGeomEllipse, Mx3dGeomHyperbola, Mx3dGeomLine, Mx3dGeomObject, Mx3dGeomParabola, Mx3dGeomPlane, Mx3dGeomSphericalSurface, Mx3dGeomSurface, Mx3dGeomToroidalSurface, Mx3dInterpolateBSplineCurve, Mx3dMkBox, Mx3dMkCone, Mx3dMkCylinder, Mx3dMkFace, Mx3dMkLoft, Mx3dMkObject, Mx3dMkPipe, Mx3dMkPolygon, Mx3dMkPrism, Mx3dMkRevol, Mx3dMkSphere, Mx3dMkThickSolid, Mx3dMkTorus, Mx3dMkWedge, Mx3dShapeCompSolid, Mx3dShapeCompound, Mx3dShapeDownCast, Mx3dShapeEdge, Mx3dShapeFace, Mx3dShapeObject, Mx3dShapeShell, Mx3dShapeSolid, Mx3dShapeVertex, Mx3dShapeWire, Mx3dSymbolObject, Mx3dSymbolText, Mx3dUtils, Mx3dView, Mx3dWireTool, MxApp3D, MxCAD3DObject, MxCADCloneType, MxCADPluginBase, MxCADPluginMapDefaultData, MxCADPluginSampleCode, MxCADResbuf, MxCADSelectionSet, MxCADSelectionSetStatus, MxCADUiPrAngle, MxCADUiPrBase, MxCADUiPrDist, MxCADUiPrEntity, MxCADUiPrInt, MxCADUiPrKeyWord, MxCADUiPrPoint, MxCADUiPrString, MxCADUtility, MxCADUtilityClass, MxCADWorldDraw, MxCheckTheBrowser, MxCompare, MxCoordConvert, MxCoordConvertType, MxCpp, MxCppType, MxDraw3d, MxMap, MxMapAddGoogleCnLayer, MxMapAddRasterTileLayer, MxOldMx3dApplication, MxOldMx3dBaseObject, MxOldMx3dDbDocument, MxOldMx3dDbLabel, MxOldMx3dDbObject, MxOldMx3dGeBndBox, MxOldMx3dGeColor, MxOldMx3dGeLocation, MxOldMx3dGeObject, MxOldMx3dGePoint, MxOldMx3dLabelSequence, MxOldMx3dLabelSequenceIterator, MxOldMx3dShapeObject, MxPropertiesWindowCustom, MxPropertiesWindowCustomValue, MxPropertiesWindowCustomValueType, MxTools, Mx_Erase, _ML_String, b64Decode, b64Encode, createMcCmColor, createMxCad, mxcad as default, downloadFile, downloadFileFromUrl, drawArc, drawCircle, drawEllipticalArc, drawLine, drawMText, drawPolyLine, drawPolygon, drawRectang, drawText, getColorUtils, getFileFromUrl, getFilterImp, getJsonFromUrl, loadMxCADassembly, mx_gcj02_To_gps84, mx_gps84_To_gcj02, postEmscriptenIndexedDBFile, postMemoryFile, saveAsFileDialog, setMcCmColor };
|