@colijnit/homedecorator 259.1.2 → 259.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.
Files changed (31) hide show
  1. package/app/core/model/homedecorator-settings-options.d.ts +1 -0
  2. package/app/core/service/homedecorator-app.service.d.ts +5 -0
  3. package/app/core/service/homedecorator-connector-adapter.service.d.ts +2 -2
  4. package/app/plugins/core3d/service/camera.service.d.ts +3 -1
  5. package/app/plugins/core3d/service/hud.service.d.ts +1 -7
  6. package/app/plugins/threedselector/threedselector/service/variation.service.d.ts +1 -0
  7. package/app/plugins/threedselector/threedselector/threedselector.component.d.ts +7 -1
  8. package/app/plugins/toolbar/toolbar/toolbar.component.d.ts +3 -1
  9. package/app/shared/model-dialog/model-dialog-furniture-list.component.d.ts +5 -6
  10. package/app/shared/model-dialog/model-dialog.component.d.ts +12 -0
  11. package/bundles/colijnit-homedecorator.umd.js +1074 -845
  12. package/bundles/colijnit-homedecorator.umd.js.map +1 -1
  13. package/esm2015/app/core/model/homedecorator-settings-options.js +2 -1
  14. package/esm2015/app/core/service/homedecorator-app.service.js +15 -1
  15. package/esm2015/app/core/service/homedecorator-connector-adapter.service.js +13 -2
  16. package/esm2015/app/core/service/homedecorator-connector.service.js +25 -11
  17. package/esm2015/app/plugins/core3d/collision-manager/collision-manager.service.js +4 -1
  18. package/esm2015/app/plugins/core3d/service/camera.service.js +12 -5
  19. package/esm2015/app/plugins/core3d/service/controls.js +15 -1
  20. package/esm2015/app/plugins/core3d/service/drag-and-drop.service.js +8 -2
  21. package/esm2015/app/plugins/core3d/service/hud.service.js +5 -11
  22. package/esm2015/app/plugins/lite-selector/lite-selector/component/answers-slideout/answers-slideout.component.js +11 -6
  23. package/esm2015/app/plugins/threedselector/threedselector/service/build-furniture.service.js +2 -2
  24. package/esm2015/app/plugins/threedselector/threedselector/service/variation.service.js +13 -1
  25. package/esm2015/app/plugins/threedselector/threedselector/threedselector.component.js +102 -23
  26. package/esm2015/app/plugins/toolbar/toolbar/toolbar.component.js +31 -21
  27. package/esm2015/app/shared/model-dialog/model-dialog-furniture-list.component.js +33 -26
  28. package/esm2015/app/shared/model-dialog/model-dialog.component.js +5 -2
  29. package/fesm2015/colijnit-homedecorator.js +737 -553
  30. package/fesm2015/colijnit-homedecorator.js.map +1 -1
  31. package/package.json +1 -1
@@ -52,4 +52,5 @@ export declare class HomedecoratorSettingsOptions {
52
52
  showProgressBar: boolean;
53
53
  showProgressText: boolean;
54
54
  showSelectionLoader: boolean;
55
+ useAnimations: boolean;
55
56
  }
