mxcad 1.0.166 → 1.0.168

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
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v6.13.0
2
2
 
3
- import { DetailedResult, DynamicInputType, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, MxCursorType, MxDbEntity, MxDrawObject } from 'mxdraw';
3
+ import { DetailedResult, DynamicInputType, McEdGetPointWorldDrawObject, MrxDbgUiPrBaseReturn, MrxDbgUiPrPoint, MxCursorType, MxDbEntity, MxDrawObject } from 'mxdraw';
4
4
  import * as THREE from 'three';
5
5
 
6
6
  export declare function b64Encode(str: string): string;
@@ -23,6 +23,10 @@ export declare function downloadFile(blob: any, filename: string): void;
23
23
  export declare function downloadFileFromUrl(url: string, filename: string): void;
24
24
  export declare const getJsonFromUrl: (url: string) => Promise<any>;
25
25
  export declare const getFileFromUrl: (url: string) => Promise<Response | undefined>;
26
+ /** 接收输入的提示字符串
27
+ * @param strId 字符串的ID 起一个符合定义的ID名称
28
+ * @param str 提示字符串
29
+ * */
26
30
  export declare function _ML_String(strId: string, str: string): string;
27
31
  export declare function IsZero(val: number): boolean;
28
32
  export declare function postMemoryFile(memoryData: any, url: string, filename: string, retCall: (code: number, message: string) => void, param?: any): void;
@@ -827,9 +831,12 @@ export declare class MxCADUtilityClass {
827
831
  * selectEnt 方法用于在指定位置选择图形对象
828
832
  * @param strPrompt - 选择时的提示信息,默认为 null(表示不显示提示信息)
829
833
  * @param filter - 过滤器,用于过滤选择到的图形对象,默认为 null(表示不进行过滤)
834
+ * @param isSelectMxDraw 是否选择批注图形 默认true
835
+ * @param init 选择图形前初始化函数( 会在实例化{@link https://mxcadx.gitee.io/mxdraw_api_docs/classes/MrxDbgUiPrPoint.html | mxdraw取点类}时触发,得到取点实例)
836
+ * @param callbackGetPoint 回调函数 获取选中图形时的坐标点
830
837
  * @returns 返回一个 Promise,其中包含选择到的图形对象的 ID 数组
831
838
  */
832
- selectEnt(strPrompt?: string, filter?: MxCADResbuf | null, isSelectMxDraw?: boolean): Promise<McObjectId[]>;
839
+ selectEnt(strPrompt?: string, filter?: MxCADResbuf | null, isSelectMxDraw?: boolean, init?: (getPoint: MrxDbgUiPrPoint) => any, callbackGetPoint?: (point: McGePoint3d) => void): Promise<McObjectId[]>;
833
840
  /**
834
841
  * 得到当前选中的对象。
835
842
  */
@@ -916,6 +923,8 @@ export declare class MxCADSelectionSet extends McRxObject {
916
923
  crossingSelect(dX1: number, dY1: number, dX2: number, dY2: number, filter?: MxCADResbuf | null): number;
917
924
  /** 获取当前选中的个数 */
918
925
  count(): number;
926
+ /** 选择集为空 */
927
+ isNull(): boolean;
919
928
  /** 根据对象索引 得到对应对象ID */
920
929
  item(lItem: number): McObjectId;
921
930
  /** 遍历已选中的实体 */
@@ -1395,6 +1404,14 @@ export declare class McDbEntity extends McDbObject {
1395
1404
  */
1396
1405
  updateDisplay(): void;
1397
1406
  syncData(_toCpp?: boolean): boolean;
1407
+ /**
1408
+ * 对象的显示顺序
1409
+ */
1410
+ get drawOrder(): number;
1411
+ /**
1412
+ * 对象的显示顺序
1413
+ */
1414
+ set drawOrder(order: number);
1398
1415
  }
1399
1416
  /**
1400
1417
  * 表示数据库曲线。
@@ -3014,6 +3031,11 @@ export declare class McDbBlockTableRecord extends McDbObject {
3014
3031
  appendAcDbEntity(pEntity: McDbEntity): McObjectId;
3015
3032
  /** 获取图块中所有实体的对象ID */
3016
3033
  getAllEntityId(skipDeleted?: boolean): McObjectId[];
3034
+ /** 返回块表记录中所有对象的最小,最大显示顺序. */
3035
+ getMinMaxDrawOrder(): {
3036
+ minDrawOrder: number;
3037
+ maxDrawOrder: number;
3038
+ };
3017
3039
  /** 图块原点 */
3018
3040
  get origin(): McGePoint3d;
3019
3041
  set origin(origin: McGePoint3d);
@@ -4403,6 +4425,8 @@ export interface MxDraw3d extends WasmConfig {
4403
4425
  highLightSelShape(theEntry: number): void;
4404
4426
  /** 高亮 */
4405
4427
  highLightSelLabelShape(labelEntryStr: string): void;
4428
+ /** 通过Entry来进行删除对象 */
4429
+ removeObjectByEntry(theEntry: string): void;
4406
4430
  /** 显示隐藏 */
4407
4431
  setObjectShowStateByLabel(labelEntryStr: string, theToShow: boolean): void;
4408
4432
  /** 更新画布大小 */
@@ -7318,6 +7342,7 @@ export declare class MdGeBRep {
7318
7342
  ChangeSelectedMaterial(material: MdGeMaterialAspect): void;
7319
7343
  AddClipPlane(pln: MdGePlane): void;
7320
7344
  GetSelectedShapes(): MdGeListOfShape;
7345
+ setObjectColor(theEntry: string, theColor: MdGeColor): void;
7321
7346
  }
7322
7347
  /**
7323
7348
  * 表示颜色