@roomle/web-sdk 3.9.0-alpha.2 → 3.9.0-alpha.4

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 (63) hide show
  1. package/lib/ConfiguratorKernel.wasm +0 -0
  2. package/lib/RoomleCore.js +2 -2
  3. package/lib/RoomleCore.wasm +0 -0
  4. package/lib/RoomleToolsCore.wasm +0 -0
  5. package/lib/{api-s0Yey2rD.mjs → api-x84SYo8e.mjs} +2 -2
  6. package/lib/{api-s0Yey2rD.mjs.map → api-x84SYo8e.mjs.map} +1 -1
  7. package/lib/asset-loader.worker-A7nEeQB4.mjs.map +1 -1
  8. package/lib/banana-for-scale-CFY_5rk1.mjs.map +1 -1
  9. package/lib/budgeteer.sw-CQWYbQSc.mjs.map +1 -1
  10. package/lib/{component-dimensioning-DmcHgmpq.mjs → component-dimensioning-FjlPqIvQ.mjs} +2 -2
  11. package/lib/{component-dimensioning-DmcHgmpq.mjs.map → component-dimensioning-FjlPqIvQ.mjs.map} +1 -1
  12. package/lib/{component-raycast-helper-cJxdYLXm.mjs → component-raycast-helper-1n4uXeSD.mjs} +2 -2
  13. package/lib/{component-raycast-helper-cJxdYLXm.mjs.map → component-raycast-helper-1n4uXeSD.mjs.map} +1 -1
  14. package/lib/configurator-DeUTcLI3.mjs +2 -0
  15. package/lib/{configurator-CxsFgHxg.mjs → configurator-Dw5JbPMY.mjs} +4 -4
  16. package/lib/{configurator-CxsFgHxg.mjs.map → configurator-Dw5JbPMY.mjs.map} +1 -1
  17. package/lib/{glb-viewer-I86nXb0A.mjs → glb-viewer-CWkc6wx7.mjs} +4 -4
  18. package/lib/{glb-viewer-I86nXb0A.mjs.map → glb-viewer-CWkc6wx7.mjs.map} +1 -1
  19. package/lib/glb-viewer-Ci-IZcIt.mjs +2 -0
  20. package/lib/{highlight-coordinator-DvgAfvb2.mjs → highlight-coordinator-BJJw_RgR.mjs} +2 -2
  21. package/lib/{highlight-coordinator-DvgAfvb2.mjs.map → highlight-coordinator-BJJw_RgR.mjs.map} +1 -1
  22. package/lib/{homag-intelligence-Bt--x6_f.mjs → homag-intelligence-Dk4WxD0p.mjs} +7 -4
  23. package/lib/homag-intelligence-Dk4WxD0p.mjs.map +1 -0
  24. package/lib/kernel-C7YDLxq8.mjs.map +1 -1
  25. package/lib/{main-DeOPstVA.mjs → main-CqSFaC9L.mjs} +1769 -1639
  26. package/lib/main-CqSFaC9L.mjs.map +1 -0
  27. package/lib/{material-viewer-D8Qdq6-m.mjs → material-viewer-BSgvHUAe.mjs} +4 -4
  28. package/lib/{material-viewer-D8Qdq6-m.mjs.map → material-viewer-BSgvHUAe.mjs.map} +1 -1
  29. package/lib/packages-0mEYlGTx.mjs +4 -0
  30. package/lib/{planner-BWZr-Th2.mjs → planner-BgAj8Jp1.mjs} +3 -3
  31. package/lib/{planner-BWZr-Th2.mjs.map → planner-BgAj8Jp1.mjs.map} +1 -1
  32. package/lib/planner-CIvdB7af.mjs +2 -0
  33. package/lib/roomle-headless.d.ts +41 -19
  34. package/lib/roomle-headless.js +47 -47
  35. package/lib/roomle-headless.js.map +1 -1
  36. package/lib/roomle-sdk.d.ts +41 -19
  37. package/lib/roomle-sdk.js +8 -8
  38. package/lib/{roomle-webgpu-renderer-Cs4eLEwf.mjs → roomle-webgpu-renderer-DUr1RZL6.mjs} +2 -2
  39. package/lib/{roomle-webgpu-renderer-Cs4eLEwf.mjs.map → roomle-webgpu-renderer-DUr1RZL6.mjs.map} +1 -1
  40. package/lib/{scene-renderer-4zk6BXsR.mjs → scene-renderer-BuMnigf2.mjs} +2 -2
  41. package/lib/{scene-renderer-4zk6BXsR.mjs.map → scene-renderer-BuMnigf2.mjs.map} +1 -1
  42. package/lib/{script-loader-DSL6zJat.mjs → script-loader-DzyUQT3-.mjs} +2 -2
  43. package/lib/{script-loader-DSL6zJat.mjs.map → script-loader-DzyUQT3-.mjs.map} +1 -1
  44. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  45. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +17 -2
  46. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  47. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +2 -2
  48. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  49. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  50. package/lib/{stats-helper-DyRFKnMs.mjs → stats-helper-BZnX3BX3.mjs} +2 -2
  51. package/lib/{stats-helper-DyRFKnMs.mjs.map → stats-helper-BZnX3BX3.mjs.map} +1 -1
  52. package/lib/{threejs-utils-fEhH05zP.mjs → threejs-utils-D7sinreM.mjs} +5 -3
  53. package/lib/threejs-utils-D7sinreM.mjs.map +1 -0
  54. package/lib/{tools-core-Bf4_WCg8.mjs → tools-core-BxOoo-C1.mjs} +3 -3
  55. package/lib/{tools-core-Bf4_WCg8.mjs.map → tools-core-BxOoo-C1.mjs.map} +1 -1
  56. package/package.json +1 -1
  57. package/lib/configurator-CC0uDa2i.mjs +0 -2
  58. package/lib/glb-viewer-DyHnMYi0.mjs +0 -2
  59. package/lib/homag-intelligence-Bt--x6_f.mjs.map +0 -1
  60. package/lib/main-DeOPstVA.mjs.map +0 -1
  61. package/lib/packages-eckwotTn.mjs +0 -4
  62. package/lib/planner-D3jvWraY.mjs +0 -2
  63. package/lib/threejs-utils-fEhH05zP.mjs.map +0 -1
