iflow-engine-base 3.12.6 → 3.12.8
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 +557 -557
- package/dist/chunks/{engine-2d-Cb_4-hHf.js → engine-2d-w-YYh63C.js} +3 -3
- package/dist/chunks/{engine-3d-x-tblBYc.js → engine-3d-TWmZYMpz.js} +3042 -2328
- package/dist/chunks/{engine-720-rdpq1r1y.js → engine-720-CyQJO4Ai.js} +1 -1
- package/dist/chunks/{engine-gaussian-Bg0mf-XZ.js → engine-gaussian-CvgenQ4G.js} +1 -1
- package/dist/chunks/{engine-gis-B4-BdA-v.js → engine-gis-Ce7y2a0F.js} +2 -2
- package/dist/chunks/{sdk-assets-CfzbAX4Q.js → sdk-assets-Dvr9B_B9.js} +1 -1
- package/dist/chunks/{sdk-runtime-BNBo1yPN.js → sdk-runtime-CEMbe8J8.js} +2 -2
- package/dist/chunks/{sdk-vendor-DEyo-iP-.js → sdk-vendor-CE8iRE87.js} +1 -1
- package/dist/index.d.ts +91 -2
- 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, 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-
|
|
2
|
+
import { C as L, W as w, E as T, c as z, r as _ } from "./sdk-runtime-CEMbe8J8.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-
|
|
2
|
+
import { C as Un, c as zn, E as _n, r as Qn } from "./sdk-runtime-CEMbe8J8.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-CE8iRE87.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-
|
|
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-CEMbe8J8.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-
|
|
5
|
+
return _ || (_ = import("./sdk-vendor-CE8iRE87.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-
|
|
2
|
+
import { a as pe, J as ne, p as Ae, l as J } from "./sdk-vendor-CE8iRE87.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.8", st = {
|
|
1060
1060
|
version: ot
|
|
1061
1061
|
}, V = st.version;
|
|
1062
1062
|
function se() {
|
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;
|
|
@@ -2532,6 +2533,8 @@ declare class EngineKernelV2 {
|
|
|
2532
2533
|
modelExplode: ModelExplode;
|
|
2533
2534
|
/** 材质编辑器,提供 DOM 面板、材质修改记录读取和一键还原能力。 */
|
|
2534
2535
|
materialTool: MaterialTool;
|
|
2536
|
+
rxQuotaListMapper: RxQuotaListMapper;
|
|
2537
|
+
filterLoaderModel: FilterLoaderModel;
|
|
2535
2538
|
models: any[];
|
|
2536
2539
|
reactBoundingClientRect: {
|
|
2537
2540
|
left: number;
|
|
@@ -3266,6 +3269,23 @@ declare interface FabricDrawStyle {
|
|
|
3266
3269
|
|
|
3267
3270
|
declare type FabricDrawType = 'none' | 'line' | 'arrow' | 'rect' | 'circle' | 'text' | 'cloudline';
|
|
3268
3271
|
|
|
3272
|
+
declare class FilterLoaderModel {
|
|
3273
|
+
private engine;
|
|
3274
|
+
private continusIds;
|
|
3275
|
+
constructor(engine: any);
|
|
3276
|
+
/**
|
|
3277
|
+
* 基于已加载的属性数据构建当前模型的过滤 id 集合。
|
|
3278
|
+
* 默认不过滤,业务侧只需要把 shouldFilterId 换成真实规则即可。
|
|
3279
|
+
*/
|
|
3280
|
+
buildContinueIds(url: string): void;
|
|
3281
|
+
setContinueIds(url: string, ids: Array<string | number>): void;
|
|
3282
|
+
getContinueIds(url: string): number[];
|
|
3283
|
+
getContinueIdSet(url: string): Set<number>;
|
|
3284
|
+
hasContinueId(url: string, id: string | number): boolean;
|
|
3285
|
+
clear(url?: string): void;
|
|
3286
|
+
private shouldFilterId;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3269
3289
|
declare interface GaussianFpsInfo {
|
|
3270
3290
|
fps: number;
|
|
3271
3291
|
frameTimeMs: number;
|
|
@@ -4999,6 +5019,8 @@ declare type LoadingStyle2d = 1 | 2;
|
|
|
4999
5019
|
export declare interface LoadModelOptions {
|
|
5000
5020
|
/** URL 是否为未加密的轻量化整包 ZIP;开启后会先解压并转成本地虚拟 URL 再加载 */
|
|
5001
5021
|
isZipPackage?: boolean;
|
|
5022
|
+
/** 是否要加载解单定额映射数据 */
|
|
5023
|
+
loadQuotaList?: boolean;
|
|
5002
5024
|
/** 自定义模型 ID,若不提供则自动生成 UUID */
|
|
5003
5025
|
id?: string;
|
|
5004
5026
|
/** 初始名称 */
|
|
@@ -5734,6 +5756,7 @@ declare class ModelEdge {
|
|
|
5734
5756
|
private groupVisibleBeforeExplode;
|
|
5735
5757
|
private highlightVisibleBeforeExplode;
|
|
5736
5758
|
private getModelEntry;
|
|
5759
|
+
private getFilteredIdSet;
|
|
5737
5760
|
private getOrCreateItemIndex;
|
|
5738
5761
|
private getEdgePointsByIndex;
|
|
5739
5762
|
private getLineByUrl;
|
|
@@ -6305,8 +6328,12 @@ declare class ModelProperties {
|
|
|
6305
6328
|
constructor(engine: any);
|
|
6306
6329
|
init(): void;
|
|
6307
6330
|
updateExtended(url: string, data: any): void;
|
|
6331
|
+
loadProperties(url: string, callback: any): void;
|
|
6308
6332
|
getModelPropertiesWithName(url: string, id: string, names: [], callback: (properties: any) => void): void;
|
|
6309
|
-
getModelProperties(url: string, id: string, callback: (properties: any) => void):
|
|
6333
|
+
getModelProperties(url: string, id: string, callback: (properties: any) => void): {
|
|
6334
|
+
properties: any[];
|
|
6335
|
+
materials: any[];
|
|
6336
|
+
};
|
|
6310
6337
|
}
|
|
6311
6338
|
|
|
6312
6339
|
declare class ModelToolModule {
|
|
@@ -6489,6 +6516,43 @@ export declare interface ModifiedModelComparisonRef {
|
|
|
6489
6516
|
target: ModelComparisonRef;
|
|
6490
6517
|
}
|
|
6491
6518
|
|
|
6519
|
+
declare class NodeBox {
|
|
6520
|
+
private readonly engine;
|
|
6521
|
+
private readonly rootGroup;
|
|
6522
|
+
private readonly meshMaterial;
|
|
6523
|
+
private readonly instanceMaterial;
|
|
6524
|
+
private readonly handleLoadingCompleted;
|
|
6525
|
+
private isVisible;
|
|
6526
|
+
private filterState;
|
|
6527
|
+
constructor(engine: any);
|
|
6528
|
+
show(options?: NodeBoxShowOptions): void;
|
|
6529
|
+
hide(): void;
|
|
6530
|
+
toggle(options?: NodeBoxShowOptions): void;
|
|
6531
|
+
getVisible(): boolean;
|
|
6532
|
+
getFilters(): NodeBoxShowOptions;
|
|
6533
|
+
rebuild(options?: NodeBoxShowOptions): void;
|
|
6534
|
+
clear(): void;
|
|
6535
|
+
setModelBoxTransform(url: string, matrix: THREE.Matrix4): void;
|
|
6536
|
+
dispose(): void;
|
|
6537
|
+
private createMaterial;
|
|
6538
|
+
private normalizeFilterState;
|
|
6539
|
+
private shouldIncludeUrl;
|
|
6540
|
+
private shouldIncludeId;
|
|
6541
|
+
private collectNodeBoxes;
|
|
6542
|
+
private isInstanceNode;
|
|
6543
|
+
private addLineGroup;
|
|
6544
|
+
private appendBoxPositions;
|
|
6545
|
+
private pushSegment;
|
|
6546
|
+
private setLineTransform;
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
declare interface NodeBoxShowOptions {
|
|
6550
|
+
urls?: string[];
|
|
6551
|
+
ids?: Array<string | number>;
|
|
6552
|
+
showMesh?: boolean;
|
|
6553
|
+
showInstance?: boolean;
|
|
6554
|
+
}
|
|
6555
|
+
|
|
6492
6556
|
/** 基于 2D octree 的粗筛拾取管理器。 */
|
|
6493
6557
|
declare class OctreeBox2d {
|
|
6494
6558
|
private engine;
|
|
@@ -7455,6 +7519,21 @@ export declare interface RoamLookDirection {
|
|
|
7455
7519
|
vertical?: 1 | -1;
|
|
7456
7520
|
}
|
|
7457
7521
|
|
|
7522
|
+
declare class RxQuotaListMapper {
|
|
7523
|
+
private engine;
|
|
7524
|
+
private codeMap;
|
|
7525
|
+
private continusIds;
|
|
7526
|
+
constructor(engine: any);
|
|
7527
|
+
loadNodeMap(model_: any): void;
|
|
7528
|
+
seachModels(codes: string[]): {
|
|
7529
|
+
id: number;
|
|
7530
|
+
name: string;
|
|
7531
|
+
url: string;
|
|
7532
|
+
attibute: any[];
|
|
7533
|
+
}[];
|
|
7534
|
+
private setelementInfo;
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7458
7537
|
export declare interface SceneModelData extends Required<Omit<ModelPlaceOptions, 'id'>> {
|
|
7459
7538
|
id: string;
|
|
7460
7539
|
materials: SceneModelMaterial[];
|
|
@@ -8227,19 +8306,29 @@ declare class ViewerModuleGIS {
|
|
|
8227
8306
|
|
|
8228
8307
|
declare class ViewTree {
|
|
8229
8308
|
private engine;
|
|
8309
|
+
private dynamicElevationViewGenerator;
|
|
8310
|
+
/** 管理模型原生视图与运行时动态视图的统一入口。 */
|
|
8230
8311
|
constructor(engine: any);
|
|
8312
|
+
/** 汇总所有已加载模型的视图树数据。 */
|
|
8231
8313
|
getAllViewTreeData(): any[];
|
|
8314
|
+
/** 获取单个模型的视图树数据,并补充运行时生成的动态视图分类。 */
|
|
8232
8315
|
getViewTreeData(url: string): {
|
|
8233
8316
|
ceilingPlans: never[];
|
|
8234
8317
|
elevations: never[];
|
|
8318
|
+
dynamicViews: never[];
|
|
8235
8319
|
floorPlans: never[];
|
|
8236
8320
|
sections: never[];
|
|
8237
8321
|
};
|
|
8322
|
+
/** 打开指定视图,并根据视图类型决定是否启用剖切和正交投影。 */
|
|
8238
8323
|
openView(url: string, viewId: string): void;
|
|
8324
|
+
private getResolvedViewTree;
|
|
8239
8325
|
private createViewRangePlanes;
|
|
8240
8326
|
private createPlane;
|
|
8327
|
+
/** 兼容历史字符串编码异常,统一识别视图类型。 */
|
|
8328
|
+
private normalizeViewType;
|
|
8241
8329
|
private toRevitVector;
|
|
8242
8330
|
private toEnginePoint;
|
|
8331
|
+
private toEnginePointFromLike;
|
|
8243
8332
|
private toEngineDirection;
|
|
8244
8333
|
private shouldCorrectViewRangeOrigin;
|
|
8245
8334
|
private zoomToCurrentViewRange;
|