@roomle/web-sdk 5.2.0-alpha.1 → 5.2.0-alpha.3

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.
Files changed (56) hide show
  1. package/lib/ConfiguratorKernel.wasm +0 -0
  2. package/lib/RoomleCore.wasm +0 -0
  3. package/lib/RoomleToolsCore.wasm +0 -0
  4. package/lib/{api-B4TrOz4F.mjs → api-CscVM_rq.mjs} +5 -2
  5. package/lib/{api-B4TrOz4F.mjs.map → api-CscVM_rq.mjs.map} +1 -1
  6. package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
  7. package/lib/{component-raycast-helper-CaY2UMli.mjs → component-raycast-helper-BKwofixp.mjs} +2 -2
  8. package/lib/{component-raycast-helper-CaY2UMli.mjs.map → component-raycast-helper-BKwofixp.mjs.map} +1 -1
  9. package/lib/{configurator-DrF49jhK.mjs → configurator-YwPnRLWl.mjs} +4 -4
  10. package/lib/{configurator-DrF49jhK.mjs.map → configurator-YwPnRLWl.mjs.map} +1 -1
  11. package/lib/configurator-vYvoZwvB.mjs +2 -0
  12. package/lib/glb-viewer-BQNztKtl.mjs +2 -0
  13. package/lib/{glb-viewer-DfTibwy-.mjs → glb-viewer-Bt2icXD1.mjs} +4 -4
  14. package/lib/{glb-viewer-DfTibwy-.mjs.map → glb-viewer-Bt2icXD1.mjs.map} +1 -1
  15. package/lib/{highlight-coordinator-DKMaPGPo.mjs → highlight-coordinator-DiTRPUXt.mjs} +3 -3
  16. package/lib/{highlight-coordinator-DKMaPGPo.mjs.map → highlight-coordinator-DiTRPUXt.mjs.map} +1 -1
  17. package/lib/{homag-intelligence-BpYU-Dit.mjs → homag-intelligence-CD4uruxc.mjs} +6 -3
  18. package/lib/homag-intelligence-CD4uruxc.mjs.map +1 -0
  19. package/lib/{material-viewer-D2SC_WGL.mjs → material-viewer-C0GInjTh.mjs} +4 -4
  20. package/lib/{material-viewer-D2SC_WGL.mjs.map → material-viewer-C0GInjTh.mjs.map} +1 -1
  21. package/lib/{packages-Dq64FLqO.mjs → packages-Dh9Oa8sN.mjs} +5 -5
  22. package/lib/{packages-Dq64FLqO.mjs.map → packages-Dh9Oa8sN.mjs.map} +1 -1
  23. package/lib/{planner-BflojXJm.mjs → planner-DG6mOKiO.mjs} +3 -3
  24. package/lib/{planner-BflojXJm.mjs.map → planner-DG6mOKiO.mjs.map} +1 -1
  25. package/lib/planner-tlobeRpn.mjs +2 -0
  26. package/lib/roomle-headless.d.ts +168 -10
  27. package/lib/roomle-headless.js +9 -9
  28. package/lib/roomle-renderer-nCUrLU_S.mjs.map +1 -1
  29. package/lib/{roomle-sdk-AuHoyXQw.mjs → roomle-sdk-C2u_Xayh.mjs} +3517 -3150
  30. package/lib/roomle-sdk-C2u_Xayh.mjs.map +1 -0
  31. package/lib/roomle-sdk.d.ts +168 -10
  32. package/lib/roomle-sdk.js +7 -7
  33. package/lib/{roomle-webgpu-renderer-C26OAfkn.mjs → roomle-webgpu-renderer-__fKL0NL.mjs} +7 -7
  34. package/lib/roomle-webgpu-renderer-__fKL0NL.mjs.map +1 -0
  35. package/lib/{scene-renderer-DGSgD6mp.mjs → scene-renderer-NOgMV9KH.mjs} +2 -2
  36. package/lib/{scene-renderer-DGSgD6mp.mjs.map → scene-renderer-NOgMV9KH.mjs.map} +1 -1
  37. package/lib/{script-loader-ChoIO9yO.mjs → script-loader-DZWHyVXo.mjs} +2 -2
  38. package/lib/{script-loader-ChoIO9yO.mjs.map → script-loader-DZWHyVXo.mjs.map} +1 -1
  39. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  40. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  41. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  42. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  43. package/lib/{stats-helper-C74q5Bje.mjs → stats-helper-BKeEnvFU.mjs} +2 -2
  44. package/lib/{stats-helper-C74q5Bje.mjs.map → stats-helper-BKeEnvFU.mjs.map} +1 -1
  45. package/lib/{threejs-utils-DHTRY4yW.mjs → threejs-utils-CX2ILaES.mjs} +66 -62
  46. package/lib/threejs-utils-CX2ILaES.mjs.map +1 -0
  47. package/lib/{tools-core-CVyQSfI6.mjs → tools-core-id_2qN_Y.mjs} +3 -3
  48. package/lib/{tools-core-CVyQSfI6.mjs.map → tools-core-id_2qN_Y.mjs.map} +1 -1
  49. package/package.json +2 -2
  50. package/lib/configurator-CKf-giUj.mjs +0 -2
  51. package/lib/glb-viewer-BOTT1GcI.mjs +0 -2
  52. package/lib/homag-intelligence-BpYU-Dit.mjs.map +0 -1
  53. package/lib/planner-C8gpY4ZL.mjs +0 -2
  54. package/lib/roomle-sdk-AuHoyXQw.mjs.map +0 -1
  55. package/lib/roomle-webgpu-renderer-C26OAfkn.mjs.map +0 -1
  56. package/lib/threejs-utils-DHTRY4yW.mjs.map +0 -1
