@colijnit/homedecorator 262.1.2 → 262.1.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.
package/index.d.ts CHANGED
@@ -80,13 +80,13 @@ import * as i8 from '@angular/material/button-toggle';
80
80
  import { MatButtonToggleChange } from '@angular/material/button-toggle';
81
81
  import * as i11$1 from '@colijnit/modelcreation';
82
82
  import { ModelCreationService } from '@colijnit/modelcreation';
83
- import * as i43 from '@angular/material/snack-bar';
83
+ import * as i44 from '@angular/material/snack-bar';
84
84
  import { MatSnackBar } from '@angular/material/snack-bar';
85
85
  import * as i10$1 from '@angular/material/card';
86
86
  import * as i9 from '@angular/material/sidenav';
87
87
  import { MatDrawer } from '@angular/material/sidenav';
88
88
  import * as i15 from '@angular/material/tabs';
89
- import * as i41 from '@angular/material/divider';
89
+ import * as i42 from '@angular/material/divider';
90
90
  import * as i13$2 from '@angular/cdk/drag-drop';
91
91
  import * as i2$1 from 'ngx-color/chrome';
92
92
  import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
@@ -181,8 +181,10 @@ declare enum MessageType {
181
181
  ChangeArticleConfigurationType = "ChangeArticleConfigurationType",
182
182
  RenderUploadProgress = "RenderUploadProgress",
183
183
  RenderUploadFinished = "RenderUploadFinished",
184
+ RenderFinished = "RenderFinished",
184
185
  RemoveSlowConnectionToast = "RemoveSlowConnectionToast",
185
- OpenConfigurator = "OpenConfigurator"
186
+ OpenConfigurator = "OpenConfigurator",
187
+ LoadConfigurationFromPreset = "LoadConfigurationFromPreset"
186
188
  }
187
189
 
