mxcad 1.0.39 → 1.0.41

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/README.md CHANGED
@@ -1,60 +1,8 @@
1
- # vite-vanilla-ts-lib-starter
2
1
 
3
- The starter is built on top of Vite 3.x and prepared for writing libraries in TypeScript. It generates a hybrid package - both support for CommonJS and ESM modules.
4
-
5
- ## Features
6
-
7
- - Hybrid support - CommonJS and ESM modules
8
- - IIFE bundle for direct browser support without bundler
9
- - Typings bundle
10
- - ESLint - scripts linter
11
- - Stylelint - styles linter
12
- - Prettier - formatter
13
- - Jest - test framework
14
- - Husky + lint-staged - pre-commit git hook set up for formatting
15
-
16
- ## GitHub Template
17
-
18
- This is a template repo. Click the green [Use this template](https://github.com/kbysiec/vite-vanilla-ts-lib-starter/generate) button to get started.
19
-
20
- ## Clone to local
21
-
22
- If you prefer to do it manually with the cleaner git history
2
+ # mxcad 文档
23
3
 
24
4
  ```bash
25
- git clone https://github.com/kbysiec/vite-vanilla-ts-lib-starter.git
26
- cd vite-vanilla-ts-lib-starter
27
- npm i
5
+ npm install mxcad
28
6
  ```
29
7
 
30
- ## Checklist
31
-
32
- When you use this template, update the following:
33
-
34
- - Remove `.git` directory and run `git init` to clean up the history
35
- - Change the name in `package.json` - it will be the name of the IIFE bundle global variable and bundle files name (`.cjs`, `.mjs`, `.iife.js`, `d.ts`)
36
- - Change the author name in `LICENSE`
37
- - Clean up the `README` and `CHANGELOG` files
38
-
39
- And, enjoy :)
40
-
41
- ## Usage
42
-
43
- The starter contains the following scripts:
44
-
45
- - `dev` - starts dev server
46
- - `build` - generates the following bundles: CommonJS (`.cjs`) ESM (`.mjs`) and IIFE (`.iife.js`). The name of bundle is automatically taked from `package.json` name property
47
- - `test` - starts jest and runs all tests
48
- - `test:coverage` - starts jest and run all tests with code coverage report
49
- - `lint:scripts` - lint `.ts` files with eslint
50
- - `lint:styles` - lint `.css` and `.scss` files with stylelint
51
- - `format:scripts` - format `.ts`, `.html` and `.json` files with prettier
52
- - `format:styles` - format `.cs` and `.scss` files with stylelint
53
- - `format` - format all with prettier and stylelint
54
- - `prepare` - script for setting up husky pre-commit hook
55
-
56
- ## Acknowledgment
57
-
58
- If you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository.
59
-
60
- Thank you.
8
+ * 需要配置和mxdraw使用
Binary file
Binary file
package/dist/mxcad.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v6.13.0
2
2
 
3
- import { McGePoint3d } from 'mxdraw';
3
+ import { MxDbEntity } from 'mxdraw';
4
4
 
5
5
  /*** webAssembly 请求加载wasm文件 获取示例结果
6
6
  * @param url wasm 文件路径
@@ -133,12 +133,12 @@ export declare namespace McDb {
133
133
  kLnWtByLwDefault = -3
134
134
  }
135
135
  }
136
- declare class MdRxObjectImp {
136
+ declare class McRxObjectImp {
137
137
  }
138
138
  /**
139
139
  * 表示一个颜色对象,可以通过颜色索引或 RGB 值来设置颜色。
140
140
  */