@@ -353,7 +353,7 @@ export declare abstract class CameraControl extends EventDispatcher<CameraEventM
353
353
  protected _yaw: number;
354
354
  protected _distance: number;
355
355
  protected _locked: boolean;
356
- private _inputManager;
356
+ protected _inputManager: InputManager;
357
357
  protected _inputListeners: InputListenerEntry[];
358
358
  protected _lerpEnabled: boolean;
359
359
  constructor(creator: string, inputManager: InputManager, initialCameraParameters?: CameraParameter);
@@ -1283,6 +1283,7 @@ export declare class ConfiguratorKernelAccess extends CommonKernelAccess {
1283
1283
  dockComponent(parentId: number, parentDockId: number, childId: number, childDockId: number, position?: KernelVector3): void;
1284
1284
  changeUseOfHDGeometry(context: ConfiguratorContext, useHDGeometry: boolean): void;
1285
1285
  webGlPreviewDockings(context: ConfiguratorContext, dragIn: boolean): void;
1286
+ get allowInsertingBetweenWhenDocking(): boolean;
1286
1287
  webGlPreviewDockingsForPlanObject(planObjectId: number, possibleChild: PossibleChildPreviewElement, dragIn: boolean): void;
1287
1288
  previewDockingsWithDrag(componentId: number, planObjectId: number): void;
1288
1289
  cancelDocking(componentId: number): void;
@@ -2654,9 +2655,21 @@ export declare interface Element_2 {
2654
2655
  perspectiveImage: AssetUrl;
2655
2656
  }
2656
2657
 
2658
+ export declare interface ElevationProfile {
2659
+ profileContour: ElevationProfilePoint[];
2660
+ }
2661
+
2662
+ export declare interface ElevationProfilePoint {
2663
+ position: KernelVector3f;
2664
+ distance: number;
2665
+ height: number;
2666
+ slopeAngleInRadians: number;
2667
+ }
2668
+
2657
2669
  export declare interface ElevationView {
2658
2670
  lineOfSight: KernelVector3f;
2659
2671
  objects: KernelPlanObject[];
2672
+ profile: ElevationProfile;
2660
2673
  }
2661
2674
 
2662
2675
  export declare class EmsArray<T> {
@@ -3294,10 +3307,6 @@ export declare interface FeatureFlags {
3294
3307
  * @description Sets whether the snapping behavior of objects in the planner is initially enabled.
3295
3308
  */
3296
3309
  enableSnapping?: boolean;
3297
- /**
3298
- * @description If set to true we will not hide other items while configuring in the planner
3299
- */
3300
- configureInRoom?: boolean;
3301
3310
  /* Excluded from this release type: advancedDocking */
3302
3311
  /* Excluded from this release type: mergeOnInsert */
3303
3312
  /* Excluded from this release type: drawPreviewMode */
@@ -3914,6 +3923,7 @@ export declare class InitData implements Context, Omit<InitDataDefinition, 'colo
3914
3923
  showPrice?: boolean;
3915
3924
  applyCurrentGlobalParameters?: boolean;
3916
3925
  configureInRoom?: boolean;
3926
+ dockInRoom?: boolean;
3917
3927
  discardExternalObjectsWhenLoadingPlan?: boolean;
3918
3928
  featureFlags: FeatureFlags;
3919
3929
  meshRaycasting?: boolean;
@@ -4005,6 +4015,7 @@ export declare class InputManager extends EventDispatcher<InputEventMap> impleme
4005
4015
  private _downPosition;
4006
4016
  private _downPositionRelative;
4007
4017
  private _elementHit;
4018
+ private _overDraggableElement;
4008
4019
  private _longClickTimer;
4009
4020
  private _delta;
4010
4021
  private _state;
@@ -4061,6 +4072,8 @@ export declare class InputManager extends EventDispatcher<InputEventMap> impleme
4061
4072
  private _onContextMenu;
4062
4073
  protected _canDrag(_type: INPUT_EVENT_TYPE): boolean;
4063
4074
  onElementHit(): void;
4075
+ onDraggableElementOver(): void;
4076
+ isOverDraggableElement(): boolean;
4064
4077
  private _getBoundingClientRect;
4065
4078
  updateSize(): void;
4066
4079
  }
@@ -4509,6 +4522,7 @@ export declare interface KernelPlanObjectComponent extends KernelPlanObjectBase
4509
4522
  isAGeneratedModule: boolean;
4510
4523
  permissionToDelete: KernelPermissionToDelete;
4511
4524
  permissionToDeleteInIsolation: KernelPermissionToDelete;
4525
+ isDuplicable: boolean;
4512
4526
  isExchangeable: boolean;
4513
4527
  animations?: KernelAnimation[];
4514
4528
  }
@@ -5333,6 +5347,7 @@ export declare interface PlanElement_2 extends KernelObject {
5333
5347
  getMeshOffsetRelativeToObject(): KernelVector3;
5334
5348
  getId(): number;
5335
5349
  getCustomDataJson(): string;
5350
+ isDuplicable(): boolean;
5336
5351
  readonly hidden: boolean;
5337
5352
  }
5338
5353
 
@@ -5365,6 +5380,7 @@ export declare class PlanElementViewModel extends KernelViewModel {
5365
5380
  getMeasurementBounds(): Box3[];
5366
5381
  hasFixedZ(): boolean;
5367
5382
  getBoundingBox(): RoomleEventedMesh;
5383
+ recomputeBoundingBox(): void;
5368
5384
  getPlanElement(): PlanObject;
5369
5385
  setObject(object: RoomleEventedObject3D): void;
5370
5386
  getObject(): RoomleEventedObject3D;
@@ -5402,9 +5418,9 @@ export declare interface PlanInteractionHandler {
5402
5418
  loadPlanXML(xml: string): Plan_2;
5403
5419
  createPlanWithObjectFromItem(object: KernelObject, position: KernelVector3, rotationInRad: number): Plan_2;
5404
5420
  getPlan(): Plan_2;
5405
- moveElementTo(planObject: KernelObject, targetPosition: KernelVector3, cameraPosition?: KernelVector3): void;
5421
+ moveElementTo(planObject: KernelObject, targetPosition: KernelVector3, dragging: boolean, cameraPosition?: KernelVector3): void;
5406
5422
  moveElementToIn2d(planObject: KernelObject, targetPosition: KernelVector3, dragging: boolean): void;
5407
- moveElementBy(planObject: KernelObject, distance: KernelVector3): void;
5423
+ moveElementBy(planObject: KernelObject, distance: KernelVector3, dragging: boolean): void;
5408
5424
  duplicatePlanObject(object: PlanObject, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
5409
5425
  duplicatePlanObjects(objects: PlanObjectList, count: number, findFreeSpaceInPlan: boolean): PlanObject[];
5410
5426
  setElementVisibility(element: PlanElement_2, isVisible: boolean): void;
@@ -5660,6 +5676,15 @@ export declare interface PlannerInitData {
5660
5676
  * - reduce initial spacing of camera (higher zoom)
5661
5677
  */
5662
5678
  moc?: boolean;
5679
+ /**
5680
+ * @description If set to true we will not hide other items while configuring in the planner
5681
+ */
5682
+ configureInRoom?: boolean;
5683
+ /**
5684
+ * @description If set to true docking of configurable objects in the planner is enabled.
5685
+ * The default value is true.
5686
+ */
5687
+ dockInRoom?: boolean;
5663
5688
  }
5664
5689
 
5665
5690
  export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
@@ -5677,6 +5702,7 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
5677
5702
  protected _loadError(): void;
5678
5703
  get homagIntelligence(): HomagIntelligence | null;
5679
5704
  setHomagIntelligence(homagIntelligence: HomagIntelligence | null): void;
5705
+ get isDockingInPlannerEnabled(): boolean;
5680
5706
  private _createPlanInteractionHandler;
5681
5707
  addPlannerListener(listener: PlannerKernelCallbackI): void;
5682
5708
  removePlannerListener(listener: PlannerKernelCallbackI): void;
@@ -6292,6 +6318,7 @@ export declare interface PlanObject extends PlanElement_2 {
6292
6318
  getRectangle(): Rectangle;
6293
6319
  getRotationToPreferredFront(): ObjectFrontRotation;
6294
6320
  isRootComponentOfChildObject(componentRuntimeId: number): boolean;
6321
+ getReplacementConstructionId(): number;
6295
6322
  }
6296
6323
 
6297
6324
  export declare interface PlanObjectKernel {
@@ -6355,6 +6382,7 @@ export declare class PlanObjectViewModel extends PlanElementViewModel {
6355
6382
  protected finishInit(): Promise<void>;
6356
6383
  protected failInit(error: Error): Promise<void>;
6357
6384
  isInitDone(): Promise<void>;
6385
+ clear(): void;
6358
6386
  getPlanObject(): PlanObject;
6359
6387
  getSize(): Vector3;
6360
6388
  getObjectMeasurements(zoomFactor: number, clientWidth: number, clientHeight: number): Nullable_2<ObjectMeasurements>;
@@ -6504,6 +6532,7 @@ export declare class PlanViewModel extends ConfiguratorViewModel implements Plan
6504
6532
  endPlanConstruction(_plan: Plan_2): void;
6505
6533
  planElementChanged(_plan: Plan_2, _planObject: PlanElementViewModel): void;
6506
6534
  planObjectConfigurationLoaded(_plan: Plan_2, planElement: PlanElement_2, success: boolean): void;
6535
+ recomputeConfigurableBoundingBoxes(): void;
6507
6536
  planObjectConfigurationChanged(_plan: Plan_2, _element: PlanElementViewModel): void;
6508
6537
  addMesh(planElement: PlanElement_2, material: any, vertices: Float32Array, indices: Int32Array, uvCoords: Float32Array, normals: Float32Array): void;
6509
6538
  removePlanObjectFromScene(planElementViewModel: PlanElementViewModel | undefined): void;
@@ -6614,18 +6643,7 @@ export declare interface PosContourSegment {
6614
6643
  thickness?: number;
6615
6644
  }
6616
6645
 
6617
- export declare const enum PosDock {
6618
- RightTop = "RightTop",
6619
- BackTop = "BackTop",
6620
- LeftTop = "LeftTop",
6621
- RightBottom = "RightBottom",
6622
- BackBottom = "BackBottom",
6623
- LeftBottom = "LeftBottom",
6624
- LeftBackTop = "LeftBackTop",
6625
- RightBackTop = "RightBackTop",
6626
- LeftBackBottom = "LeftBackBottom",
6627
- RightBackBottom = "RightBackBottom"
6628
- }
6646
+ export declare type PosDock = 'RightTop' | 'BackTop' | 'LeftTop' | 'RightBottom' | 'BackBottom' | 'LeftBottom' | 'LeftBackTop' | 'RightBackTop' | 'LeftBackBottom' | 'RightBackBottom';
6629
6647
 
6630
6648
  export declare interface PosDockedContext {
6631
6649
  ownDockingVector: PosDock | string;
@@ -6705,6 +6723,10 @@ export declare interface PosGroup {
6705
6723
  * The version used for this data structure
6706
6724
  */
6707
6725
  ver?: number;
6726
+ /**
6727
+ * Optional the attributes of this group
6728
+ */
6729
+ attributes?: PosModuleAttribute[];
6708
6730
  }
6709
6731
 
6710
6732
  export declare interface PosInsertLevelInfo {
package/lib/roomle-sdk.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { i as e, t } from "./kernel-C7YDLxq8.mjs";
2
- import { pt as n } from "./threejs-utils-fEhH05zP.mjs";
3
- import { F as r, G as i, H as a, M as o, N as s, O as c, P as l, U as u, V as d, W as f, a as p, at as m, b as h, c as g, ct as _, j as v, l as y, n as b, q as x, st as S, ut as C, v as w, x as T, y as E, z as D } from "./main-DeOPstVA.mjs";
4
- import { t as O } from "./configurator-CxsFgHxg.mjs";
5
- import { t as k } from "./planner-BWZr-Th2.mjs";
6
- import { n as A, t as j } from "./glb-viewer-I86nXb0A.mjs";
7
- import { t as M } from "./api-s0Yey2rD.mjs";
8
- import "./packages-eckwotTn.mjs";
9
- export { t as CONFIGURATION_TYPE, n as CORE_EDGE_TYPE, e as CORE_PERMISSION_TO_DELETE, O as Configurator, p as ConfiguratorUiCallbacks, v as FloorPlanElementViewModel, j as GlbViewer, x as GlobalCallback, D as HI_CONTEXT_ACTION, S as IdbManager, b as Main, T as MeasurementLinePlanElementViewModel, w as PLAN_ELEMENT_CHANGE_TYPES, r as PlanElementViewModel, l as PlanObjectViewModel, k as Planner, m as RapiAccess, M as RoomDesignerApi, c as RoomleConfigurator, A as RoomleGLBViewer, C as RoomleLightSource, g as RoomlePlanner, E as RoomlePlannerUiCallback, y as RoomleSdk, s as StaticPlanObjectViewModel, o as WallPlanElementViewModel, d as createExtObj, i as createExtObjId, _ as getCatalogIdFromConfigurationHash, a as isExtObjId, u as isExternalObject, h as isSafari, f as removeExtObjIdPrefix };
2
+ import { gt as n, pt as r } from "./threejs-utils-D7sinreM.mjs";
3
+ import { F as i, G as a, H as o, M as s, N as c, O as l, P as u, U as d, V as f, W as p, a as m, at as h, b as g, c as _, ct as v, j as y, l as b, n as x, q as S, st as C, ut as w, v as T, x as E, y as D, z as O } from "./main-CqSFaC9L.mjs";
4
+ import { t as k } from "./configurator-Dw5JbPMY.mjs";
5
+ import { t as A } from "./planner-BgAj8Jp1.mjs";
6
+ import { n as j, t as M } from "./glb-viewer-CWkc6wx7.mjs";
7
+ import { t as N } from "./api-x84SYo8e.mjs";
8
+ import "./packages-0mEYlGTx.mjs";
9
+ export { t as CONFIGURATION_TYPE, r as CORE_EDGE_TYPE, n as CORE_OBJECT_CATEGORY, e as CORE_PERMISSION_TO_DELETE, k as Configurator, m as ConfiguratorUiCallbacks, y as FloorPlanElementViewModel, M as GlbViewer, S as GlobalCallback, O as HI_CONTEXT_ACTION, C as IdbManager, x as Main, E as MeasurementLinePlanElementViewModel, T as PLAN_ELEMENT_CHANGE_TYPES, i as PlanElementViewModel, u as PlanObjectViewModel, A as Planner, h as RapiAccess, N as RoomDesignerApi, l as RoomleConfigurator, j as RoomleGLBViewer, w as RoomleLightSource, _ as RoomlePlanner, D as RoomlePlannerUiCallback, b as RoomleSdk, c as StaticPlanObjectViewModel, s as WallPlanElementViewModel, f as createExtObj, a as createExtObjId, v as getCatalogIdFromConfigurationHash, o as isExtObjId, d as isExternalObject, g as isSafari, p as removeExtObjIdPrefix };
@@ -1,5 +1,5 @@
1
1
  import { Ar as e, C as t, Cr as n, Dn as r, Gn as i, J as a, K as o, Or as s, Sr as c, Tn as l, Ui as u, Vi as d, Wn as f, Zt as p, _i as m, bi as h, fi as g, gi as _, h as v, hi as y, kr as b, mi as x, mr as S, mt as C, nt as ee, on as w, pi as te, pr as ne, q as re, qr as ie, rn as T, si as E, st as ae, t as oe, vi as se, wt as ce, yi as le, zr as ue } from "./three.core-DNErG1F6.mjs";
2
- import { o as de, t as fe } from "./scene-renderer-4zk6BXsR.mjs";
2
+ import { o as de, t as fe } from "./scene-renderer-BuMnigf2.mjs";
3
3
  import { n as pe, r as me, t as he } from "./decorate-C9r0zXzz.mjs";
4
4
  import { n as ge } from "./roomle-renderer-CkSFbpmg.mjs";
5
5
  import { Rt as D, Un as O, Ut as _e, Wn as ve, Z as ye, bn as k, fr as be, jn as xe, kt as Se, lr as Ce, un as we, vn as Te, x as Ee } from "./three.webgpu-C8myBXe1.mjs";
@@ -2650,4 +2650,4 @@ he([me, pe("design:type", Object)], Ln.prototype, "_domHelper", void 0), he([me,
2650
2650
  //#endregion
2651
2651
  export { Ln as RoomleWebGPURenderer };
2652
2652
 
2653
- //# sourceMappingURL=roomle-webgpu-renderer-Cs4eLEwf.mjs.map
2653
+ //# sourceMappingURL=roomle-webgpu-renderer-DUr1RZL6.mjs.map