mxcad 1.0.21 → 1.0.23
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 +42 -6
- package/dist/mxcad.es.js +3382 -2791
- package/dist/mxcad.umd.js +54 -53
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/package.json +3 -3
package/dist/mxcad.d.ts
CHANGED
|
@@ -25,26 +25,46 @@ export interface MdCmColor {
|
|
|
25
25
|
red: number;
|
|
26
26
|
green: number;
|
|
27
27
|
blue: number;
|
|
28
|
-
|
|
28
|
+
method: number;
|
|
29
29
|
n: number;
|
|
30
30
|
colorIndex: number;
|
|
31
31
|
}
|
|
32
|
+
export interface MdGePoint3d {
|
|
33
|
+
constructor(dX?: number, dY?: number, dZ?: number): any;
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
z: number;
|
|
37
|
+
}
|
|
32
38
|
export declare class MdRxObject {
|
|
33
39
|
protected imp: any;
|
|
34
40
|
constructor(imp?: any);
|
|
35
|
-
|
|
41
|
+
getImp(): any;
|
|
42
|
+
protected initTempObject(imp: any): void;
|
|
36
43
|
get ObjectName(): string;
|
|
37
44
|
get Dxf0(): string;
|
|
38
45
|
getJson(): string;
|
|
39
46
|
setJson(str: string): boolean;
|
|
40
47
|
}
|
|
41
|
-
|
|
48
|
+
declare class MdDbObject extends MdRxObject {
|
|
49
|
+
constructor(imp?: any);
|
|
50
|
+
getObjectID(): number;
|
|
51
|
+
Erase(): boolean;
|
|
52
|
+
Clone(): MdDbObject;
|
|
53
|
+
}
|
|
54
|
+
export declare class MdDbLayerTable extends MdDbObject {
|
|
55
|
+
constructor(imp?: any);
|
|
56
|
+
}
|
|
57
|
+
declare class MdDbLinetypeTable extends MdDbObject {
|
|
42
58
|
constructor(imp?: any);
|
|
43
59
|
}
|
|
44
|
-
declare class
|
|
60
|
+
declare class MdDbTextStyleTable extends MdDbObject {
|
|
45
61
|
constructor(imp?: any);
|
|
46
62
|
}
|
|
47
|
-
declare class
|
|
63
|
+
export declare class MdDbEntity extends MdDbObject {
|
|
64
|
+
constructor(imp?: any);
|
|
65
|
+
moveGripPointsAt(iIndex: number, dXOffset: number, dYOffset: number, dZOffset: number): boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare class MdDbCurve extends MdDbEntity {
|
|
48
68
|
constructor(imp?: any);
|
|
49
69
|
}
|
|
50
70
|
export declare class MdDbDatabase extends MdRxObject {
|
|
@@ -66,8 +86,9 @@ export declare class MdDbDatabase extends MdRxObject {
|
|
|
66
86
|
SetCurrentlyTextStyle(sName: string): void;
|
|
67
87
|
}
|
|
68
88
|
export declare class McObject {
|
|
69
|
-
imp
|
|
89
|
+
private imp;
|
|
70
90
|
constructor(imp: any);
|
|
91
|
+
getImp(): any;
|
|
71
92
|
updateDisplay(modelViewMatrix: number[], projectionMatrix: number[]): void;
|
|
72
93
|
test(): void;
|
|
73
94
|
openWebFile(sFileUrl: string): boolean;
|
|
@@ -126,19 +147,34 @@ export declare class McObject {
|
|
|
126
147
|
DrawPathToSpline(): number;
|
|
127
148
|
PathMakeClosed(): void;
|
|
128
149
|
DrawPathToHatch(dPatternScale: number): number;
|
|
150
|
+
ObjectIdToObject(lIdIndex: number): MdDbObject | null;
|
|
151
|
+
CloneMdDbObject(id: number): MdDbObject;
|
|
152
|
+
ObjectIdToMdObjectImp(lIdIndex: number): any;
|
|
153
|
+
DestroyObject(pObjectImp: MdRxObjectImp): void;
|
|
129
154
|
}
|
|
130
155
|
declare class McAppType {
|
|
131
156
|
private imp;
|
|
132
157
|
init(imp: any): void;
|
|
158
|
+
getImp(): any;
|
|
133
159
|
CreateMxCAD(width: number, height: number, canvasId: string, isWebgl2: boolean, mxObjectId: number): McObject;
|
|
134
160
|
DestroyObject(pObject: MdRxObjectImp): void;
|
|
135
161
|
GetCurrentMxCAD(): McObject;
|
|
136
162
|
mcedRGB2Index(red: number, green: number, blue: number, bAutoNearest?: boolean): number;
|
|
163
|
+
ObjectIdToObject(lIdIndex: number): MdDbObject | null;
|
|
164
|
+
CreateCloneObject(clonobjImp: any): MdDbObject;
|
|
137
165
|
}
|
|
138
166
|
declare class MxCppType {
|
|
139
167
|
mxcadassemblyimp?: any;
|
|
140
168
|
App: McAppType;
|
|
141
169
|
NewMdCmColor(): MdCmColor;
|
|
170
|
+
NewMdGePoint3d(pt?: any): MdGePoint3d;
|
|
171
|
+
}
|
|
172
|
+
export declare class MdDbLine extends MdDbCurve {
|
|
173
|
+
constructor(imp?: any);
|
|
174
|
+
get startPoint(): MdGePoint3d;
|
|
175
|
+
set startPoint(pt: MdGePoint3d);
|
|
176
|
+
get endPoint(): MdGePoint3d;
|
|
177
|
+
set endPoint(pt: MdGePoint3d);
|
|
142
178
|
}
|
|
143
179
|
/** 绘制线段
|
|
144
180
|
* */
|