mxcad 1.0.58 → 1.0.60

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 { MxDbEntity } from 'mxdraw';
3
+ import { MxDbEntity, MxDrawObject } from 'mxdraw';
4
4
 
5
5
  export declare function b64Encode(str: string): string;
6
6
  export declare function b64Decode(str: string): string;
@@ -1760,6 +1760,10 @@ export declare class McObject {
1760
1760
  * @param mxObject 对象模型
1761
1761
  */
1762
1762
  initMxObject(mxObject: any): void;
1763
+ /**
1764
+ * 返回与MxCAD对象绑定的MxDraw对象。
1765
+ */
1766
+ getMxDrawObject(): MxDrawObject;
1763
1767
  /**
1764
1768
  * 获取对象实现
1765
1769
  * @returns 对象实现
@@ -2295,6 +2299,10 @@ export declare class McAppType {
2295
2299
  * @returns 返回创建的 McDbObject 对象。
2296
2300
  */
2297
2301
  CreateCloneObject(clonobjImp: any): McDbObject;
2302
+ /**
2303
+ * 调置字体加载位置,默值是fonts
2304
+ */
2305
+ setFontFilePath(path: string): any;
2298
2306
  }
2299
2307
  /**
2300
2308
  * MxCppType 类
@@ -2322,7 +2330,7 @@ export declare class MxCppType {
2322
2330
  NewMcGePoint3d(pt?: any, isDoc?: boolean): McGePoint3d;
2323
2331
  }
2324
2332
  export declare let MxCpp: MxCppType;
2325
- export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer): Promise<MxCppType>;
2333
+ export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string): Promise<MxCppType>;
2326
2334
  /** MxCad配置 */
2327
2335
  export interface MxCadConfig {
2328
2336
  /** 获取加载wasm相关文件(wasm/js/worker.js)路径位置
@@ -2371,6 +2379,8 @@ export interface MxCadConfig {
2371
2379
  fileUrl?: string;
2372
2380
  /** 监听打开文件成功回调事件 */
2373
2381
  onOpenFileComplete?: Function;
2382
+ /** 字体文件加载路径,默认是fonts */
2383
+ fontspath?: string;
2374
2384
  }
2375
2385
  /** 创建MxCad实例 */
2376
2386
  export declare const createMxCad: (config?: MxCadConfig) => Promise<McObject>;