mxcad 1.0.73 → 1.0.74
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 +13 -20
- package/dist/mxcad.es.js +482 -414
- package/dist/mxcad.umd.js +32 -30
- package/dist/wasm/2d/mxdrawassembly_min.js +721 -703
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +711 -693
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ export declare class McRxObject {
|
|
|
351
351
|
* 初始化临时对象。
|
|
352
352
|
* @param imp 内部实现对象。
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
initTempObject(imp: any): void;
|
|
355
355
|
/**
|
|
356
356
|
* 获取对象名称。
|
|
357
357
|
*/
|
|
@@ -371,6 +371,7 @@ export declare class McRxObject {
|
|
|
371
371
|
* @returns 是否设置成功。
|
|
372
372
|
*/
|
|
373
373
|
setJson(str: string): boolean;
|
|
374
|
+
isKindOf(sObjectName: string): boolean;
|
|
374
375
|
}
|
|
375
376
|
/**
|
|
376
377
|
* 枚举类型 McObjectIdType 表示对象的类型。
|
|
@@ -409,6 +410,7 @@ export declare class McObjectId {
|
|
|
409
410
|
* 返回MxCAD对象。
|
|
410
411
|
*/
|
|
411
412
|
getMcDbObject(): McDbObject | null;
|
|
413
|
+
clone(): McDbObject | null;
|
|
412
414
|
/**
|
|
413
415
|
* 返回id指向的对象名称.
|
|
414
416
|
*/
|
|
@@ -441,7 +443,7 @@ export declare class McDbObject extends McRxObject {
|
|
|
441
443
|
* 克隆对象。
|
|
442
444
|
* @returns 克隆出的对象。
|
|
443
445
|
*/
|
|
444
|
-
Clone(): McDbObject;
|
|
446
|
+
Clone(): McDbObject | null;
|
|
445
447
|
/**
|
|
446
448
|
* 得到对象句柄
|
|
447
449
|
*/
|
|
@@ -632,6 +634,7 @@ export declare class MxCADSelectionSet extends McRxObject {
|
|
|
632
634
|
count(): number;
|
|
633
635
|
item(lItem: number): McObjectId;
|
|
634
636
|
forEach(call: (val: McObjectId) => void): void;
|
|
637
|
+
getIds(): McObjectId[];
|
|
635
638
|
userSelect(strPrompt?: string, filter?: McDrawResbuf | null): Promise<boolean>;
|
|
636
639
|
}
|
|
637
640
|
/**
|
|
@@ -1957,11 +1960,6 @@ export declare class McObject {
|
|
|
1957
1960
|
* @returns 对象实现
|
|
1958
1961
|
*/
|
|
1959
1962
|
getImp(): any;
|
|
1960
|
-
/**
|
|
1961
|
-
* 获取 MxCpp 对象实现
|
|
1962
|
-
* @returns MxCpp 对象实现
|
|
1963
|
-
*/
|
|
1964
|
-
getMxCppImp(): any;
|
|
1965
1963
|
/**
|
|
1966
1964
|
* 更新对象显示
|
|
1967
1965
|
* @param modelViewMatrix 模型视图矩阵
|
|
@@ -2407,18 +2405,6 @@ export declare class McObject {
|
|
|
2407
2405
|
* @returns 与 ID 对应的 McDbObject 对象,如果对象不存在则返回 null
|
|
2408
2406
|
*/
|
|
2409
2407
|
ObjectIdToObject(lIdIndex: number): McDbObject | null;
|
|
2410
|
-
/**
|
|
2411
|
-
* 克隆指定 ID 的 McDbObject 对象
|
|
2412
|
-
* @param id - 对象 ID
|
|
2413
|
-
* @returns 克隆后的 McDbObject 对象
|
|
2414
|
-
*/
|
|
2415
|
-
CloneMcDbObject(id: number): McDbObject;
|
|
2416
|
-
/**
|
|
2417
|
-
* 将 lIdIndex 转换成 MdObjectImp 对象
|
|
2418
|
-
* @param lIdIndex - 对象 ID
|
|
2419
|
-
* @returns 与 ID 对应的 MdObjectImp 对象
|
|
2420
|
-
*/
|
|
2421
|
-
ObjectIdToMdObjectImp(lIdIndex: number): any;
|
|
2422
2408
|
/**
|
|
2423
2409
|
* 销毁指定的 McRxObjectImp 对象
|
|
2424
2410
|
* @param pObjectImp - 待销毁的 McRxObjectImp 对象
|
|
@@ -2428,7 +2414,14 @@ export declare class McObject {
|
|
|
2428
2414
|
* 得到所有布局名
|
|
2429
2415
|
*/
|
|
2430
2416
|
GetAllLayoutName(): McGeStringArray;
|
|
2417
|
+
/**
|
|
2418
|
+
* 设置所有布局名
|
|
2419
|
+
*/
|
|
2431
2420
|
SetCurrentLayout(layoutName: string): void;
|
|
2421
|
+
/**
|
|
2422
|
+
* 返加MxCpp对象,它会在MxDraw模块中调用。
|
|
2423
|
+
*/
|
|
2424
|
+
GetMxCpp(): any;
|
|
2432
2425
|
}
|
|
2433
2426
|
/**
|
|
2434
2427
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -2490,7 +2483,7 @@ export declare class McAppType {
|
|
|
2490
2483
|
* @param clonobjImp 被克隆的对象。
|
|
2491
2484
|
* @returns 返回创建的 McDbObject 对象。
|
|
2492
2485
|
*/
|
|
2493
|
-
CreateCloneObject(clonobjImp: any): McDbObject;
|
|
2486
|
+
CreateCloneObject(clonobjImp: any): McDbObject | null;
|
|
2494
2487
|
/**
|
|
2495
2488
|
* 调置字体加载位置,默值是fonts
|
|
2496
2489
|
*/
|