@colijnit/homedecorator 262.1.2 → 262.1.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.
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
  }
@@ -4800,6 +4877,13 @@ declare class SceneEventService implements OnDestroy {
4800
4877
  setExploreMode(on?: boolean): void;
4801
4878
  setSelectedObject(object: Item | ItemGroup, mesh?: Mesh): void;
4802
4879
  startDragging(x: number, y: number, z?: number): void;
4880
+ /**
4881
+ * The wall whose front face the camera is looking at most directly. Used to pick a sensible target
4882
+ * wall when an item is added without a cursor (object library). A wall's front normal is its +Z axis
4883
+ * in world space; the wall most facing the camera maximises frontNormal · (cameraPos - wallPos), which
4884
+ * naturally excludes the transparent near wall (its front points away from the camera).
4885
+ */
4886
+ private _wallMostFacingCamera;
4803
4887
  intersectingVec3(vec2: Vector2, intersection?: Intersection): Vector3;
4804
4888
  private _isRotating;
4805
4889
  private _keyDownEvent;
@@ -6056,52 +6140,6 @@ declare enum RenderStatus {
6056
6140
  IsWaiting = 4
6057
6141
  }
6058
6142
 
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
6143
  declare class RenderQueueItem {
6106
6144
  key: string;
6107
6145
  host: string;
@@ -6116,25 +6154,6 @@ declare class RenderQueueItem {
6116
6154
  params: any;
6117
6155
  }
6118
6156
 
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
6157
  declare enum ToastType {
6139
6158
  Success = 0,
6140
6159
  Warning = 1,
@@ -6155,90 +6174,6 @@ declare class ToastService {
6155
6174
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
6156
6175
  }
6157
6176
 
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
6177
  declare class BlenderRenderSettings {
6243
6178
  height: number;
6244
6179
  width: number;
@@ -6249,7 +6184,7 @@ declare class BlenderRenderSettings {
6249
6184
  allowCulling: boolean;
6250
6185
  }
6251
6186
 
6252
- declare class NewRenderService implements OnDestroy {
6187
+ declare class RenderService implements OnDestroy {
6253
6188
  messageService: MessageBusService;
6254
6189
  private _settingsService;
6255
6190
  private _buildFurnitureService;
@@ -6286,6 +6221,7 @@ declare class NewRenderService implements OnDestroy {
6286
6221
  renderedRoomImages: string[];
6287
6222
  clientWidth: number;
6288
6223
  clientHeight: number;
6224
+ blendFilesRender: boolean;
6289
6225
  private _overWriteTransparency;
6290
6226
  private _subs;
6291
6227
  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 +6252,8 @@ declare class NewRenderService implements OnDestroy {
6316
6252
  private _getRenderType;
6317
6253
  private _useTransparency;
6318
6254
  private _setForceTransparency;
6319
- static ɵfac: i0.ɵɵFactoryDeclaration<NewRenderService, never>;
6320
- static ɵprov: i0.ɵɵInjectableDeclaration<NewRenderService>;
6255
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderService, never>;
6256
+ static ɵprov: i0.ɵɵInjectableDeclaration<RenderService>;
6321
6257
  }
6322
6258
 
6323
6259
  declare class ConnectionHeathService {
@@ -6335,28 +6271,37 @@ declare class ConnectionHeathService {
6335
6271
  static ɵprov: i0.ɵɵInjectableDeclaration<ConnectionHeathService>;
6336
6272
  }
6337
6273
 
6338
- declare class RenderControlsComponent implements OnInit {
6339
- renderService: RenderService;
6274
+ declare class ImageSize {
6275
+ id: number;
6276
+ name: string;
6277
+ width: number;
6278
+ height: number;
6279
+ }
6280
+
6281
+ declare class RenderControlsComponent implements OnInit, OnDestroy {
6340
6282
  messageService: MessageBusService;
6341
6283
  viewModeService: ViewModeService;
6342
6284
  settingsService: HomedecoratorSettingsService;
6343
6285
  iconService: HomedecoratorIconCacheService;
6286
+ renderService: RenderService;
6344
6287
  private _dialog;
6345
6288
  private _sceneService;
6346
6289
  private _cameraService;
6347
6290
  private _configurationService;
6348
6291
  private _settingsService;
6349
- private _newRenderService;
6350
6292
  private _utilsService;
6351
6293
  private _roomService;
6352
6294
  private _wallMeasurementsService;
6353
6295
  private _connectionHealthService;
6354
6296
  private _dictionaryService;
6297
+ private _dialogService;
6355
6298
  readonly viewModes: typeof ViewMode;
6356
6299
  readonly renderStatus: typeof RenderStatus;
6357
6300
  readonly icons: typeof IconEnum;
6358
6301
  readonly renderModes: typeof RenderModes;
6359
6302
  renderButton: ElementRef;
6303
+ imageSizes: ImageSize[];
6304
+ selectedImageSize: ImageSize;
6360
6305
  get disablePictureButton(): boolean;
6361
6306
  blenderPreviewRender: string;
6362
6307
  hdriIntensity: number;
@@ -6372,14 +6317,14 @@ declare class RenderControlsComponent implements OnInit {
6372
6317
  showCullingErrorDialog: boolean;
6373
6318
  startUploading: boolean;
6374
6319
  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);
6320
+ 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
6321
  ngOnInit(): void;
6322
+ ngOnDestroy(): void;
6377
6323
  showRenderForm(event: MouseEvent): void;
6378
6324
  hideUploadDialog(ready: boolean): void;
6379
- createBlenderRender(): void;
6325
+ createBlenderRender(preview?: boolean): void;
6380
6326
  resetBlenderRenderScene(): void;
6381
6327
  moveCameraWithinBounds(): void;
6382
- createPreviewRender(): void;
6383
6328
  showPreview(image: string): void;
6384
6329
  toggleRenderSettings(): void;
6385
6330
  updateBlenderSceneSettings(event: any): void;
@@ -6393,19 +6338,15 @@ declare class RenderControlsComponent implements OnInit {
6393
6338
 
6394
6339
  declare class RenderProgressComponent implements OnDestroy {
6395
6340
  private _messageService;
6396
- private _progressService;
6397
- set show(show: boolean);
6398
- get show(): boolean;
6399
6341
  title: string;
6400
- get progressValue(): string;
6401
6342
  progress: number;
6343
+ rendering: boolean;
6402
6344
  private _subs;
6403
- private _show;
6404
- constructor(_messageService: MessageBusService, _progressService: ProgressService);
6345
+ constructor(_messageService: MessageBusService);
6405
6346
  ngOnDestroy(): void;
6406
6347
  updateProgress(progress: number): void;
6407
6348
  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>;
6349
+ static ɵcmp: i0.ɵɵComponentDeclaration<RenderProgressComponent, "rp-render-progress", never, {}, {}, never, never, false, never>;
6409
6350
  }
6410
6351
 
6411
6352
  declare class RenderModule {
@@ -7832,6 +7773,21 @@ declare class SelectedObjectScaleComponent {
7832
7773
  static ɵcmp: i0.ɵɵComponentDeclaration<SelectedObjectScaleComponent, "rp-selected-object-scale", never, { "object": { "alias": "object"; "required": false; }; }, { "objectChange": "objectChange"; }, never, never, false, never>;
7833
7774
  }
7834
7775
 
7776
+ declare class ConfigurationPresetLoaderComponent implements OnInit {
7777
+ configurationPresetService: ConfigurationPresetLoadService;
7778
+ iconService: HomedecoratorIconCacheService;
7779
+ private _homedecoratorConnectorService;
7780
+ private _messageService;
7781
+ readonly icon: typeof IconEnum;
7782
+ showClass(): boolean;
7783
+ constructor(configurationPresetService: ConfigurationPresetLoadService, iconService: HomedecoratorIconCacheService, _homedecoratorConnectorService: HomedecoratorConnectorService, _messageService: MessageBusService);
7784
+ ngOnInit(): void;
7785
+ handleCloseClick(): void;
7786
+ handleLoadPreset(): void;
7787
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetLoaderComponent, never>;
7788
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationPresetLoaderComponent, "co-configurator-preset-loader", never, {}, {}, never, never, false, never>;
7789
+ }
7790
+
7835
7791
  declare class CategoryLibraryComponent {
7836
7792
  categories: Category[];
7837
7793
  categoryClick: EventEmitter<Category>;
@@ -8210,7 +8166,7 @@ declare class UploadModelDialogModule {
8210
8166
 
8211
8167
  declare class RoomPlannerModule {
8212
8168
  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]>;
8169
+ 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
8170
  static ɵinj: i0.ɵɵInjectorDeclaration<RoomPlannerModule>;
8215
8171
  }
8216
8172
 
@@ -8465,7 +8421,10 @@ declare class ThreedselectorComponent implements OnInit, OnDestroy {
8465
8421
  showConfiguratorChange(show: boolean): void;
8466
8422
  loadFurnitureFromSku(position: Vector3, sku: string, settings?: HomedecoratorExternalSettingsInterface): Promise<CustomFloorGroupResult>;
8467
8423
  configureFurniture(object: Item | ItemGroup): Promise<void>;
8424
+ handleLoadIOneFurnitureIntoSceneByPreset(sku: string, instanceId: string, settings: Options): Promise<void>;
8425
+ configureFurnitureFromPreset(sku: string, instanceId: string, settings?: Options): Promise<CustomFloorGroupResult>;
8468
8426
  private _initConfigurator;
8427
+ private _prepareSettings;
8469
8428
  private _resetConfigurator;
8470
8429
  private _waitForBuildToFinish;
8471
8430
  private _setSourceSettings;
@@ -8935,7 +8894,7 @@ declare class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
8935
8894
  leftSidebar: MatDrawer;
8936
8895
  handleKeyDown(event: KeyboardEvent): void;
8937
8896
  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);
8897
+ 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
8898
  ngOnInit(): void;
8940
8899
  ngOnDestroy(): void;
8941
8900
  ngAfterViewInit(): void;
@@ -9281,7 +9240,7 @@ declare class ThreedInPhotoModule {
9281
9240
 
9282
9241
  declare class ToolbarModule {
9283
9242
  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]>;
9243
+ 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
9244
  static ɵinj: i0.ɵɵInjectorDeclaration<ToolbarModule>;
9286
9245
  }
9287
9246
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/homedecorator",
3
- "version": "262.1.2",
3
+ "version": "262.1.3",
4
4
  "description": "Homedecorator application based on 262 version of iOne backend",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -14,7 +14,7 @@
14
14
  "@colijnit/configurator": ">=262.1.0",
15
15
  "@colijnit/configuratorapi": ">=262.1.0",
16
16
  "@colijnit/corecomponents_v12": ">=262.1.0",
17
- "@colijnit/ioneconnector": ">=262.1.0",
17
+ "@colijnit/ioneconnector": ">=262.1.3",
18
18
  "@colijnit/mainapi": ">=262.1.1",
19
19
  "@colijnit/relationapi": ">=262.1.0",
20
20
  "@colijnit/transactionapi": ">=262.1.0"