iflow-engine-base 3.10.8 → 3.11.1

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.
@@ -43925,7 +43925,8 @@ export {
43925
43925
  oo as b5,
43926
43926
  So as b6,
43927
43927
  lB as b7,
43928
- oB as b8,
43928
+ p0 as b8,
43929
+ oB as b9,
43929
43930
  Yh as c,
43930
43931
  dr as d,
43931
43932
  Wh as e,
package/dist/index.d.ts CHANGED
@@ -41,6 +41,10 @@ declare class Annotation3d {
41
41
  add(config: Annotation3dData): string;
42
42
  /** 批量新增标记。 */
43
43
  addMany(configs: Annotation3dData[]): string[];
44
+ /**
45
+ * 进入模型选点状态,点击模型后返回用于创建标记的世界坐标;取消或不可用时返回 null。
46
+ */
47
+ pickPoint(): Promise<AnnotationPoint3d | null>;
44
48
  /** 更新标记时直接重建几何和窗体,保持内部状态简单且可预测。 */
45
49
  update(id: string, patch: Partial<Annotation3dData>): boolean;
46
50
  /** 删除单个标记。 */
@@ -1142,6 +1146,7 @@ declare class ControlModule {
1142
1146
  private bindMovePad;
1143
1147
  private rotateActiveRoamView;
1144
1148
  private updateMobileLookRotation;
1149
+ private updateMobileVerticalControlsVisibility;
1145
1150
  private ensureMobileRoamControls;
1146
1151
  private removeMobileRoamControls;
1147
1152
  update(): void;
@@ -1415,7 +1420,7 @@ declare class DrawingPin {
1415
1420
  * 还原视点状态(相机 + 剖切 + 测量 + 批注)
1416
1421
  * 还原完成后进入批注流程,用户点击"确定"时通过回调返回最新视点状态
1417
1422
  */
1418
- restore(state: IDrawingPinState, mode?: FabricDrawMode, callback?: (state: IDrawingPinState | null) => void): Promise<void>;
1423
+ restore(state: IDrawingPinState, mode?: FabricDrawMode, callback?: (state: IDrawingPinState | null) => void, showToolbar?: boolean): Promise<void>;
1419
1424
  /**
1420
1425
  * 创建视点(进入批注流程)
1421
1426
  * 1. 启用批注功能
@@ -1604,6 +1609,8 @@ declare interface Engine2dOptions {
1604
1609
  fontFile?: File;
1605
1610
  /** 覆盖 SDK 内置资源根路径,默认使用固定 CDN。 */
1606
1611
  assetBaseUrl?: string;
1612
+ assetFile?: File;
1613
+ assetFiles?: File[];
1607
1614
  /** 鼠标样式:full-crosshair 为全屏十字架,short-crosshair 为短十字架。 */
1608
1615
  cursorStyle?: CadCursorStyle2d;
1609
1616
  /** 加载进度条样式:1 为居中卡片,2 为底部进度条。 */
@@ -1624,6 +1631,8 @@ declare interface Engine720Options {
1624
1631
  containerId: string;
1625
1632
  /** 覆盖 SDK 内置资源根路径,默认使用固定 CDN。 */
1626
1633
  assetBaseUrl?: string;
1634
+ assetFile?: File;
1635
+ assetFiles?: File[];
1627
1636
  /** 初始视野角度(默认 75) */
1628
1637
  fov?: number;
1629
1638
  /** 是否启用缩放(默认 true) */
@@ -1654,6 +1663,8 @@ declare interface EngineGaussianOptions {
1654
1663
  containerId: string;
1655
1664
  /** 覆盖 SDK 内置资源根路径,默认使用固定 CDN。 */
1656
1665
  assetBaseUrl?: string;
1666
+ assetFile?: File;
1667
+ assetFiles?: File[];
1657
1668
  cameraUp?: GaussianVector3;
1658
1669
  initialCameraPosition?: GaussianVector3;
1659
1670
  initialCameraLookAt?: GaussianVector3;
@@ -1674,6 +1685,8 @@ declare interface EngineGaussianOptions {
1674
1685
  export declare interface EngineGISOptions extends GISContainerOptions {
1675
1686
  /** 覆盖 SDK 内置资源根路径,默认使用固定 CDN。 */
1676
1687
  assetBaseUrl?: string;
1688
+ assetFile?: File;
1689
+ assetFiles?: File[];
1677
1690
  provider?: 'cesium';
1678
1691
  accessToken?: string;
1679
1692
  cesiumBaseUrl?: string;
@@ -5048,7 +5061,8 @@ declare class MiniMap {
5048
5061
  private isVisible;
5049
5062
  private readonly defaultMapSize;
5050
5063
  private readonly minMapSize;
5051
- private currentMapSize;
5064
+ private currentMapWidth;
5065
+ private currentMapHeight;
5052
5066
  private isExpanded;
5053
5067
  private readonly levelJumpEyeOffset;
5054
5068
  private currentHalfSize;
@@ -5089,6 +5103,8 @@ declare class MiniMap {
5089
5103
  private readonly onResizeHandleMouseDown;
5090
5104
  private setExpanded;
5091
5105
  private resizeMap;
5106
+ setSize(width: number, height: number): void;
5107
+ private applyMapSize;
5092
5108
  private clampMapSize;
5093
5109
  private resizeOverlayCanvas;
5094
5110
  private createSelectElement;
@@ -5106,6 +5122,7 @@ declare class MiniMap {
5106
5122
  private buildLevelSignature;
5107
5123
  private worldToPixel;
5108
5124
  private pixelToWorld;
5125
+ private getHorizontalHalfSize;
5109
5126
  private isRoamingActive;
5110
5127
  private getThirdPersonControl;
5111
5128
  private getActiveControlPosition;
@@ -5362,6 +5379,7 @@ declare class ModelToolModule {
5362
5379
  private appendUniqueIds;
5363
5380
  private restoreSplitModelsOnIdle;
5364
5381
  getSceneModel(index: number): any;
5382
+ getModelCenter(models?: any[]): THREE.Vector3 | null;
5365
5383
  updateMaterial(): void;
5366
5384
  private syncHighlightModelEdges;
5367
5385
  private getUniqueHighlightModels;
@@ -6676,6 +6694,18 @@ declare interface SegmentCalibrationOptions {
6676
6694
  */
6677
6695
  export declare function setSdkAssetBaseUrl(baseUrl?: string | null): void;
6678
6696
 
6697
+ /**
6698
+ * 注册单个 SDK 静态资源文件。
6699
+ * 常用于直接传入一个静态资源 zip 包。
6700
+ */
6701
+ export declare function setSdkAssetFile(file?: File | null): Promise<void>;
6702
+
6703
+ /**
6704
+ * 注册 SDK 静态资源文件列表。
6705
+ * 支持直接传解压后的目录文件列表,也支持传入 zip 文件后由 SDK 自动解压建立映射。
6706
+ */
6707
+ export declare function setSdkAssetFiles(files?: File[] | FileList | null): Promise<void>;
6708
+
6679
6709
  /** 寮曟搸璁剧疆绠$悊鍣紝璐熻矗娓叉煋銆佹樉绀哄拰鐜鍙傛暟鐨勭粺涓€绠$悊 */
6680
6710
  declare class Setting {
6681
6711
  /** 寮曟搸瀹炰緥寮曠敤 */
@@ -7006,6 +7036,7 @@ declare class ViewCube {
7006
7036
  cameraGoHome(time: number): void;
7007
7037
  zoomToModel(box: any): void;
7008
7038
  zoomToModels(m: any): void;
7039
+ flyToModels(ms?: any[]): void;
7009
7040
  saveMainViewPort(): any;
7010
7041
  setMainViewPort(data: any): void;
7011
7042
  goToMainPort(): void;