188
190
  interface MessagesWithoutPayload {
@@ -713,6 +715,7 @@ declare class HomedecoratorAppEventService {
713
715
  externalOpen: Subject<void>;
714
716
  searchClick: Subject<void>;
715
717
  shareProject: Subject<void>;
718
+ configurationFromPresetLoaded: BehaviorSubject<boolean>;
716
719
  static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorAppEventService, never>;
717
720
  static ɵprov: i0.ɵɵInjectableDeclaration<HomedecoratorAppEventService>;
718
721
  }
@@ -806,6 +809,7 @@ declare class HomedecoratorConnectorAdapterService implements OnDestroy {
806
809
  getArticleExtended(articleNumber: string): Promise<ArticleExtended>;
807
810
  getDocumentContent(docId: number, thumbNail?: boolean): Promise<string>;
808
811
  getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
812
+ initForPreset(presetId: string, goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
809
813
  private _getPublicationCodeForRole;
810
814
  static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorConnectorAdapterService, never>;
811
815
  static ɵprov: i0.ɵɵInjectableDeclaration<HomedecoratorConnectorAdapterService>;
@@ -1260,6 +1264,10 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1260
1264
  addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<string>;
1261
1265
  handleAnswersReceived(): void;
1262
1266
  getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
1267
+ getExternalSourceFromId(externalSourceId: number): ExternalSource;
1268
+ getGoodIdFromArticleNr(sku: string): Promise<number>;
1269
+ initForPreset(presetId: string, goodId: number): Promise<DataServiceResponseData>;
1270
+ getPublicParams(url: string, upId: number): Promise<any>;
1263
1271
  private _prepareSelectionsToDisplayImages;
1264
1272
  private _prepareSelectionsNextOptionValues;
1265
1273
  private _getPublicationCode;
@@ -2555,7 +2563,13 @@ interface MessagesWithPayload {
2555
2563
  [MessageType.ChangeArticleConfigurationType]: boolean;
2556
2564
  [MessageType.RenderUploadProgress]: number;
2557
2565
  [MessageType.RenderUploadFinished]: boolean;
2566
+ [MessageType.RenderFinished]: boolean;
2558
2567
  [MessageType.OpenConfigurator]: Item | ItemGroup;
2568
+ [MessageType.LoadConfigurationFromPreset]: {
2569
+ sku: string;
2570
+ instanceId: string;
2571
+ settings: Options;
2572
+ };
2559
2573
  }
2560
2574
 
2561
2575
  type PayloadlessMessageTypes = keyof MessagesWithoutPayload;
@@ -2898,6 +2912,38 @@ declare class IntegrationService implements OnDestroy {
2898
2912
  static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationService>;
2899
2913
  }
2900
2914
 
2915
+ declare class ConfigurationPresetLoadService implements OnDestroy {
2916
+ private _homedecoratorConnectorService;
2917
+ private _settingsService;
2918
+ private _homedecoratorConnectorAdapterService;
2919
+ private _messageService;
2920
+ private _homedecoratorEventService;
2921
+ set sku(value: string);
2922
+ get sku(): string;
2923
+ set instanceId(value: string);
2924
+ get instanceId(): string;
2925
+ set externalSourceId(value: number);
2926
+ get externalSourceId(): number;
2927
+ set showConfigurationLoad(value: boolean);
2928
+ get showConfigurationLoad(): boolean;
2929
+ article: Article;
2930
+ goodId: number;
2931
+ private _sku;
2932
+ private _instanceId;
2933
+ private _externalSourceId;
2934
+ private _showConfigurationLoad;
2935
+ private _subs;
2936
+ private _externalSourceOptions;
2937
+ constructor(_homedecoratorConnectorService: HomedecoratorConnectorService, _settingsService: HomedecoratorSettingsService, _homedecoratorConnectorAdapterService: HomedecoratorConnectorAdapterService, _messageService: MessageBusService, _homedecoratorEventService: HomedecoratorAppEventService);
2938
+ ngOnDestroy(): void;
2939
+ LoadPreset(): Promise<void>;
2940
+ loadArticleDataForPreset(): Promise<void>;
2941
+ reset(): void;
2942
+ private _updateMode;
2943
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetLoadService, never>;
2944
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationPresetLoadService>;
2945
+ }
2946
+
2901
2947
  declare class HomedecoratorComponent implements OnInit, OnDestroy {
2902
2948
  appService: HomedecoratorAppService;
2903
2949
  controllerService: HomedecoratorConnectorService;
@@ -2913,6 +2959,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2913
2959
  private _integrationService;
2914
2960
  private _sceneService;
2915
2961
  private _webWorkerService;
2962
+ private _configurationPresetLoadService;
2916
2963
  generalFilterOrders: FilterOrder[];
2917
2964
  purchaseFilterOrders: FilterOrder[];
2918
2965
  logisticsFilterOrders: FilterOrder[];
@@ -2920,6 +2967,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2920
2967
  get initCommunication(): boolean;
2921
2968
  projectToLoad: string;
2922
2969
  shareButton: boolean;
2970
+ loadWithConfigurationPreset: any;
2923
2971
  set settings(value: any);
2924
2972
  get settings(): any;
2925
2973
  showClass: boolean;
@@ -2934,7 +2982,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2934
2982
  private _settings;
2935
2983
  private _eventService;
2936
2984
  constructor(appService: HomedecoratorAppService, // don't remove this, needs to be created on a high level
2937
- controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService);
2985
+ controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService, _configurationPresetLoadService: ConfigurationPresetLoadService);
2938
2986
  ngOnInit(): Promise<void>;
2939
2987
  ngOnDestroy(): void;
2940
2988
  registerCustomIcons(): void;
@@ -2946,8 +2994,8 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2946
2994
  private _startWithPreset;
2947
2995
  private _setCommunication;
2948
2996
  private _initConnection;
2949
- static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null]>;
2950
- static ɵcmp: i0.ɵɵComponentDeclaration<HomedecoratorComponent, "co-homedecorator", never, { "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; "initCommunication": { "alias": "initCommunication"; "required": false; }; "projectToLoad": { "alias": "projectToLoad"; "required": false; }; "shareButton": { "alias": "shareButton"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
2997
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null, null]>;
2998
+ static ɵcmp: i0.ɵɵComponentDeclaration<HomedecoratorComponent, "co-homedecorator", never, { "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; "initCommunication": { "alias": "initCommunication"; "required": false; }; "projectToLoad": { "alias": "projectToLoad"; "required": false; }; "shareButton": { "alias": "shareButton"; "required": false; }; "loadWithConfigurationPreset": { "alias": "loadWithConfigurationPreset"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
2951
2999
  }
2952
3000
 
2953
3001
  declare class ProgressBarComponent {
@@ -3310,6 +3358,12 @@ declare abstract class WallItem extends Item {
3310
3358
  protected createOrUpdateDistances(): THREE.Object3D;
3311
3359
  protected getObjectWithoutExcludedMeshes(): Object3D;
3312
3360
  protected getHalfSizeWithoutScale(): Vector3;
3361
+ /**
3362
+ * Local z at which measurement labels/distance arrows are drawn so they sit just in front of the wall.
3363
+ * Surface-mounted items sit on the wall face, so a small offset suffices. In-wall items override this
3364
+ * (they are centred inside the wall, so the offset must clear half the wall thickness).
3365
+ */
3366
+ protected _measurementZOffset(): number;
3313
3367
  private _createHeightMeasurement;
3314
3368
  private _createWidthMeasurement;
3315
3369
  private _getMaskedGeometry;
@@ -3957,11 +4011,22 @@ declare class InWallItem extends WallItem {
3957
4011
  private readonly _openCloseIndicatorColor;
3958
4012
  private readonly _frameWidth;
3959
4013
  private readonly _frameDepth;
4014
+ /** Extra depth added on top of the wall thickness so the dynamically built mask always pierces the wall. */
4015
+ private readonly _maskDepthMargin;
3960
4016
  private _isWindow;
3961
4017
  private _doorpost;
4018
+ /** Runtime-generated opening mask for custom doors/windows (custom items have no GLB `_mask` mesh). */
4019
+ private _customMaskGeometry;
3962
4020
  get doorpost(): boolean;
3963
4021
  constructor(metadata: Metadata, object: Object3D | Mesh, texture?: Texture);
3964
4022
  dispose(): void;
4023
+ /**
4024
+ * Custom doors/windows are built at runtime and have no GLB `_mask` mesh, so the base lookup finds
4025
+ * nothing usable. Return the dynamically generated opening mask instead. Build it lazily here so any
4026
+ * instance (incl. clones that never ran createCustomMesh) yields a mask as soon as the wall asks for
4027
+ * one - otherwise the wall is left solid for that item.
4028
+ */
4029
+ getMaskedGeometry(): BufferGeometry;
3965
4030
  updateOpeningObject(): void;
3966
4031
  removeOpeningObject(): void;
3967
4032
  updateMeasurements(): void;
@@ -3990,6 +4055,13 @@ declare class InWallItem extends WallItem {
3990
4055
  protected initiateItemObject(data: any): void;
3991
4056
  private _setDefault;
3992
4057
  private _createMaterials;
4058
+ /**
4059
+ * Builds the geometry used to subtract the opening from the wall. It spans the full width/height of
4060
+ * the custom item and is made deeper than the wall (plus a margin) so the CSG subtraction always
4061
+ * pierces the wall completely. base-wall positions it via the item's own position/quaternion, so the
4062
+ * box is centred on the item origin (the opening centre on the wall plane).
4063
+ */
4064
+ private _updateCustomMaskGeometry;
3993
4065
  private _getHeightFrame;
3994
4066
  private _createFrameSide;
3995
4067
  private _getAdditionalTexture;
@@ -3997,6 +4069,11 @@ declare class InWallItem extends WallItem {
3997
4069
  private _makeOpeningDirectionObject;
3998
4070
  private _makeSingleOpeningDirectionSymbol;
3999
4071
  protected createMeasurements(): void;
4072
+ /**
4073
+ * In-wall items sit centred inside the wall (getWallOffset() === 0), so the labels/arrows must clear
4074
+ * half the wall thickness to end up in front of the wall face instead of buried inside it.
4075
+ */
4076
+ protected _measurementZOffset(): number;
4000
4077
  private _createDepthMeasurement;
4001
4078
  private _calculateOpeningDepthPositions;
4002
4079
  }
@@ -4046,6 +4123,8 @@ declare class WallService implements OnDestroy {
4046
4123
  getAllInWallItems(): InWallItem[];
4047
4124
  getClosestWall(itemX: number, itemZ: number, ignoreVisible?: boolean): Wall;
4048
4125
  splitWall(wall: Wall, corner: Corner): void;
4126
+ /** Picks the wall whose closest point (clamped to the segment) is nearest to (x, z). */
4127
+ private _closestWallForPoint;
4049
4128
  updatePrevWall(wallId: string, prevWallId: string): void;
4050
4129
  updateNextWall(wallId: string, nextWallId: string): void;
4051
4130
  createNewWall(start: Corner, end: Corner, height: number, thickness: number, frontColor?: ColorRepresentation, backColor?: ColorRepresentation, frontTexture?: Texture, backTexture?: Texture): Wall;
@@ -4053,6 +4132,10 @@ declare class WallService implements OnDestroy {
4053
4132
  addCornersForIntersections(): void;
4054
4133
  mergeWithIntersected(corner: Corner): boolean;
4055
4134
  removeWall(wall: Wall): void;
4135
+ /** Merges two collinear walls around a degree-2 corner into a single wall. */
4136
+ joinCollinearWallsAt(corner: Corner): void;
4137
+ /** True when the two walls are in line through 'corner' (angle ~180°). */
4138
+ private _areCollinearThroughCorner;
4056
4139
  updateWallHeights(newHeight: number): void;
4057
4140
  resetRoomWalls(): void;
4058
4141
  updateWalls(): void;
@@ -4800,6 +4883,13 @@ declare class SceneEventService implements OnDestroy {
4800
4883
  setExploreMode(on?: boolean): void;
4801
4884
  setSelectedObject(object: Item | ItemGroup, mesh?: Mesh): void;
4802
4885
  startDragging(x: number, y: number, z?: number): void;
4886
+ /**
4887
+ * The wall whose front face the camera is looking at most directly. Used to pick a sensible target
4888
+ * wall when an item is added without a cursor (object library). A wall's front normal is its +Z axis
4889
+ * in world space; the wall most facing the camera maximises frontNormal · (cameraPos - wallPos), which
4890
+ * naturally excludes the transparent near wall (its front points away from the camera).
4891
+ */
4892
+ private _wallMostFacingCamera;
4803
4893
  intersectingVec3(vec2: Vector2, intersection?: Intersection): Vector3;
4804
4894
  private _isRotating;
4805
4895
  private _keyDownEvent;
@@ -6056,52 +6146,6 @@ declare enum RenderStatus {
6056
6146
  IsWaiting = 4
6057
6147
  }
6058
6148
 
6059
- declare enum ConnectionStatus {
6060
- IsUndefined = 0,
6061
- IsConnected = 1,
6062
- TryingToConnect = 2,
6063
- IsDisConnected = 3
6064
- }
6065
-
6066
- declare class Lightning {
6067
- id: number;
6068
- name: string;
6069
- settings: any;
6070
- }
6071
-
6072
- declare class ImageSize {
6073
- id: number;
6074
- name: string;
6075
- width: number;
6076
- height: number;
6077
- }
6078
-
6079
- declare class CameraPosition {
6080
- id: number;
6081
- name: string;
6082
- position: number;
6083
- type: string;
6084
- angle: number;
6085
- }
6086
-
6087
- declare class Render {
6088
- id: number;
6089
- productHash: string;
6090
- lightning: Lightning;
6091
- imageSize: ImageSize;
6092
- cameraPosition: CameraPosition;
6093
- url: string;
6094
- status: RenderStatus;
6095
- progress: number;
6096
- }
6097
-
6098
- declare class RenderEnvironment {
6099
- id: number;
6100
- name: string;
6101
- hdrFile: string;
6102
- intensity: number;
6103
- }
6104
-
6105
6149
  declare class RenderQueueItem {
6106
6150
  key: string;
6107
6151
  host: string;
@@ -6116,25 +6160,6 @@ declare class RenderQueueItem {
6116
6160
  params: any;
6117
6161
  }
6118
6162
 
6119
- declare class ExportObject {
6120
- name: string;
6121
- sku: string;
6122
- defaultRenderPath: string;
6123
- }
6124
-
6125
- declare class ExportService {
6126
- private _settingsService;
6127
- private _ioneConnectorAdapter;
6128
- private _threedSelectorService;
6129
- private _link;
6130
- private static GetSavingPath;
6131
- private static GetMeshMainMaterialName;
6132
- constructor(_settingsService: HomedecoratorSettingsService, _ioneConnectorAdapter: HomedecoratorConnectorAdapterService, _threedSelectorService: ThreedselectorService);
6133
- getExportObjectFromCustomFloorGroup(cfg: Item): ExportObject;
6134
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>;
6135
- static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>;
6136
- }
6137
-
6138
6163
  declare enum ToastType {
6139
6164
  Success = 0,
6140
6165
  Warning = 1,
@@ -6155,90 +6180,6 @@ declare class ToastService {
6155
6180
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
6156
6181
  }
6157
6182
 
6158
- declare class RenderData {
6159
- type: RenderModes;
6160
- furniture?: any[];
6161
- configuredItem?: ExportObject;
6162
- imageWidth?: number;
6163
- imageHeight?: number;
6164
- cameraMatrix?: any;
6165
- cameraFOV?: number;
6166
- render?: Render;
6167
- settings?: RenderSettings;
6168
- }
6169
-
6170
- declare class RenderService implements OnDestroy {
6171
- private _settingsService;
6172
- private _exportService;
6173
- private _cameraService;
6174
- private _sceneService;
6175
- private _toastService;
6176
- private _messageBusService;
6177
- private _googleTagManager;
6178
- private _roomService;
6179
- private _floorService;
6180
- readonly renderModes: typeof RenderModes;
6181
- service: any;
6182
- serverData: any;
6183
- sceneData: any;
6184
- prevItem: any;
6185
- streaming: any;
6186
- renderedRoomImages: string[];
6187
- connectionStatus: ConnectionStatus;
6188
- renders: Render[];
6189
- cameraPositions: CameraPosition[];
6190
- imageSizes: ImageSize[];
6191
- lightnings: Lightning[];
6192
- renderEnvironments: RenderEnvironment[];
6193
- renderScenes: any;
6194
- private _ceilingLightMargin;
6195
- selectedImageSize: number;
6196
- selectedEnvironment: number;
6197
- selectedRenderScene: string;
6198
- blendFilesRender: boolean;
6199
- positions: number;
6200
- save: boolean;
6201
- renderRoomImageChanged: BehaviorSubject<string>;
6202
- renderingStarted: Subject<void>;
6203
- renderImageChanged: BehaviorSubject<string>;
6204
- renderQueue: any[];
6205
- currentQueueRenderItem: RenderQueueItem;
6206
- currentProductHash: string;
6207
- standAloneCameraMatrix: number[];
6208
- private _subs;
6209
- static MakeWindowMaterialTransparent(material: Material): Material;
6210
- constructor(_settingsService: HomedecoratorSettingsService, _exportService: ExportService, _cameraService: CameraService, _sceneService: SceneService, _toastService: ToastService, _messageBusService: MessageBusService, _googleTagManager: GoogleTagManagerService, _roomService: RoomService, _floorService: FloorService);
6211
- ngOnDestroy(): void;
6212
- checkConnection(): Promise<void>;
6213
- private _renderServiceHeartBeat;
6214
- getRenderParameters(type: RenderModes): RenderData;
6215
- private _fixLight;
6216
- private _elementMustBeRemoved;
6217
- private _exportToGlb;
6218
- startRendering(): Promise<void>;
6219
- private _colijnRenderScene;
6220
- private _startRenderLoop;
6221
- private _quitRenderLoop;
6222
- private _startRenderStream;
6223
- private _setRenderProgress;
6224
- private _onRenderError;
6225
- private _onRenderClose;
6226
- private _afterRendering;
6227
- private _getRenderServiceUrl;
6228
- forceRenderImage(): void;
6229
- private _checkVisibleUpdates;
6230
- private _htmlImageDisplay;
6231
- getRenderOnId(id: number): any;
6232
- getImageSizeOnId(id: number): ImageSize;
6233
- getRenderEnvironmentOnId(id: number): RenderEnvironment;
6234
- getLightningOnId(id: number): any;
6235
- /******************************************** Export functions ********************************************/
6236
- private _getFirstCustomFloorItemFromScene;
6237
- private _getConfiguredFurnitureItem;
6238
- static ɵfac: i0.ɵɵFactoryDeclaration<RenderService, never>;
6239
- static ɵprov: i0.ɵɵInjectableDeclaration<RenderService>;
6240
- }
6241
-
6242
6183
  declare class BlenderRenderSettings {
6243
6184
  height: number;
6244
6185
  width: number;
@@ -6249,7 +6190,7 @@ declare class BlenderRenderSettings {
6249
6190
  allowCulling: boolean;
6250
6191
  }
6251
6192
 
6252
- declare class NewRenderService implements OnDestroy {
6193
+ declare class RenderService implements OnDestroy {
6253
6194
  messageService: MessageBusService;
6254
6195
  private _settingsService;
6255
6196
  private _buildFurnitureService;
@@ -6286,6 +6227,7 @@ declare class NewRenderService implements OnDestroy {
6286
6227
  renderedRoomImages: string[];
6287
6228
  clientWidth: number;
6288
6229
  clientHeight: number;
6230
+ blendFilesRender: boolean;
6289
6231
  private _overWriteTransparency;
6290
6232
  private _subs;
6291
6233
  constructor(messageService: MessageBusService, _settingsService: HomedecoratorSettingsService, _buildFurnitureService: SwitchBuildFurnitureService, _cameraService: CameraService, _sceneService: SceneService, _ione: HomedecoratorConnectorService, _ioneConnectorAdapter: HomedecoratorConnectorAdapterService, _threedSelectorService: ThreedselectorService, _toastService: ToastService, _messageBusService: MessageBusService, _googleTagManager: GoogleTagManagerService, _roomService: RoomService, _floorService: FloorService, _wallService: WallService, _ceilingService: CeilingService, _loadFurnitureService: SwitchLoadFurnitureService, _utilsService: UtilsService, _presetService: PresetsService, _apiServiceModule: ApiServiceModule, _appEventService: HomedecoratorAppEventService, _dictionaryService: HomedecoratorDictionaryService);
@@ -6316,8 +6258,8 @@ declare class NewRenderService implements OnDestroy {
6316
6258
  private _getRenderType;
6317
6259
  private _useTransparency;
6318
6260
  private _setForceTransparency;
6319
- static ɵfac: i0.ɵɵFactoryDeclaration<NewRenderService, never>;
6320
- static ɵprov: i0.ɵɵInjectableDeclaration<NewRenderService>;
6261
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderService, never>;
6262
+ static ɵprov: i0.ɵɵInjectableDeclaration<RenderService>;
6321
6263
  }
6322
6264
 
6323
6265
  declare class ConnectionHeathService {
@@ -6335,28 +6277,37 @@ declare class ConnectionHeathService {
6335
6277
  static ɵprov: i0.ɵɵInjectableDeclaration<ConnectionHeathService>;
6336
6278
  }
6337
6279
 
6338
- declare class RenderControlsComponent implements OnInit {
6339
- renderService: RenderService;
6280
+ declare class ImageSize {
6281
+ id: number;
6282
+ name: string;
6283
+ width: number;
6284
+ height: number;
6285
+ }
6286
+
6287
+ declare class RenderControlsComponent implements OnInit, OnDestroy {
6340
6288
  messageService: MessageBusService;
6341
6289
  viewModeService: ViewModeService;
6342
6290
  settingsService: HomedecoratorSettingsService;
6343
6291
  iconService: HomedecoratorIconCacheService;
6292
+ renderService: RenderService;
6344
6293
  private _dialog;
6345
6294
  private _sceneService;
6346
6295
  private _cameraService;
6347
6296
  private _configurationService;
6348
6297
  private _settingsService;
6349
- private _newRenderService;
6350
6298
  private _utilsService;
6351
6299
  private _roomService;
6352
6300
  private _wallMeasurementsService;
6353
6301
  private _connectionHealthService;
6354
6302
  private _dictionaryService;
6303
+ private _dialogService;
6355
6304
  readonly viewModes: typeof ViewMode;
6356
6305
  readonly renderStatus: typeof RenderStatus;
6357
6306
  readonly icons: typeof IconEnum;
6358
6307
  readonly renderModes: typeof RenderModes;
6359
6308
  renderButton: ElementRef;
6309
+ imageSizes: ImageSize[];
6310
+ selectedImageSize: ImageSize;
6360
6311
  get disablePictureButton(): boolean;
6361
6312
  blenderPreviewRender: string;
6362
6313
  hdriIntensity: number;
@@ -6372,14 +6323,14 @@ declare class RenderControlsComponent implements OnInit {
6372
6323
  showCullingErrorDialog: boolean;
6373
6324
  startUploading: boolean;
6374
6325
  private _subs;
6375
- constructor(renderService: RenderService, messageService: MessageBusService, viewModeService: ViewModeService, settingsService: HomedecoratorSettingsService, iconService: HomedecoratorIconCacheService, _dialog: MatDialog, _sceneService: SceneService, _cameraService: CameraService, _configurationService: ConfigurationService, _settingsService: HomedecoratorSettingsService, _newRenderService: NewRenderService, _utilsService: UtilsService, _roomService: RoomService, _wallMeasurementsService: WallMeasurementsService, _connectionHealthService: ConnectionHeathService, _dictionaryService: HomedecoratorDictionaryService);
6326
+ constructor(messageService: MessageBusService, viewModeService: ViewModeService, settingsService: HomedecoratorSettingsService, iconService: HomedecoratorIconCacheService, renderService: RenderService, _dialog: MatDialog, _sceneService: SceneService, _cameraService: CameraService, _configurationService: ConfigurationService, _settingsService: HomedecoratorSettingsService, _utilsService: UtilsService, _roomService: RoomService, _wallMeasurementsService: WallMeasurementsService, _connectionHealthService: ConnectionHeathService, _dictionaryService: HomedecoratorDictionaryService, _dialogService: DialogService);
6376
6327
  ngOnInit(): void;
6328
+ ngOnDestroy(): void;
6377
6329
  showRenderForm(event: MouseEvent): void;
6378
6330
  hideUploadDialog(ready: boolean): void;
6379
- createBlenderRender(): void;
6331
+ createBlenderRender(preview?: boolean): void;
6380
6332
  resetBlenderRenderScene(): void;
6381
6333
  moveCameraWithinBounds(): void;
6382
- createPreviewRender(): void;
6383
6334
  showPreview(image: string): void;
6384
6335
  toggleRenderSettings(): void;
6385
6336
  updateBlenderSceneSettings(event: any): void;
@@ -6393,19 +6344,15 @@ declare class RenderControlsComponent implements OnInit {
6393
6344
 
6394
6345
  declare class RenderProgressComponent implements OnDestroy {
6395
6346
  private _messageService;
6396
- private _progressService;
6397
- set show(show: boolean);
6398
- get show(): boolean;
6399
6347
  title: string;
6400
- get progressValue(): string;
6401
6348
  progress: number;
6349
+ rendering: boolean;
6402
6350
  private _subs;
6403
- private _show;
6404
- constructor(_messageService: MessageBusService, _progressService: ProgressService);
6351
+ constructor(_messageService: MessageBusService);
6405
6352
  ngOnDestroy(): void;
6406
6353
  updateProgress(progress: number): void;
6407
6354
  static ɵfac: i0.ɵɵFactoryDeclaration<RenderProgressComponent, never>;
6408
- static ɵcmp: i0.ɵɵComponentDeclaration<RenderProgressComponent, "rp-render-progress", never, { "show": { "alias": "show"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, false, never>;
6355
+ static ɵcmp: i0.ɵɵComponentDeclaration<RenderProgressComponent, "rp-render-progress", never, {}, {}, never, never, false, never>;
6409
6356
  }
6410
6357
 
6411
6358
  declare class RenderModule {
@@ -6611,6 +6558,7 @@ declare class FloorplanRenderService implements OnDestroy {
6611
6558
  removeTempWall(): void;
6612
6559
  private _clear;
6613
6560
  private _drawGrid;
6561
+ private _drawBackground;
6614
6562
  private _drawRooms;
6615
6563
  private _pickDrawRoomId;
6616
6564
  private _drawWallsWithNoRoom;
@@ -6719,15 +6667,6 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6719
6667
  private _subs;
6720
6668
  private _selectedFloor;
6721
6669
  private _modeBeforeRightMouseMove;
6722
- private _diagramBackground;
6723
- private _diagramBackgroundScale;
6724
- private _diagramBackgroundCurrentScale;
6725
- private _diagramBackgroundHeight;
6726
- private _diagramBackgroundWidth;
6727
- private _diagramBackgroundActiveZoom;
6728
- private _diagramBackgroundAlpha;
6729
- private _showDiagramBackground;
6730
- private _diagramScale;
6731
6670
  private _cameraZoom;
6732
6671
  private _lastTouchPoint;
6733
6672
  private _readyToDraw;
@@ -6742,6 +6681,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6742
6681
  handleDecimalsChoice(decimals: number): void;
6743
6682
  draw(): void;
6744
6683
  private _requestDraw;
6684
+ private _clearBackground;
6745
6685
  showStartMessage(): void;
6746
6686
  resizeView(): void;
6747
6687
  reset(): void;
@@ -6772,9 +6712,7 @@ declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
6772
6712
  private _checkMoveWallOrCorner;
6773
6713
  private _moveSelectedCorner;
6774
6714
  private _moveSelectedWall;
6775
- private _drawBackground;
6776
6715
  private _handleWindowResize;
6777
- private _clear;
6778
6716
  private _updateWallPosition;
6779
6717
  private _scale;
6780
6718
  private _draw;
@@ -7832,6 +7770,21 @@ declare class SelectedObjectScaleComponent {
7832
7770
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectedObjectScaleComponent, "rp-selected-object-scale", never, { "object": { "alias": "object"; "required": false; }; }, { "objectChange": "objectChange"; }, never, never, false, never>;
7833
7771
  }
7834
7772
 
7773
+ declare class ConfigurationPresetLoaderComponent implements OnInit {
7774
+ configurationPresetService: ConfigurationPresetLoadService;
7775
+ iconService: HomedecoratorIconCacheService;
7776
+ private _homedecoratorConnectorService;
7777
+ private _messageService;
7778
+ readonly icon: typeof IconEnum;
7779
+ showClass(): boolean;
7780
+ constructor(configurationPresetService: ConfigurationPresetLoadService, iconService: HomedecoratorIconCacheService, _homedecoratorConnectorService: HomedecoratorConnectorService, _messageService: MessageBusService);
7781
+ ngOnInit(): void;
7782
+ handleCloseClick(): void;
7783
+ handleLoadPreset(): void;
7784
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetLoaderComponent, never>;
7785
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationPresetLoaderComponent, "co-configurator-preset-loader", never, {}, {}, never, never, false, never>;
7786
+ }
7787
+
7835
7788
  declare class CategoryLibraryComponent {
7836
7789
  categories: Category[];
7837
7790
  categoryClick: EventEmitter<Category>;
@@ -8090,8 +8043,6 @@ declare class UploadModelDialogComponent implements AfterViewInit {
8090
8043
  }
8091
8044
 
8092
8045
  declare class ModelUploaderComponent {
8093
- settingsService: HomedecoratorSettingsService;
8094
- private _messageService;
8095
8046
  fileUploadInput: ElementRef;
8096
8047
  fileUploaded: EventEmitter<UploadFileData>;
8097
8048
  file: File | null;
@@ -8100,7 +8051,6 @@ declare class ModelUploaderComponent {
8100
8051
  uploadError: string;
8101
8052
  private _maxFileSize;
8102
8053
  private _allowedFiles;
8103
- constructor(settingsService: HomedecoratorSettingsService, _messageService: MessageBusService);
8104
8054
  onChange(event: any): void;
8105
8055
  upload(fileExtension: string): Promise<void>;
8106
8056
  fileToArrayBuffer(file: File): Promise<ArrayBuffer>;
@@ -8210,7 +8160,7 @@ declare class UploadModelDialogModule {
8210
8160
 
8211
8161
  declare class RoomPlannerModule {
8212
8162
  static ɵfac: i0.ɵɵFactoryDeclaration<RoomPlannerModule, never>;
8213
- static ɵmod: i0.ɵɵNgModuleDeclaration<RoomPlannerModule, [typeof ColorPickerComponent, typeof EditApplyComponent, typeof ObjectLibraryComponent, typeof RoomPlannerComponent, typeof FloorplannerComponent, typeof SelectedFloorComponent, typeof SelectedObjectComponent, typeof SelectedThreedObjectComponent, typeof SelectedWallComponent, typeof SettingsComponent, typeof SettingsOptionsComponent, typeof TexturePickerComponent, typeof TextureEditorComponent, typeof EditParameterComponent, typeof RalColorPickerComponent, typeof DimensionInputComponent, typeof FileDropComponent, typeof AppearanceSectionComponent, typeof FloorCatalogComponent, typeof CustomShapeCreatorComponent, typeof WallLengthInputComponent, typeof CustomCylinderCreatorComponent, typeof SelectedObjectScaleComponent], [typeof CoreModule, typeof CategoryLibraryModule, typeof i3.CommonModule, typeof ContextMenuModule, typeof i4.MatButtonModule, typeof i8.MatButtonToggleModule, typeof i10$1.MatCardModule, typeof i19.MatCheckboxModule, typeof i4$2.MatFormFieldModule, typeof i5$1.MatInputModule, typeof i9.MatSidenavModule, typeof i11.MatSliderModule, typeof i12.MatSlideToggleModule, typeof i13.MatGridListModule, typeof i7.MatIconModule, typeof i15.MatTabsModule, typeof i10.MatSelectModule, typeof i41.MatDividerModule, typeof i20.MatTooltipModule, typeof i43.MatSnackBarModule, typeof i6$1.FormsModule, typeof InfoDialogModule, typeof Core3dModule, typeof ToolbarIconModule, typeof ZoomControlsModule, typeof RenderModule, typeof SliderInputModule, typeof i7$1.FlexLayoutModule, typeof i6.IconModule, typeof i6.ButtonModule, typeof ButtonElevationModule, typeof ExportPdfModule, typeof MaterialDialogModule, typeof RgbColorPickerModule, typeof UploadModelDialogModule], [typeof RoomPlannerComponent]>;
8163
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RoomPlannerModule, [typeof ColorPickerComponent, typeof EditApplyComponent, typeof ObjectLibraryComponent, typeof RoomPlannerComponent, typeof FloorplannerComponent, typeof SelectedFloorComponent, typeof SelectedObjectComponent, typeof SelectedThreedObjectComponent, typeof SelectedWallComponent, typeof SettingsComponent, typeof SettingsOptionsComponent, typeof TexturePickerComponent, typeof TextureEditorComponent, typeof EditParameterComponent, typeof RalColorPickerComponent, typeof DimensionInputComponent, typeof FileDropComponent, typeof AppearanceSectionComponent, typeof FloorCatalogComponent, typeof CustomShapeCreatorComponent, typeof WallLengthInputComponent, typeof CustomCylinderCreatorComponent, typeof SelectedObjectScaleComponent, typeof ConfigurationPresetLoaderComponent], [typeof CoreModule, typeof CategoryLibraryModule, typeof i3.CommonModule, typeof ContextMenuModule, typeof i4.MatButtonModule, typeof i8.MatButtonToggleModule, typeof i10$1.MatCardModule, typeof i19.MatCheckboxModule, typeof i4$2.MatFormFieldModule, typeof i5$1.MatInputModule, typeof i9.MatSidenavModule, typeof i11.MatSliderModule, typeof i12.MatSlideToggleModule, typeof i13.MatGridListModule, typeof i7.MatIconModule, typeof i15.MatTabsModule, typeof i10.MatSelectModule, typeof i42.MatDividerModule, typeof i20.MatTooltipModule, typeof i44.MatSnackBarModule, typeof i6$1.FormsModule, typeof InfoDialogModule, typeof Core3dModule, typeof ToolbarIconModule, typeof ZoomControlsModule, typeof RenderModule, typeof SliderInputModule, typeof i7$1.FlexLayoutModule, typeof i6.IconModule, typeof i6.ButtonModule, typeof ButtonElevationModule, typeof ExportPdfModule, typeof MaterialDialogModule, typeof RgbColorPickerModule, typeof UploadModelDialogModule], [typeof RoomPlannerComponent]>;
8214
8164
  static ɵinj: i0.ɵɵInjectorDeclaration<RoomPlannerModule>;
8215
8165
  }
8216
8166
 
@@ -8465,7 +8415,10 @@ declare class ThreedselectorComponent implements OnInit, OnDestroy {
8465
8415
  showConfiguratorChange(show: boolean): void;
8466
8416
  loadFurnitureFromSku(position: Vector3, sku: string, settings?: HomedecoratorExternalSettingsInterface): Promise<CustomFloorGroupResult>;
8467
8417
  configureFurniture(object: Item | ItemGroup): Promise<void>;
8418
+ handleLoadIOneFurnitureIntoSceneByPreset(sku: string, instanceId: string, settings: Options): Promise<void>;
8419
+ configureFurnitureFromPreset(sku: string, instanceId: string, settings?: Options): Promise<CustomFloorGroupResult>;
8468
8420
  private _initConfigurator;
8421
+ private _prepareSettings;
8469
8422
  private _resetConfigurator;
8470
8423
  private _waitForBuildToFinish;
8471
8424
  private _setSourceSettings;
@@ -8823,8 +8776,8 @@ declare class DrawDialogComponent implements OnDestroy, OnInit, AfterViewInit {
8823
8776
  handleMouseMove(event: MouseEvent): void;
8824
8777
  handleMouseUp(event: MouseEvent): void;
8825
8778
  handleMouseLeave(event: MouseEvent): void;
8826
- clickingZoom(option: string): void;
8827
8779
  handleMouseWheel(event: WheelEvent): void;
8780
+ handleContextMenu(event: MouseEvent): boolean;
8828
8781
  getEventLocation(e: any): {
8829
8782
  x: any;
8830
8783
  y: any;
@@ -8935,7 +8888,7 @@ declare class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
8935
8888
  leftSidebar: MatDrawer;
8936
8889
  handleKeyDown(event: KeyboardEvent): void;
8937
8890
  get fullscreen(): boolean;
8938
- constructor(appState: AppStateService, presetsService: PresetsService, messageService: MessageBusService, settingsService: HomedecoratorSettingsService, storageService: LocalStorageService, iconService: HomedecoratorIconCacheService, _screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _toastService: ToastService, _appService: HomedecoratorAppService, _permanentStoreService: PermanentStoreService, _utilsService: UtilsService, _itemService: ItemService, _floorService: FloorService, _animationService: AnimationService, _developmentService: DevelopmentService, _newRenderService: NewRenderService, _thirdPartyModelService: ThirdPartyModelService, _lightPresetService: LightPresetsService, _adapterService: HomedecoratorConnectorAdapterService, _connectionHealthService: ConnectionHeathService, _homedecoratorEventService: HomedecoratorAppEventService);
8891
+ constructor(appState: AppStateService, presetsService: PresetsService, messageService: MessageBusService, settingsService: HomedecoratorSettingsService, storageService: LocalStorageService, iconService: HomedecoratorIconCacheService, _screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _toastService: ToastService, _appService: HomedecoratorAppService, _permanentStoreService: PermanentStoreService, _utilsService: UtilsService, _itemService: ItemService, _floorService: FloorService, _animationService: AnimationService, _developmentService: DevelopmentService, _newRenderService: RenderService, _thirdPartyModelService: ThirdPartyModelService, _lightPresetService: LightPresetsService, _adapterService: HomedecoratorConnectorAdapterService, _connectionHealthService: ConnectionHeathService, _homedecoratorEventService: HomedecoratorAppEventService);
8939
8892
  ngOnInit(): void;
8940
8893
  ngOnDestroy(): void;
8941
8894
  ngAfterViewInit(): void;
@@ -9281,7 +9234,7 @@ declare class ThreedInPhotoModule {
9281
9234
 
9282
9235
  declare class ToolbarModule {
9283
9236
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarModule, never>;
9284
- static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, [typeof SaveDialogComponent, typeof OpenDialogComponent, typeof DrawDialogComponent, typeof PdfCropDialogComponent, typeof ToolbarComponent, typeof SavedDialogComponent, typeof DownloadDialogComponent, typeof LoadFromCloudDialogComponent, typeof LandingScreenModalComponent, typeof LimitedModeMessageComponent, typeof RegisterDialogComponent, typeof EditPresetDialogComponent], [typeof CoreModule, typeof i3.CommonModule, typeof ErrorDialogModule, typeof ModelDialogModule, typeof i6$1.FormsModule, typeof i6$1.ReactiveFormsModule, typeof i18.MatToolbarModule, typeof i7.MatIconModule, typeof i4.MatButtonModule, typeof i20.MatTooltipModule, typeof i9.MatSidenavModule, typeof i5.MatListModule, typeof i4$1.MatDialogModule, typeof i8.MatButtonToggleModule, typeof i43.MatSnackBarModule, typeof i5$1.MatInputModule, typeof i4$2.MatFormFieldModule, typeof i10$1.MatCardModule, typeof i13.MatGridListModule, typeof i31$1.MatMenuModule, typeof i7$1.FlexLayoutModule, typeof i33.PortalModule, typeof ToolbarIconModule, typeof i6.InputTextModule, typeof i6.IconModule, typeof i36.MatBadgeModule, typeof ThreedInPhotoModule, typeof i38.PdfViewerModule, typeof ExportPdfModule], [typeof ToolbarComponent]>;
9237
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ToolbarModule, [typeof SaveDialogComponent, typeof OpenDialogComponent, typeof DrawDialogComponent, typeof PdfCropDialogComponent, typeof ToolbarComponent, typeof SavedDialogComponent, typeof DownloadDialogComponent, typeof LoadFromCloudDialogComponent, typeof LandingScreenModalComponent, typeof LimitedModeMessageComponent, typeof RegisterDialogComponent, typeof EditPresetDialogComponent], [typeof CoreModule, typeof i3.CommonModule, typeof ErrorDialogModule, typeof ModelDialogModule, typeof i6$1.FormsModule, typeof i6$1.ReactiveFormsModule, typeof i18.MatToolbarModule, typeof i7.MatIconModule, typeof i4.MatButtonModule, typeof i20.MatTooltipModule, typeof i9.MatSidenavModule, typeof i5.MatListModule, typeof i4$1.MatDialogModule, typeof i8.MatButtonToggleModule, typeof i44.MatSnackBarModule, typeof i5$1.MatInputModule, typeof i4$2.MatFormFieldModule, typeof i10$1.MatCardModule, typeof i13.MatGridListModule, typeof i31$1.MatMenuModule, typeof i7$1.FlexLayoutModule, typeof i33.PortalModule, typeof ToolbarIconModule, typeof i6.InputTextModule, typeof i6.IconModule, typeof i36.MatBadgeModule, typeof ThreedInPhotoModule, typeof i38.PdfViewerModule, typeof ExportPdfModule], [typeof ToolbarComponent]>;
9285
9238
  static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
9286
9239
  }
9287
9240