iflow-engine-base 3.12.19 → 3.12.20
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/bim-engine-sdk.es.js +8 -8
- package/dist/bim-engine-sdk.umd.js +343 -343
- package/dist/chunks/{engine-2d-BJOOxEoZ.js → engine-2d-CuLhyJ4W.js} +3 -3
- package/dist/chunks/{engine-3d-COo_NGsu.js → engine-3d-0u52vT3w.js} +336 -298
- package/dist/chunks/{engine-720-CEmWxs1M.js → engine-720-Dz-5oAkD.js} +1 -1
- package/dist/chunks/{engine-gaussian-C9Cvnx1T.js → engine-gaussian-BsWABBm5.js} +1 -1
- package/dist/chunks/{engine-gis-C7b1GU6-.js → engine-gis-CqD2VJSC.js} +2 -2
- package/dist/chunks/{sdk-assets-BtLdPMFM.js → sdk-assets-C-CdwDId.js} +1 -1
- package/dist/chunks/{sdk-runtime-BZYuUdV8.js → sdk-runtime-xqU48yqa.js} +2 -2
- package/dist/chunks/{sdk-vendor-BieYdF2L.js → sdk-vendor-q_6JUhFc.js} +1 -1
- package/dist/index.d.ts +29 -8
- package/package.json +1 -1
|
@@ -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, a4 as m, V as p, b as D } from "./three-vendor-CB3x8EQd.js";
|
|
2
|
-
import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-
|
|
2
|
+
import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-xqU48yqa.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, aV as ze, aW as Pt, aX as at, a3 as Bt, aY as ms, aZ as yn, a_ as xn, a$ as In, b0 as Tn, a2 as wn, b1 as En, b2 as Bn, l as lt, b3 as As, b4 as gs, b5 as vn, k as Cs, b6 as Fn, t as Je, ay as Ss, D as Kt, ao as bn, w as ys, q as Dn, Z as We, b7 as qe, aF as xs, s as Mn, b8 as Rn, ah as Pn, b9 as On, ba as nn, aM as Is, bb as kn, an as Ln, bc as Ne, bd as mt, p as Hn } from "./three-vendor-CB3x8EQd.js";
|
|
2
|
-
import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-
|
|
2
|
+
import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-xqU48yqa.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-
|
|
1
|
+
import { g as xX, J as KN } from "./sdk-vendor-q_6JUhFc.js";
|
|
2
2
|
import { be as Ii, bf as TX } from "./three-vendor-CB3x8EQd.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-
|
|
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-xqU48yqa.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 { bg as w } from "./three-vendor-CB3x8EQd.js";
|
|
|
2
2
|
const S = "__BIM_ENGINE_SDK_ASSET_BASE__", g = "__BIM_ENGINE_SDK_ASSET_FILE_MAP__", b = "__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-
|
|
5
|
+
return _ || (_ = import("./sdk-vendor-q_6JUhFc.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, bh as Ce } from "./three-vendor-CB3x8EQd.js";
|
|
2
|
-
import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-
|
|
2
|
+
import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-q_6JUhFc.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.
|
|
1059
|
+
const ot = "3.12.20", st = {
|
|
1060
1060
|
version: ot
|
|
1061
1061
|
}, V = st.version;
|
|
1062
1062
|
function se() {
|
package/dist/index.d.ts
CHANGED
|
@@ -8715,16 +8715,23 @@ declare class ViewTree {
|
|
|
8715
8715
|
/** 汇总所有已加载模型的视图树数据。 */
|
|
8716
8716
|
getAllViewTreeData(): any[];
|
|
8717
8717
|
/** 获取单个模型的视图树数据,并补充运行时生成的动态视图分类。 */
|
|
8718
|
-
getViewTreeData(url: string):
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
};
|
|
8718
|
+
getViewTreeData(url: string): ViewTreeResult;
|
|
8719
|
+
/**
|
|
8720
|
+
* 获取指定构件所属的动态视图,可选择直接切换到第一个匹配视图。
|
|
8721
|
+
* 仅使用动态视图的关注区域判断,不改变构件自身的显隐状态。
|
|
8722
|
+
*/
|
|
8723
|
+
getElementVisibleViews(url: string, id: string | number, switchToView?: boolean): ViewTreeResult;
|
|
8725
8724
|
/** 打开指定视图,并根据视图类型决定是否启用剖切和正交投影。 */
|
|
8726
|
-
openView(url: string, viewId: string): void;
|
|
8725
|
+
openView(url: string, viewId: string | number): void;
|
|
8727
8726
|
private getResolvedViewTree;
|
|
8727
|
+
private createEmptyViewTreeResult;
|
|
8728
|
+
private toViewTreeItem;
|
|
8729
|
+
/** 兼容模型节点 Map 使用数字或字符串作为构件 ID。 */
|
|
8730
|
+
private findModelNode;
|
|
8731
|
+
/** 合并构件的局部包围盒,并转换到引擎世界坐标。 */
|
|
8732
|
+
private getNodeWorldBox;
|
|
8733
|
+
/** 构件包围盒与动态视图关注区域相交时,认为构件在该动态视图中可见。 */
|
|
8734
|
+
private isBoxVisibleInDynamicView;
|
|
8728
8735
|
private createViewRangePlanes;
|
|
8729
8736
|
private createPlane;
|
|
8730
8737
|
/** 兼容历史字符串编码异常,统一识别视图类型。 */
|
|
@@ -8737,6 +8744,20 @@ declare class ViewTree {
|
|
|
8737
8744
|
private zoomToCurrentViewRange;
|
|
8738
8745
|
}
|
|
8739
8746
|
|
|
8747
|
+
declare type ViewTreeItem = {
|
|
8748
|
+
id: string | number;
|
|
8749
|
+
name: string;
|
|
8750
|
+
url: string;
|
|
8751
|
+
};
|
|
8752
|
+
|
|
8753
|
+
declare type ViewTreeResult = {
|
|
8754
|
+
ceilingPlans: ViewTreeItem[];
|
|
8755
|
+
elevations: ViewTreeItem[];
|
|
8756
|
+
dynamicViews: ViewTreeItem[];
|
|
8757
|
+
floorPlans: ViewTreeItem[];
|
|
8758
|
+
sections: ViewTreeItem[];
|
|
8759
|
+
};
|
|
8760
|
+
|
|
8740
8761
|
/**
|
|
8741
8762
|
* 世界坐标与屏幕坐标转换工具类
|
|
8742
8763
|
* 提供世界坐标(3D空间坐标)与屏幕坐标(2D像素坐标)之间的双向转换功能
|