mxcad 1.0.71 → 1.0.73

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
@@ -583,9 +583,9 @@ export declare class McDrawResbuf extends McRxObject {
583
583
  Remove(lItem: number): void;
584
584
  }
585
585
  /**
586
- * McDrawUtilityClass 类提供了一系列与绘图相关的工具方法
586
+ * MxCADUtilityClass 类提供了一系列与绘图相关的工具方法
587
587
  */
588
- export declare class McDrawUtilityClass {
588
+ export declare class MxCADUtilityClass {
589
589
  private imp;
590
590
  constructor();
591
591
  /**
@@ -617,16 +617,22 @@ export declare class McDrawUtilityClass {
617
617
  * @returns 返回一个 Promise,其中包含选择到的图形对象的 ID 数组
618
618
  */
619
619
  selectEnt(strPrompt?: string, filter?: McDrawResbuf | null): Promise<McObjectId[]>;
620
+ /**
621
+ * 得到当前选中的对象。
622
+ */
623
+ getCurrentSelect(): McObjectId[];
620
624
  private init;
621
625
  }
622
- export declare let McDrawUtility: McDrawUtilityClass;
623
- export declare class McDrawSelSet extends McRxObject {
626
+ export declare let MxCADUtility: MxCADUtilityClass;
627
+ export declare class MxCADSelectionSet extends McRxObject {
624
628
  constructor();
625
629
  allSelect(filter?: McDrawResbuf | null): number;
626
630
  pointSelect(dX: number, dY: number, filter?: McDrawResbuf | null, dTol?: number): number;
627
631
  crossingSelect(dX1: number, dY1: number, dX2: number, dY2: number, filter?: McDrawResbuf | null): number;
628
632
  count(): number;
629
633
  item(lItem: number): McObjectId;
634
+ forEach(call: (val: McObjectId) => void): void;
635
+ userSelect(strPrompt?: string, filter?: McDrawResbuf | null): Promise<boolean>;
630
636
  }
631
637
  /**
632
638
  * 表示数据库实体。
@@ -2581,6 +2587,8 @@ export interface MxCadConfig {
2581
2587
  fontspath?: string;
2582
2588
  /** 服务器上可供加载的字体列表 */
2583
2589
  networkFonts?: string[];
2590
+ /** 是否支持多选 */
2591
+ multipleSelect?: boolean;
2584
2592
  }
2585
2593
  /** 创建MxCad实例 */
2586
2594
  export declare const createMxCad: (config?: MxCadConfig) => Promise<McObject>;