mxcad 1.0.136 → 1.0.138

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 CHANGED
@@ -2149,7 +2149,7 @@ export declare class McDbPoint extends McDbEntity {
2149
2149
  set position(pt: McGePoint3d);
2150
2150
  }
2151
2151
  /**
2152
- * 表示Hatch
2152
+ * 表示McDbHatch
2153
2153
  */
2154
2154
  export declare class McDbHatch extends McDbEntity {
2155
2155
  /**
@@ -2197,6 +2197,19 @@ export declare class McDbHatch extends McDbEntity {
2197
2197
  setLoopAt(loopIndex: number, loopType: number, vertices: McGePoint3dArray, bulges: number[]): boolean;
2198
2198
  isSolid(): boolean;
2199
2199
  }
2200
+ /**
2201
+ * McDbProxyEntity
2202
+ */
2203
+ export declare class McDbProxyEntity extends McDbEntity {
2204
+ /**
2205
+ * 构造函数。
2206
+ * @param imp 内部对象。
2207
+ */
2208
+ constructor(x?: object);
2209
+ getAllTextContent(): McGeStringArray;
2210
+ getAllEntityIds(): McObjectId[];
2211
+ getOriginalClassName(): string;
2212
+ }
2200
2213
  /**
2201
2214
  * McDb 命名空间包含 AutoCAD 中的一些常用枚举。
2202
2215
  * @public
@@ -3455,6 +3468,10 @@ export declare class MxCppType {
3455
3468
  * McAppType 实例
3456
3469
  */
3457
3470
  App: McAppType;
3471
+ /**
3472
+ * PropertiesWindow 属必窗口功能调用实例
3473
+ */
3474
+ PropertiesWindow: MxPropertiesWindowCustom;
3458
3475
  /**
3459
3476
  * 获取上一次调用的结果
3460
3477
  * @returns {number} 调用结果
@@ -3497,6 +3514,29 @@ export interface MxCADUI {
3497
3514
  };
3498
3515
  setRegistData: (sData: string) => void;
3499
3516
  }
3517
+ export declare enum MxPropertiesWindowCustomValueType {
3518
+ kInt = 1,
3519
+ kDouble = 2,
3520
+ kString = 3
3521
+ }
3522
+ export declare class MxPropertiesWindowCustomValue {
3523
+ sVarName: string;
3524
+ iVarType: number;
3525
+ val: any;
3526
+ isOnlyRead: boolean;
3527
+ }
3528
+ /**
3529
+ * MxPropertiesWindowCustom 属性窗口添加自定义属性.
3530
+ */
3531
+ export declare class MxPropertiesWindowCustom {
3532
+ private getPropertiesCall;
3533
+ private setPropertiesCall;
3534
+ onEvent_getProperties(call: (ent: McDbEntity) => MxPropertiesWindowCustomValue[]): void;
3535
+ onEvent_setProperties(call: (ent: McDbEntity, prop: MxPropertiesWindowCustomValue) => void): void;
3536
+ setEntitySupportCustom(ent: McDbEntity, isCustomProperties?: boolean): void;
3537
+ getEntityProperties(ent: McDbEntity): MxPropertiesWindowCustomValue[];
3538
+ setEntityProperties(ent: McDbEntity, prop: MxPropertiesWindowCustomValue): void;
3539
+ }
3500
3540
  export declare let MxCpp: MxCppType;
3501
3541
  export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string, networkFonts?: string[]): Promise<MxCppType>;
3502
3542
  export declare function MxCheckTheBrowser(): {
@@ -3758,6 +3798,8 @@ export interface MxDraw3dConfig extends WasmConfig {
3758
3798
  }
3759
3799
  export declare class MxDraw3d extends PubSub<{
3760
3800
  "eventModesSelected": (ids: number[]) => void;
3801
+ "eventAddToTree": (node: string) => void;
3802
+ "eventRemoveFromTree": (ids: number[]) => void;
3761
3803
  }> implements MxDraw3dConfig {
3762
3804
  [x: string]: any;
3763
3805
  /** 监听wasm 文件加载成功事件 */