iflow-engine-base 3.12.5 → 3.12.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.
@@ -1,5 +1,5 @@
1
1
  import { n as R, ay as S, h as E, w as b, j as x, H as A, E as k, Q as F, p as I, W as y, a as v, T as f, i as P, a3 as m, V as p, b as D } from "./three-vendor-BL-jpeTM.js";
2
- import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-83EeZHe_.js";
2
+ import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-CN4hyUTd.js";
3
3
  class V {
4
4
  scene;
5
5
  panoramaSphere = null;
@@ -1,5 +1,5 @@
1
1
  import { n as Js, C as st, H as Zs, V as v, b as N, O as $s, W as en, M as J, Q as ge, a as tn, f as qt, j as be, B as sn, h as ft, r as it, aP as ze, aQ as Pt, aR as at, a2 as Bt, aS as ms, aT as yn, aU as xn, aV as In, aW as Tn, a1 as wn, aX as En, aY as Bn, l as lt, aZ as As, a_ as gs, a$ as vn, k as Cs, b0 as Fn, t as Je, ay as Ss, D as Kt, ap as bn, w as ys, q as Dn, Y as We, b1 as qe, aF as xs, s as Mn, b2 as Rn, ag as Pn, b3 as On, b4 as nn, aH as Is, b5 as kn, am as Ln, b6 as Ne, b7 as mt, p as Hn } from "./three-vendor-BL-jpeTM.js";
2
- import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-83EeZHe_.js";
2
+ import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-CN4hyUTd.js";
3
3
  var De = /* @__PURE__ */ ((m) => (m.LoadStart = "gaussian-load-start", m.LoadProgress = "gaussian-load-progress", m.Loaded = "gaussian-loaded", m.LoadError = "gaussian-load-error", m.SceneRemoved = "gaussian-scene-removed", m.FpsUpdated = "gaussian-fps-updated", m.ViewChanged = "gaussian-view-changed", m))(De || {});
4
4
  class Nn {
5
5
  listeners = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
- import { g as xX, J as KN } from "./sdk-vendor-CvevZpJO.js";
1
+ import { g as xX, J as KN } from "./sdk-vendor-DH77myYg.js";
2
2
  import { b8 as Ii, b9 as TX } from "./three-vendor-BL-jpeTM.js";
3
- import { l as vX, L as EX, E as CX, d as JN, e as wX, c as $C, a as SX, f as IX, r as DX, h as XC } from "./sdk-runtime-83EeZHe_.js";
3
+ import { l as vX, L as EX, E as CX, d as JN, e as wX, c as $C, a as SX, f as IX, r as DX, h as XC } from "./sdk-runtime-CN4hyUTd.js";
4
4
  var QN = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function Fb(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -2,7 +2,7 @@ import { ba as w } from "./three-vendor-BL-jpeTM.js";
2
2
  const S = "__BIM_ENGINE_SDK_ASSET_BASE__", b = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", g = "__BIM_ENGINE_SDK_ASSET_FILE_URLS__", A = "__BIM_ENGINE_SDK_ASSET_FILE_SESSION__", j = "https://unpkg.com/iflow-engine-base@3.9.20/dist/", L = "https://__bim_engine_sdk_asset__/", M = ["assets/", "fonts/", "draco/", "basis/", "texture/", "prompt/"];
3
3
  let _ = null;
4
4
  async function R() {
5
- return _ || (_ = import("./sdk-vendor-CvevZpJO.js").then((t) => t.j).then((t) => t.default ?? t)), _;
5
+ return _ || (_ = import("./sdk-vendor-DH77myYg.js").then((t) => t.j).then((t) => t.default ?? t)), _;
6
6
  }
7
7
  function a() {
8
8
  return typeof globalThis < "u" ? globalThis : null;
@@ -1,5 +1,5 @@
1
1
  import { R as ve, b as B, V as ce, H as Te, bb as Ce } from "./three-vendor-BL-jpeTM.js";
2
- import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-CvevZpJO.js";
2
+ import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-DH77myYg.js";
3
3
  class It {
4
4
  /**
5
5
  * 构造函数
@@ -1056,7 +1056,7 @@ class jt {
1056
1056
  e.stopImmediatePropagation();
1057
1057
  };
1058
1058
  }
1059
- const ot = "3.12.5", st = {
1059
+ const ot = "3.12.7", st = {
1060
1060
  version: ot
1061
1061
  }, V = st.version;
1062
1062
  function se() {
@@ -1,4 +1,4 @@
1
- import { c as ja, g as X0, a as f1 } from "./engine-gis-CXVisOHM.js";
1
+ import { c as ja, g as X0, a as f1 } from "./engine-gis-CxTiU6c4.js";
2
2
  function d1(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const i = e[r];
package/dist/index.d.ts CHANGED
@@ -719,7 +719,7 @@ declare class CameraModule {
719
719
  x: number;
720
720
  y: number;
721
721
  z: number;
722
- }, stableUp?: any): void;
722
+ }, stableUp?: any, distanceOverride?: number | null): void;
723
723
  }
724
724
 
725
725
  declare class CameraModule2d {
@@ -2505,6 +2505,7 @@ declare class EngineKernelV2 {
2505
2505
  search: SearchManager3d;
2506
2506
  modelMapperBatch: ModelMapperBatch;
2507
2507
  modelEdge: ModelEdge;
2508
+ nodeBox: NodeBox;
2508
2509
  pathRoaming: PathRoaming;
2509
2510
  hoverHighLight: HoverHighLight;
2510
2511
  minMap: MiniMap;
@@ -4999,6 +5000,8 @@ declare type LoadingStyle2d = 1 | 2;
4999
5000
  export declare interface LoadModelOptions {
5000
5001
  /** URL 是否为未加密的轻量化整包 ZIP;开启后会先解压并转成本地虚拟 URL 再加载 */
5001
5002
  isZipPackage?: boolean;
5003
+ /** 是否要加载解单定额映射数据 */
5004
+ loadQuotaList?: boolean;
5002
5005
  /** 自定义模型 ID,若不提供则自动生成 UUID */
5003
5006
  id?: string;
5004
5007
  /** 初始名称 */
@@ -6489,6 +6492,43 @@ export declare interface ModifiedModelComparisonRef {
6489
6492
  target: ModelComparisonRef;
6490
6493
  }
6491
6494
 
6495
+ declare class NodeBox {
6496
+ private readonly engine;
6497
+ private readonly rootGroup;
6498
+ private readonly meshMaterial;
6499
+ private readonly instanceMaterial;
6500
+ private readonly handleLoadingCompleted;
6501
+ private isVisible;
6502
+ private filterState;
6503
+ constructor(engine: any);
6504
+ show(options?: NodeBoxShowOptions): void;
6505
+ hide(): void;
6506
+ toggle(options?: NodeBoxShowOptions): void;
6507
+ getVisible(): boolean;
6508
+ getFilters(): NodeBoxShowOptions;
6509
+ rebuild(options?: NodeBoxShowOptions): void;
6510
+ clear(): void;
6511
+ setModelBoxTransform(url: string, matrix: THREE.Matrix4): void;
6512
+ dispose(): void;
6513
+ private createMaterial;
6514
+ private normalizeFilterState;
6515
+ private shouldIncludeUrl;
6516
+ private shouldIncludeId;
6517
+ private collectNodeBoxes;
6518
+ private isInstanceNode;
6519
+ private addLineGroup;
6520
+ private appendBoxPositions;
6521
+ private pushSegment;
6522
+ private setLineTransform;
6523
+ }
6524
+
6525
+ declare interface NodeBoxShowOptions {
6526
+ urls?: string[];
6527
+ ids?: Array<string | number>;
6528
+ showMesh?: boolean;
6529
+ showInstance?: boolean;
6530
+ }
6531
+
6492
6532
  /** 基于 2D octree 的粗筛拾取管理器。 */
6493
6533
  declare class OctreeBox2d {
6494
6534
  private engine;
@@ -8227,19 +8267,29 @@ declare class ViewerModuleGIS {
8227
8267
 
8228
8268
  declare class ViewTree {
8229
8269
  private engine;
8270
+ private dynamicElevationViewGenerator;
8271
+ /** 管理模型原生视图与运行时动态视图的统一入口。 */
8230
8272
  constructor(engine: any);
8273
+ /** 汇总所有已加载模型的视图树数据。 */
8231
8274
  getAllViewTreeData(): any[];
8275
+ /** 获取单个模型的视图树数据,并补充运行时生成的动态视图分类。 */
8232
8276
  getViewTreeData(url: string): {
8233
8277
  ceilingPlans: never[];
8234
8278
  elevations: never[];
8279
+ dynamicViews: never[];
8235
8280
  floorPlans: never[];
8236
8281
  sections: never[];
8237
8282
  };
8283
+ /** 打开指定视图,并根据视图类型决定是否启用剖切和正交投影。 */
8238
8284
  openView(url: string, viewId: string): void;
8285
+ private getResolvedViewTree;
8239
8286
  private createViewRangePlanes;
8240
8287
  private createPlane;
8288
+ /** 兼容历史字符串编码异常,统一识别视图类型。 */
8289
+ private normalizeViewType;
8241
8290
  private toRevitVector;
8242
8291
  private toEnginePoint;
8292
+ private toEnginePointFromLike;
8243
8293
  private toEngineDirection;
8244
8294
  private shouldCorrectViewRangeOrigin;
8245
8295
  private zoomToCurrentViewRange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iflow-engine-base",
3
- "version": "3.12.5",
3
+ "version": "3.12.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",