@@ -18,6 +18,8 @@ export declare class HomedecoratorAppService implements OnDestroy {
18
18
  private _lightPresetsJsonFile;
19
19
  set sku(value: string);
20
20
  get sku(): string;
21
+ set materialPreview(value: string);
22
+ get materialPreview(): string;
21
23
  models: ThreedModel[];
22
24
  categories: Category[];
23
25
  presets: Preset[];
@@ -34,12 +36,15 @@ export declare class HomedecoratorAppService implements OnDestroy {
34
36
  wallTexturesLoaded: BehaviorSubject<Texture[]>;
35
37
  lightPresetsLoaded: BehaviorSubject<LightPreset[]>;
36
38
  loadedHelpGifs: BehaviorSubject<MediaResource[]>;
39
+ materialPreviewSet: BehaviorSubject<string>;
40
+ materialPreviewUpdate: BehaviorSubject<any>;
37
41
  userRegistered: boolean;
38
42
  private _sku;
39
43
  private _assetPath;
40
44
  private _connectionSet;
41
45
  private _subs;
42
46
  private _timer;
47
+ private _materialPreview;
43
48
  constructor(_jsonUtilsService: JsonUtilsService, _settingsService: HomedecoratorSettingsService, _configurationService: ConfigurationService);
44
49
  ngOnDestroy(): void;
45
50
  getCategories(categoryType: string): Category[];
@@ -69,8 +69,8 @@ export declare class HomedecoratorConnectorAdapterService implements OnDestroy {
69
69
  private _publicationCodeForUserRole;
70
70
  constructor(_appEventService: HomedecoratorAppEventService, _catalogExternalSourcesService: CatalogExternalSourcesService);
71
71
  ngOnDestroy(): void;
72
- initConnectionFromMetadata(metadata: Metadata, settings: HomedecoratorSettings): Promise<void>;
73
- initConnector(options: Options, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<void>;
72
+ initConnectionFromMetadata(metadata: Metadata, settings: HomedecoratorSettings): Promise<boolean>;
73
+ initConnector(options: Options, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<boolean>;
74
74
  logOut(): Promise<void>;
75
75
  getPublicationCodeBasedOnLogin(): number;
76
76
  getWebViewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<ExternalCatalogStartupInfo>;
@@ -4,11 +4,13 @@ import { Subject } from 'rxjs';
4
4
  import { ViewModeService } from '../../../core/service/view-mode.service';
5
5
  import { MessageBusService } from '../../../core/service/message-bus.service';
6
6
  import { ConfigurationService } from '../../../core/service/configuration.service';
7
+ import { HomedecoratorSettingsService } from '../../../core/service/homedecorator-settings.service';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class CameraService implements OnDestroy {
9
10
  private _viewModeService;
10
11
  private _messageBusService;
11
12
  private _configurationService;
13
+ private _settingsService;
12
14
  readonly panSpeed = 30;
13
15
  readonly rotateBy: number;
14
16
  readonly moveBy = 25;
@@ -30,7 +32,7 @@ export declare class CameraService implements OnDestroy {
30
32
  private set viewMode(value);
31
33
  get cameraLocked(): boolean;
32
34
  set realAspectRatio(value: number);
33
- constructor(_viewModeService: ViewModeService, _messageBusService: MessageBusService, _configurationService: ConfigurationService);
35
+ constructor(_viewModeService: ViewModeService, _messageBusService: MessageBusService, _configurationService: ConfigurationService, _settingsService: HomedecoratorSettingsService);
34
36
  ngOnDestroy(): void;
35
37
  init(element: HTMLElement): void;
36
38
  cameraLeft(): void;
@@ -10,10 +10,7 @@ import { MessageBusService } from '../../../core/service/message-bus.service';
10
10
  import { ConfigurationService } from '../../../core/service/configuration.service';
11
11
  import { ViewModeService } from '../../../core/service/view-mode.service';
12
12
  import { ItemService } from './item.service';
13
- import { FloorService } from './floor.service';
14
13
  import { HomedecoratorDictionaryService } from '../../../core/service/homedecorator-dictionary.service';
15
- import { PresetsService } from '../../../core/service/presets.service';
16
- import { DomSanitizer } from '@angular/platform-browser';
17
14
  import * as i0 from "@angular/core";
18
15
  export declare class HudService implements OnDestroy {
19
16
  private _sceneService;
@@ -24,10 +21,7 @@ export declare class HudService implements OnDestroy {
24
21
  private _configurationService;
25
22
  private _viewModeService;
26
23
  private _itemService;
27
- private _floorService;
28
- private _presetsService;
29
24
  private _dictionaryService;
30
- private _domSanitizer;
31
25
  private _selectedItem;
32
26
  private _rotationHelper;
33
27
  private _wasRotationHelperShowing;
@@ -44,7 +38,7 @@ export declare class HudService implements OnDestroy {
44
38
  private _displayCustomShapeNames;
45
39
  private _isAirplaneMode;
46
40
  private _subs;
47
- constructor(_sceneService: SceneService, _cameraService: CameraService, _roomService: RoomService, _fontService: FontService, _messageBusService: MessageBusService, _configurationService: ConfigurationService, _viewModeService: ViewModeService, _itemService: ItemService, _floorService: FloorService, _presetsService: PresetsService, _dictionaryService: HomedecoratorDictionaryService, _domSanitizer: DomSanitizer);
41
+ constructor(_sceneService: SceneService, _cameraService: CameraService, _roomService: RoomService, _fontService: FontService, _messageBusService: MessageBusService, _configurationService: ConfigurationService, _viewModeService: ViewModeService, _itemService: ItemService, _dictionaryService: HomedecoratorDictionaryService);
48
42
  ngOnDestroy(): void;
49
43
  unselectItem(): void;
50
44
  get rotationHelper(): RotationHelper;
@@ -15,6 +15,7 @@ export declare class VariationService {
15
15
  loadVariationFromLocalFile(id: string, file: any, obj: Object3D): Promise<void>;
16
16
  loadVariationForMaterial(assetPath: string, gameObject: string, schema: string): Promise<any>;
17
17
  loadVariationByAssetUrl(assetUrl: string): Promise<any>;
18
+ createVariationForMaterialPreview(compressedZip: Blob): Promise<any>;
18
19
  private _applyMaterialPart;
19
20
  private _applyVariations;
20
21
  private _applyMaterial;
@@ -46,6 +46,7 @@ import { NewRenderService } from '../../render/service/new-render.service';
46
46
  import { HomedecoratorConnectorAdapterService } from '../../../core/service/homedecorator-connector-adapter.service';
47
47
  import { LightPresetsService } from '../../core3d/service/light-presets.service';
48
48
  import { ViewModeService } from '../../../core/service/view-mode.service';
49
+ import { VariationService } from './service/variation.service';
49
50
  import * as i0 from "@angular/core";
50
51
  export declare class ThreedselectorComponent implements OnInit, OnDestroy {
51
52
  screenSizeService: ScreenSizeAnalysisService;
@@ -88,6 +89,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
88
89
  private _connectorAdapterService;
89
90
  private _lightPresetService;
90
91
  private _viewModeService;
92
+ private _variationService;
91
93
  readonly iconName: typeof IconName;
92
94
  toolbarIconModels: TemplateRef<any>;
93
95
  selectedThreedObjectCustomizationSidebar: TemplateRef<any>;
@@ -128,7 +130,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
128
130
  private _subs;
129
131
  private _loadingFromPreset;
130
132
  private _callBackFnWhenBuildFinished;
131
- constructor(screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _appService: HomedecoratorAppService, _iOne: HomedecoratorConnectorService, _messageBus: MessageBusService, _loadFurnitureService: LoadFurnitureService, _buildFurnitureService: BuildFurnitureService, _integrationService: IntegrationService, _dictionaryService: HomedecoratorDictionaryService, _toastService: ToastService, _messageService: MessageBusService, _sceneService: SceneService, _dialogService: DialogService, _cameraService: CameraService, _presetsService: PresetsService, _itemService: ItemService, _settingsService: HomedecoratorSettingsService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _appEventService: HomedecoratorAppEventService, _floorplanService: FloorplanService, _floorService: FloorService, _iconCacheService: HomedecoratorIconCacheService, _arService: ArService, _googleTagManager: GoogleTagManagerService, _errorService: ErrorService, _rotationService: RotationService, _roomService: RoomService, _appStateService: AppStateService, _progressService: ProgressService, _animationService: AnimationService, _resizeService: ResizeService, _customizerService: CustomizerService, _dynamicCameraService: DynamicCameraService, _threedInPhotoInitializerService: ThreedInPhotoInitializerService, _renderService: RenderService, _newRenderService: NewRenderService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _lightPresetService: LightPresetsService, _viewModeService: ViewModeService);
133
+ constructor(screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _appService: HomedecoratorAppService, _iOne: HomedecoratorConnectorService, _messageBus: MessageBusService, _loadFurnitureService: LoadFurnitureService, _buildFurnitureService: BuildFurnitureService, _integrationService: IntegrationService, _dictionaryService: HomedecoratorDictionaryService, _toastService: ToastService, _messageService: MessageBusService, _sceneService: SceneService, _dialogService: DialogService, _cameraService: CameraService, _presetsService: PresetsService, _itemService: ItemService, _settingsService: HomedecoratorSettingsService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _appEventService: HomedecoratorAppEventService, _floorplanService: FloorplanService, _floorService: FloorService, _iconCacheService: HomedecoratorIconCacheService, _arService: ArService, _googleTagManager: GoogleTagManagerService, _errorService: ErrorService, _rotationService: RotationService, _roomService: RoomService, _appStateService: AppStateService, _progressService: ProgressService, _animationService: AnimationService, _resizeService: ResizeService, _customizerService: CustomizerService, _dynamicCameraService: DynamicCameraService, _threedInPhotoInitializerService: ThreedInPhotoInitializerService, _renderService: RenderService, _newRenderService: NewRenderService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _lightPresetService: LightPresetsService, _viewModeService: ViewModeService, _variationService: VariationService);
132
134
  ngOnInit(): void;
133
135
  ngOnDestroy(): void;
134
136
  copySceneInstance(saveAs: boolean): Promise<void>;
@@ -146,6 +148,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
146
148
  handleShowChangeSelector(show: boolean): void;
147
149
  setModelErrorDialog(): void;
148
150
  private _clearItems;
151
+ private _handleMaterialSet;
149
152
  private _handleSkuSet;
150
153
  private _handleFloorsLoaded;
151
154
  private _upsertFloorButtons;
@@ -155,6 +158,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
155
158
  private _openCameraSettingsDialog;
156
159
  private _createMeasurementsButton;
157
160
  private _handleInfoClick;
161
+ private _prepareMaterialPreview;
158
162
  private _prepareStandaloneConfigurator;
159
163
  private _handleFirstBuildStandalone;
160
164
  private _handleUndefinedErrorOccured;
@@ -199,6 +203,8 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
199
203
  private _showWarning;
200
204
  private _addToSceneGTM;
201
205
  private _setTemplateType;
206
+ private _createMaterialPreview;
207
+ private _updateMaterialPreview;
202
208
  static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorComponent, never>;
203
209
  static ɵcmp: i0.ɵɵComponentDeclaration<ThreedselectorComponent, "rp-threedselector", never, { "selections": "selections"; }, { "customizeButtonClicked": "customizeButtonClicked"; }, never, never>;
204
210
  }
@@ -27,6 +27,7 @@ import { HomedecoratorIconCacheService } from '../../../core/service/homedecorat
27
27
  import { ThirdPartyModelService } from '../../threedselector/threedselector/service/third-party-model.service';
28
28
  import { LightPresetsService } from '../../core3d/service/light-presets.service';
29
29
  import { HomedecoratorConnectorAdapterService } from '../../../core/service/homedecorator-connector-adapter.service';
30
+ import { Router } from '@angular/router';
30
31
  import * as i0 from "@angular/core";
31
32
  export declare class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
32
33
  appState: AppStateService;
@@ -48,6 +49,7 @@ export declare class ToolbarComponent implements OnInit, OnDestroy, AfterViewIni
48
49
  private _thirdPartyModelService;
49
50
  private _lightPresetService;
50
51
  private _adapterService;
52
+ private _router;
51
53
  readonly toastType: typeof ToastType;
52
54
  readonly messageType: typeof MessageType;
53
55
  readonly icons: typeof IconEnum;
@@ -69,7 +71,7 @@ export declare class ToolbarComponent implements OnInit, OnDestroy, AfterViewIni
69
71
  leftSidebar: MatDrawer;
70
72
  handleKeyDown(event: KeyboardEvent): void;
71
73
  get fullscreen(): boolean;
72
- 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, _animationService: AnimationService, _developmentService: DevelopmentService, _newRenderService: NewRenderService, _thirdPartyModelService: ThirdPartyModelService, _lightPresetService: LightPresetsService, _adapterService: HomedecoratorConnectorAdapterService);
74
+ 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, _animationService: AnimationService, _developmentService: DevelopmentService, _newRenderService: NewRenderService, _thirdPartyModelService: ThirdPartyModelService, _lightPresetService: LightPresetsService, _adapterService: HomedecoratorConnectorAdapterService, _router: Router);
73
75
  ngOnInit(): void;
74
76
  ngOnDestroy(): void;
75
77
  ngAfterViewInit(): void;
@@ -7,10 +7,6 @@ import { HomedecoratorSettingsService } from '../../core/service/homedecorator-s
7
7
  import { MessageBusService } from '../../core/service/message-bus.service';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class ModelDialogFurnitureListComponent implements OnInit {
10
- iconService: HomedecoratorIconCacheService;
11
- settingsService: HomedecoratorSettingsService;
12
- private _googleTagManagerService;
13
- private _messagesService;
14
10
  readonly icon: typeof IconEnum;
15
11
  list: CustomFloorGroupResult[];
16
12
  label: string;
@@ -18,9 +14,12 @@ export declare class ModelDialogFurnitureListComponent implements OnInit {
18
14
  showCopy: boolean;
19
15
  showDelete: boolean;
20
16
  showTotals: boolean;
17
+ iconCacheService: HomedecoratorIconCacheService;
18
+ settingsService: HomedecoratorSettingsService;
19
+ googleTagManagerService: GoogleTagManagerService;
20
+ messagesService: MessageBusService;
21
21
  totalPrice: string;
22
22
  totalEventSubmitted: boolean;
23
- constructor(iconService: HomedecoratorIconCacheService, settingsService: HomedecoratorSettingsService, _googleTagManagerService: GoogleTagManagerService, _messagesService: MessageBusService);
24
23
  ngOnInit(): void;
25
24
  removeFurniture(item: CustomFloorGroupResult): void;
26
25
  copyFurnitureName(item: CustomFloorGroupResult): void;
@@ -31,5 +30,5 @@ export declare class ModelDialogFurnitureListComponent implements OnInit {
31
30
  submitTotalPriceEvent(): void;
32
31
  calculateTotal(): void;
33
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ModelDialogFurnitureListComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelDialogFurnitureListComponent, "dialog-furniture-list", never, { "list": "list"; "label": "label"; "subLabel": "subLabel"; "showCopy": "showCopy"; "showDelete": "showDelete"; "showTotals": "showTotals"; }, {}, never, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModelDialogFurnitureListComponent, "dialog-furniture-list", never, { "list": "list"; "label": "label"; "subLabel": "subLabel"; "showCopy": "showCopy"; "showDelete": "showDelete"; "showTotals": "showTotals"; "iconCacheService": "iconCacheService"; "settingsService": "settingsService"; "googleTagManagerService": "googleTagManagerService"; "messagesService": "messagesService"; }, {}, never, never>;
35
34
  }
@@ -3,11 +3,17 @@ import { IconEnum } from '../../core/enum/icon.enum';
3
3
  import { CustomFloorGroupResult } from '../../plugins/core3d/model/custom-floor-group-result';
4
4
  import { HomedecoratorIconCacheService } from '../../core/service/homedecorator-icon-cache.service';
5
5
  import { LoadFurnitureService } from '../../plugins/threedselector/threedselector/service/load-furniture.service';
6
+ import { HomedecoratorSettingsService } from '../../core/service/homedecorator-settings.service';
7
+ import { GoogleTagManagerService } from '../../service/google-tag-manager.service';
8
+ import { MessageBusService } from '../../core/service/message-bus.service';
6
9
  import * as i0 from "@angular/core";
7
10
  export declare class ModelDialogComponent implements OnInit {
8
11
  data: {
9
12
  loadFurnitureService: LoadFurnitureService;
10
13
  iconCacheService: HomedecoratorIconCacheService;
14
+ settingsService: HomedecoratorSettingsService;
15
+ googleTagManagerService: GoogleTagManagerService;
16
+ messagesService: MessageBusService;
11
17
  };
12
18
  readonly icon: typeof IconEnum;
13
19
  notLoaded: CustomFloorGroupResult[];
@@ -22,9 +28,15 @@ export declare class ModelDialogComponent implements OnInit {
22
28
  noProductsLoaded: boolean;
23
29
  loadFurnitureService: LoadFurnitureService;
24
30
  iconService: HomedecoratorIconCacheService;
31
+ settingsService: HomedecoratorSettingsService;
32
+ googleTagManagerService: GoogleTagManagerService;
33
+ messagesService: MessageBusService;
25
34
  constructor(data: {
26
35
  loadFurnitureService: LoadFurnitureService;
27
36
  iconCacheService: HomedecoratorIconCacheService;
37
+ settingsService: HomedecoratorSettingsService;
38
+ googleTagManagerService: GoogleTagManagerService;
39
+ messagesService: MessageBusService;
28
40
  });
29
41
  ngOnInit(): void;
30
42
  private _loadFurniture;