mxcad 1.0.8 → 1.0.10
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 +11 -10
- package/dist/mxcad.es.js +2153 -1809
- package/dist/mxcad.umd.js +51 -50
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/dist/test.mxweb +0 -0
- package/package.json +5 -4
package/dist/mxcad.d.ts
CHANGED
|
@@ -17,27 +17,28 @@ export declare const MxTools: {
|
|
|
17
17
|
export declare function drawText(): Promise<void>;
|
|
18
18
|
/** 绘制圆*/
|
|
19
19
|
export declare function drawCircle(): void;
|
|
20
|
-
/** 绘制线段
|
|
21
|
-
* */
|
|
22
|
-
export declare function drawLine(): Promise<void>;
|
|
23
|
-
export declare function drawMText(): Promise<void>;
|
|
24
|
-
/**绘制多义线段*/
|
|
25
|
-
export declare function drawPolyLine(): Promise<void>;
|
|
26
|
-
export declare function drawPolygon(): Promise<void>;
|
|
27
|
-
export declare function drawArc(): Promise<void>;
|
|
28
|
-
export declare function drawEllipticalArc(): void;
|
|
29
20
|
declare class McObject {
|
|
30
21
|
updateDisplay(modelViewMatrix: number[], projectionMatrix: number[]): void;
|
|
31
22
|
test(): void;
|
|
23
|
+
openWebFile(sFileUrl: string): boolean;
|
|
32
24
|
}
|
|
33
25
|
declare class McApp {
|
|
34
26
|
Init: () => void;
|
|
35
|
-
CreateMxDraw(width: number, height: number, canvasId: string, isWebgl2: boolean): McObject;
|
|
27
|
+
CreateMxDraw(width: number, height: number, canvasId: string, isWebgl2: boolean, mxObjectId: number): McObject;
|
|
36
28
|
}
|
|
37
29
|
export interface Mxdrawassembly {
|
|
38
30
|
MxCpp: typeof McApp;
|
|
39
31
|
McApp: McApp;
|
|
40
32
|
}
|
|
33
|
+
/** 绘制线段
|
|
34
|
+
* */
|
|
35
|
+
export declare function drawLine(): Promise<void>;
|
|
36
|
+
export declare function drawMText(): Promise<void>;
|
|
37
|
+
/**绘制多义线段*/
|
|
38
|
+
export declare function drawPolyLine(): Promise<void>;
|
|
39
|
+
export declare function drawPolygon(): Promise<void>;
|
|
40
|
+
export declare function drawArc(): Promise<void>;
|
|
41
|
+
export declare function drawEllipticalArc(): void;
|
|
41
42
|
export declare let MxCpp: Mxdrawassembly;
|
|
42
43
|
export declare function loadMxdrawassembly(call: (MxCpp: Mxdrawassembly) => void, locateFile?: (wasmURL: string, baseURL: string | URL) => string): void;
|
|
43
44
|
|