mxcad 1.0.109 → 1.0.111
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 +68 -0
- package/dist/mxcad.es.js +547 -515
- package/dist/mxcad.umd.js +34 -34
- package/dist/wasm/2d/mxdrawassembly_min.js +635 -634
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +629 -628
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- 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
|
@@ -3143,6 +3143,10 @@ export declare class McObject {
|
|
|
3143
3143
|
* 更新图层的显示
|
|
3144
3144
|
*/
|
|
3145
3145
|
updateLayerDisplayStatus(): void;
|
|
3146
|
+
/**
|
|
3147
|
+
* 初始化用户注册数据.
|
|
3148
|
+
*/
|
|
3149
|
+
initRegist(sRegist: string): void;
|
|
3146
3150
|
}
|
|
3147
3151
|
/**
|
|
3148
3152
|
* McAppType 类,提供了 MxCAD 的一些基本操作。
|
|
@@ -3257,6 +3261,7 @@ export interface MxCADUI {
|
|
|
3257
3261
|
baseUrl: string;
|
|
3258
3262
|
saveDwgUrl: string;
|
|
3259
3263
|
mxfilepath: string;
|
|
3264
|
+
saveUrl: string;
|
|
3260
3265
|
};
|
|
3261
3266
|
}
|
|
3262
3267
|
export declare let MxCpp: MxCppType;
|
|
@@ -3318,7 +3323,10 @@ export interface MxCadConfig {
|
|
|
3318
3323
|
networkFonts?: string[];
|
|
3319
3324
|
/** 打开文件参数设置 */
|
|
3320
3325
|
openParameter?: object;
|
|
3326
|
+
/**鼠标中间键操作设置 */
|
|
3321
3327
|
middlePan?: number | boolean;
|
|
3328
|
+
/**注册数据 */
|
|
3329
|
+
registdata?: string;
|
|
3322
3330
|
}
|
|
3323
3331
|
/** 创建MxCad实例
|
|
3324
3332
|
* @example
|
|
@@ -3492,6 +3500,7 @@ export declare class MxDraw3d implements MxDraw3dConfig {
|
|
|
3492
3500
|
export interface MxDraw3d extends WasmConfig {
|
|
3493
3501
|
canvas: HTMLCanvasElement;
|
|
3494
3502
|
_malloc: (len: number) => Buffer;
|
|
3503
|
+
_free: (ptr: Buffer) => void;
|
|
3495
3504
|
HEAPU8: {
|
|
3496
3505
|
set(dataArray: Uint8Array, dataBuffer: Buffer): void;
|
|
3497
3506
|
};
|
|
@@ -5354,6 +5363,57 @@ export declare namespace MdGe {
|
|
|
5354
5363
|
LightSource_TOLS_POSITIONAL = 2,
|
|
5355
5364
|
LightSource_TOLS_SPOT = 3
|
|
5356
5365
|
}
|
|
5366
|
+
enum MxCameraProjection {
|
|
5367
|
+
CProjection_Orthographic = 0,
|
|
5368
|
+
CProjection_Perspective = 1,
|
|
5369
|
+
CProjection_Stereo = 2,
|
|
5370
|
+
CProjection_MonoLeftEye = 3,
|
|
5371
|
+
CProjection_MonoRightEye = 4
|
|
5372
|
+
}
|
|
5373
|
+
enum MxV3dTypeOfOrientation {
|
|
5374
|
+
Orientation_Xpos = 0,
|
|
5375
|
+
Orientation_Ypos = 1,
|
|
5376
|
+
Orientation_Zpos = 2,
|
|
5377
|
+
Orientation_Xneg = 3,
|
|
5378
|
+
Orientation_Yneg = 4,
|
|
5379
|
+
Orientation_Zneg = 5,
|
|
5380
|
+
Orientation_XposYpos = 6,
|
|
5381
|
+
Orientation_XposZpos = 7,
|
|
5382
|
+
Orientation_YposZpos = 8,
|
|
5383
|
+
Orientation_XnegYneg = 9,
|
|
5384
|
+
Orientation_XnegYpos = 10,
|
|
5385
|
+
Orientation_XnegZneg = 11,
|
|
5386
|
+
Orientation_XnegZpos = 12,
|
|
5387
|
+
Orientation_YnegZneg = 13,
|
|
5388
|
+
Orientation_YnegZpos = 14,
|
|
5389
|
+
Orientation_XposYneg = 15,
|
|
5390
|
+
Orientation_XposZneg = 16,
|
|
5391
|
+
Orientation_YposZneg = 17,
|
|
5392
|
+
Orientation_XposYposZpos = 18,
|
|
5393
|
+
Orientation_XposYnegZpos = 19,
|
|
5394
|
+
Orientation_XposYposZneg = 20,
|
|
5395
|
+
Orientation_XnegYposZpos = 21,
|
|
5396
|
+
Orientation_XposYnegZneg = 22,
|
|
5397
|
+
Orientation_XnegYposZneg = 23,
|
|
5398
|
+
Orientation_XnegYnegZpos = 24,
|
|
5399
|
+
Orientation_XnegYnegZneg = 25,
|
|
5400
|
+
Orientation_TypeOfOrientation_Zup_AxoLeft = 24,
|
|
5401
|
+
Orientation_TypeOfOrientation_Zup_AxoRight = 19,
|
|
5402
|
+
Orientation_TypeOfOrientation_Zup_Front = 4,
|
|
5403
|
+
Orientation_TypeOfOrientation_Zup_Back = 1,
|
|
5404
|
+
Orientation_TypeOfOrientation_Zup_Top = 2,
|
|
5405
|
+
Orientation_TypeOfOrientation_Zup_Bottom = 5,
|
|
5406
|
+
Orientation_TypeOfOrientation_Zup_Left = 3,
|
|
5407
|
+
Orientation_TypeOfOrientation_Zup_Right = 0,
|
|
5408
|
+
Orientation_TypeOfOrientation_Yup_AxoLeft = 21,
|
|
5409
|
+
Orientation_TypeOfOrientation_Yup_AxoRight = 18,
|
|
5410
|
+
Orientation_TypeOfOrientation_Yup_Front = 2,
|
|
5411
|
+
Orientation_TypeOfOrientation_Yup_Back = 5,
|
|
5412
|
+
Orientation_TypeOfOrientation_Yup_Top = 1,
|
|
5413
|
+
Orientation_TypeOfOrientation_Yup_Bottom = 4,
|
|
5414
|
+
Orientation_TypeOfOrientation_Yup_Left = 0,
|
|
5415
|
+
Orientation_TypeOfOrientation_Yup_Right = 3
|
|
5416
|
+
}
|
|
5357
5417
|
}
|
|
5358
5418
|
/**
|
|
5359
5419
|
* 表示拓扑元素遍历
|
|
@@ -6149,6 +6209,12 @@ export declare class MdGeBRep {
|
|
|
6149
6209
|
Parameter(V: MdGeVertex, E: MdGeEdge, F?: MdGeFace): number;
|
|
6150
6210
|
MaxTolerance(theShape: MdGeShape, theSubShape: MdGe.MxShapeEnum): number;
|
|
6151
6211
|
openBrepFromUrl(theModelPath: string): MdGeShape;
|
|
6212
|
+
openStepFromUrl(theModelPath: string): MdGeShape;
|
|
6213
|
+
openStlFromUrl(theModelPath: string): MdGeShape;
|
|
6214
|
+
openIgesFromUrl(theModelPath: string): MdGeShape;
|
|
6215
|
+
openObjFromUrl(theModelPath: string): MdGeShape;
|
|
6216
|
+
openGltfFromUrl(theModelPath: string): MdGeShape;
|
|
6217
|
+
openVrmlFromUrl(theModelPath: string): MdGeShape;
|
|
6152
6218
|
RemoveAllLights(): void;
|
|
6153
6219
|
AddLight(theLight: MdGeLight): void;
|
|
6154
6220
|
EnableAllLights(): void;
|
|
@@ -6162,6 +6228,8 @@ export declare class MdGeBRep {
|
|
|
6162
6228
|
SetAllLightsOff(): void;
|
|
6163
6229
|
SetLightOn(theName: string): boolean;
|
|
6164
6230
|
SetLightOff(theName: string): boolean;
|
|
6231
|
+
SetProjectionType(theProjection: MdGe.MxCameraProjection): void;
|
|
6232
|
+
SetProj(theOrientation: MdGe.MxV3dTypeOfOrientation, theIsYup: boolean): void;
|
|
6165
6233
|
}
|
|
6166
6234
|
/**
|
|
6167
6235
|
* 表示颜色
|