@@ -26,6 +26,7 @@ import { PerspectiveCamera } from 'three';
26
26
  import { PointLight } from 'three';
27
27
  import { Scene } from 'three';
28
28
  import { Scene as Scene_2 } from 'three/webgpu';
29
+ import { Sphere } from 'three';
29
30
  import { Texture } from 'three';
30
31
  import { TextureLoader } from 'three';
31
32
  import { Vector2 } from 'three';
@@ -219,6 +220,19 @@ export declare interface AssetType_2 {
219
220
 
220
221
  export declare type AssetUrl = string;
221
222
 
223
+ export declare class AsyncGuard<T> {
224
+ info: any;
225
+ private _promise;
226
+ private _resolve;
227
+ private _reject;
228
+ constructor(info?: any);
229
+ private _init;
230
+ resolve(value?: any): void;
231
+ reject(e: Error): void;
232
+ wait(): Promise<T>;
233
+ reset(): void;
234
+ }
235
+
222
236
  export declare interface Attic extends PlanElement_2 {
223
237
  new (): Attic;
224
238
  getFrom(): Node_3;
@@ -1618,12 +1632,31 @@ export declare interface ConfiguratorKernelContainer {
1618
1632
  export declare class ConfiguratorPlanObjectViewModel extends PlanObjectViewModel {
1619
1633
  private _rootComponentRuntimeId;
1620
1634
  private _rootComponentId;
1635
+ private _componentsCutByCamera;
1636
+ private _localCameraPosition;
1621
1637
  constructor(planObject: PlanObject);
1622
1638
  addRootComponent(component: RoomleComponent): void;
1623
1639
  addChildEntityComponent(component: RoomleComponent): void;
1624
1640
  getConfigurationRuntimeId(): number;
1625
1641
  getRootComponentId(): number;
1626
1642
  getRootComponentRuntimeId(): number;
1643
+ /**
1644
+ * A configuration is one plan object but many components - a whole kitchen run
1645
+ * shares a single bounding box, so hiding the container would clear the scene as
1646
+ * soon as the camera gets close to any of its cabinets. The object bounds are only
1647
+ * the broad phase here, the components actually cut by the near plane are hidden
1648
+ * individually.
1649
+ */
1650
+ hideCutByCamera(cameraSphere: Sphere): boolean;
1651
+ restoreCutByCamera(): boolean;
1652
+ private _setComponentCutByCamera;
1653
+ /**
1654
+ * Only the component's own meshes, its child components stay visible - and
1655
+ * re-applied while cut, so meshes replaced in the meantime stay hidden too.
1656
+ * A component waiting for its geometry hides its meshes behind the loading box
1657
+ * itself, showing them again is `loadingFinished()`'s job, not ours.
1658
+ */
1659
+ private _applyComponentMeshVisibility;
1627
1660
  finishConstruction(): Promise<void>;
1628
1661
  failConstruction(): Promise<void>;
1629
1662
  toJSON(): {
@@ -1631,7 +1664,12 @@ export declare class ConfiguratorPlanObjectViewModel extends PlanObjectViewModel
1631
1664
  rootElementId: number;
1632
1665
  };
1633
1666
  protected _updateBoundingBox(): void;
1634
- private _collectComponentObjects;
1667
+ /**
1668
+ * Walks the component tree with a visitor: this runs per frame for every
1669
+ * configuration the camera is close to, where an array per tree level would be
1670
+ * a temporary allocation per component per frame.
1671
+ */
1672
+ private _forEachComponent;
1635
1673
  }
1636
1674
 
1637
1675
  export declare class ConfiguratorSceneEventHandler extends SceneEventHandler<SceneEventInfo> {
@@ -1712,7 +1750,6 @@ export declare class ConfiguratorSceneManager extends SceneManager implements Co
1712
1750
  private _uiIntersectionHelper;
1713
1751
  private _sceneEventHandler;
1714
1752
  private _isComponentDimensionsVisible;
1715
- private _sceneSetupReady;
1716
1753
  constructor(creator: string, offset: CanvasOffset, mode: Enumify<typeof CAMERA_TYPE>);
1717
1754
  /**
1718
1755
  * Single point for deciding whether to push HTML label positions to the UI.
@@ -2516,6 +2553,12 @@ export declare const CORE_OBJECT_TYPE_CATEGORY: {
2516
2553
  readonly EXTERNAL_CONSTRUCTION: 5;
2517
2554
  };
2518
2555
 
2556
+ export declare const CORE_OBSTACLE_TYPE: {
2557
+ readonly GLOBAL: 0;
2558
+ readonly OBJECT_WITH_ID: 1;
2559
+ readonly CONSTRUCTION_WITH_ID: 2;
2560
+ };
2561
+
2519
2562
  export declare const CORE_OPENING_DIRECTION: {
2520
2563
  readonly LEFT_CLOCKWISE: 0;
2521
2564
  readonly LEFT_COUNTERCLOCKWISE: 1;
@@ -3552,8 +3595,10 @@ export declare interface ExternalObjectAPI {
3552
3595
  * the compacted master data per library (root modules and the customer-facing attributes),
3553
3596
  * the room information of all rooms (contours in 3D, pos: [x, level, -y], with a derived
3554
3597
  * walls array per room), the articles that can be used (compact catalog with dimensions,
3555
- * docking vectors and sub-modules), and all groups currently loaded in the plan (as
3556
- * resubmittable article picks with footprints and free docking vectors).
3598
+ * docking vectors and sub-modules), all groups currently loaded in the plan (as
3599
+ * resubmittable article picks with footprints and free docking vectors), and what stands in the
3600
+ * room (the doors, windows and other plan objects as floor outlines with their height range,
3601
+ * and the HI groups as the outlines of their root modules).
3557
3602
  * The result is designed to be passed to an AI agent as it is, without further preparation,
3558
3603
  * with all geometry in one coordinate system: 3D, right-handed, Y up.
3559
3604
  * @param include The sections to include. All sections are returned when omitted or empty.
@@ -3807,6 +3852,25 @@ export declare interface ExternalObjectValidContainerModules {
3807
3852
  parentModuleId: string;
3808
3853
  }
3809
3854
 
3855
+ export declare type ExternalPlanObstacleKind = 'group' | 'door' | 'window' | 'object';
3856
+
3857
+ export declare interface ExternalPlanObstacles {
3858
+ points: Array<{
3859
+ x: number;
3860
+ y: number;
3861
+ }>;
3862
+ obstacles: ExternalPlanObstacleSegment[];
3863
+ kinds: Record<number, ExternalPlanObstacleKind>;
3864
+ }
3865
+
3866
+ export declare interface ExternalPlanObstacleSegment {
3867
+ associatedObjectIds: number[];
3868
+ p0: number;
3869
+ p1: number;
3870
+ bottom: number;
3871
+ top: number;
3872
+ }
3873
+
3810
3874
  export declare class ExternalReference {
3811
3875
  getJsObject(): any;
3812
3876
  setJsObject(jsObject: any): void;
@@ -3870,6 +3934,7 @@ export declare interface FeatureFlags {
3870
3934
  /* Excluded from this release type: advancedHighlighting */
3871
3935
  /* Excluded from this release type: fence */
3872
3936
  /* Excluded from this release type: awaitConfigurationSavesBeforeRequestPlan */
3937
+ /* Excluded from this release type: disableRenderStandby */
3873
3938
  }
3874
3939
 
3875
3940
  export declare class FeatureFlagsImplementation implements FeatureFlags {
@@ -3885,6 +3950,7 @@ export declare class FeatureFlagsImplementation implements FeatureFlags {
3885
3950
  advancedHighlighting: boolean;
3886
3951
  fence: boolean;
3887
3952
  awaitConfigurationSavesBeforeRequestPlan: boolean;
3953
+ disableRenderStandby: boolean;
3888
3954
  }
3889
3955
 
3890
3956
  export declare interface FetchOptions {
@@ -4415,6 +4481,9 @@ export declare const HI_GROUP_OPERATION: {
4415
4481
  readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
4416
4482
  readonly EXCHANGE_ROOT_MODULE: "exchange-root-module";
4417
4483
  readonly MERGE_GROUPS: "merge-groups";
4484
+ readonly INSERT_ARTICLE_INTO_GROUP: "insert-article-into-group";
4485
+ readonly REMOVE_ARTICLE_FROM_GROUP: "remove-article-from-group";
4486
+ readonly SWAP_ROOT_MODULES: "swap-root-modules";
4418
4487
  };
4419
4488
 
4420
4489
  export declare const HI_LOAD_OBJECT_REASON: {
@@ -4433,6 +4502,7 @@ export declare const HI_LOAD_OBJECT_REASON: {
4433
4502
  readonly MERGE_WITH_ON_ACTION: "merge_with_on_action";
4434
4503
  readonly PLAN_CHANGED: "plan_changed";
4435
4504
  readonly POSITION_CHANGED: "position_changed";
4505
+ readonly REARRANGE: "rearrange";
4436
4506
  readonly SPLIT: "split";
4437
4507
  readonly SWAP_MODULE: "swap_module";
4438
4508
  readonly SWAP_GROUP: "swap_group";
@@ -4603,15 +4673,30 @@ export declare interface HiGroupOperationPayloads {
4603
4673
  groupId: string;
4604
4674
  dockTo: HiDockTarget;
4605
4675
  };
4606
- 'exchange-root-module': {
4676
+ /** `attributes` are overrides of the new root module, e.g. another width. */
4677
+ 'exchange-root-module': HiArticlePick & {
4607
4678
  groupId: string;
4608
4679
  rootModuleId: string;
4609
- articleId: string;
4610
4680
  };
4611
4681
  'merge-groups': {
4612
4682
  targetGroupId: string;
4613
4683
  groupIds: string[];
4614
4684
  };
4685
+ /** `between` names two root modules docked side by side, in either order. */
4686
+ 'insert-article-into-group': HiArticlePick & {
4687
+ groupId: string;
4688
+ between: [string, string];
4689
+ };
4690
+ /** Removes a root module and closes the gap; `delete-root-module` leaves it. */
4691
+ 'remove-article-from-group': {
4692
+ groupId: string;
4693
+ rootModuleId: string;
4694
+ };
4695
+ /** Two root modules of the group change places, neighbours or not. */
4696
+ 'swap-root-modules': {
4697
+ groupId: string;
4698
+ rootModuleIds: [string, string];
4699
+ };
4615
4700
  }
4616
4701
 
4617
4702
  export declare interface HiGroupOperationResult {
@@ -4619,6 +4704,8 @@ export declare interface HiGroupOperationResult {
4619
4704
  groups: HiPlanGroup[];
4620
4705
  removedGroupIds: string[];
4621
4706
  changedModuleIds?: string[];
4707
+ corrections?: string[];
4708
+ gapClosed?: boolean;
4622
4709
  }
4623
4710
 
4624
4711
  export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
@@ -4721,6 +4808,7 @@ export declare interface HiPlanContext {
4721
4808
  rooms?: HiPlanRoomInformation;
4722
4809
  articles?: HiPlanArticle[];
4723
4810
  groups?: HiPlanGroup[];
4811
+ obstacles?: HiPlanObstacles;
4724
4812
  }
4725
4813
 
4726
4814
  export declare interface HiPlanContextData {
@@ -4730,7 +4818,7 @@ export declare interface HiPlanContextData {
4730
4818
  }>;
4731
4819
  }
4732
4820
 
4733
- export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups';
4821
+ export declare type HiPlanContextSection = 'masterData' | 'rooms' | 'articles' | 'groups' | 'obstacles';
4734
4822
 
4735
4823
  export declare interface HiPlanContour {
4736
4824
  level: number;
@@ -4768,6 +4856,11 @@ export declare interface HiPlanGroup {
4768
4856
  roots: HiPlanRoot[];
4769
4857
  }
4770
4858
 
4859
+ export declare interface HiPlanGroupObstacles {
4860
+ id: string;
4861
+ roots: HiPlanRootOutline[];
4862
+ }
4863
+
4771
4864
  export declare interface HiPlanGroupPosition {
4772
4865
  pos?: number[];
4773
4866
  rotationY?: number;
@@ -4788,6 +4881,18 @@ export declare interface HiPlanMasterDataModule {
4788
4881
  attributes: string[];
4789
4882
  }
4790
4883
 
4884
+ export declare interface HiPlanObstacle {
4885
+ kind: Exclude<ExternalPlanObstacleKind, 'group'>;
4886
+ outline: HiPlanPosition3[];
4887
+ bottomMm: number;
4888
+ topMm: number;
4889
+ }
4890
+
4891
+ export declare interface HiPlanObstacles {
4892
+ objects: HiPlanObstacle[];
4893
+ groups: HiPlanGroupObstacles[];
4894
+ }
4895
+
4791
4896
  /**
4792
4897
  * The plan context is the data an AI agent needs to understand and author a
4793
4898
  * planning session. `getPlanContext` (glue logic) assembles it and every
@@ -4829,6 +4934,13 @@ export declare interface HiPlanRootAttribute {
4829
4934
  value?: number | string | boolean;
4830
4935
  }
4831
4936
 
4937
+ export declare interface HiPlanRootOutline {
4938
+ id: string;
4939
+ outline: HiPlanPosition3[];
4940
+ bottomMm: number;
4941
+ topMm: number;
4942
+ }
4943
+
4832
4944
  export declare interface HiPlanWall {
4833
4945
  index: number;
4834
4946
  side: HiPlanWallSide;
@@ -6567,6 +6679,29 @@ export declare interface ObjectTypeCategory {
6567
6679
 
6568
6680
  export declare type ObjectWallDimension = DimensionDefinition<Vector3_2, Vector3_2>;
6569
6681
 
6682
+ export declare interface Obstacle2d {
6683
+ associatedObjectIds: EmsArray<number>;
6684
+ bottom: number;
6685
+ length: number;
6686
+ normalizedDirection: KernelVector2f;
6687
+ p0: number;
6688
+ p1: number;
6689
+ top: number;
6690
+ type: ObstacleType;
6691
+ }
6692
+
6693
+ export declare class Obstacle2dArray extends EmsArray<Obstacle2d> {
6694
+ }
6695
+
6696
+ export declare interface ObstacleMap2d {
6697
+ obstacles: Obstacle2dArray;
6698
+ points: Vector2Array;
6699
+ }
6700
+
6701
+ export declare interface ObstacleType {
6702
+ value: Enumify<typeof CORE_OBSTACLE_TYPE>;
6703
+ }
6704
+
6570
6705
  export declare interface OffsetCamera {
6571
6706
  offset: CanvasOffset;
6572
6707
  resetOffset(): void;
@@ -6890,13 +7025,26 @@ export declare class PlanElementViewModel extends KernelViewModel {
6890
7025
  protected _topView: boolean;
6891
7026
  private _containerVisible;
6892
7027
  private _hiddenByCameraFacing;
7028
+ private _hiddenByCameraCut;
6893
7029
  constructor(planObject: PlanObject);
6894
7030
  getSize(): Vector3_2;
6895
7031
  setHiddenByCameraFacing(hidden: boolean): void;
6896
7032
  setContainerVisibility(isVisible: boolean): void;
6897
7033
  protected isContainerVisible(): boolean;
6898
- protected _applyCameraFacingVisibility(): void;
7034
+ protected _applyVisibility(): void;
6899
7035
  isHiddenByCameraFacing(): boolean;
7036
+ /**
7037
+ * Hide what the camera near plane cuts open, given a sphere around the camera
7038
+ * position with the near distance as radius. A plan element is a single visual
7039
+ * unit, so the whole container is hidden - {@link ConfiguratorPlanObjectViewModel}
7040
+ * refines this to the components which are actually cut.
7041
+ */
7042
+ hideCutByCamera(cameraSphere: Sphere): boolean;
7043
+ /**
7044
+ * Show everything that was hidden by {@link hideCutByCamera} again.
7045
+ */
7046
+ restoreCutByCamera(): boolean;
7047
+ protected _setHiddenByCameraCut(hidden: boolean): boolean;
6900
7048
  update(): void;
6901
7049
  protected _updateBoundingBox(): void;
6902
7050
  getPosition(): Vector3_2;
@@ -7164,6 +7312,7 @@ export declare interface PlanModelViewHelper_2 {
7164
7312
  requestMesh3d(element: PlanElement_3): void;
7165
7313
  getExternalObjectGroups(plan: Plan_3): KernelObjectConfigurationArray;
7166
7314
  getExternalRoomInformation(plan: Plan_3, mode: PlanRoomGeometryMode_2): RoomInformation;
7315
+ getObstacleMap(plan: Plan_3): ObstacleMap2d;
7167
7316
  getGroupedObjects(anObject: PlanObject): KernelPlanObject[];
7168
7317
  calculateLightSourceDistribution(plan: Plan_3, lightSourceConfiguration: LightSourceConfiguration): RoomLightSourceDistributionArray;
7169
7318
  getObjectSnapInformation(anObject: PlanObject, debugHelpLines: boolean): ObjectSnapInformation;
@@ -8192,7 +8341,6 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
8192
8341
  private _plannerSceneEventHandler;
8193
8342
  private _cameraHideSphere;
8194
8343
  private readonly _cameraHideViewModelGroups;
8195
- private _objectsHiddenByCamera;
8196
8344
  private _cameraType;
8197
8345
  private _nodeZoom;
8198
8346
  private _latestWallPlanObjectViewModel;
@@ -9585,6 +9733,7 @@ export declare class RoomDesignerApi implements RoomDesignerRequests {
9585
9733
  mergeGroups(groupIds: string[]): Promise<void>;
9586
9734
  getPosDataOfAllGroups(): Promise<PosGroup[]>;
9587
9735
  getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
9736
+ getPlanObstacles(): Promise<ExternalPlanObstacles>;
9588
9737
  saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
9589
9738
  saveCurrentPlanSnapshot(): Promise<RapiPlanSnapshotGetData>;
9590
9739
  renderPosDataImage(posDataJson: object): Promise<void>;
@@ -9603,6 +9752,7 @@ export declare interface RoomDesignerRequests {
9603
9752
  mergeGroups(groupIds: string[]): Promise<void>;
9604
9753
  getPosDataOfAllGroups(): Promise<PosGroup[]>;
9605
9754
  getRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
9755
+ getPlanObstacles(): Promise<ExternalPlanObstacles>;
9606
9756
  saveExternalObjectSnapshot(): Promise<ExternalObjectSnapshotSaveResult | null>;
9607
9757
  }
9608
9758
 
@@ -10652,8 +10802,9 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
10652
10802
  private _globalInitData;
10653
10803
  private _globalCallback;
10654
10804
  private _unitFormatter;
10655
- private _planInteractionManager;
10656
10805
  private _elevationPlan2dGenerator;
10806
+ private _skyStateTracker;
10807
+ private _planInteractionManager;
10657
10808
  private _sceneManager;
10658
10809
  private _plan;
10659
10810
  private _preloadPlanId;
@@ -11088,6 +11239,8 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
11088
11239
  getExternalObjectPlanContext(include?: HiPlanContextSection[]): Promise<HiPlanContext>;
11089
11240
  externalObjectGroupOperation<C extends HiGroupOperation>(command: C, payload: HiGroupOperationPayloads[C]): Promise<HiGroupOperationResult>;
11090
11241
  getExternalRoomInformation(mode?: PlanRoomGeometryMode): Promise<ExternalRoomInformation>;
11242
+ _getExternalPlanObstacles(): Promise<ExternalPlanObstacles>;
11243
+ private _planObstacleKind;
11091
11244
  /**
11092
11245
  * Highlights a product in the planner.
11093
11246
  * @param planElementId The ID of the plan element to highlight.
@@ -11694,6 +11847,7 @@ export declare abstract class SceneManager implements Context, LifeCycleCallback
11694
11847
  protected _stopRendering: boolean;
11695
11848
  protected _roomleRenderer: GenericRoomleRenderer | null;
11696
11849
  private _roomleRendererReady;
11850
+ protected _sceneSetupReady: AsyncGuard<void>;
11697
11851
  private _isDebugGUIInitialized;
11698
11852
  private _forceRender;
11699
11853
  private _lastChange;
@@ -11912,6 +12066,7 @@ export declare class SkyStateTracker extends EventDispatcher<SkyFeatureEventMap>
11912
12066
  private _isCurrentlyActive;
11913
12067
  private _initData;
11914
12068
  constructor(creator: string);
12069
+ get isSkyEnabled(): boolean;
11915
12070
  get isCurrentlyActive(): boolean;
11916
12071
  notifyEnteredPlanner(): void;
11917
12072
  notifyEnteredConfigurator(): void;
@@ -12496,6 +12651,9 @@ export declare interface VariantsList {
12496
12651
  parts: KernelPart[];
12497
12652
  }
12498
12653
 
12654
+ export declare class Vector2Array extends EmsArray<KernelVector2f> {
12655
+ }
12656
+
12499
12657
  export declare class Vector2fArray extends EmsArray<KernelVector2f> {
12500
12658
  }
12501
12659
 
package/lib/roomle-sdk.js CHANGED
@@ -1,10 +1,10 @@
1
- import { a as e, i as t, n, r, t as i } from "./packages-Dq64FLqO.mjs";
1
+ import { a as e, i as t, n, r, t as i } from "./packages-Dh9Oa8sN.mjs";
2
2
  import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
3
- import { Et as s, St as c } from "./threejs-utils-DHTRY4yW.mjs";
3
+ import { Et as s, St as c } from "./threejs-utils-CX2ILaES.mjs";
4
4
  import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
5
- import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-AuHoyXQw.mjs";
6
- import { t as F } from "./configurator-DrF49jhK.mjs";
7
- import { t as I } from "./planner-BflojXJm.mjs";
8
- import { n as L, t as R } from "./glb-viewer-DfTibwy-.mjs";
9
- import { t as z } from "./api-B4TrOz4F.mjs";
5
+ import { F as d, G as f, J as p, K as m, M as h, N as g, P as _, S as v, V as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-C2u_Xayh.mjs";
6
+ import { t as F } from "./configurator-YwPnRLWl.mjs";
7
+ import { t as I } from "./planner-DG6mOKiO.mjs";
8
+ import { n as L, t as R } from "./glb-viewer-Bt2icXD1.mjs";
9
+ import { t as z } from "./api-CscVM_rq.mjs";
10
10
  export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer, P as HI_CONTEXT_ACTION, y as HI_GROUP_OPERATION, v as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, d as PlanElementViewModel, _ as PlanObjectViewModel, I as Planner, D as RapiAccess, j as RapiInvalidIdError, S as RapiOfflineError, z as RoomDesignerApi, E as RoomleConfigurator, L as RoomleGLBViewer, w as RoomleLightSource, A as RoomlePlanner, k as RoomleSdk, g as StaticPlanObjectViewModel, h as WallPlanElementViewModel, f as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, m as isExtObjId, O as isExternalObject, x as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, M as isSafari, l as md5Hash, p as removeExtObjIdPrefix };
@@ -106,7 +106,7 @@ var W = /* @__PURE__ */ new Ae(), Xt = /* @__PURE__ */ new d(), Zt = /* @__PURE_
106
106
  selectedObjects: this.selectedObjects,
107
107
  edgeThickness: this.edgeThickness,
108
108
  edgeGlow: this.edgeGlow
109
- }), s = L(a.mul(this.visibleEdgeColor).add(o.mul(this.hiddenEdgeColor)).mul(this.edgeStrength), 0);
109
+ }), s = L(a.mul(this.visibleEdgeColor).add(o.mul(this.hiddenEdgeColor)).mul(this.edgeStrength), 0).toInspector("Outline / Composite");
110
110
  return i === "outline" ? L(0, 0, 0, 0).add(s) : t.add(s);
111
111
  }
112
112
  addParametersToGUI(e, t) {
@@ -2858,9 +2858,9 @@ var nr = (e, t, n, r) => new $n(pt(e), ot(t), ot(n), r), rr = class e extends tn
2858
2858
  if (!(r instanceof D) || this.sliceCount.value === 0 || this.stepCount.value === 0) return t;
2859
2859
  let a = e.getTextureNode("output"), o = e.getTextureNode("diffuseColor"), s = e.getTextureNode("depth"), c = e.getTextureNode("normal"), l = St((e) => Be(c.sample(e))), u = Qn(a, s, l, r);
2860
2860
  u.sliceCount = this.sliceCount, u.stepCount = this.stepCount, u.radius = this.radius, u.expFactor = this.expFactor, u.thickness = this.thickness, u.backfaceLighting = this.backfaceLighting, u.aoIntensity = this.aoIntensity, u.giIntensity = this.giIntensity, u.useLinearThickness = this.useLinearThickness, u.useScreenSpaceSampling = this.useScreenSpaceSampling, u.useTemporalFiltering = this.useTemporalFiltering;
2861
- let d = u.getGINode(), f = u.getAONode(), p = nr(d, s, l, r);
2861
+ let d = u.getGINode().toInspector("SSGI / GI"), f = u.getAONode().toInspector("SSGI / AO"), p = nr(d, s, l, r).toInspector("SSGI / GI Denoised");
2862
2862
  p.radius = this.giDenoiseRadius;
2863
- let m = nr(f, s, l, r);
2863
+ let m = nr(f, s, l, r).toInspector("SSGI / AO Denoised");
2864
2864
  m.radius = this.aoDenoiseRadius;
2865
2865
  let h = L(Mt(a.rgb.mul(m.r), o.rgb.mul(p.rgb)), a.a);
2866
2866
  return h.name = "Ssgi Composite", i === "ao only" ? L(M(f.r), 1) : i === "gi only" ? L(d.rgb, 1) : i === "denoised ao only" ? L(M(m.r), 1) : i === "denoised gi only" ? L(p.rgb, 1) : i === "direct lighting only" ? a : i === "without denoise" ? L(Mt(a.rgb.mul(f.r), o.rgb.mul(d.rgb)), a.a) : h;
@@ -3201,8 +3201,8 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3201
3201
  }
3202
3202
  assemble(e, t, n, r, i) {
3203
3203
  if (!(r instanceof D) || i === "no fog" || i === "depth") return this.removeSceneFog(), t;
3204
- let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = Ve(a.r, o.r), c = F(r.projectionMatrixInverse), l = F(r.matrixWorld), u = Ve(F(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = L(Ht.x.mul(2).sub(1), Ht.y.mul(2).sub(1), s, 1), p = c.mul(f), m = p.xyz.div(p.w), h = l.mul(L(m, 1)).xyz.xz.length(), g = u.sub(h).div(u.sub(d)).clamp(0, 1);
3205
- return this.addSceneFog(n, d, u), Ge(L(this.fogColor, 1), t, g);
3204
+ let a = e.getTextureNode("depth"), o = this.getTransparentObjectsDepthPassTexture(n, r), s = Ve(a.r, o.r), c = F(r.projectionMatrixInverse), l = F(r.matrixWorld), u = Ve(F(r.far).onRenderUpdate(() => r.far), 50).sub(this.fogFarBlend), d = u.sub(this.fogNearBlend), f = L(Ht.x.mul(2).sub(1), Ht.y.mul(2).sub(1), s, 1), p = c.mul(f), m = p.xyz.div(p.w), h = l.mul(L(m, 1)).xyz.xz.length(), g = u.sub(h).div(u.sub(d)).clamp(0, 1).toInspector("Fog / Factor");
3205
+ return this.addSceneFog(n, d, u), Ge(L(this.fogColor, 1), t, g).toInspector("Fog / Composite");
3206
3206
  }
3207
3207
  addSceneFog(e, t, n) {
3208
3208
  let r = It.xz.length(), i = n.sub(r).div(n.sub(t)).clamp(0, 1).oneMinus();
@@ -3267,7 +3267,7 @@ var fr = /* @__PURE__ */ new Ae(), pr = /* @__PURE__ */ new d(), mr, hr = class
3267
3267
  }
3268
3268
  switchToPlanner(e) {
3269
3269
  super.switchToPlanner(e);
3270
- let t = this._initData.webGpuConfig.sky.enabled;
3270
+ let t = this._skyStateTracker.isSkyEnabled;
3271
3271
  this._webGpuGroundShadowReflection.setFloorVisible(t), this._webGpuGroundShadowReflection.setTopLightVisible(!t && e !== Se.Mode2D), this._webGpuSkyContainer.setVisible(t), this._skyStateTracker.notifyEnteredPlanner(), this.disableFogPass(), this.passNeedsReassembly = !0;
3272
3272
  }
3273
3273
  highlightObjects(e) {
@@ -3432,4 +3432,4 @@ ye([ve, _e("design:type", Object)], kr.prototype, "_domHelper", void 0), ye([ve,
3432
3432
  //#endregion
3433
3433
  export { kr as RoomleWebGPURenderer };
3434
3434
 
3435
- //# sourceMappingURL=roomle-webgpu-renderer-C26OAfkn.mjs.map
3435
+ //# sourceMappingURL=roomle-webgpu-renderer-__fKL0NL.mjs.map