mxcad 1.0.63 → 1.0.65

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
@@ -2301,7 +2301,11 @@ export declare class McAppType {
2301
2301
  /**
2302
2302
  * 调置字体加载位置,默值是fonts
2303
2303
  */
2304
- setFontFilePath(path: string): any;
2304
+ setFontFilePath(path: string): void;
2305
+ /**
2306
+ * 调置需要通过网络加载的字体
2307
+ */
2308
+ addNetworkLoadingFont(paths: string | string[]): void;
2305
2309
  }
2306
2310
  /**
2307
2311
  * MxCppType 类
@@ -2329,7 +2333,7 @@ export declare class MxCppType {
2329
2333
  NewMcGePoint3d(pt?: any, isDoc?: boolean): McGePoint3d;
2330
2334
  }
2331
2335
  export declare let MxCpp: MxCppType;
2332
- export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string): Promise<MxCppType>;
2336
+ export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string, networkFonts?: string[]): Promise<MxCppType>;
2333
2337
  /** MxCad配置 */
2334
2338
  export interface MxCadConfig {
2335
2339
  /** 获取加载wasm相关文件(wasm/js/worker.js)路径位置
@@ -2380,6 +2384,8 @@ export interface MxCadConfig {
2380
2384
  onOpenFileComplete?: Function;
2381
2385
  /** 字体文件加载路径,默认是fonts */
2382
2386
  fontspath?: string;
2387
+ /** 服务器上可供加载的字体列表 */
2388
+ networkFonts?: string[];
2383
2389
  }
2384
2390
  /** 创建MxCad实例 */
2385
2391
  export declare const createMxCad: (config?: MxCadConfig) => Promise<McObject>;