mxcad 1.0.17 → 1.0.19
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 +57 -1
- package/dist/mxcad.es.js +2347 -1872
- package/dist/mxcad.umd.js +52 -51
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -19,6 +19,16 @@ export declare function drawText(): Promise<void>;
|
|
|
19
19
|
export declare function drawCircle(): void;
|
|
20
20
|
declare class MdRxObjectImp {
|
|
21
21
|
}
|
|
22
|
+
export interface MdCmColor {
|
|
23
|
+
setColorIndex(colorIndex: number): void;
|
|
24
|
+
setRGB(red: number, green: number, blue: number): void;
|
|
25
|
+
red: number;
|
|
26
|
+
green: number;
|
|
27
|
+
blue: number;
|
|
28
|
+
mehtod: number;
|
|
29
|
+
n: number;
|
|
30
|
+
colorIndex: number;
|
|
31
|
+
}
|
|
22
32
|
export declare class MdRxObject {
|
|
23
33
|
protected imp: any;
|
|
24
34
|
constructor(imp?: any);
|
|
@@ -31,9 +41,29 @@ export declare class MdRxObject {
|
|
|
31
41
|
export declare class MdDbLayerTable extends MdRxObject {
|
|
32
42
|
constructor(imp?: any);
|
|
33
43
|
}
|
|
44
|
+
declare class MdDbLinetypeTable extends MdRxObject {
|
|
45
|
+
constructor(imp?: any);
|
|
46
|
+
}
|
|
47
|
+
declare class MdDbTextStyleTable extends MdRxObject {
|
|
48
|
+
constructor(imp?: any);
|
|
49
|
+
}
|
|
34
50
|
export declare class MdDbDatabase extends MdRxObject {
|
|
35
51
|
constructor(imp?: any);
|
|
36
52
|
GetLayerTable(): MdDbLayerTable;
|
|
53
|
+
GetLinetypeTable(): MdDbLinetypeTable;
|
|
54
|
+
GetTextStyleTable(): MdDbTextStyleTable;
|
|
55
|
+
GetCurrentlyLineTypeScale(): number;
|
|
56
|
+
SetCurrentlyLineTypeScale(val: number): number;
|
|
57
|
+
GetCurrentlyLineTypeName(): string;
|
|
58
|
+
SetCurrentlyLineTypeName(sName: string): void;
|
|
59
|
+
GetCurrentlyLayerName(): string;
|
|
60
|
+
SetCurrentlyLayerName(sName: string): void;
|
|
61
|
+
GetCurrentlyTrueColor(): MdCmColor;
|
|
62
|
+
SetCurrentlyTrueColor(color: MdCmColor): any;
|
|
63
|
+
GetCurrentlyColorIndex(): number;
|
|
64
|
+
SetCurrentlyColorIndex(colorIndex: number): any;
|
|
65
|
+
GetCurrentlyTextStyleName(): string;
|
|
66
|
+
SetCurrentlyTextStyle(sName: string): void;
|
|
37
67
|
}
|
|
38
68
|
export declare class McObject {
|
|
39
69
|
imp: any;
|
|
@@ -42,16 +72,42 @@ export declare class McObject {
|
|
|
42
72
|
test(): void;
|
|
43
73
|
openWebFile(sFileUrl: string): boolean;
|
|
44
74
|
GetDatabase(): MdDbDatabase;
|
|
75
|
+
GetSysVarString(varName: string): string;
|
|
76
|
+
SetSysVarString(varName: string, val: string): any;
|
|
77
|
+
GetSysVarDouble(varName: string): number;
|
|
78
|
+
SetSysVarDouble(varName: string, val: number): boolean;
|
|
79
|
+
GetSysVarLong(varName: string): number;
|
|
80
|
+
SetSysVarLong(varName: string, val: number): boolean;
|
|
81
|
+
get DrawColor(): MdCmColor;
|
|
82
|
+
set DrawColor(val: MdCmColor);
|
|
83
|
+
get DrawLineWeight(): number;
|
|
84
|
+
set DrawLineWeight(val: number);
|
|
85
|
+
get DrawLineTypeScale(): number;
|
|
86
|
+
set DrawLineTypeScale(val: number);
|
|
87
|
+
get DrawLinetype(): string;
|
|
88
|
+
set DrawLinetype(val: string);
|
|
89
|
+
get DrawTextStyle(): string;
|
|
90
|
+
set DrawTextStyle(val: string);
|
|
91
|
+
get DrawLayer(): string;
|
|
92
|
+
set DrawLayer(val: string);
|
|
93
|
+
AddLayer(pszName: string): void;
|
|
94
|
+
AddTextStyle(pszName: string, pszFileName: string, pszBigFontFileName: string, dXScale: number): void;
|
|
95
|
+
AddLinetype(pszName: string, pszLineDefine: string): void;
|
|
96
|
+
AddLinetypeEx(pszName: string, pszLineDefine: string, pszTextStyle: string): void;
|
|
97
|
+
DrawLine(dX1: number, dY1: number, dZ1: number, dX2: number, dY2: number, dZ2: number): number;
|
|
45
98
|
}
|
|
46
99
|
declare class McAppType {
|
|
47
100
|
private imp;
|
|
48
101
|
init(imp: any): void;
|
|
49
|
-
|
|
102
|
+
CreateMxCAD(width: number, height: number, canvasId: string, isWebgl2: boolean, mxObjectId: number): McObject;
|
|
50
103
|
DestroyObject(pObject: MdRxObjectImp): void;
|
|
104
|
+
GetCurrentMxCAD(): McObject;
|
|
105
|
+
mcedRGB2Index(red: number, green: number, blue: number, bAutoNearest?: boolean): number;
|
|
51
106
|
}
|
|
52
107
|
declare class MxCppType {
|
|
53
108
|
mxcadassemblyimp?: any;
|
|
54
109
|
App: McAppType;
|
|
110
|
+
NewMdCmColor(): MdCmColor;
|
|
55
111
|
}
|
|
56
112
|
/** 绘制线段
|
|
57
113
|
* */
|