mxcad 1.0.108 → 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 CHANGED
@@ -603,7 +603,7 @@ export declare class MxCADResbuf extends McRxObject {
603
603
  * @returns 包含 long 类型值和返回值的对象。
604
604
  */
605
605
  AtObject(lItem: number): {
606
- val: McRxObject | undefined;
606
+ val: McDbObject | undefined;
607
607
  ret: boolean;
608
608
  };
609
609
  /**
@@ -2539,7 +2539,8 @@ export declare class McObject {
2539
2539
  private imp;
2540
2540
  private event;
2541
2541
  /** 当前文件名 */
2542
- static currentFileName: string;
2542
+ private currentFileName;
2543
+ private firstTimeOpenFile;
2543
2544
  /**
2544
2545
  * 构造函数
2545
2546
  * @param imp 对象实现
@@ -3248,6 +3249,17 @@ export declare class MxCppType {
3248
3249
  */
3249
3250
  getCurrentDatabase(): McDbDatabase;
3250
3251
  }
3252
+ /**
3253
+ * MxCADUI 模块提供插件程序使用的接口.
3254
+ */
3255
+ export interface MxCADUI {
3256
+ getUploadFileConfig: () => {
3257
+ baseUrl: string;
3258
+ saveDwgUrl: string;
3259
+ mxfilepath: string;
3260
+ saveUrl: string;
3261
+ };
3262
+ }
3251
3263
  export declare let MxCpp: MxCppType;
3252
3264
  export declare function loadMxCADassembly(call?: (MxCpp: MxCppType) => void, locateFile?: (fileName: string, base?: string | URL) => string, wasmBinary?: ArrayBuffer, fontspath?: string, networkFonts?: string[]): Promise<MxCppType>;
3253
3265
  export declare function MxCheckTheBrowser(): {
@@ -3481,6 +3493,7 @@ export declare class MxDraw3d implements MxDraw3dConfig {
3481
3493
  export interface MxDraw3d extends WasmConfig {
3482
3494
  canvas: HTMLCanvasElement;
3483
3495
  _malloc: (len: number) => Buffer;
3496
+ _free: (ptr: Buffer) => void;
3484
3497
  HEAPU8: {
3485
3498
  set(dataArray: Uint8Array, dataBuffer: Buffer): void;
3486
3499
  };
@@ -5343,6 +5356,57 @@ export declare namespace MdGe {
5343
5356
  LightSource_TOLS_POSITIONAL = 2,
5344
5357
  LightSource_TOLS_SPOT = 3
5345
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
+ }
5346
5410
  }
5347
5411
  /**
5348
5412
  * 表示拓扑元素遍历
@@ -6138,6 +6202,12 @@ export declare class MdGeBRep {
6138
6202
  Parameter(V: MdGeVertex, E: MdGeEdge, F?: MdGeFace): number;
6139
6203
  MaxTolerance(theShape: MdGeShape, theSubShape: MdGe.MxShapeEnum): number;
6140
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;
6141
6211
  RemoveAllLights(): void;
6142
6212
  AddLight(theLight: MdGeLight): void;
6143
6213
  EnableAllLights(): void;
@@ -6151,6 +6221,8 @@ export declare class MdGeBRep {
6151
6221
  SetAllLightsOff(): void;
6152
6222
  SetLightOn(theName: string): boolean;
6153
6223
  SetLightOff(theName: string): boolean;
6224
+ SetProjectionType(theProjection: MdGe.MxCameraProjection): void;
6225
+ SetProj(theOrientation: MdGe.MxV3dTypeOfOrientation, theIsYup: boolean): void;
6154
6226
  }
6155
6227
  /**
6156
6228
  * 表示颜色