iflow-engine-base 3.9.211 → 3.9.223

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.
@@ -43353,7 +43353,7 @@ Mi.add.bind(Mi);
43353
43353
  Mi.remove.bind(Mi);
43354
43354
  Mi.update.bind(Mi);
43355
43355
  export {
43356
- O1 as $,
43356
+ U1 as $,
43357
43357
  yv as A,
43358
43358
  Ve as B,
43359
43359
  Ae as C,
@@ -43374,77 +43374,85 @@ export {
43374
43374
  b0 as R,
43375
43375
  li as S,
43376
43376
  r0 as T,
43377
- F1 as U,
43377
+ Xt as U,
43378
43378
  T as V,
43379
43379
  bI as W,
43380
- N1 as X,
43381
- Gi as Y,
43382
- tr as Z,
43383
- U1 as _,
43380
+ F1 as X,
43381
+ N1 as Y,
43382
+ Gi as Z,
43383
+ tr as _,
43384
43384
  pd as a,
43385
- Oh as a0,
43386
- tc as a1,
43387
- Q1 as a2,
43388
- xr as a3,
43389
- k1 as a4,
43390
- oi as a5,
43391
- kd as a6,
43392
- o0 as a7,
43393
- Wn as a8,
43394
- Tf as a9,
43395
- kn as aA,
43396
- Cn as aB,
43397
- Eh as aC,
43398
- Kn as aD,
43399
- Tt as aE,
43400
- qe as aF,
43401
- yt as aG,
43402
- Yo as aH,
43403
- I0 as aI,
43404
- Es as aJ,
43405
- Si as aK,
43406
- Fl as aL,
43407
- Ll as aM,
43408
- hh as aN,
43409
- ec as aO,
43410
- Vb as aP,
43411
- h0 as aQ,
43412
- xx as aR,
43413
- cr as aS,
43414
- Ht as aT,
43415
- Ms as aU,
43416
- Je as aV,
43417
- ro as aW,
43418
- vo as aX,
43419
- j1 as aY,
43420
- q1 as aZ,
43421
- G1 as aa,
43422
- Km as ab,
43423
- Rt as ac,
43424
- Im as ad,
43425
- k_ as ae,
43426
- bd as af,
43427
- Rn as ag,
43428
- V1 as ah,
43429
- hi as ai,
43430
- H1 as aj,
43431
- po as ak,
43432
- zf as al,
43433
- ph as am,
43434
- Ra as an,
43435
- on as ao,
43436
- Kd as ap,
43437
- at as aq,
43438
- z1 as ar,
43439
- W1 as as,
43440
- r1 as at,
43441
- Mg as au,
43442
- iv as av,
43443
- vd as aw,
43444
- ws as ax,
43445
- qt as ay,
43446
- Bt as az,
43385
+ cr as a$,
43386
+ O1 as a0,
43387
+ Oh as a1,
43388
+ tc as a2,
43389
+ Q1 as a3,
43390
+ xr as a4,
43391
+ k1 as a5,
43392
+ oi as a6,
43393
+ kd as a7,
43394
+ o0 as a8,
43395
+ on as a9,
43396
+ km as aA,
43397
+ Om as aB,
43398
+ Wh as aC,
43399
+ Lm as aD,
43400
+ yd as aE,
43401
+ vd as aF,
43402
+ ws as aG,
43403
+ qt as aH,
43404
+ Bt as aI,
43405
+ kn as aJ,
43406
+ Cn as aK,
43407
+ Eh as aL,
43408
+ Kn as aM,
43409
+ Tt as aN,
43410
+ qe as aO,
43411
+ yt as aP,
43412
+ Yo as aQ,
43413
+ I0 as aR,
43414
+ Es as aS,
43415
+ Si as aT,
43416
+ Fl as aU,
43417
+ Ll as aV,
43418
+ hh as aW,
43419
+ ec as aX,
43420
+ Vb as aY,
43421
+ h0 as aZ,
43422
+ xx as a_,
43423
+ Wn as aa,
43424
+ Tf as ab,
43425
+ G1 as ac,
43426
+ Km as ad,
43427
+ Rt as ae,
43428
+ Im as af,
43429
+ k_ as ag,
43430
+ bd as ah,
43431
+ Rn as ai,
43432
+ V1 as aj,
43433
+ hi as ak,
43434
+ H1 as al,
43435
+ po as am,
43436
+ zf as an,
43437
+ ph as ao,
43438
+ Ra as ap,
43439
+ Kd as aq,
43440
+ mh as ar,
43441
+ at as as,
43442
+ z1 as at,
43443
+ W1 as au,
43444
+ r1 as av,
43445
+ Mg as aw,
43446
+ iv as ax,
43447
+ Gh as ay,
43448
+ Ht as az,
43447
43449
  Y as b,
43450
+ Ms as b0,
43451
+ Je as b1,
43452
+ ro as b2,
43453
+ vo as b3,
43454
+ j1 as b4,
43455
+ q1 as b5,
43448
43456
  zh as c,
43449
43457
  fr as d,
43450
43458
  Uh as e,
package/dist/index.d.ts CHANGED
@@ -122,11 +122,200 @@ declare class AngleMeasure2d extends BaseMeasureTool2d {
122
122
  handleMove(point: THREE.Vector3): void;
123
123
  }
124
124
 
125
+ /** 统一管理点线面体标记、特效和原生 HTML 窗体。 */
126
+ declare class Annotation3d {
127
+ private readonly engine;
128
+ private readonly rootGroup;
129
+ private readonly records;
130
+ private readonly textureLoader;
131
+ private readonly occlusionRaycaster;
132
+ private readonly normalizer;
133
+ private readonly materialFactory;
134
+ private readonly geometryBuilder;
135
+ private readonly effectsController;
136
+ private readonly panelLayer;
137
+ private readonly interaction;
138
+ private currentTime;
139
+ /** 初始化标记根节点、DOM 面板层以及交互控制器。 */
140
+ constructor(engine: any);
141
+ /** 新增单个标记并返回最终 id。 */
142
+ add(config: Annotation3dData): string;
143
+ /** 批量新增标记。 */
144
+ addMany(configs: Annotation3dData[]): string[];
145
+ /** 更新标记时直接重建几何和窗体,保持内部状态简单且可预测。 */
146
+ update(id: string, patch: Partial<Annotation3dData>): boolean;
147
+ /** 删除单个标记。 */
148
+ remove(id: string): boolean;
149
+ /** 清空所有标记及其 DOM 面板。 */
150
+ clear(): void;
151
+ /** 获取单个运行时实例。 */
152
+ get(id: string): Annotation3dInstance | undefined;
153
+ /** 获取全部运行时实例。 */
154
+ getAll(): Annotation3dInstance[];
155
+ /** 显示指定标记。 */
156
+ show(id: string): boolean;
157
+ /** 隐藏指定标记。 */
158
+ hide(id: string): boolean;
159
+ /** 统一控制标记显隐,并同步其面板状态。 */
160
+ setVisible(id: string, visible: boolean): boolean;
161
+ /** 手动打开面板,适用于 manual / click 等模式。 */
162
+ showPanel(id: string): boolean;
163
+ /** 手动关闭面板。 */
164
+ hidePanel(id: string): boolean;
165
+ /** 切换面板开关状态。 */
166
+ togglePanel(id: string): boolean;
167
+ /** 更新面板文本、HTML、样式或 actions。 */
168
+ updatePanel(id: string, patch: Partial<Annotation3dPanel>): boolean;
169
+ /** 导出纯数据快照,供保存和恢复。 */
170
+ getData(): Annotation3dData[];
171
+ /** 从纯数据快照恢复整套标记。 */
172
+ restoreData(data: Annotation3dData[]): void;
173
+ /** 每帧刷新特效和窗体投影位置。 */
174
+ updateFrame(deltaTime?: number): void;
175
+ /** 释放事件、几何和 DOM 资源。 */
176
+ dispose(): void;
177
+ /** 组装运行时记录,并将几何与面板初始化好。 */
178
+ private buildRecord;
179
+ /** 新记录统一走同一挂载流程,减少 add / update 重复代码。 */
180
+ private attachRecord;
181
+ /** 内部删除会负责资源回收和 hover 状态清理。 */
182
+ private removeInternal;
183
+ /** 标记显隐变化时,同时同步渲染顺序和面板显示。 */
184
+ private applyVisibility;
185
+ /** 统一生成对外事件 payload。 */
186
+ private toEventPayload;
187
+ /** 统一向引擎事件总线派发标记事件。 */
188
+ private emit;
189
+ }
190
+
191
+ /** 创建或恢复标记使用的纯数据结构。 */
192
+ export declare interface Annotation3dData {
193
+ id?: string;
194
+ type: Annotation3dType;
195
+ points: AnnotationPoint3d[];
196
+ visible?: boolean;
197
+ selectable?: boolean;
198
+ style?: Annotation3dStyle;
199
+ effect?: Annotation3dEffect;
200
+ panel?: Annotation3dPanel;
201
+ data?: any;
202
+ }
203
+
204
+ /** 点线面体统一的特效配置。 */
205
+ export declare interface Annotation3dEffect {
206
+ gradient?: AnnotationGradientEffect;
207
+ glow?: AnnotationGlowEffect;
208
+ flow?: AnnotationFlowEffect;
209
+ pulse?: AnnotationPulseEffect;
210
+ ripple?: AnnotationRippleEffect;
211
+ pillar?: AnnotationPillarEffect;
212
+ baseRing?: AnnotationBaseRingEffect;
213
+ layers?: AnnotationLayersEffect;
214
+ scan?: AnnotationScanEffect;
215
+ }
216
+
217
+ /** 引擎运行时实例,包含根节点和交互状态。 */
218
+ export declare interface Annotation3dInstance {
219
+ id: string;
220
+ type: Annotation3dType;
221
+ points: AnnotationPoint3d[];
222
+ visible: boolean;
223
+ selectable: boolean;
224
+ style: Annotation3dStyle;
225
+ effect: Annotation3dEffect;
226
+ panel?: Omit<Annotation3dPanel, 'actions'>;
227
+ data?: any;
228
+ panelVisible: boolean;
229
+ hovered: boolean;
230
+ root: THREE.Group;
231
+ }
232
+
233
+ /** 标记关联的原生 HTML 窗体配置。 */
234
+ export declare interface Annotation3dPanel {
235
+ visible?: boolean;
236
+ trigger?: 'manual' | 'hover' | 'click' | 'always';
237
+ mode?: 'text' | 'html';
238
+ text?: string;
239
+ html?: string;
240
+ anchor?: 'self' | 'top' | 'center' | 'start' | 'end' | 'centroid';
241
+ offset?: AnnotationPanelOffset3d;
242
+ screenOffset?: AnnotationPanelOffset2d;
243
+ className?: string;
244
+ style?: Record<string, string>;
245
+ interactive?: boolean;
246
+ occlusion?: 'show' | 'hide';
247
+ actions?: Record<string, (ctx: AnnotationActionContext) => void>;
248
+ }
249
+
250
+ /** 点线面体统一样式。 */
251
+ export declare interface Annotation3dStyle {
252
+ color?: string;
253
+ opacity?: number;
254
+ depthTest?: boolean;
255
+ alwaysOnTop?: boolean;
256
+ lineWidth?: number;
257
+ fillColor?: string;
258
+ fillOpacity?: number;
259
+ point?: AnnotationPointStyle;
260
+ line?: AnnotationLineStyle;
261
+ polygon?: AnnotationPolygonStyle;
262
+ volume?: AnnotationVolumeStyle;
263
+ }
264
+
265
+ /** 支持的三维标记类型。 */
266
+ export declare type Annotation3dType = 'point' | 'polyline' | 'polygon' | 'extrudePolygon' | 'box';
267
+
268
+ /** 面板 action 回调上下文。 */
269
+ export declare interface AnnotationActionContext {
270
+ engine: any;
271
+ id: string;
272
+ annotation: Annotation3dInstance;
273
+ action: string;
274
+ element: HTMLElement;
275
+ originalEvent: MouseEvent;
276
+ }
277
+
278
+ /** 底环效果配置。 */
279
+ declare interface AnnotationBaseRingEffect {
280
+ enabled: boolean;
281
+ radius?: number;
282
+ rotateSpeed?: number;
283
+ }
284
+
125
285
  /**
126
286
  * 标注联合类型
127
287
  */
128
288
  declare type AnnotationConfig720 = IconAnnotationConfig | TextAnnotationConfig | LinkAnnotationConfig;
129
289
 
290
+ /** 流动效果配置。 */
291
+ declare interface AnnotationFlowEffect {
292
+ enabled: boolean;
293
+ speed?: number;
294
+ width?: number;
295
+ direction?: 'forward' | 'backward' | 'up';
296
+ }
297
+
298
+ /** 发光效果配置。 */
299
+ declare interface AnnotationGlowEffect {
300
+ enabled: boolean;
301
+ color?: string;
302
+ intensity?: number;
303
+ }
304
+
305
+ /** 渐变色效果配置。 */
306
+ declare interface AnnotationGradientEffect {
307
+ enabled: boolean;
308
+ direction?: 'vertical' | 'horizontal' | 'path';
309
+ stops?: AnnotationGradientStop[];
310
+ }
311
+
312
+ /** 渐变色 stop。 */
313
+ declare interface AnnotationGradientStop {
314
+ offset: number;
315
+ color: string;
316
+ alpha?: number;
317
+ }
318
+
130
319
  /**
131
320
  * 标注实例(包含 DOM 元素)
132
321
  */
@@ -146,6 +335,19 @@ declare interface AnnotationInstance {
146
335
  visible: boolean;
147
336
  }
148
337
 
338
+ /** 多层围栏线效果配置。 */
339
+ declare interface AnnotationLayersEffect {
340
+ enabled: boolean;
341
+ count?: number;
342
+ offsetY?: number;
343
+ }
344
+
345
+ /** 线样式。 */
346
+ declare interface AnnotationLineStyle {
347
+ dashed?: boolean;
348
+ closed?: boolean;
349
+ }
350
+
149
351
  /**
150
352
  * 标注管理器 - 管理全景图中的标注点
151
353
  * 支持图标、文字、超链接三种类型的标注
@@ -265,6 +467,49 @@ declare class AnnotationManager720 {
265
467
  private generateId;
266
468
  }
267
469
 
470
+ /** 面板屏幕偏移。 */
471
+ declare interface AnnotationPanelOffset2d {
472
+ x?: number;
473
+ y?: number;
474
+ }
475
+
476
+ /** 面板三维偏移。 */
477
+ declare interface AnnotationPanelOffset3d {
478
+ x?: number;
479
+ y?: number;
480
+ z?: number;
481
+ }
482
+
483
+ /** 光柱效果配置。 */
484
+ declare interface AnnotationPillarEffect {
485
+ enabled: boolean;
486
+ height?: number;
487
+ width?: number;
488
+ }
489
+
490
+ /** 三维空间点。 */
491
+ declare interface AnnotationPoint3d {
492
+ x: number;
493
+ y: number;
494
+ z: number;
495
+ }
496
+
497
+ /** 点位样式。 */
498
+ declare interface AnnotationPointStyle {
499
+ mode?: 'sprite' | 'hybrid';
500
+ icon?: string;
501
+ iconSize?: number;
502
+ billboard?: boolean;
503
+ anchorY?: number;
504
+ }
505
+
506
+ /** 面样式。 */
507
+ declare interface AnnotationPolygonStyle {
508
+ showEdge?: boolean;
509
+ edgeColor?: string;
510
+ edgeWidth?: number;
511
+ }
512
+
268
513
  /**
269
514
  * 标注位置信息(球面坐标)
270
515
  */
@@ -274,6 +519,29 @@ declare interface AnnotationPosition {
274
519
  radius?: number;
275
520
  }
276
521
 
522
+ /** 呼吸闪烁效果配置。 */
523
+ declare interface AnnotationPulseEffect {
524
+ enabled: boolean;
525
+ speed?: number;
526
+ minOpacity?: number;
527
+ maxOpacity?: number;
528
+ }
529
+
530
+ /** 波纹扩散效果配置。 */
531
+ declare interface AnnotationRippleEffect {
532
+ enabled: boolean;
533
+ count?: number;
534
+ speed?: number;
535
+ maxRadius?: number;
536
+ }
537
+
538
+ /** 扫描效果配置。 */
539
+ declare interface AnnotationScanEffect {
540
+ enabled: boolean;
541
+ speed?: number;
542
+ width?: number;
543
+ }
544
+
277
545
  /**
278
546
  * 标注类型枚举
279
547
  */
@@ -283,6 +551,15 @@ declare enum AnnotationType720 {
283
551
  LINK = "link"
284
552
  }
285
553
 
554
+ /** 体样式。 */
555
+ declare interface AnnotationVolumeStyle {
556
+ height?: number;
557
+ showTop?: boolean;
558
+ showSide?: boolean;
559
+ showBottom?: boolean;
560
+ edgeColor?: string;
561
+ }
562
+
286
563
  declare class AreaMeasure2d extends BaseMeasureTool2d {
287
564
  /** 三点及以上可以闭合面积,双击或 Enter 结束。 */
288
565
  handleClick(point: THREE.Vector3): void;
@@ -2160,6 +2437,7 @@ declare class EngineKernelV2 {
2160
2437
  drawingPin: DrawingPin;
2161
2438
  modelLink3d: ModelLink3d;
2162
2439
  label: Label;
2440
+ annotation3d: Annotation3d;
2163
2441
  calibration: Calibration;
2164
2442
  models: any[];
2165
2443
  reactBoundingClientRect: {
@@ -2170,6 +2448,7 @@ declare class EngineKernelV2 {
2170
2448
  private versionEl;
2171
2449
  private container;
2172
2450
  constructor(options: any);
2451
+ changeHandelBehavedMode(): void;
2173
2452
  updateVersionDisplay(): void;
2174
2453
  /**
2175
2454
  * 通过 viewToken 解析 3D 模型地址,再复用现有 loaderModule URL 加载逻辑。
@@ -2364,6 +2643,7 @@ declare interface EngineSettings {
2364
2643
  declare class EngineStatus {
2365
2644
  private engine;
2366
2645
  isFree: boolean;
2646
+ editModel: boolean;
2367
2647
  isForceFree: boolean;
2368
2648
  isDisableContextMenu: boolean;
2369
2649
  disableModelInteractionHighlight: boolean;
@@ -4096,6 +4376,10 @@ declare interface LevelLocationResult {
4096
4376
  isInside: boolean;
4097
4377
  }
4098
4378
 
4379
+ /**
4380
+ * 管理场景基础光照和动态阴影相机范围。
4381
+ * 主要职责是创建环境光、补光、投影灯,并随视图和模型范围更新阴影覆盖区域。
4382
+ */
4099
4383
  declare class LightModule {
4100
4384
  private engine;
4101
4385
  private lastShadowHalfSize;
@@ -4103,24 +4387,133 @@ declare class LightModule {
4103
4387
  private lastShadowFar;
4104
4388
  private lastLightPosition;
4105
4389
  private lastLightTarget;
4390
+ private lastShadowIntensity;
4391
+ private shadowCasterPolicyChecked;
4392
+ private lastShadowCasterPolicySceneSize;
4393
+ /**
4394
+ * 创建光照模块。
4395
+ * @param engine BIM 引擎实例,内部会从中读取 scene、controls、octreeBox 等对象。
4396
+ */
4106
4397
  constructor(engine: any);
4107
- /** 初始化场景基础光照,并保留投影灯的稳定引用。 */
4398
+ /**
4399
+ * 初始化场景基础光照,并把投影灯引用挂到 scene 上供后续更新使用。
4400
+ */
4108
4401
  init(): void;
4109
- /** 兼容旧调用名:更新定向光阴影的有效覆盖范围。 */
4402
+ /**
4403
+ * 兼容旧调用名:更新定向光阴影的有效覆盖范围。
4404
+ * @param camera 当前渲染相机;传 null 时只按场景范围或默认值更新。
4405
+ */
4110
4406
  updateShadowCameraRange(camera: THREE.Camera | null): void;
4111
- /** 根据当前视图和模型范围移动投影灯、target 与阴影相机。 */
4407
+ /**
4408
+ * 根据当前视图和模型范围移动投影灯、target 与阴影相机。
4409
+ * @param camera 当前渲染相机,用于估算屏幕可视范围;传 null 时退回到场景范围。
4410
+ */
4112
4411
  updateDirectionalShadow(camera: THREE.Camera | null): void;
4412
+ /**
4413
+ * 计算场景范围对阴影相机半边长的贡献。
4414
+ * @param sceneHalfExtent 场景包围盒最大边的一半,单位为世界坐标。
4415
+ * @param cameraHalfExtent 当前相机可视范围最大半边长,单位为世界坐标。
4416
+ * @returns 阴影相机应考虑的场景半边长。
4417
+ */
4113
4418
  private getSceneShadowHalfSize;
4419
+ /**
4420
+ * 根据阴影相机范围动态调整 bias,平衡阴影条纹和阴影悬浮。
4421
+ * @param light 负责投影的定向光。
4422
+ * @param shadowHalfSize 阴影正交相机半边长,单位为世界坐标。
4423
+ * @param shadowDepthRange 阴影相机深度范围。
4424
+ */
4114
4425
  private updateShadowBias;
4426
+ /**
4427
+ * 计算阴影相机沿光照方向的 near/far 范围。
4428
+ * @param sceneBox 当前场景包围盒;为 null 时使用兜底范围。
4429
+ * @param lightPosition 投影灯世界坐标。
4430
+ * @param target 投影灯 target 世界坐标。
4431
+ * @param sceneDepth 场景包围盒对角线长度,用于兜底 far 估算。
4432
+ * @param shadowHalfSize 阴影相机半边长,用于兜底 far 估算。
4433
+ * @returns 阴影相机深度范围。
4434
+ */
4115
4435
  private getShadowDepthRange;
4436
+ /**
4437
+ * 获取包围盒 8 个顶点。
4438
+ * @param box 需要拆分顶点的 three.js 包围盒。
4439
+ * @returns 包围盒所有角点的世界坐标数组。
4440
+ */
4116
4441
  private getBoxCorners;
4442
+ /**
4443
+ * 从场景中找到当前负责投影的定向光。
4444
+ * @returns 可投影的 DirectionalLight;找不到时返回 null。
4445
+ */
4117
4446
  private getShadowDirectionalLight;
4447
+ /**
4448
+ * 获取当前场景的有效包围盒。
4449
+ * @returns 有效模型包围盒;场景为空或范围异常时返回 null。
4450
+ */
4118
4451
  private getSceneBoundingBox;
4452
+ /**
4453
+ * 规范化包围盒最小点和最大点,兼容 min/max 顺序被反转的输入。
4454
+ * @param min 原始最小点。
4455
+ * @param max 原始最大点。
4456
+ * @returns 规范化后的包围盒;坐标非法或范围异常时返回 null。
4457
+ */
4119
4458
  private normalizeBox;
4459
+ /**
4460
+ * 校验包围盒是否可用于阴影计算。
4461
+ * @param box 候选包围盒。
4462
+ * @returns 有效包围盒;过小、过大或异常时返回 null。
4463
+ */
4120
4464
  private validateBox;
4465
+ /**
4466
+ * 估算当前相机视图在目标点附近需要覆盖的半边长。
4467
+ * @param camera 当前渲染相机。
4468
+ * @param fallbackTarget 没有 controls.target 时用于估算距离的目标点。
4469
+ * @returns 相机视图最大半边长;没有有效相机时返回 0。
4470
+ */
4121
4471
  private getCameraHalfExtent;
4472
+ /**
4473
+ * 解析阴影应跟随的目标点。
4474
+ * @param camera 当前渲染相机。
4475
+ * @param fallbackTarget 优先级低于 controls.target 的兜底目标点。
4476
+ * @returns 用于定位投影灯 target 的世界坐标。
4477
+ */
4122
4478
  private resolveShadowTarget;
4479
+ /**
4480
+ * 获取投影灯相对 target 的方向。
4481
+ * @returns 标准化后的世界空间光源偏移方向。
4482
+ */
4123
4483
  private getLightOffsetDirection;
4484
+ /**
4485
+ * 根据当前视角和阴影贴图密度计算最终显示强度。
4486
+ * @param camera 当前渲染相机。
4487
+ * @param lightDirection 投影灯相对 target 的方向。
4488
+ * @param shadowHalfSize 阴影正交相机半边长。
4489
+ * @param mapWidth 阴影贴图宽度。
4490
+ * @returns 本帧应使用的阴影强度。
4491
+ */
4492
+ private getShadowDisplayIntensity;
4493
+ /**
4494
+ * 把阴影 target 对齐到阴影贴图 texel 网格。
4495
+ * @param target 原始阴影目标点。
4496
+ * @param lightDirection 投影灯相对 target 的方向。
4497
+ * @param shadowHalfSize 阴影正交相机半边长。
4498
+ * @param mapWidth 阴影贴图宽度。
4499
+ * @returns 对齐后的 target,减少相机远距离移动时的阴影采样抖动和规则纹理。
4500
+ */
4501
+ private snapShadowTargetToTexel;
4502
+ /**
4503
+ * 自动降低大面积薄片构件的投影风险。
4504
+ * @param sceneBox 当前场景包围盒,用于判断场景尺寸是否变化。
4505
+ */
4506
+ private updateShadowCasterPolicy;
4507
+ /**
4508
+ * 对单个 mesh 应用投影策略。
4509
+ * @param mesh 候选投影对象。
4510
+ */
4511
+ private applyShadowCasterPolicy;
4512
+ /**
4513
+ * 对仍参与投影的实体使用背面写入阴影,降低封闭体表面的自投影条纹。
4514
+ * @param material mesh 材质或材质数组。
4515
+ */
4516
+ private setBackSideShadowCasting;
4124
4517
  }
4125
4518
 
4126
4519
  /**
@@ -4192,9 +4585,59 @@ declare interface LoaderModel2d {
4192
4585
  }
4193
4586
 
4194
4587
  declare class LoaderModule {
4588
+ private static localRequestMap;
4589
+ private static localObjectUrls;
4590
+ private static interceptorInstalled;
4195
4591
  private engine;
4196
4592
  constructor(engine: any);
4593
+ /**
4594
+ * 批量加载模型 URL。
4595
+ */
4197
4596
  loadModels(urls: string[], options?: LoadModelOptions): Promise<void>;
4597
+ /**
4598
+ * 直接加载用户在浏览器中选择的本地模型文件。
4599
+ * 支持两种输入:
4600
+ * 1. 直接选择 `info / property / edge / lod0...` 这组模型包文件。
4601
+ * 2. 选择一个外层 zip,zip 内部包含上述模型包文件或解压后的同名目录。
4602
+ */
4603
+ loadModelFile(files: File[], options?: LoadModelOptions): Promise<void>;
4604
+ /**
4605
+ * 把浏览器 File 列表整理成现有加载器可识别的本地虚拟模型入口。
4606
+ */
4607
+ private buildLocalModelEntries;
4608
+ /**
4609
+ * 展开输入文件。
4610
+ * 已经是模型包文件时直接保留;仅把“外层容器 zip”解包成内部条目。
4611
+ */
4612
+ private collectSourceEntries;
4613
+ /**
4614
+ * 识别已经打好的模型包文件,例如 `info`、`lod0.zip`。
4615
+ */
4616
+ private parseDirectPackageEntry;
4617
+ /**
4618
+ * 识别解压后的模型目录,例如 `lod0/nodes.json`、`info/info.json`。
4619
+ */
4620
+ private parseExtractedPackageEntry;
4621
+ /**
4622
+ * 把解压目录重新打包成 zip Blob,复用现有按包加载的实现。
4623
+ */
4624
+ private packEntriesAsZip;
4625
+ /**
4626
+ * 注册 axios 拦截器,把虚拟模型地址改写为对应的 Blob URL。
4627
+ */
4628
+ private static ensureLocalRequestInterceptor;
4629
+ /**
4630
+ * 为某个虚拟请求地址生成 Blob URL 映射。
4631
+ */
4632
+ private static registerLocalRequest;
4633
+ /**
4634
+ * 统一规范虚拟请求 key,兼容传入绝对地址或带 query 的地址。
4635
+ */
4636
+ private static normalizeRequestKey;
4637
+ /**
4638
+ * 生成稳定且不会冲突的本地模型虚拟 ID。
4639
+ */
4640
+ private static createLocalModelId;
4198
4641
  }
4199
4642
 
4200
4643
  declare class LoaderModule2d {