mxcad 1.0.91 → 1.0.93

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
@@ -1511,8 +1511,10 @@ export declare class McDbBlockReference extends McDbEntity {
1511
1511
  /**
1512
1512
  * 获取或设置该实体的缩放因子。
1513
1513
  */
1514
- get scaleFactors(): number;
1515
- set scaleFactors(val: number);
1514
+ get scaleFactors(): McGePoint3d;
1515
+ set scaleFactors(val: McGePoint3d);
1516
+ setScale(val: number): void;
1517
+ getScale(): number;
1516
1518
  /**
1517
1519
  * 获取或设置该实体的旋转角度。
1518
1520
  */
@@ -2316,6 +2318,12 @@ export declare class McDbBlockTable extends McDbObject {
2316
2318
  newIterator(atBeginning?: boolean, skipDeleted?: boolean): McDbBlockTableIterator;
2317
2319
  add(pRecord: McDbBlockTableRecord): number;
2318
2320
  }
2321
+ export declare enum FetchAttributes {
2322
+ EMSCRIPTEN_FETCH_LOAD_TO_MEMORY = 1,
2323
+ EMSCRIPTEN_FETCH_PERSIST_FILE = 4,
2324
+ EMSCRIPTEN_FETCH_APPEND = 8,
2325
+ EMSCRIPTEN_FETCH_REPLACE = 16
2326
+ }
2319
2327
  declare class McRxObjectImp {
2320
2328
  }
2321
2329
  /**
@@ -2354,6 +2362,14 @@ export declare class McObject {
2354
2362
  * @returns 是否成功打开文件
2355
2363
  */
2356
2364
  openWebFile(sFileUrl: string, retCall?: (iRet: number) => void, isWorkThread?: boolean, initialParameter?: object, fetchAttributes?: number): boolean;
2365
+ /**
2366
+ * 插件图块文件
2367
+ * @param sFileUrl 网络文件路径
2368
+ * @param sBlkName 插入的图块的块名
2369
+ * @param isWorkThread 是否使用工作线程打开文件,默认为 true
2370
+ * @param fetchAttributes 1:EMSCRIPTEN_FETCH_LOAD_TO_MEMORY,把图纸数据加载内存中,0:EMSCRIPTEN_FETCH_LOAD_TO_MEMORY | EMSCRIPTEN_FETCH_PERSIST_FILE | EMSCRIPTEN_FETCH_APPEND,把图纸数据加到IndexedDB。
2371
+ */
2372
+ InsertBlock(sFileUrl: string, sBlkName: string, isWorkThread?: boolean, fetchAttributes?: number): Promise<McObjectId>;
2357
2373
  /**
2358
2374
  * 获取当前文件名
2359
2375
  * @returns 当前文件名