mxcad 1.0.109 → 1.0.110
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 +61 -0
- package/dist/mxcad.es.js +414 -386
- package/dist/mxcad.umd.js +34 -34
- package/dist/wasm/3d/mxdraw3d_min.js +2378 -1952
- package/dist/wasm/3d/mxdraw3d_min.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -3257,6 +3257,7 @@ export interface MxCADUI {
|
|
|
3257
3257
|
baseUrl: string;
|
|
3258
3258
|
saveDwgUrl: string;
|
|
3259
3259
|
mxfilepath: string;
|
|
3260
|
+
saveUrl: string;
|
|
3260
3261
|
};
|
|
3261
3262
|
}
|
|
3262
3263
|
export declare let MxCpp: MxCppType;
|
|
@@ -3492,6 +3493,7 @@ export declare class MxDraw3d implements MxDraw3dConfig {
|
|
|
3492
3493
|
export interface MxDraw3d extends WasmConfig {
|
|
3493
3494
|
canvas: HTMLCanvasElement;
|
|
3494
3495
|
_malloc: (len: number) => Buffer;
|
|
3496
|
+
_free: (ptr: Buffer) => void;
|
|
3495
3497
|
HEAPU8: {
|
|
3496
3498
|
set(dataArray: Uint8Array, dataBuffer: Buffer): void;
|
|
3497
3499
|
};
|
|
@@ -5354,6 +5356,57 @@ export declare namespace MdGe {
|
|
|
5354
5356
|
LightSource_TOLS_POSITIONAL = 2,
|
|
5355
5357
|
LightSource_TOLS_SPOT = 3
|
|
5356
5358
|
}
|
|
5359
|
+
enum MxCameraProjection {
|
|
5360
|
+
CProjection_Orthographic = 0,
|
|
5361
|
+
CProjection_Perspective = 1,
|
|
5362
|
+
CProjection_Stereo = 2,
|
|
5363
|
+
CProjection_MonoLeftEye = 3,
|
|
5364
|
+
CProjection_MonoRightEye = 4
|
|
5365
|
+
}
|
|
5366
|
+
enum MxV3dTypeOfOrientation {
|
|
5367
|
+
Orientation_Xpos = 0,
|
|
5368
|
+
Orientation_Ypos = 1,
|
|
5369
|
+
Orientation_Zpos = 2,
|
|
5370
|
+
Orientation_Xneg = 3,
|
|
5371
|
+
Orientation_Yneg = 4,
|
|
5372
|
+
Orientation_Zneg = 5,
|
|
5373
|
+
Orientation_XposYpos = 6,
|
|
5374
|
+
Orientation_XposZpos = 7,
|
|
5375
|
+
Orientation_YposZpos = 8,
|
|
5376
|
+
Orientation_XnegYneg = 9,
|
|
5377
|
+
Orientation_XnegYpos = 10,
|
|
5378
|
+
Orientation_XnegZneg = 11,
|
|
5379
|
+
Orientation_XnegZpos = 12,
|
|
5380
|
+
Orientation_YnegZneg = 13,
|
|
5381
|
+
Orientation_YnegZpos = 14,
|
|
5382
|
+
Orientation_XposYneg = 15,
|
|
5383
|
+
Orientation_XposZneg = 16,
|
|
5384
|
+
Orientation_YposZneg = 17,
|
|
5385
|
+
Orientation_XposYposZpos = 18,
|
|
5386
|
+
Orientation_XposYnegZpos = 19,
|
|
5387
|
+
Orientation_XposYposZneg = 20,
|
|
5388
|
+
Orientation_XnegYposZpos = 21,
|
|
5389
|
+
Orientation_XposYnegZneg = 22,
|
|
5390
|
+
Orientation_XnegYposZneg = 23,
|
|
5391
|
+
Orientation_XnegYnegZpos = 24,
|
|
5392
|
+
Orientation_XnegYnegZneg = 25,
|
|
5393
|
+
Orientation_TypeOfOrientation_Zup_AxoLeft = 24,
|
|
5394
|
+
Orientation_TypeOfOrientation_Zup_AxoRight = 19,
|
|
5395
|
+
Orientation_TypeOfOrientation_Zup_Front = 4,
|
|
5396
|
+
Orientation_TypeOfOrientation_Zup_Back = 1,
|
|
5397
|
+
Orientation_TypeOfOrientation_Zup_Top = 2,
|
|
5398
|
+
Orientation_TypeOfOrientation_Zup_Bottom = 5,
|
|
5399
|
+
Orientation_TypeOfOrientation_Zup_Left = 3,
|
|
5400
|
+
Orientation_TypeOfOrientation_Zup_Right = 0,
|
|
5401
|
+
Orientation_TypeOfOrientation_Yup_AxoLeft = 21,
|
|
5402
|
+
Orientation_TypeOfOrientation_Yup_AxoRight = 18,
|
|
5403
|
+
Orientation_TypeOfOrientation_Yup_Front = 2,
|
|
5404
|
+
Orientation_TypeOfOrientation_Yup_Back = 5,
|
|
5405
|
+
Orientation_TypeOfOrientation_Yup_Top = 1,
|
|
5406
|
+
Orientation_TypeOfOrientation_Yup_Bottom = 4,
|
|
5407
|
+
Orientation_TypeOfOrientation_Yup_Left = 0,
|
|
5408
|
+
Orientation_TypeOfOrientation_Yup_Right = 3
|
|
5409
|
+
}
|
|
5357
5410
|
}
|
|
5358
5411
|
/**
|
|
5359
5412
|
* 表示拓扑元素遍历
|
|
@@ -6149,6 +6202,12 @@ export declare class MdGeBRep {
|
|
|
6149
6202
|
Parameter(V: MdGeVertex, E: MdGeEdge, F?: MdGeFace): number;
|
|
6150
6203
|
MaxTolerance(theShape: MdGeShape, theSubShape: MdGe.MxShapeEnum): number;
|
|
6151
6204
|
openBrepFromUrl(theModelPath: string): MdGeShape;
|
|
6205
|
+
openStepFromUrl(theModelPath: string): MdGeShape;
|
|
6206
|
+
openStlFromUrl(theModelPath: string): MdGeShape;
|
|
6207
|
+
openIgesFromUrl(theModelPath: string): MdGeShape;
|
|
6208
|
+
openObjFromUrl(theModelPath: string): MdGeShape;
|
|
6209
|
+
openGltfFromUrl(theModelPath: string): MdGeShape;
|
|
6210
|
+
openVrmlFromUrl(theModelPath: string): MdGeShape;
|
|
6152
6211
|
RemoveAllLights(): void;
|
|
6153
6212
|
AddLight(theLight: MdGeLight): void;
|
|
6154
6213
|
EnableAllLights(): void;
|
|
@@ -6162,6 +6221,8 @@ export declare class MdGeBRep {
|
|
|
6162
6221
|
SetAllLightsOff(): void;
|
|
6163
6222
|
SetLightOn(theName: string): boolean;
|
|
6164
6223
|
SetLightOff(theName: string): boolean;
|
|
6224
|
+
SetProjectionType(theProjection: MdGe.MxCameraProjection): void;
|
|
6225
|
+
SetProj(theOrientation: MdGe.MxV3dTypeOfOrientation, theIsYup: boolean): void;
|
|
6165
6226
|
}
|
|
6166
6227
|
/**
|
|
6167
6228
|
* 表示颜色
|