141
- export interface MdCmColor {
141
+ export interface McCmColor {
142
142
  /**
143
143
  * 设置颜色索引。
144
144
  * @param colorIndex 颜色索引。
@@ -176,7 +176,7 @@ export interface MdCmColor {
176
176
  /**
177
177
  * 表示三维点的对象。
178
178
  */
179
- export interface MdGePoint3d {
179
+ export interface McGePoint3d {
180
180
  /**
181
181
  * 构造函数。
182
182
  * @param dX X 坐标。
@@ -200,7 +200,7 @@ export interface MdGePoint3d {
200
200
  /**
201
201
  * 表示一个 Rx 对象的基类。
202
202
  */
203
- export declare class MdRxObject {
203
+ export declare class McRxObject {
204
204
  /**
205
205
  * 内部实现对象。
206
206
  */
@@ -240,7 +240,7 @@ export declare class MdRxObject {
240
240
  */
241
241
  setJson(str: string): boolean;
242
242
  }
243
- declare class MdDbObject extends MdRxObject {
243
+ declare class McDbObject extends McRxObject {
244
244
  /**
245
245
  * 构造函数。
246
246
  * @param imp 内部实现对象。
@@ -260,26 +260,26 @@ declare class MdDbObject extends MdRxObject {
260
260
  * 克隆对象。
261
261
  * @returns 克隆出的对象。
262
262
  */
263
- Clone(): MdDbObject;
263
+ Clone(): McDbObject;
264
264
  }
265
265
  /**
266
266
  * 表示数据库层表。
267
267
  */
268
- export declare class MdDbLayerTable extends MdDbObject {
268
+ export declare class McDbLayerTable extends McDbObject {
269
269
  /**
270
270
  * 构造函数。
271
271
  * @param imp 内部实现对象。
272
272
  */
273
273
  constructor(imp?: any);
274
274
  }
275
- declare class MdDbLinetypeTable extends MdDbObject {
275
+ declare class McDbLinetypeTable extends McDbObject {
276
276
  /**
277
277
  * 构造函数。
278
278
  * @param imp 内部实现对象。
279
279
  */
280
280
  constructor(imp?: any);
281
281
  }
282
- declare class MdDbTextStyleTable extends MdDbObject {
282
+ declare class McDbTextStyleTable extends McDbObject {
283
283
  /**
284
284
  * 构造函数。
285
285
  * @param imp 内部实现对象。
@@ -289,26 +289,21 @@ declare class MdDbTextStyleTable extends MdDbObject {
289
289
  /**
290
290
  * 表示数据库实体。
291
291
  */
292
- export declare class MdDbEntity extends MdDbObject {
292
+ export declare class McDbEntity extends McDbObject {
293
293
  /**
294
294
  * 构造函数。
295
295
  * @param imp 内部实现对象。
296
296
  */
297
297
  constructor(imp?: any);
298
298
  /**
299
- * 移动夹点。
300
- * @param iIndex 夹点索引。
301
- * @param dXOffset X 轴偏移量。
302
- * @param dYOffset Y 轴偏移量。
303
- * @param dZOffset Z 轴偏移量。
304
- * @returns 是否移动成功。
299
+ * 打碎对象,返回打后对象数据链表
305
300
  */
306
- moveGripPointsAt(iIndex: number, dXOffset: number, dYOffset: number, dZOffset: number): boolean;
301
+ explode(): McDrawResbuf;
307
302
  }
308
303
  /**
309
304
  * 表示数据库曲线。
310
305
  */
311
- export declare class MdDbCurve extends MdDbEntity {
306
+ export declare class McDbCurve extends McDbEntity {
312
307
  /**
313
308
  * 构造函数。
314
309
  * @param imp 内部实现对象。
@@ -353,7 +348,7 @@ export declare class MdDbCurve extends MdDbEntity {
353
348
  * @param pt 距离位置。
354
349
  * @returns 点及执行结果。
355
350
  */
356
- getDistAtPoint(pt: MdGePoint3d): {
351
+ getDistAtPoint(pt: McGePoint3d): {
357
352
  val: number;
358
353
  ret: number;
359
354
  };
@@ -363,14 +358,14 @@ export declare class MdDbCurve extends MdDbEntity {
363
358
  * @returns 点及执行结果。
364
359
  */
365
360
  getPointAtDist(dist: number): {
366
- val: MdGePoint3d;
361
+ val: McGePoint3d;
367
362
  ret: number;
368
363
  };
369
364
  }
370
365
  /**
371
366
  * 表示数据库。
372
367
  */
373
- export declare class MdDbDatabase extends MdRxObject {
368
+ export declare class McDbDatabase extends McRxObject {
374
369
  /**
375
370
  * 构造函数。
376
371
  * @param imp 内部实现对象。
@@ -380,17 +375,27 @@ export declare class MdDbDatabase extends MdRxObject {
380
375
  * 获取层表。
381
376
  * @returns 层表。
382
377
  */
383
- GetLayerTable(): MdDbLayerTable;
378
+ GetLayerTable(): McDbLayerTable;
384
379
  /**
385
380
  * 获取线型表。
386
381
  * @returns 线型表。
387
382
  */
388
- GetLinetypeTable(): MdDbLinetypeTable;
383
+ GetLinetypeTable(): McDbLinetypeTable;
389
384
  /**
390
385
  * 获取文字样式表。
391
386
  * @returns 文字样式表。
392
387
  */
393
- GetTextStyleTable(): MdDbTextStyleTable;
388
+ GetTextStyleTable(): McDbTextStyleTable;
389
+ /**
390
+ * 获取块表。
391
+ * @returns 块表。
392
+ */
393
+ GetBlockTable(): McDbBlockTable;
394
+ /**
395
+ *返回当前空间块表记录
396
+ * @returns 块表记录
397
+ */
398
+ CurrentSpace(): McDbBlockTableRecord;
394
399
  /**
395
400
  * 获取当前线型比例。
396
401
  * @returns 当前线型比例。
@@ -426,12 +431,12 @@ export declare class MdDbDatabase extends MdRxObject {
426
431
  * 获取当前真彩色。
427
432
  * @returns 当前真彩色。
428
433
  */
429
- GetCurrentlyTrueColor(): MdCmColor;
434
+ GetCurrentlyTrueColor(): McCmColor;
430
435
  /**
431
436
  * 设置当前真彩色。
432
437
  * @param color 真彩色。
433
438
  */
434
- SetCurrentlyTrueColor(color: MdCmColor): any;
439
+ SetCurrentlyTrueColor(color: McCmColor): any;
435
440
  /**
436
441
  * 获取当前颜色索引。
437
442
  * @returns 当前颜色索引。
@@ -524,7 +529,7 @@ export declare class McObject {
524
529
  * 获取数据库对象
525
530
  * @returns 数据库对象
526
531
  */
527
- GetDatabase(): MdDbDatabase;
532
+ GetDatabase(): McDbDatabase;
528
533
  /**
529
534
  * 获取系统变量的字符串值
530
535
  * @param varName 变量名称
@@ -568,12 +573,12 @@ export declare class McObject {
568
573
  * 获取绘制颜色
569
574
  * @returns 返回绘制颜色
570
575
  */
571
- get DrawColor(): MdCmColor;
576
+ get DrawColor(): McCmColor;
572
577
  /**
573
578
  * 设置绘制颜色
574
579
  * @param val 绘制颜色
575
580
  */
576
- set DrawColor(val: MdCmColor);
581
+ set DrawColor(val: McCmColor);
577
582
  /**
578
583
  * 获取绘制线宽
579
584
  * @returns 返回绘制线宽
@@ -919,19 +924,19 @@ export declare class McObject {
919
924
  * @param entity - 实体对象
920
925
  * @returns 绘制结果
921
926
  */
922
- DrawEntity(entity: MdDbEntity): number;
927
+ DrawEntity(entity: McDbEntity): number;
923
928
  /**
924
- * 将 lIdIndex 转换成 MdDbObject 对象
929
+ * 将 lIdIndex 转换成 McDbObject 对象
925
930
  * @param lIdIndex - 对象 ID
926
- * @returns 与 ID 对应的 MdDbObject 对象,如果对象不存在则返回 null
931
+ * @returns 与 ID 对应的 McDbObject 对象,如果对象不存在则返回 null
927
932
  */
928
- ObjectIdToObject(lIdIndex: number): MdDbObject | null;
933
+ ObjectIdToObject(lIdIndex: number): McDbObject | null;
929
934
  /**
930
- * 克隆指定 ID 的 MdDbObject 对象
935
+ * 克隆指定 ID 的 McDbObject 对象
931
936
  * @param id - 对象 ID
932
- * @returns 克隆后的 MdDbObject 对象
937
+ * @returns 克隆后的 McDbObject 对象
933
938
  */
934
- CloneMdDbObject(id: number): MdDbObject;
939
+ CloneMcDbObject(id: number): McDbObject;
935
940
  /**
936
941
  * 将 lIdIndex 转换成 MdObjectImp 对象
937
942
  * @param lIdIndex - 对象 ID
@@ -939,10 +944,10 @@ export declare class McObject {
939
944
  */
940
945
  ObjectIdToMdObjectImp(lIdIndex: number): any;
941
946
  /**
942
- * 销毁指定的 MdRxObjectImp 对象
943
- * @param pObjectImp - 待销毁的 MdRxObjectImp 对象
947
+ * 销毁指定的 McRxObjectImp 对象
948
+ * @param pObjectImp - 待销毁的 McRxObjectImp 对象
944
949
  */
945
- DestroyObject(pObjectImp: MdRxObjectImp): void;
950
+ DestroyObject(pObjectImp: McRxObjectImp): void;
946
951
  }
947
952
  declare class McAppType {
948
953
  private imp;
@@ -975,7 +980,7 @@ declare class McAppType {
975
980
  * 销毁对象。
976
981
  * @param pObject 要销毁的对象。
977
982
  */
978
- DestroyObject(pObject: MdRxObjectImp): void;
983
+ DestroyObject(pObject: McRxObjectImp): void;
979
984
  /**
980
985
  * 获取当前的 MxDraw 对象。
981
986
  * @returns 返回当前的 McObject 对象。
@@ -991,17 +996,17 @@ declare class McAppType {
991
996
  */
992
997
  mcedRGB2Index(red: number, green: number, blue: number, bAutoNearest?: boolean): number;
993
998
  /**
994
- * 将对象 id 转换为 MdDbObject 对象。
999
+ * 将对象 id 转换为 McDbObject 对象。
995
1000
  * @param lIdIndex 对象的 id。
996
- * @returns 返回转换后的 MdDbObject 对象,如果转换失败,则返回 null。
1001
+ * @returns 返回转换后的 McDbObject 对象,如果转换失败,则返回 null。
997
1002
  */
998
- ObjectIdToObject(lIdIndex: number): MdDbObject | null;
1003
+ ObjectIdToObject(lIdIndex: number): McDbObject | null;
999
1004
  /**
1000
1005
  * 创建克隆对象。
1001
1006
  * @param clonobjImp 被克隆的对象。
1002
- * @returns 返回创建的 MdDbObject 对象。
1007
+ * @returns 返回创建的 McDbObject 对象。
1003
1008
  */
1004
- CreateCloneObject(clonobjImp: any): MdDbObject;
1009
+ CreateCloneObject(clonobjImp: any): McDbObject;
1005
1010
  }
1006
1011
  declare class MxCppType {
1007
1012
  /**
@@ -1013,35 +1018,35 @@ declare class MxCppType {
1013
1018
  */
1014
1019
  App: McAppType;
1015
1020
  /**
1016
- * 创建新的 MdCmColor 实例
1017
- * @returns {MdCmColor} MdCmColor 实例
1021
+ * 创建新的 McCmColor 实例
1022
+ * @returns {McCmColor} McCmColor 实例
1018
1023
  */
1019
- NewMdCmColor(): MdCmColor;
1024
+ NewMcCmColor(): McCmColor;
1020
1025
  /**
1021
1026
  * 获取上一次调用的结果
1022
1027
  * @returns {number} 调用结果
1023
1028
  */
1024
1029
  getCallResult(): number;
1025
1030
  /**
1026
- * 创建新的 MdGePoint3d 实例
1031
+ * 创建新的 McGePoint3d 实例
1027
1032
  * @param {any} pt 点坐标
1028
1033
  * @param {boolean} isDoc 是否为文档坐标
1029
- * @returns {MdGePoint3d} MdGePoint3d 实例
1034
+ * @returns {McGePoint3d} McGePoint3d 实例
1030
1035
  */
1031
- NewMdGePoint3d(pt?: any, isDoc?: boolean): MdGePoint3d;
1036
+ NewMcGePoint3d(pt?: any, isDoc?: boolean): McGePoint3d;
1032
1037
  /**
1033
- * 创建新的 MdGePoint3d 实例
1038
+ * 创建新的 McGePoint3d 实例
1034
1039
  * @param {number} x x 坐标
1035
1040
  * @param {number} y y 坐标
1036
1041
  * @param {number} z z 坐标
1037
- * @returns {MdGePoint3d} MdGePoint3d 实例
1042
+ * @returns {McGePoint3d} McGePoint3d 实例
1038
1043
  */
1039
- NewMdGePoint3d2(x: number, y: number, z?: number): MdGePoint3d;
1044
+ NewMcGePoint3d2(x: number, y: number, z?: number): McGePoint3d;
1040
1045
  }
1041
1046
  /**
1042
1047
  * 表示一个直线对象。
1043
1048
  */
1044
- export declare class MdDbLine extends MdDbCurve {
1049
+ export declare class McDbLine extends McDbCurve {
1045
1050
  /**
1046
1051
  * 构造函数。
1047
1052
  * @param imp C++ 实现对象。
@@ -1050,26 +1055,26 @@ export declare class MdDbLine extends MdDbCurve {
1050
1055
  /**
1051
1056
  * 获取起点。
1052
1057
  */
1053
- get startPoint(): MdGePoint3d;
1058
+ get startPoint(): McGePoint3d;
1054
1059
  /**
1055
1060
  * 设置起点。
1056
1061
  * @param pt 新的起点。
1057
1062
  */
1058
- set startPoint(pt: MdGePoint3d);
1063
+ set startPoint(pt: McGePoint3d);
1059
1064
  /**
1060
1065
  * 获取终点。
1061
1066
  */
1062
- get endPoint(): MdGePoint3d;
1067
+ get endPoint(): McGePoint3d;
1063
1068
  /**
1064
1069
  * 设置终点。
1065
1070
  * @param pt 新的终点。
1066
1071
  */
1067
- set endPoint(pt: MdGePoint3d);
1072
+ set endPoint(pt: McGePoint3d);
1068
1073
  }
1069
1074
  /**
1070
1075
  * 表示一个 CAD 文字实体。
1071
1076
  */
1072
- export declare class MdDbText extends MdDbEntity {
1077
+ export declare class McDbText extends McDbEntity {
1073
1078
  /**
1074
1079
  * 构造函数。
1075
1080
  * @param imp 实现对象。
@@ -1078,13 +1083,13 @@ export declare class MdDbText extends MdDbEntity {
1078
1083
  /**
1079
1084
  * 获取或设置文字的位置。
1080
1085
  */
1081
- get position(): MdGePoint3d;
1082
- set position(pt: MdGePoint3d);
1086
+ get position(): McGePoint3d;
1087
+ set position(pt: McGePoint3d);
1083
1088
  /**
1084
1089
  * 获取或设置文字的对齐点。
1085
1090
  */
1086
- get alignmentPoint(): MdGePoint3d;
1087
- set alignmentPoint(pt: MdGePoint3d);
1091
+ get alignmentPoint(): McGePoint3d;
1092
+ set alignmentPoint(pt: McGePoint3d);
1088
1093
  /**
1089
1094
  * 获取或设置文字的倾斜角度。
1090
1095
  */
@@ -1124,7 +1129,7 @@ export declare class MdDbText extends MdDbEntity {
1124
1129
  /**
1125
1130
  * 表示一个圆形。
1126
1131
  */
1127
- export declare class MdDbCircle extends MdDbCurve {
1132
+ export declare class McDbCircle extends McDbCurve {
1128
1133
  /**
1129
1134
  * 构造函数。
1130
1135
  * @param imp 内部对象。
@@ -1140,12 +1145,12 @@ export declare class MdDbCircle extends MdDbCurve {
1140
1145
  /**
1141
1146
  * 获取圆心坐标。
1142
1147
  */
1143
- get center(): MdGePoint3d;
1148
+ get center(): McGePoint3d;
1144
1149
  /**
1145
1150
  * 设置圆心坐标。
1146
1151
  * @param pt 圆心坐标。
1147
1152
  */
1148
- set center(pt: MdGePoint3d);
1153
+ set center(pt: McGePoint3d);
1149
1154
  /**
1150
1155
  * 获取圆半径。
1151
1156
  */
@@ -1159,7 +1164,7 @@ export declare class MdDbCircle extends MdDbCurve {
1159
1164
  /**
1160
1165
  * 多段线类
1161
1166
  */
1162
- export declare class MdDbPolyline extends MdDbCurve {
1167
+ export declare class McDbPolyline extends McDbCurve {
1163
1168
  /**
1164
1169
  * 构造函数
1165
1170
  * @param imp 实现对象
@@ -1241,7 +1246,7 @@ export declare class MdDbPolyline extends MdDbCurve {
1241
1246
  /**
1242
1247
  * McDrawResbuf 类用于操作 AutoCAD 中的 resbuf 数据。
1243
1248
  */
1244
- export declare class McDrawResbuf extends MdRxObject {
1249
+ export declare class McDrawResbuf extends McRxObject {
1245
1250
  /**
1246
1251
  * 构造函数。
1247
1252
  * @param imp 实现对象。
@@ -1274,13 +1279,26 @@ export declare class McDrawResbuf extends MdRxObject {
1274
1279
  val: number;
1275
1280
  ret: number;
1276
1281
  };
1282
+ /**
1283
+ * 获取 resbuf 数据项中的 McRxObject 对象。
1284
+ * @param lItem 数据项索引。
1285
+ * @returns 包含 long 类型值和返回值的对象。
1286
+ */
1287
+ AtObject(lItem: number): {
1288
+ val: McRxObject | undefined;
1289
+ ret: number;
1290
+ };
1291
+ /**
1292
+ * 添加 McRxObject 对象到 resbuf 中
1293
+ */
1294
+ AddObject(pObj: McRxObject): void;
1277
1295
  /**
1278
1296
  * 获取 resbuf 数据项中的 ObjectId。
1279
1297
  * @param lItem 数据项索引。
1280
1298
  * @returns 包含 ObjectId 和返回值的对象。
1281
1299
  */
1282
1300
  AtObjectId(lItem: number): {
1283
- val: number;
1301
+ val: McObjectId;
1284
1302
  ret: number;
1285
1303
  };
1286
1304
  /**
@@ -1298,7 +1316,7 @@ export declare class McDrawResbuf extends MdRxObject {
1298
1316
  * @returns 包含点坐标和返回值的对象。
1299
1317
  */
1300
1318
  AtPoint(lItem: number): {
1301
- val: MdGePoint3d;
1319
+ val: McGePoint3d;
1302
1320
  ret: number;
1303
1321
  };
1304
1322
  /**
@@ -1340,7 +1358,7 @@ export declare class McDrawResbuf extends MdRxObject {
1340
1358
  * @param lDataType 数据类型。
1341
1359
  * @returns 添加的数据项索引。
1342
1360
  */
1343
- AddPoint(pt: MdGePoint3d, lDataType?: number): number;
1361
+ AddPoint(pt: McGePoint3d, lDataType?: number): number;
1344
1362
  /**
1345
1363
  * 移除所有 resbuf 数据项。
1346
1364
  */
@@ -1351,37 +1369,43 @@ export declare class McDrawResbuf extends MdRxObject {
1351
1369
  */
1352
1370
  Remove(lItem: number): void;
1353
1371
  }
1354
- declare enum MxObjectIdType {
1372
+ declare enum McObjectIdType {
1355
1373
  kMxCAD = 0,
1356
1374
  kMxDraw = 1,
1357
1375
  kInvalid = 2
1358
1376
  }
1359
1377
  /**
1360
- * MxObjectId类表示一个模型对象的唯一标识符。
1378
+ * McObjectId类表示一个模型对象的唯一标识符。
1361
1379
  */
1362
- export declare class MxObjectId {
1363
- private id;
1364
- private type;
1380
+ export declare class McObjectId {
1381
+ id: number;
1382
+ type: McObjectIdType;
1365
1383
  /**
1366
- * 创建一个MxObjectId实例。
1384
+ * 创建一个McObjectId实例。
1367
1385
  * @param id 对象的唯一标识符。
1368
1386
  * @param type 对象的类型。
1369
1387
  */
1370
- constructor(id: number, type: MxObjectIdType);
1388
+ constructor(id: number, type: McObjectIdType);
1389
+ /**
1390
+ * id是否有效.
1391
+ */
1392
+ isValid(): boolean;
1393
+ /**
1394
+ * 删除对象。
1395
+ */
1396
+ erase(): void;
1371
1397
  /**
1372
- * 获取对象的类型。
1373
- * @returns 对象的类型。
1398
+ * 返回MxCAD对象。
1374
1399
  */
1375
- getType(): MxObjectIdType;
1400
+ getMcDbObject(): McDbObject | null;
1376
1401
  /**
1377
- * 获取对象的唯一标识符。
1378
- * @returns 对象的唯一标识符。
1402
+ * 返回id指向的对象名称.
1379
1403
  */
1380
- getId(): number;
1404
+ getObjectName(): string;
1381
1405
  /**
1382
- * 删除对象。
1406
+ * 返回MxDraw对象。
1383
1407
  */
1384
- erase(): void;
1408
+ getMxDbEntity(): MxDbEntity | null;
1385
1409
  }
1386
1410
  declare class McDrawUtilityClass {
1387
1411
  private imp;
@@ -1407,17 +1431,45 @@ declare class McDrawUtilityClass {
1407
1431
  * @param filter - 过滤器,用于过滤查找到的图形对象,默认为 null(表示不进行过滤)
1408
1432
  * @returns 返回查找到的图形对象的 ID
1409
1433
  */
1410
- findEntAtPoint(dX: number, dY: number, dZ: number, dSearhRange?: number, filter?: McDrawResbuf | null): number;
1434
+ findEntAtPoint(dX: number, dY: number, dZ: number, dSearhRange?: number, filter?: McDrawResbuf | null): McObjectId;
1411
1435
  /**
1412
1436
  * selectEnt 方法用于在指定位置选择图形对象
1413
1437
  * @param strPrompt - 选择时的提示信息,默认为 null(表示不显示提示信息)
1414
1438
  * @param filter - 过滤器,用于过滤选择到的图形对象,默认为 null(表示不进行过滤)
1415
1439
  * @returns 返回一个 Promise,其中包含选择到的图形对象的 ID 数组
1416
1440
  */
1417
- selectEnt(strPrompt?: string, filter?: McDrawResbuf | null): Promise<MxObjectId[]>;
1441
+ selectEnt(strPrompt?: string, filter?: McDrawResbuf | null): Promise<McObjectId[]>;
1418
1442
  private init;
1419
1443
  }
1420
1444
  export declare let McDrawUtility: McDrawUtilityClass;
1445
+ export declare class McDbBlockTableRecordIterator extends McRxObject {
1446
+ constructor(imp: any);
1447
+ start(atBeginning?: boolean, skipDeleted?: boolean): void;
1448
+ done(): boolean;
1449
+ getEntityId(): McObjectId;
1450
+ step(forward?: boolean, skipDeleted?: boolean): void;
1451
+ }
1452
+ export declare class McDbBlockTableRecord extends McDbObject {
1453
+ constructor(imp?: any);
1454
+ appendAcDbEntity(pEntity: McDbEntity): McObjectId;
1455
+ newIterator(atBeginning?: boolean, skipDeleted?: boolean): McDbBlockTableRecordIterator;
1456
+ get origin(): McGePoint3d;
1457
+ set origin(origin: McGePoint3d);
1458
+ }
1459
+ export declare class McDbBlockTableIterator extends McRxObject {
1460
+ constructor(imp: any);
1461
+ start(atBeginning?: boolean, skipDeleted?: boolean): void;
1462
+ done(): boolean;
1463
+ getRecord(): McDbBlockTableRecord;
1464
+ step(forward?: boolean, skipDeleted?: boolean): void;
1465
+ }
1466
+ export declare class McDbBlockTable extends McDbObject {
1467
+ constructor(imp?: any);
1468
+ getAt(name: string): McDbBlockTableRecord;
1469
+ has(name: string): boolean;
1470
+ newIterator(atBeginning?: boolean, skipDeleted?: boolean): McDbBlockTableIterator;
1471
+ add(pRecord: McDbBlockTableRecord): number;
1472
+ }
1421
1473
  /** 绘制线段
1422
1474
  * */
1423
1475
  export declare function drawLine(): Promise<void>;
@@ -1429,7 +1481,7 @@ export declare function drawArc(): Promise<void>;
1429
1481
  export declare function drawEllipticalArc(): void;
1430
1482
  /** 绘制文字 */
1431
1483
  export declare function mxErase(): Promise<void>;
1432
- declare const getWasmURL: (wasmURL: string, baseURL: string | URL) => string;
1484
+ declare const getWasmURL: (wasmURL: string, baseURL?: string | URL) => string;
1433
1485
  /** wasm importObject 的可配置选项 */
1434
1486
  export interface WasmConfig {
1435
1487
  /** 二进制数据 设置wasmBinary 则 locateFile 不生效**/
@@ -1525,8 +1577,7 @@ export interface MxDraw3d extends WasmConfig {
1525
1577
  open3DFile: (file: File) => void;
1526
1578
  }
1527
1579
  export declare let MxCpp: MxCppType;
1528
- export declare function loadMxCADassembly(call: (MxCpp: MxCppType) => void, locateFile?: (wasmURL: string, baseURL: string | URL) => string, wasmBinary?: ArrayBuffer): Promise<void>;
1580
+ export declare function loadMxCADassembly(call: (MxCpp: MxCppType) => void, locateFile?: (wasmURL: string, baseURL?: string | URL) => string, wasmBinary?: ArrayBuffer): Promise<void>;
1529
1581
  export declare function loadMxCADassembly3d(config: MxDraw3dConfig, call?: (mxDraw3d: MxDraw3d) => void): Promise<MxDraw3d>;
1530
- export declare function loadWasmModule(wasmUrl: string): Promise<unknown>;
1531
1582
 
1532
1583
  export {};