mxcad 1.0.14 → 1.0.15

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
@@ -17,18 +17,41 @@ export declare const MxTools: {
17
17
  export declare function drawText(): Promise<void>;
18
18
  /** 绘制圆*/
19
19
  export declare function drawCircle(): void;
20
+ declare class MdRxObjectImp {
21
+ }
22
+ declare class MdRxObject {
23
+ protected imp: any;
24
+ constructor(imp?: any);
25
+ destructor(): void;
26
+ get ObjectName(): string;
27
+ get Dxf0(): string;
28
+ getJson(): string;
29
+ setJson(str: string): boolean;
30
+ }
31
+ declare class MdDbLayerTable extends MdRxObject {
32
+ constructor(imp?: any);
33
+ }
34
+ declare class MdDbDatabase extends MdRxObject {
35
+ constructor(imp?: any);
36
+ GetLayerTable(): MdDbLayerTable;
37
+ }
20
38
  export declare class McObject {
39
+ imp: any;
40
+ constructor(imp: any);
21
41
  updateDisplay(modelViewMatrix: number[], projectionMatrix: number[]): void;
22
42
  test(): void;
23
43
  openWebFile(sFileUrl: string): boolean;
44
+ GetDatabase(): MdDbDatabase;
24
45
  }
25
- declare class McApp {
26
- Init: () => void;
46
+ declare class McAppType {
47
+ private imp;
48
+ init(imp: any): void;
27
49
  CreateMxDraw(width: number, height: number, canvasId: string, isWebgl2: boolean, mxObjectId: number): McObject;
50
+ DestroyObject(pObject: MdRxObjectImp): void;
28
51
  }
29
- export interface Mxdrawassembly {
30
- McObject: typeof McObject;
31
- McApp: McApp;
52
+ declare class MxCppType {
53
+ mxcadassemblyimp?: any;
54
+ App: McAppType;
32
55
  }
33
56
  /** 绘制线段
34
57
  * */
@@ -39,7 +62,7 @@ export declare function drawPolyLine(): Promise<void>;
39
62
  export declare function drawPolygon(): Promise<void>;
40
63
  export declare function drawArc(): Promise<void>;
41
64
  export declare function drawEllipticalArc(): void;
42
- export declare let MxCpp: Mxdrawassembly;
43
- export declare function loadMxdrawassembly(call: (MxCpp: Mxdrawassembly) => void, locateFile?: (wasmURL: string, baseURL: string | URL) => string): void;
65
+ export declare let MxCpp: MxCppType;
66
+ export declare function loadMxCADassembly(call: (MxCpp: MxCppType) => void, locateFile?: (wasmURL: string, baseURL: string | URL) => string): void;
44
67
 
45
68
  export {};