iflow-engine-base 3.7.5 → 3.7.7

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/index.d.ts CHANGED
@@ -974,8 +974,9 @@ declare class DrawingPin {
974
974
  get(): IDrawingPinState;
975
975
  /**
976
976
  * 还原视点状态(相机 + 剖切 + 测量 + 批注)
977
+ * 还原完成后进入批注流程,用户点击"确定"时通过回调返回最新视点状态
977
978
  */
978
- restore(state: IDrawingPinState, mode?: FabricDrawMode): Promise<void>;
979
+ restore(state: IDrawingPinState, mode?: FabricDrawMode, callback?: (state: IDrawingPinState | null) => void): Promise<void>;
979
980
  /**
980
981
  * 创建视点(进入批注流程)
981
982
  * 1. 启用批注功能
@@ -1983,6 +1984,7 @@ declare class FabricDraw {
1983
1984
  private readonly toolbar;
1984
1985
  private isActive;
1985
1986
  private isVisible;
1987
+ private isViewLocked;
1986
1988
  private isDistanceMeasureMode;
1987
1989
  private isMeasurePanelExpanded;
1988
1990
  private drawType;
@@ -2099,6 +2101,7 @@ declare class FabricDraw {
2099
2101
  private disActiveMeasureTools;
2100
2102
  private activeMeasureTool;
2101
2103
  private updateOverlayPointerEvents;
2104
+ private toggleViewLock;
2102
2105
  private handleCancelClick;
2103
2106
  private handleCloseClick;
2104
2107
  private handleConfirmClick;
@@ -2500,6 +2503,7 @@ declare class InteractionModule {
2500
2503
  private cancelBoxSelection;
2501
2504
  private clearHoverTimeout;
2502
2505
  private clearHoverFeedback;
2506
+ private suppressClickForCurrentTick;
2503
2507
  private hasSelectionBox;
2504
2508
  private getSelectionRect;
2505
2509
  private isContainMode;
@@ -2793,8 +2797,15 @@ declare interface LevelLocationResult {
2793
2797
 
2794
2798
  declare class LightModule {
2795
2799
  private engine;
2800
+ private lastShadowHalfSize;
2801
+ private lastShadowFar;
2796
2802
  constructor(engine: any);
2797
2803
  init(): void;
2804
+ updateShadowCameraRange(camera: THREE.Camera | null): void;
2805
+ private getShadowDirectionalLight;
2806
+ private getSceneBoundingBox;
2807
+ private getCameraHalfExtent;
2808
+ private resolveCameraTarget;
2798
2809
  }
2799
2810
 
2800
2811
  /**
@@ -2953,6 +2964,7 @@ declare class Measure {
2953
2964
  constructor(engine: any);
2954
2965
  active(): void;
2955
2966
  disActive(): void;
2967
+ quitDraw(): void;
2956
2968
  clearAllPoints(): void;
2957
2969
  clearAll(): void;
2958
2970
  saveSetting(setting: any): void;
@@ -3023,8 +3035,14 @@ declare class MiniMap {
3023
3035
  private centerX;
3024
3036
  private centerZ;
3025
3037
  private dragMode;
3038
+ private readonly moveHandleRadius;
3039
+ private readonly rotateHandleRadius;
3026
3040
  private lastMouseX;
3027
3041
  private lastMouseY;
3042
+ private dragPointerOffsetX;
3043
+ private dragPointerOffsetY;
3044
+ private centerInitialized;
3045
+ private isMouseInsideMiniMap;
3028
3046
  private readonly loadingCompletedEventName;
3029
3047
  private readonly onLoadingCompleted;
3030
3048
  constructor(engine: any);
@@ -3046,13 +3064,17 @@ declare class MiniMap {
3046
3064
  private buildLevelSignature;
3047
3065
  private worldToPixel;
3048
3066
  private pixelToWorld;
3067
+ private isRoamingActive;
3049
3068
  private setupEvents;
3050
3069
  private readonly onWheel;
3051
3070
  private readonly onMouseDown;
3052
3071
  private readonly onMouseMove;
3053
3072
  private readonly onMouseUp;
3054
- private handleTeleport;
3055
- private handleRotate;
3073
+ private readonly onMouseEnter;
3074
+ private readonly onMouseLeave;
3075
+ private handleMoveControlByDrag;
3076
+ private handlePanMapByDrag;
3077
+ private handleRotateByDrag;
3056
3078
  private drawOverlay;
3057
3079
  show(): void;
3058
3080
  hide(): void;
@@ -3132,6 +3154,7 @@ declare class ModelToolModule {
3132
3154
  restoreAllModelsColor(): void;
3133
3155
  translucentModel(models: any[]): void;
3134
3156
  unTranslucentModel(): void;
3157
+ hideAllModels(): void;
3135
3158
  showAllModels(): void;
3136
3159
  batchSelectSameLevelTypeModel(models: any[]): void;
3137
3160
  batchSelectSameLevelModel(models: any[]): void;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iflow-engine-base",
3
- "version": "3.7.5",
3
+ "version": "3.7.7",
4
4
  "description": "BIM Engine SDK for Vue2, Vue3, React and HTML",
5
5
  "main": "./dist/bim-engine-sdk.umd.js",
6
6
  "module": "./dist/bim-engine-sdk.es.js",