@colijnit/configurator 261.20.6 → 261.20.8

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 (77) hide show
  1. package/fesm2022/colijnit-configurator.mjs +7582 -12600
  2. package/fesm2022/colijnit-configurator.mjs.map +1 -1
  3. package/index.d.ts +1296 -1920
  4. package/lib/components/answer-card/style/_layout.scss +2 -3
  5. package/lib/components/answer-card/style/_theme.scss +2 -3
  6. package/lib/components/answer-card/style/material.scss +1 -0
  7. package/lib/components/answer-info-dialog/style/_layout.scss +2 -3
  8. package/lib/components/answer-info-dialog/style/_theme.scss +2 -3
  9. package/lib/components/answers-slideout/style/_layout.scss +2 -3
  10. package/lib/components/answers-slideout/style/_theme.scss +2 -3
  11. package/lib/components/color-filter/style/_layout.scss +2 -3
  12. package/lib/components/color-filter/style/_theme.scss +2 -3
  13. package/lib/components/configuration-preset/style/_layout.scss +3 -3
  14. package/lib/components/configuration-preset/style/_material-definition.scss +1 -3
  15. package/lib/components/configuration-preset/style/_theme.scss +2 -3
  16. package/lib/components/configuration-preset-dialog/style/_layout.scss +16 -29
  17. package/lib/components/configuration-preset-dialog/style/_material-definition.scss +1 -3
  18. package/lib/components/configuration-preset-dialog/style/_theme.scss +48 -2
  19. package/lib/components/configurator/style/_layout.scss +2 -4
  20. package/lib/components/configurator/style/_theme.scss +2 -3
  21. package/lib/components/configurator-dialog/style/_layout.scss +3 -4
  22. package/lib/components/configurator-dialog/style/_theme.scss +3 -4
  23. package/lib/components/configurator-dialog/style/material.scss +3 -3
  24. package/lib/components/configurator-loader/style/_layout.scss +12 -3
  25. package/lib/components/configurator-loader/style/_theme.scss +2 -3
  26. package/lib/components/configurator-loader/style/material.scss +0 -11
  27. package/lib/components/configurator-scene/style/_layout.scss +12 -17
  28. package/lib/components/configurator-scene/style/_theme.scss +2 -4
  29. package/lib/components/configurator-scene-loader/style/_layout.scss +13 -3
  30. package/lib/components/configurator-scene-loader/style/_theme.scss +2 -3
  31. package/lib/components/configurator-scene-loader/style/material.scss +0 -11
  32. package/lib/components/element-buttons/style/_layout.scss +15 -3
  33. package/lib/components/element-buttons/style/_theme.scss +2 -3
  34. package/lib/components/element-toolbar/style/_layout.scss +3 -11
  35. package/lib/components/element-toolbar/style/_theme.scss +6 -5
  36. package/lib/components/image-zoom/style/_layout.scss +2 -3
  37. package/lib/components/image-zoom/style/_theme.scss +2 -3
  38. package/lib/components/lite-selector/style/_layout.scss +2 -3
  39. package/lib/components/lite-selector/style/_theme.scss +2 -3
  40. package/lib/components/product-configurator/style/_layout.scss +2 -4
  41. package/lib/components/product-configurator/style/_theme.scss +2 -3
  42. package/lib/components/product-configurator-selector/style/_layout.scss +2 -3
  43. package/lib/components/product-configurator-selector/style/_theme.scss +2 -3
  44. package/lib/components/product-configurator-selector-option/style/_layout.scss +2 -3
  45. package/lib/components/product-configurator-selector-option/style/_theme.scss +2 -3
  46. package/lib/components/product-configurator-selector-option-button/style/_layout.scss +2 -3
  47. package/lib/components/product-configurator-selector-option-button/style/_theme.scss +2 -3
  48. package/lib/components/product-configurator-selector-option-checkbox/style/_layout.scss +2 -3
  49. package/lib/components/product-configurator-selector-option-checkbox/style/_theme.scss +2 -3
  50. package/lib/components/product-configurator-selector-option-dropdown/style/_layout.scss +2 -3
  51. package/lib/components/product-configurator-selector-option-dropdown/style/_theme.scss +2 -3
  52. package/lib/components/product-configurator-selector-option-tile/style/_layout.scss +2 -3
  53. package/lib/components/product-configurator-selector-option-tile/style/_theme.scss +2 -3
  54. package/lib/components/progress-bar/style/_layout.scss +2 -3
  55. package/lib/components/progress-bar/style/_theme.scss +2 -3
  56. package/lib/components/scene-options/style/_layout.scss +8 -7
  57. package/lib/components/scene-options/style/_theme.scss +2 -3
  58. package/lib/components/selections-summary/style/_layout.scss +2 -3
  59. package/lib/components/selections-summary/style/_theme.scss +2 -3
  60. package/lib/components/selections-summary-line/style/_layout.scss +2 -3
  61. package/lib/components/selections-summary-line/style/_theme.scss +2 -3
  62. package/lib/components/slideout/style/_layout.scss +2 -3
  63. package/lib/components/slideout/style/_theme.scss +2 -3
  64. package/lib/components/summary-line/style/_layout.scss +2 -3
  65. package/lib/components/summary-line/style/_theme.scss +2 -3
  66. package/lib/components/tag-filter/style/_layout.scss +2 -3
  67. package/lib/components/tag-filter/style/_theme.scss +2 -3
  68. package/lib/style/_index.scss +2 -0
  69. package/lib/style/_variables.scss +8 -0
  70. package/lib/style/configurator-globals.scss +6 -1
  71. package/package.json +4 -2
  72. package/colijnit-configurator-261.20.6.tgz +0 -0
  73. package/lib/components/element-toolbar/element-toolbar.component.scss +0 -59
  74. package/lib/components/threedselector/style/_layout.scss +0 -32
  75. package/lib/components/threedselector/style/_material-definition.scss +0 -3
  76. package/lib/components/threedselector/style/_theme.scss +0 -7
  77. package/lib/components/threedselector/style/material.scss +0 -9
package/index.d.ts CHANGED
@@ -1,37 +1,37 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, OnInit, EventEmitter, PipeTransform, TemplateRef, ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { OnDestroy, EventEmitter, OnInit, TemplateRef, ViewContainerRef, ElementRef, QueryList, AfterViewInit, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import * as THREE from 'three';
4
- import { Object3D, Material, Vector3, Euler, Color, Side, PerspectiveCamera, Scene, Mesh, WebGLRenderer, Camera, Vector2, Light, Intersection } from 'three';
5
- import { SafeHtml, EventManager, DomSanitizer, SafeStyle } from '@angular/platform-browser';
4
+ import { Object3D, Material, Vector3, Euler, Scene, Mesh, PerspectiveCamera, WebGLRenderer, Camera, Vector2, Box3 } from 'three';
5
+ import { SafeHtml, DomSanitizer, SafeStyle } from '@angular/platform-browser';
6
6
  import { DecoNode } from '@colijnit/configuratorapi/build/model/deco-node';
7
7
  import { Selection } from '@colijnit/configuratorapi/build/model/selection';
8
- import { BehaviorSubject, Subject, Observable, Subscription } from 'rxjs';
8
+ import { BehaviorSubject, Subject, Subscription } from 'rxjs';
9
9
  import { Answer } from '@colijnit/configuratorapi/build/model/answer';
10
10
  import { Article } from '@colijnit/configuratorapi/build/model/article';
11
+ import { SelectorWithOptions } from '@colijnit/configuratorapi/build/model/selector-with-options';
11
12
  import { GetArticlesForCatalogRequest } from '@colijnit/configuratorapi/build/model/get-articles-for-catalog';
12
- import { QuestionAndAnswers } from '@colijnit/configuratorapi/build/model/question-and-answers';
13
- import { Options } from '@colijnit/ioneconnector/build/model/options';
14
- import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
15
- import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
16
- import { TableName } from '@colijnit/mainapi/build/enum/table-name.enum';
17
13
  import { SelectorStructure } from '@colijnit/configuratorapi/build/model/selector-structure.bo';
18
- import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum';
19
- import { ConfiguratorStatisticsEnvironment } from '@colijnit/configuratorapi/build/model/configurator-statistics-environment';
20
- import { SelectorWithOptions } from '@colijnit/configuratorapi/build/model/selector-with-options';
14
+ import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
15
+ import { QuestionAndAnswers } from '@colijnit/configuratorapi/build/model/question-and-answers';
21
16
  import { AnswerPrice } from '@colijnit/configuratorapi/build/model/answer-price';
22
17
  import { Question } from '@colijnit/configuratorapi/build/model/question';
23
18
  import { ArticleText } from '@colijnit/configuratorapi/build/model/article-text.bo';
24
19
  import { SkipButtonInfo } from '@colijnit/configuratorapi/build/model/skip-button-info';
20
+ import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum';
21
+ import { ConfiguratorStatisticsEnvironment } from '@colijnit/configuratorapi/build/model/configurator-statistics-environment';
22
+ import * as i2 from '@colijnit/utilities';
23
+ import { UtilitiesConnectorService, TextureInterface as TextureInterface$1, PostProcessingService, JsonUtilsService, LightsService, TranslationService } from '@colijnit/utilities';
24
+ import { VariationHelper } from '@colijnit/configuratorcore';
25
25
  import { WebGLPathTracer } from 'three-gpu-pathtracer';
26
+ import { Group } from '@tweenjs/tween.js';
26
27
  import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
27
- import { DeviceDetectorService } from 'ngx-device-detector';
28
- import { ColorSpace } from 'three/src/constants.js';
29
28
  import * as i3 from '@angular/common';
30
29
  import * as i3$1 from '@colijnit/corecomponents_v12';
31
30
  import * as i7 from '@angular/forms';
32
- import { Color as Color$1 } from '@colijnit/configuratorapi/build/model/color';
33
- import { Tag } from '@colijnit/configuratorapi/build/model/tag';
31
+ import { Overlay } from '@angular/cdk/overlay';
34
32
  import * as i4 from '@angular/cdk/clipboard';
33
+ import { Color } from '@colijnit/configuratorapi/build/model/color';
34
+ import { Tag } from '@colijnit/configuratorapi/build/model/tag';
35
35
  import * as i3$2 from '@angular/material/icon';
36
36
  import * as i4$1 from '@angular/material/button';
37
37
  import { ConfigurationDisplayOption } from '@colijnit/configuratorapi/build/enum/refcode/configuration-display-option.enum';
@@ -122,13 +122,17 @@ declare enum PresetDialogMode {
122
122
  LOAD = 1
123
123
  }
124
124
 
125
- declare class AppEventService {
125
+ declare class ConfiguratorEventService {
126
+ skuSet: BehaviorSubject<string>;
127
+ instanceIdSet: BehaviorSubject<string>;
126
128
  instanceSet: BehaviorSubject<string>;
127
129
  answerCountReceived: BehaviorSubject<number>;
128
- readyToRender: BehaviorSubject<boolean>;
130
+ buildStarted: BehaviorSubject<boolean>;
129
131
  buildFinished: BehaviorSubject<ConfigurationResultObject>;
132
+ addedToScene: BehaviorSubject<ConfigurationResultObject>;
130
133
  configurationTemplateChange: BehaviorSubject<ConfigurationTemplate>;
131
134
  articleNotFound: BehaviorSubject<ConfigurationResultObject>;
135
+ selectionWithAnswersChanged: BehaviorSubject<SelectorWithOptions[]>;
132
136
  glbCreated: Subject<string>;
133
137
  showOutline: Subject<any>;
134
138
  showErrorOutline: Subject<any>;
@@ -144,8 +148,13 @@ declare class AppEventService {
144
148
  onObjectSelected: Subject<IntersectedObjects>;
145
149
  onObjectUnSelected: Subject<boolean>;
146
150
  changeConfigurationPresetDialogMode: Subject<PresetDialogMode>;
147
- static ɵfac: i0.ɵɵFactoryDeclaration<AppEventService, never>;
148
- static ɵprov: i0.ɵɵInjectableDeclaration<AppEventService>;
151
+ onCanvasImageReceived: Subject<string>;
152
+ onThumbnailReceived: Subject<string>;
153
+ renderImageChanged: BehaviorSubject<string>;
154
+ renderImageError: BehaviorSubject<string>;
155
+ startBuildFromPresetId: Subject<string>;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorEventService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorEventService>;
149
158
  }
150
159
 
151
160
  declare class ArParameters {
@@ -227,6 +236,9 @@ declare class SettingOptions {
227
236
  maxVisibleTiles: number;
228
237
  maxVisibleSmallTiles: number;
229
238
  groupedShowAllBtn: boolean;
239
+ showSavePresetButton?: boolean;
240
+ showLoadPresetButton?: boolean;
241
+ showSceneBuildLoader?: boolean;
230
242
  }
231
243
 
232
244
  declare class RenderParameters {
@@ -292,6 +304,9 @@ declare class ConfiguratorSettings {
292
304
  jwtEnabled?: boolean;
293
305
  gtm?: string;
294
306
  dracoPath?: string;
307
+ mainUrl?: string;
308
+ mainSchema?: string;
309
+ mainVersion?: string;
295
310
  options?: SettingOptions;
296
311
  catalogParameters?: GetArticlesForCatalogRequest;
297
312
  renderParameters?: RenderParameters;
@@ -322,162 +337,25 @@ declare class ConfiguratorSettings {
322
337
  infoPublicationCode?: number;
323
338
  }
324
339
 
325
- declare class JsonUtilsService {
326
- readJsonFile(filePath: string, includeBaseUrl?: boolean): Promise<any>;
327
- private _includeBaseUrl;
328
- static ɵfac: i0.ɵɵFactoryDeclaration<JsonUtilsService, never>;
329
- static ɵprov: i0.ɵɵInjectableDeclaration<JsonUtilsService>;
330
- }
331
-
332
- declare class DictionaryService {
333
- private _jsonUtilsService;
334
- private readonly _placeholder;
335
- private _client;
336
- private _language;
337
- private _dictionary;
338
- constructor(_jsonUtilsService: JsonUtilsService);
339
- get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
340
- setDictionary(path: string, client: string, languageCode: string, additionalTranslationFile?: any): Promise<void>;
341
- private _getDictionaryData;
342
- static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryService, never>;
343
- static ɵprov: i0.ɵɵInjectableDeclaration<DictionaryService>;
344
- }
345
-
346
- declare enum NavigatorType {
347
- IOsSafari = "IOsSafari",
348
- Browser = "Browser"
349
- }
350
-
351
- interface AoOptions {
352
- aoSamples: number;
353
- denoiseSamples: number;
354
- denoiseRadius: number;
355
- aoRadius: number;
356
- distanceFalloff: number;
357
- screenSpaceRadius: boolean;
358
- halfRes: boolean;
359
- depthAwareUpsampling: boolean;
360
- transparencyAware: boolean;
361
- intensity: number;
362
- renderMode: string;
363
- color: string;
364
- colorMultiply: boolean;
365
- stencil: boolean;
366
- accumulate: boolean;
367
- gammaCorrection: boolean;
368
- }
369
-
370
- interface AaOptions {
371
- sampleLevel: number;
372
- unbiased: boolean;
373
- }
374
-
375
- interface VignetteOptions {
376
- vignetteOffset: number;
377
- vignetteDarkness: number;
378
- }
379
-
380
- interface PostProcessingSetting {
381
- aoEnabled: boolean;
382
- aoOptions: AoOptions;
383
- aaEnabled: boolean;
384
- aaOptions: AaOptions;
385
- vignetteEnabled: boolean;
386
- vignetteOptions: VignetteOptions;
387
- }
388
-
389
- interface SettingInterface {
390
- default: boolean;
391
- standalone: boolean;
392
- navigatorType: NavigatorType;
393
- postprocessing: PostProcessingSetting;
394
- }
395
-
396
- declare class Setting {
397
- navigatorType: NavigatorType;
398
- default: boolean;
399
- standalone: boolean;
400
- postProcessing: PostProcessingSetting;
401
- static CreateModelFromInterface(modelInterface: SettingInterface): Setting;
402
- }
403
-
404
- declare class SettingsService {
405
- private _jsonUtilsService;
406
- private _dictionaryService;
340
+ declare class ConfiguratorSettingsService {
407
341
  set settings(value: ConfiguratorSettings);
408
342
  get settings(): ConfiguratorSettings;
409
343
  settingsLoaded: BehaviorSubject<boolean>;
410
- lightSettingsLoaded: BehaviorSubject<Setting[]>;
411
- settingsChanged: Subject<void>;
412
344
  private _settings;
413
- constructor(_jsonUtilsService: JsonUtilsService, _dictionaryService: DictionaryService);
414
345
  createSettingsFromObject(obj: any): void;
415
346
  initializeSettings(settings?: ConfiguratorSettings): Promise<void>;
416
347
  initialize(settings: ConfiguratorSettings): Promise<void>;
417
348
  checkAdditionalParameters(): Promise<void>;
418
349
  private _checkUrlParameters;
419
- static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
420
- static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
421
- }
422
-
423
- declare class ConfiguratorService {
424
- readonly showLoader: Subject<boolean>;
425
- readonly connectionReset: Subject<void>;
426
- loginResponse: LoginResponse;
427
- private _configuratorApi;
428
- private _mainApi;
429
- private _articleApi;
430
- private _boFactory;
431
- private _publicationCodeForUserRole;
432
- constructor();
433
- initApi(options: Options): void;
434
- cleanUp(): void;
435
- initConnector(options: Options, forceReload?: boolean): Promise<boolean>;
436
- initNodeInstance(goodId: number, showLoader: boolean): Promise<DataServiceResponseData>;
437
- changeConnection(instanceId: string, oldConnection: string, newConnection: string, showLoader: boolean): Promise<DataServiceResponseData>;
438
- setInstanceToConfigure(id: string, showLoader?: boolean): Promise<DataServiceResponseData>;
439
- getGoodIdFromSku(sku: string, showLoader?: boolean): Promise<DataServiceResponseData>;
440
- getArticleQuickSel(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
441
- getSelections(showLoader?: boolean, publicationCode?: number): Promise<DataServiceResponseData>;
442
- getDecos(showLoader?: boolean): Promise<DataServiceResponseData>;
443
- getQuestionAndAnswers(showLoader?: boolean, publicationCode?: number): Promise<QuestionAndAnswers>;
444
- getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, showLoader: boolean): Promise<DataServiceResponseData>;
445
- selectSelection(selection: Selection, forceBackToNode?: boolean, after?: boolean, connector?: string): Promise<DataServiceResponseData>;
446
- selectAnswer(answer: Answer, showLoader?: boolean, input?: string): Promise<DataServiceResponseData>;
447
- selectAnswerBySelection(selection: Selection, userInput?: string): Promise<DataServiceResponseData>;
448
- navigateTo(chosenOption: SelectorStructure, showLoader?: boolean): Promise<DataServiceResponseData>;
449
- cancelAnswer(getAnswersAndQuestion?: boolean): Promise<DataServiceResponseData>;
450
- deleteSelection(selection: Selection): Promise<DataServiceResponseData>;
451
- replaceSelection(selection: Selection): Promise<DataServiceResponseData>;
452
- getSelectionsAsync(): Promise<DataServiceResponseData>;
453
- getQuestionAndAnswersAsync(): Promise<QuestionAndAnswers>;
454
- getAnswerTexts(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
455
- getAnswersPrices(): Promise<DataServiceResponseData>;
456
- getSkipButtonImageAndText(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
457
- getInternalParameterValue(parameter: InternalParam): Promise<DataServiceResponseData>;
458
- getDecosAsync(): Promise<DataServiceResponseData>;
459
- getSelectorStructure(showLoader?: boolean): Promise<DataServiceResponseData>;
460
- getPublicationCodeBasedOnLogin(): number;
461
- getImage(key: number | string, publication: number, thumb: boolean, tableName?: TableName): Promise<DataServiceResponseData>;
462
- copyInstance(instanceId: string, shouldSaveCurrentInstanceId: boolean, showLoader?: boolean): Promise<DataServiceResponseData>;
463
- saveConfigurations(showLoader?: boolean): Promise<boolean>;
464
- storePreset(instanceId: string, showLoader?: boolean): Promise<DataServiceResponseData>;
465
- initForPreset(presetId: string, goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
466
- googleTranslateEnabled(): Promise<boolean>;
467
- getDefaultLanguage(upId: number): Promise<string>;
468
- getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
469
- getImageForSelectorStructure(option: SelectorStructure, publication: number, thumbNail?: boolean, showLoader?: boolean): Promise<string>;
470
- getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
471
- private _getPublicationCodeForRole;
472
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorService, never>;
473
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorService>;
350
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSettingsService, never>;
351
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorSettingsService>;
474
352
  }
475
353
 
476
354
  declare class ConfiguratorConnectorService implements OnDestroy {
477
- private _configuratorService;
478
355
  private _appEventService;
479
356
  private _settingsService;
480
357
  private _loaderService;
358
+ private _utilitiesConnectorService;
481
359
  get article(): Article;
482
360
  set article(value: Article);
483
361
  get sku(): string;
@@ -518,11 +396,15 @@ declare class ConfiguratorConnectorService implements OnDestroy {
518
396
  private _initializing;
519
397
  private _initialized;
520
398
  private _boFactory;
521
- constructor(_configuratorService: ConfiguratorService, _appEventService: AppEventService, _settingsService: SettingsService, _loaderService: LoaderService);
399
+ private _configuratorService;
400
+ constructor(_appEventService: ConfiguratorEventService, _settingsService: ConfiguratorSettingsService, _loaderService: LoaderService, _utilitiesConnectorService: UtilitiesConnectorService);
522
401
  ngOnDestroy(): void;
523
- initConnection(forceReload?: boolean, standAlone?: boolean): Promise<void>;
402
+ cleanUp(): void;
403
+ init(settings?: ConfiguratorSettings): Promise<void>;
404
+ initConnection(forceReload?: boolean, mainUrl?: string, mainSchema?: string, mainVersion?: string): Promise<void>;
524
405
  onShowLoaderChange(showLoader: boolean): void;
525
406
  onConnectionReset(): void;
407
+ getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, showLoader: boolean): Promise<DataServiceResponseData>;
526
408
  getGoodIdFromSku(sku: string, showLoader?: boolean): Promise<number>;
527
409
  setSelections(selections: Selection[]): void;
528
410
  setDecoNodes(value: DecoNode[]): void;
@@ -559,9 +441,6 @@ declare class ConfiguratorConnectorService implements OnDestroy {
559
441
  saveConfigurations(): Promise<void>;
560
442
  storePreset(instanceId: string, showLoader?: boolean): Promise<DataServiceResponseData>;
561
443
  initForPreset(presetId: string, goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
562
- getDefaultLanguage(upId: number): Promise<string>;
563
- googleTranslateEnabled(): Promise<boolean>;
564
- getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
565
444
  getImageForAnswer(selectedOption: SelectorStructure, showLoader?: boolean): Promise<void>;
566
445
  addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<string>;
567
446
  getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
@@ -594,89 +473,6 @@ declare class ConfiguratorConnectorService implements OnDestroy {
594
473
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorConnectorService>;
595
474
  }
596
475
 
597
- declare class AppInitializerService {
598
- private _settingsService;
599
- private _configuratorConnectorService;
600
- appInitialized: BehaviorSubject<boolean>;
601
- constructor(_settingsService: SettingsService, _configuratorConnectorService: ConfiguratorConnectorService);
602
- initializeApp(settings?: ConfiguratorSettings): Promise<void>;
603
- static ɵfac: i0.ɵɵFactoryDeclaration<AppInitializerService, never>;
604
- static ɵprov: i0.ɵɵInjectableDeclaration<AppInitializerService>;
605
- }
606
-
607
- declare class VariationSettingsSettings {
608
- repeatx: number;
609
- repeaty: number;
610
- roughness: number;
611
- metalness: number;
612
- }
613
- declare class VariationSettings {
614
- id: string;
615
- settings: VariationSettingsSettings;
616
- texture: string;
617
- textureFilename: string;
618
- normal: string;
619
- normalFilename: string;
620
- ao: string;
621
- aoFilename: string;
622
- metalness: string;
623
- metalnessFilename: string;
624
- roughness: string;
625
- roughnessFilename: string;
626
- orm: string;
627
- ormFilename: string;
628
- displacement: string;
629
- displacementValue: number;
630
- displacementFilename: string;
631
- sheen: number;
632
- sheenColor: Color;
633
- sheenColorMap: string;
634
- sheenColorMapFilename: string;
635
- sheenRoughness: number;
636
- sheenRoughnessMap: string;
637
- sheenRoughnessMapFilename: string;
638
- transmissionMap: string;
639
- transmissionMapFilename: string;
640
- emissive: string;
641
- emissiveFilename: string;
642
- emissiveIntensity: number;
643
- emissiveValue: Color;
644
- opacity: number;
645
- transparent: boolean;
646
- envMap: string;
647
- envMapFilename: string;
648
- envMapIntensity: number;
649
- reflectivity: number;
650
- side: Side;
651
- transmission: number;
652
- ior: number;
653
- thickness: number;
654
- specularIntensity: number;
655
- loading: boolean;
656
- loaded: Subject<VariationSettings>;
657
- material: any;
658
- copyFrom(settings: VariationSettings): void;
659
- }
660
-
661
- declare class VariationCacheService implements OnDestroy {
662
- private _settingsService;
663
- private _configuratorService;
664
- private _variations;
665
- private _subs;
666
- constructor(_settingsService: SettingsService, _configuratorService: ConfiguratorConnectorService);
667
- ngOnDestroy(): void;
668
- get(id: string): VariationSettings;
669
- set(variations: VariationSettings): void;
670
- preloadVariations(schema: string, decoNodes: DecoNode[], articleAssetPath?: string): void;
671
- preloadVariationsAsync(schema: string, decoNodes: DecoNode[] | Answer[] | SelectorStructure[], articleAssetPath?: string): Promise<void>;
672
- loadVariation(fileName: string): Promise<VariationSettings>;
673
- private _waitForVariationToLoad;
674
- private _createSettingsForFileName;
675
- private _needsMaterials;
676
- static ɵfac: i0.ɵɵFactoryDeclaration<VariationCacheService, never>;
677
- static ɵprov: i0.ɵɵInjectableDeclaration<VariationCacheService>;
678
- }
679
-
680
476
  declare class ProgressService {
681
477
  private _progressPercent;
682
478
  get progress(): number;
@@ -686,97 +482,326 @@ declare class ProgressService {
686
482
  static ɵprov: i0.ɵɵInjectableDeclaration<ProgressService>;
687
483
  }
688
484
 
689
- declare class CameraService implements OnDestroy {
690
- private _settingsService;
691
- readonly panSpeed: number;
692
- readonly rotateBy: number;
693
- readonly moveBy: number;
694
- readonly cameraDefaultHeight: number;
695
- readonly targetDefaultOffset: number;
696
- readonly exploreDistanceFromCorner: number;
697
- camera: PerspectiveCamera;
698
- controls: any;
699
- cameraMovementChanged: Subject<void>;
700
- private _cameraLocked;
701
- private _element;
702
- private _viewSize;
703
- private _viewCenter;
704
- private _exploreTargetDistance;
705
- private _realAspectRatio;
706
- private _aspectRatio;
707
- private _viewMode;
485
+ declare class UtilsService implements OnDestroy {
486
+ private _progressService;
487
+ clips: any;
488
+ private _objectCache;
708
489
  private _subs;
709
- get cameraLocked(): boolean;
710
- set realAspectRatio(value: number);
711
- constructor(_settingsService: SettingsService);
490
+ constructor(_progressService: ProgressService);
712
491
  ngOnDestroy(): void;
713
- init(element: HTMLElement): void;
714
- cameraZoomIn(): void;
715
- cameraZoomOut(): void;
716
- lockCamera(): void;
717
- unlockCamera(): void;
718
- disableRotate(): void;
719
- disableRotateHorizontal(): void;
720
- disablePan(): void;
721
- disableZoom(): void;
722
- moveCameraToFitObject(object: any, offset?: number): Promise<void>;
723
- private _getCameraOffset;
724
- private _controlsUpdate;
725
- static ɵfac: i0.ɵɵFactoryDeclaration<CameraService, never>;
726
- static ɵprov: i0.ɵɵInjectableDeclaration<CameraService>;
492
+ createCanvasImage(objects: Object3D[], thumbnail?: boolean): string;
493
+ loadObjModel(filePath: string, mtlUrl?: string): Promise<any>;
494
+ downloadUSDZforARIOS(object: Object3D): Promise<void>;
495
+ private _addGroupChildrenToObject;
496
+ private _handleUpdateProgressBar;
497
+ static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
498
+ static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
727
499
  }
728
500
 
729
- declare enum XrMode {
730
- ArMode = "Ar Mode",
731
- VrMode = "Vr Mode"
501
+ declare abstract class BuildFurnitureBaseService implements OnDestroy {
502
+ protected configuratorConnectorService: ConfiguratorConnectorService;
503
+ protected appEventService: ConfiguratorEventService;
504
+ protected settingsService: ConfiguratorSettingsService;
505
+ protected utilsService: UtilsService;
506
+ get useNodeIdToLink(): boolean;
507
+ get currentCustomFloorGroup(): Object3D;
508
+ set currentCustomFloorGroup(item: Object3D);
509
+ get selections(): Selection[];
510
+ set scene(scene: Scene);
511
+ get scene(): Scene;
512
+ defaultPosition: Vector3;
513
+ defaultRotation: Euler;
514
+ baseElementNodeId: number;
515
+ articleAssetPath: string;
516
+ startPosition: Vector3;
517
+ full3DObjectToUse: Object3D;
518
+ isMouseOverObject: boolean;
519
+ activeConnector: any;
520
+ answerSelected: Subject<ConfigurationResultObject>;
521
+ arPlacementUpdate: Subject<boolean>;
522
+ showElementToolbar: boolean;
523
+ private _useNodeIdToLink;
524
+ private _activeChildElement;
525
+ private _adjustables;
526
+ private _addables;
527
+ private _currentCustomFloorGroup;
528
+ private _genericSelection;
529
+ private _answerSelected;
530
+ private _selectionsSelected;
531
+ private _scene;
532
+ protected subs: Subscription[];
533
+ protected placedAddables: any[];
534
+ protected placedAdjustables: any[];
535
+ protected variationHelper: VariationHelper;
536
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, appEventService: ConfiguratorEventService, settingsService: ConfiguratorSettingsService, utilsService: UtilsService);
537
+ ngOnDestroy(): void;
538
+ abstract build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
539
+ abstract createSimple3DModel(result: ConfigurationResultObject): ConfigurationResultObject;
540
+ abstract startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
541
+ abstract prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
542
+ abstract createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
543
+ abstract startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
544
+ emptyAnswerSelected(): void;
545
+ emptySelectionsSelected(): void;
546
+ getOptionsFromSelection(baseSelection: Selection): Selection[];
547
+ cancelConfiguringCurrentInstance(): void;
548
+ cancelAnswer(data: ConfigurationResultObject, rebuild?: boolean, getAnswers?: boolean): Promise<void>;
549
+ selectSelection(selection: Selection, data: ConfigurationResultObject, forceBackToNode?: boolean, after?: boolean, connector?: string): Promise<void>;
550
+ deleteSelection(selection: Selection, data: ConfigurationResultObject): Promise<void>;
551
+ replaceSelection(selection: Selection, data: ConfigurationResultObject): Promise<void>;
552
+ selectAnswer(answer: Answer, input: string, data: ConfigurationResultObject): Promise<void>;
553
+ selectSelectionAsAnswer(chosenOption: SelectorStructure, data: ConfigurationResultObject): Promise<void>;
554
+ linkSelectionsAndDecos(): void;
555
+ prepareTheSelections(instanceId?: string): void;
556
+ preloadMaterials(schema: string): void;
557
+ cleanUp(): void;
558
+ protected prepareInstanceForBuild(shouldCopyInstance: boolean, loadFromProject: boolean, looseOriginalConfiguration: boolean, result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
559
+ protected getSelectionsAndDecos(): Promise<void>;
560
+ protected handlePrepareSelectionsDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
561
+ protected normalizeMesh(mesh: Mesh): void;
562
+ protected setInstanceToConfigure(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
563
+ protected getSelectionsAndDecosFromMetadata(result: ConfigurationResultObject): void;
564
+ protected selectionPublished(selection: Selection): boolean;
565
+ protected cleanupBeforePresetLoad(): void;
566
+ protected handleAfterPresetLoad(): void;
567
+ protected cleanup(): void;
568
+ protected canConnectSelections(sel1: Selection, sel2: Selection): boolean;
569
+ protected handleAnswerSelected(answer: Answer): void;
570
+ protected handleSelectionSelected(chosenOption: SelectorStructure): void;
571
+ protected createConfigurableItem(itemName: string): Object3D;
572
+ protected cloneSelections(): Selection[];
573
+ protected updateBuildObject(newItem: Object3D, resultObject: ConfigurationResultObject): Promise<ConfigurationResultObject>;
574
+ protected saveElementConnector(element: Object3D, connector: string): void;
575
+ protected getIdentifierFromSelection(selection: Selection): string;
576
+ protected reset(): void;
577
+ protected getAdjustables(checkGameObject?: boolean, checkType?: boolean): Selection[];
578
+ protected getVariations(): any[];
579
+ protected loadVariations(item: Object3D, instanceId: string): Promise<void>;
580
+ protected preloadMaterial(answer: Answer): void;
581
+ protected preloadMaterialBySelection(answer: SelectorStructure): void;
582
+ protected buildFloor(result: any): Promise<void>;
583
+ downloadUDSZforARIOS(objects: Object3D[]): void;
584
+ private _setNeedMaterial;
585
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureBaseService, never>;
586
+ static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureBaseService>;
732
587
  }
733
588
 
734
- declare class DebugService {
735
- debugMessages: string[];
736
- averageRenderTime: number;
737
- lastTimestamp: number;
738
- measurements: any[];
739
- runTest: boolean;
740
- addMessage(message: string): void;
741
- measureRenderTime(): void;
742
- resetMeasurements(): void;
743
- startToggle(): void;
744
- getAverageRenderTime(): number;
745
- getFramesMeasuredAmount(): number;
746
- static ɵfac: i0.ɵɵFactoryDeclaration<DebugService, never>;
747
- static ɵprov: i0.ɵɵInjectableDeclaration<DebugService>;
589
+ declare class BuildFurnitureService extends BuildFurnitureBaseService implements OnDestroy {
590
+ build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
591
+ createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
592
+ startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
593
+ createSimple3DModel(result: ConfigurationResultObject): ConfigurationResultObject;
594
+ startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
595
+ prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
596
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureService, never>;
597
+ static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureService>;
748
598
  }
749
599
 
750
- declare class FontService {
751
- hudFont: Font;
752
- monospaceFont: Font;
753
- constructor();
754
- private _loadFont;
755
- static ɵfac: i0.ɵɵFactoryDeclaration<FontService, never>;
756
- static ɵprov: i0.ɵɵInjectableDeclaration<FontService>;
600
+ declare class BuildFurnitureWithoutSceneService extends BuildFurnitureBaseService implements OnDestroy {
601
+ build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
602
+ startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
603
+ startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
604
+ prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
605
+ createSimple3DModel(result: ConfigurationResultObject, standAlone?: boolean): ConfigurationResultObject;
606
+ createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
607
+ static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureWithoutSceneService, never>;
608
+ static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureWithoutSceneService>;
757
609
  }
758
610
 
759
- declare class MessageBoardService {
611
+ declare class SwitchBuildFurnitureService implements OnDestroy {
612
+ private _buildFurnitureService;
613
+ private _buildFurnitureWithoutSceneService;
760
614
  private _settingsService;
761
- private _fontService;
762
- scene: Scene;
763
- board: Mesh;
764
- messages: Mesh[];
765
- private _font;
766
- constructor(_settingsService: SettingsService, _fontService: FontService);
767
- init(scene: Scene): Promise<void>;
768
- addMessage(message: string): void;
769
- private _createMessageBoard;
770
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoardService, never>;
771
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageBoardService>;
615
+ private _configuratorService;
616
+ currentActiveService: BuildFurnitureBaseService;
617
+ private _controllerInitSub;
618
+ private _standAloneInstance;
619
+ constructor(_buildFurnitureService: BuildFurnitureService, _buildFurnitureWithoutSceneService: BuildFurnitureWithoutSceneService, _settingsService: ConfiguratorSettingsService, _configuratorService: ConfiguratorConnectorService);
620
+ ngOnDestroy(): void;
621
+ cleanUp(): void;
622
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchBuildFurnitureService, never>;
623
+ static ɵprov: i0.ɵɵInjectableDeclaration<SwitchBuildFurnitureService>;
772
624
  }
773
625
 
774
- declare class XrService implements OnDestroy {
626
+ declare class ThreedselectorService {
775
627
  private _settingsService;
776
- private _debugService;
777
- private _messageBoard;
778
- gamepad: any;
779
- axes: number[];
628
+ private _threedUtils;
629
+ constructor(_settingsService: ConfiguratorSettingsService);
630
+ downloadAssetsAndReturn(fileName: string, assetPath: string, prepareProgress?: boolean): Promise<THREE.Object3D>;
631
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorService, never>;
632
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThreedselectorService>;
633
+ }
634
+
635
+ declare enum ItemType {
636
+ Floor = 1,
637
+ Wall = 2,
638
+ InWall = 3,
639
+ InWallFloor = 7,
640
+ OnFloor = 8,
641
+ WallFloor = 9,
642
+ CustomFloorGroup = 10,
643
+ CustomShape = 11,
644
+ FloorGroup = 12,
645
+ ItemGroup = 13,
646
+ CustomCylinder = 14,
647
+ CustomCylinderWall = 15,
648
+ CustomShapeWall = 16,
649
+ CustomWall = 20,
650
+ CustomWallFloor = 21,
651
+ WallItemGroup = 22,
652
+ WallDecoration = 23,
653
+ WindowDecoration = 24,
654
+ FloorDecoration = 25
655
+ }
656
+
657
+ declare abstract class LoadFurnitureBaseService implements OnDestroy {
658
+ protected configuratorConnectorService: ConfiguratorConnectorService;
659
+ protected threedSelectorService: ThreedselectorService;
660
+ protected buildFurnitureService: SwitchBuildFurnitureService;
661
+ protected settingsService: ConfiguratorSettingsService;
662
+ private readonly _fullObjectCache;
663
+ set article(value: Article);
664
+ get article(): Article;
665
+ articleLoaded: BehaviorSubject<Article>;
666
+ private _subs;
667
+ private _article;
668
+ protected constructor(configuratorConnectorService: ConfiguratorConnectorService, threedSelectorService: ThreedselectorService, buildFurnitureService: SwitchBuildFurnitureService, settingsService: ConfiguratorSettingsService);
669
+ ngOnDestroy(): void;
670
+ abstract loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance: boolean, looseOriginalConfiguration: boolean, standAlone: boolean, fromScratch: boolean, fromPreset: boolean, loadFromProject: boolean): Promise<ConfigurationResultObject>;
671
+ loadArticle(sku: string): Promise<Article>;
672
+ extendConfigurationBuildResult(article: Article, result: ConfigurationResultObject): ConfigurationResultObject;
673
+ getFull3DObject(sku: string, assetUrl: string, prepareProgress?: boolean): Promise<Object3D>;
674
+ protected tryLoadArticle(sku: string, result: ConfigurationResultObject, initConnector: boolean): Promise<void>;
675
+ private _cleanUp;
676
+ protected needs3DModel(type: ItemType): boolean;
677
+ initFull3DObject(configurationResultObject: ConfigurationResultObject): Promise<void>;
678
+ protected getAssetPathFromMetadata(metadata: ConfigurationResultObject): string;
679
+ private _getAssetPathFromModelUrlAndSchema;
680
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureBaseService, never>;
681
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureBaseService>;
682
+ }
683
+
684
+ declare class LoadFurnitureWithoutSceneService extends LoadFurnitureBaseService implements OnDestroy {
685
+ loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
686
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureWithoutSceneService, never>;
687
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureWithoutSceneService>;
688
+ }
689
+
690
+ declare class LoadFurnitureService extends LoadFurnitureBaseService implements OnDestroy {
691
+ loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
692
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureService, never>;
693
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureService>;
694
+ }
695
+
696
+ declare class SwitchLoadFurnitureService implements OnDestroy {
697
+ private _loadFurnitureService;
698
+ private _loadFurnitureWithoutSceneService;
699
+ private _settingsService;
700
+ private _iOne;
701
+ currentActiveService: LoadFurnitureBaseService;
702
+ private _standAlone;
703
+ private _controllerInitSub;
704
+ private _standAloneInstance;
705
+ constructor(_loadFurnitureService: LoadFurnitureService, _loadFurnitureWithoutSceneService: LoadFurnitureWithoutSceneService, _settingsService: ConfiguratorSettingsService, _iOne: ConfiguratorConnectorService);
706
+ ngOnDestroy(): void;
707
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwitchLoadFurnitureService, never>;
708
+ static ɵprov: i0.ɵɵInjectableDeclaration<SwitchLoadFurnitureService>;
709
+ }
710
+
711
+ declare class ConfiguratorCameraService implements OnDestroy {
712
+ private _settingsService;
713
+ readonly panSpeed: number;
714
+ readonly rotateBy: number;
715
+ readonly moveBy: number;
716
+ readonly cameraDefaultHeight: number;
717
+ readonly targetDefaultOffset: number;
718
+ readonly exploreDistanceFromCorner: number;
719
+ camera: PerspectiveCamera;
720
+ controls: any;
721
+ cameraMovementChanged: Subject<void>;
722
+ addTweenGroup: Subject<Group>;
723
+ removeTweenGroup: Subject<Group>;
724
+ private _cameraLocked;
725
+ private _element;
726
+ private _viewSize;
727
+ private _viewCenter;
728
+ private _exploreTargetDistance;
729
+ private _realAspectRatio;
730
+ private _aspectRatio;
731
+ private _subs;
732
+ get cameraLocked(): boolean;
733
+ set realAspectRatio(value: number);
734
+ constructor(_settingsService: ConfiguratorSettingsService);
735
+ ngOnDestroy(): void;
736
+ init(element: HTMLElement): void;
737
+ cameraZoomIn(): void;
738
+ cameraZoomOut(): void;
739
+ lockCamera(): void;
740
+ unlockCamera(): void;
741
+ disableRotate(): void;
742
+ disableRotateHorizontal(): void;
743
+ disablePan(): void;
744
+ disableZoom(): void;
745
+ moveCameraToFitObject(object: any, offset?: number): Promise<void>;
746
+ private _getCameraOffset;
747
+ private _controlsUpdate;
748
+ private _addTweenGroup;
749
+ private _removeTweenGroup;
750
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorCameraService, never>;
751
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorCameraService>;
752
+ }
753
+
754
+ declare enum XrMode {
755
+ ArMode = "Ar Mode",
756
+ VrMode = "Vr Mode"
757
+ }
758
+
759
+ declare class DebugService {
760
+ debugMessages: string[];
761
+ averageRenderTime: number;
762
+ lastTimestamp: number;
763
+ measurements: any[];
764
+ runTest: boolean;
765
+ addMessage(message: string): void;
766
+ measureRenderTime(): void;
767
+ resetMeasurements(): void;
768
+ startToggle(): void;
769
+ getAverageRenderTime(): number;
770
+ getFramesMeasuredAmount(): number;
771
+ static ɵfac: i0.ɵɵFactoryDeclaration<DebugService, never>;
772
+ static ɵprov: i0.ɵɵInjectableDeclaration<DebugService>;
773
+ }
774
+
775
+ declare class FontService {
776
+ hudFont: Font;
777
+ monospaceFont: Font;
778
+ constructor();
779
+ private _loadFont;
780
+ static ɵfac: i0.ɵɵFactoryDeclaration<FontService, never>;
781
+ static ɵprov: i0.ɵɵInjectableDeclaration<FontService>;
782
+ }
783
+
784
+ declare class MessageBoardService {
785
+ private _settingsService;
786
+ private _fontService;
787
+ scene: Scene;
788
+ board: Mesh;
789
+ messages: Mesh[];
790
+ private _font;
791
+ constructor(_settingsService: ConfiguratorSettingsService, _fontService: FontService);
792
+ init(scene: Scene): Promise<void>;
793
+ addMessage(message: string): void;
794
+ private _createMessageBoard;
795
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoardService, never>;
796
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageBoardService>;
797
+ }
798
+
799
+ declare class ConfiguratorXrService implements OnDestroy {
800
+ private _settingsService;
801
+ private _debugService;
802
+ private _messageBoard;
803
+ gamepad: any;
804
+ axes: number[];
780
805
  touchpadIsPressed: boolean;
781
806
  triggerIsPressed: boolean;
782
807
  angularVelocity: THREE.Vector3;
@@ -798,7 +823,7 @@ declare class XrService implements OnDestroy {
798
823
  private _subs;
799
824
  private _cameraHeight;
800
825
  private _mode;
801
- constructor(_settingsService: SettingsService, _debugService: DebugService, _messageBoard: MessageBoardService);
826
+ constructor(_settingsService: ConfiguratorSettingsService, _debugService: DebugService, _messageBoard: MessageBoardService);
802
827
  ngOnDestroy(): void;
803
828
  init(renderer: WebGLRenderer, scene: Scene, camera: Camera): Promise<void>;
804
829
  startAr(): void;
@@ -815,11 +840,11 @@ declare class XrService implements OnDestroy {
815
840
  private _findGamepad;
816
841
  private _createController;
817
842
  private _createMeshes;
818
- static ɵfac: i0.ɵɵFactoryDeclaration<XrService, never>;
819
- static ɵprov: i0.ɵɵInjectableDeclaration<XrService>;
843
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorXrService, never>;
844
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorXrService>;
820
845
  }
821
846
 
822
- declare class VrService {
847
+ declare class ConfiguratorVrService {
823
848
  private _scene;
824
849
  private _renderer;
825
850
  private _camera;
@@ -856,11 +881,11 @@ declare class VrService {
856
881
  private _isObjectFloor;
857
882
  private _getParentOfChild;
858
883
  private _updateObjectSelection;
859
- static ɵfac: i0.ɵɵFactoryDeclaration<VrService, never>;
860
- static ɵprov: i0.ɵɵInjectableDeclaration<VrService>;
884
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorVrService, never>;
885
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorVrService>;
861
886
  }
862
887
 
863
- declare class ArService implements OnDestroy {
888
+ declare class ConfiguratorArService implements OnDestroy {
864
889
  private _cameraService;
865
890
  private _settingsService;
866
891
  private _iOne;
@@ -910,7 +935,7 @@ declare class ArService implements OnDestroy {
910
935
  private _sunLight;
911
936
  private _positionIndicator;
912
937
  private _pointRepresentation;
913
- constructor(_cameraService: CameraService, _settingsService: SettingsService, _iOne: ConfiguratorConnectorService);
938
+ constructor(_cameraService: ConfiguratorCameraService, _settingsService: ConfiguratorSettingsService, _iOne: ConfiguratorConnectorService);
914
939
  ngOnDestroy(): void;
915
940
  resetPlaneDetection(): Promise<void>;
916
941
  endSessionEvent(): void;
@@ -970,235 +995,41 @@ declare class ArService implements OnDestroy {
970
995
  private _updateMeshMaterials;
971
996
  private _removeMaterialShaders;
972
997
  private _checkingInterfaceInteraction;
973
- static ɵfac: i0.ɵɵFactoryDeclaration<ArService, never>;
974
- static ɵprov: i0.ɵɵInjectableDeclaration<ArService>;
998
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorArService, never>;
999
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorArService>;
975
1000
  }
976
1001
 
977
- declare enum ConfigurationKey {
978
- DimensioningUnit = "dimUnit",
979
- DimensioningSquareUnit = "dimSqUnit",
980
- AngleUnit = "angleUnit",
981
- CmStep = "cmStep",
982
- MStep = "mStep",
983
- MmStep = "mmStep",
984
- AngleLabelDistanceInCm = "angleLabelDistanceCm",
985
- WallHeight = "wallHeight",
986
- WallThickness = "wallThickness",
987
- MaxWallHeight = "maxWallHeight",
988
- MaxWallThickness = "maxWallThickness",
989
- MaxWallLength = "maxWallLength",
990
- MinWallLength = "minWallLength",
991
- WallSnapping = "wallSnapping",
992
- CornerSnapping = "cornerSnapping",
993
- ShowObjectDistances = "showObjectDistances",
994
- ShowObjectMeasurements = "showObjectMeasurements",
995
- ShowDetailedWallMeasurements = "showDetailedWallMeasurements",
996
- ShowWallItemMeasurements = "showWallItemMeasurements",
997
- ShowWallMeasurements = "showWallMeasurements",
998
- ShowCornerAngles = "showCornerAngles",
999
- RotationSnappingEnabled = "RotationSnappingEnabled",
1000
- DisplayCustomShapeNames = "DisplayCustomShapeNames",
1001
- ShowWalkThroughCameraControls = "ShowWalkThroughCameraControls",
1002
- ShowInteriorLights = "ShowInteriorLights",
1003
- InteriorLightIntensity = "InteriorLightIntensity",
1004
- ShowLightingControls = "ShowLightingControls",
1005
- ShowLightplansDialog = "ShowLightplansDialog",
1006
- WalkThroughCameraFoV = "WalkThroughCameraFoV",
1007
- WalkThroughCameraAspectRatio = "WalkThroughCameraAspectRatio",
1008
- WalkThroughCameraFocus = "WalkThroughCameraFocus",
1009
- ShowPostProcessingSettings = "showPostProcessingSettings",
1010
- ShowWalls = "ShowWalls",
1011
- ShowCeiling = "ShowCeiling",
1012
- IsLimited = "IsLimited",
1013
- EnableTouch = "EnableTouch",
1014
- CameraFOV = "CameraFOV"
1002
+ declare enum ViewMode {
1003
+ RoomPlan3D = "3D roomplan",
1004
+ VR = "VR",
1005
+ AR = "AR"
1015
1006
  }
1016
1007
 
1017
- interface ConfigurationData {
1018
- [ConfigurationKey.DimensioningUnit]?: string;
1019
- [ConfigurationKey.DimensioningSquareUnit]?: string;
1020
- [ConfigurationKey.AngleUnit]?: string;
1021
- [ConfigurationKey.CmStep]?: number;
1022
- [ConfigurationKey.MStep]?: number;
1023
- [ConfigurationKey.MmStep]?: number;
1024
- [ConfigurationKey.AngleLabelDistanceInCm]?: number;
1025
- [ConfigurationKey.WallHeight]?: number;
1026
- [ConfigurationKey.WallThickness]?: number;
1027
- [ConfigurationKey.MaxWallHeight]?: number;
1028
- [ConfigurationKey.MaxWallThickness]?: number;
1029
- [ConfigurationKey.MaxWallLength]?: number;
1030
- [ConfigurationKey.MinWallLength]?: number;
1031
- [ConfigurationKey.WallSnapping]?: boolean;
1032
- [ConfigurationKey.CornerSnapping]?: boolean;
1033
- [ConfigurationKey.ShowObjectDistances]?: boolean;
1034
- [ConfigurationKey.ShowObjectMeasurements]?: boolean;
1035
- [ConfigurationKey.ShowDetailedWallMeasurements]?: boolean;
1036
- [ConfigurationKey.ShowWallItemMeasurements]?: boolean;
1037
- [ConfigurationKey.ShowWallMeasurements]?: boolean;
1038
- [ConfigurationKey.ShowCornerAngles]?: boolean;
1039
- [ConfigurationKey.RotationSnappingEnabled]?: boolean;
1040
- [ConfigurationKey.DisplayCustomShapeNames]?: boolean;
1041
- [ConfigurationKey.ShowInteriorLights]?: boolean;
1042
- [ConfigurationKey.InteriorLightIntensity]?: number;
1043
- [ConfigurationKey.ShowWalkThroughCameraControls]?: boolean;
1044
- [ConfigurationKey.ShowLightingControls]?: boolean;
1045
- [ConfigurationKey.ShowLightplansDialog]?: boolean;
1046
- [ConfigurationKey.WalkThroughCameraFoV]?: number;
1047
- [ConfigurationKey.WalkThroughCameraAspectRatio]?: number;
1048
- [ConfigurationKey.WalkThroughCameraFocus]?: number;
1049
- [ConfigurationKey.ShowPostProcessingSettings]?: boolean;
1050
- [ConfigurationKey.ShowWalls]?: boolean;
1051
- [ConfigurationKey.ShowCeiling]?: boolean;
1052
- [ConfigurationKey.IsLimited]?: boolean;
1053
- [ConfigurationKey.EnableTouch]?: boolean;
1054
- [ConfigurationKey.CameraFOV]?: number;
1008
+ declare class ViewModeService {
1009
+ viewModeChanged: BehaviorSubject<ViewMode>;
1010
+ private _viewMode;
1011
+ viewSize: Vector3;
1012
+ viewCenter: Vector3;
1013
+ set viewMode(value: ViewMode);
1014
+ get viewMode(): ViewMode;
1015
+ setViewMode(viewSize: Vector3, viewCenter: Vector3, mode: ViewMode): void;
1016
+ is3dViewActive(): boolean;
1017
+ isVRViewActive(): boolean;
1018
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewModeService, never>;
1019
+ static ɵprov: i0.ɵɵInjectableDeclaration<ViewModeService>;
1055
1020
  }
1056
1021
 
1057
- declare class ConfigurationService {
1058
- private _data;
1059
- onChange: BehaviorSubject<{}>;
1060
- setValue<T extends ConfigurationKey>(key: T, value: ConfigurationData[T]): void;
1061
- getValue<T extends ConfigurationKey>(key: T): ConfigurationData[T];
1062
- get(): ConfigurationData;
1063
- set(data: ConfigurationData): void;
1064
- getDistanceStep(): number;
1065
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
1066
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
1067
- }
1068
-
1069
- declare enum DeviceSizeType {
1070
- Desktop = "desktop",
1071
- Tablet = "tablet",
1072
- Phone = "phone"
1073
- }
1074
-
1075
- interface ScreenSizeInfo {
1076
- width: number;
1077
- height: number;
1078
- deviceSizeType: DeviceSizeType;
1079
- isDesktopSize: boolean;
1080
- isTabletSize: boolean;
1081
- isPhoneSize: boolean;
1082
- isPortraitMode: boolean;
1083
- }
1084
-
1085
- declare class ScreenSizeAnalysisService implements OnDestroy, OnInit {
1086
- private _eventManager;
1087
- private _deviceDetectorService;
1088
- private _onResizeSubject;
1089
- get screenSizeChanged(): Observable<ScreenSizeInfo>;
1090
- get isMobileDevice(): boolean;
1091
- constructor(_eventManager: EventManager, _deviceDetectorService: DeviceDetectorService);
1092
- ngOnInit(): void;
1093
- ngOnDestroy(): void;
1094
- getScreenSizeInfo(window: Window): ScreenSizeInfo;
1095
- isIphoneOrIpad(): boolean;
1096
- isSafari(): boolean;
1097
- navigatorType(): NavigatorType;
1098
- private _getCurrentScreenSize;
1099
- private _initOnResizeObservable;
1100
- private _getDeviceSizeType;
1101
- private _checkImageBitmapDisable;
1102
- static ɵfac: i0.ɵɵFactoryDeclaration<ScreenSizeAnalysisService, never>;
1103
- static ɵprov: i0.ɵɵInjectableDeclaration<ScreenSizeAnalysisService>;
1104
- }
1105
-
1106
- declare class PostProcessingService implements OnDestroy {
1107
- private _configurationService;
1108
- private _settingsService;
1109
- private _appEventService;
1110
- private _screenSizeAnalysis;
1111
- private _aoEnabled;
1112
- private _aaEnabled;
1113
- private _vignetteEnabled;
1114
- private _vignetteOffset;
1115
- private _vignetteDarkness;
1116
- private _composer;
1117
- private _n8aoPass;
1118
- private _renderPass;
1119
- private _outputPass;
1120
- private _fxaaPass;
1121
- private _smaaPass;
1122
- private _ssaaPass;
1123
- private _taaRenderPass;
1124
- private _vignettePass;
1125
- private _outlinePass;
1126
- private _scene;
1127
- private _renderer;
1128
- private _camera;
1129
- private _blendShader;
1130
- private _width;
1131
- private _height;
1132
- private _outlinePassAsError;
1133
- private _hideOutlineTimer;
1134
- private _hideOutlineTimeout;
1135
- private _standalone;
1136
- private _cameraMoved;
1137
- private _postProcessingGui;
1138
- private _subs;
1139
- private _aoDefaultOptions;
1140
- private _aoOptions;
1141
- private _aaDefaultOptions;
1142
- private _aaOptions;
1143
- private _vignetteDefaultOptions;
1144
- private _vignetteOptions;
1145
- aoEnabled: boolean;
1146
- aaEnabled: boolean;
1147
- vignetteEnabled: boolean;
1148
- constructor(_configurationService: ConfigurationService, _settingsService: SettingsService, _appEventService: AppEventService, _screenSizeAnalysis: ScreenSizeAnalysisService);
1149
- ngOnDestroy(): void;
1150
- init(renderer: WebGLRenderer, scene: Scene, camera: PerspectiveCamera, width: number, height: number, standalone: boolean): void;
1151
- setSize(width: number, height: number, force?: boolean): void;
1152
- render(): void;
1153
- cameraMovementChanged(): void;
1154
- showGui(): void;
1155
- hideGui(): void;
1156
- forceRenderCanvas(): void;
1157
- private _loadSetting;
1158
- private _showErrorOutline;
1159
- private _showOutline;
1160
- private _hideOutline;
1161
- private _updateAASize;
1162
- private _initComposer;
1163
- private _cleanUp;
1164
- private _applyAoProps;
1165
- private _createGuiTaaPass;
1166
- private _showHideGui;
1167
- private _createGui;
1168
- private _setErrorGlowSettings;
1169
- private _setSelectionGlowSettings;
1170
- static ɵfac: i0.ɵɵFactoryDeclaration<PostProcessingService, never>;
1171
- static ɵprov: i0.ɵɵInjectableDeclaration<PostProcessingService>;
1172
- }
1173
-
1174
- declare enum ViewMode {
1175
- RoomPlan3D = "3D roomplan",
1176
- VR = "VR",
1177
- AR = "AR"
1178
- }
1179
-
1180
- declare class ViewModeService {
1181
- viewModeChanged: BehaviorSubject<ViewMode>;
1182
- private _viewMode;
1183
- viewSize: Vector3;
1184
- viewCenter: Vector3;
1185
- set viewMode(value: ViewMode);
1186
- get viewMode(): ViewMode;
1187
- setViewMode(viewSize: Vector3, viewCenter: Vector3, mode: ViewMode): void;
1188
- is3dViewActive(): boolean;
1189
- isVRViewActive(): boolean;
1190
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewModeService, never>;
1191
- static ɵprov: i0.ɵɵInjectableDeclaration<ViewModeService>;
1192
- }
1193
-
1194
- declare class SceneService implements OnDestroy {
1022
+ declare class ConfiguratorSceneService implements OnDestroy {
1195
1023
  private _cameraService;
1196
1024
  private _xrService;
1197
1025
  private _vrService;
1198
1026
  private _arService;
1199
- private _settingsService;
1200
- private _postProcessing;
1027
+ private _configuratorSettingsService;
1028
+ private _postProcessingService;
1201
1029
  private _viewModeService;
1030
+ private _jsonUtilsService;
1031
+ private _lightsService;
1032
+ private _buildFurnitureService;
1202
1033
  set needsRender(value: boolean);
1203
1034
  get needsRender(): boolean;
1204
1035
  scene: Scene;
@@ -1217,12 +1048,18 @@ declare class SceneService implements OnDestroy {
1217
1048
  renderingThroughPostProcessingPipeline: boolean;
1218
1049
  webGL2Available: boolean;
1219
1050
  domElement: HTMLElement;
1051
+ floorTexturesLoaded: BehaviorSubject<TextureInterface$1[]>;
1220
1052
  private _needsRender;
1221
1053
  private _arMode;
1222
1054
  private _subs;
1223
1055
  private _maxRenderSamples;
1224
1056
  private _numberOfSamplesRendered;
1225
- constructor(_cameraService: CameraService, _xrService: XrService, _vrService: VrService, _arService: ArService, _settingsService: SettingsService, _postProcessing: PostProcessingService, _viewModeService: ViewModeService);
1057
+ private _assetPath;
1058
+ private _indexJsonFile;
1059
+ private _lightPresetsJsonFile;
1060
+ private _lightsLoaded;
1061
+ private _groups;
1062
+ constructor(_cameraService: ConfiguratorCameraService, _xrService: ConfiguratorXrService, _vrService: ConfiguratorVrService, _arService: ConfiguratorArService, _configuratorSettingsService: ConfiguratorSettingsService, _postProcessingService: PostProcessingService, _viewModeService: ViewModeService, _jsonUtilsService: JsonUtilsService, _lightsService: LightsService, _buildFurnitureService: SwitchBuildFurnitureService);
1226
1063
  ngOnDestroy(): void;
1227
1064
  getScene(): Scene;
1228
1065
  set arMode(value: boolean);
@@ -1235,9 +1072,12 @@ declare class SceneService implements OnDestroy {
1235
1072
  updatePathTracer(): void;
1236
1073
  positionInSceneToScreen(pos: Vector3): Vector2;
1237
1074
  rendererPropsChange(): void;
1075
+ private _handleAddTweenGroup;
1076
+ private _handleRemoveTweenGroup;
1238
1077
  private _initScene;
1239
1078
  private _initCamera;
1240
1079
  private _initPostProcessing;
1080
+ private _initLightService;
1241
1081
  private _initPathTracer;
1242
1082
  private _initRenderer;
1243
1083
  private _resizeRendererToDisplaySize;
@@ -1246,292 +1086,198 @@ declare class SceneService implements OnDestroy {
1246
1086
  private _render;
1247
1087
  private _animate;
1248
1088
  private _pauseAnimation;
1089
+ private _prepareScene;
1249
1090
  private _setSceneBackground;
1250
- static ɵfac: i0.ɵɵFactoryDeclaration<SceneService, never>;
1251
- static ɵprov: i0.ɵɵInjectableDeclaration<SceneService>;
1091
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneService, never>;
1092
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorSceneService>;
1252
1093
  }
1253
1094
 
1254
- declare class ItemService implements OnDestroy {
1095
+ declare class ConfiguratorItemService implements OnDestroy {
1255
1096
  private _sceneService;
1256
1097
  get sceneItems(): Object3D[];
1257
1098
  private _sceneItems;
1258
- constructor(_sceneService: SceneService);
1099
+ constructor(_sceneService: ConfiguratorSceneService);
1259
1100
  ngOnDestroy(): void;
1260
1101
  addItem(item: Object3D, replace?: boolean): void;
1261
1102
  removeAllItems(): void;
1262
1103
  removeItem(obj: any): void;
1263
1104
  objectDimensions(object: Object3D): Vector3;
1264
1105
  glassMaterialCheck(item: Object3D): void;
1265
- static ɵfac: i0.ɵɵFactoryDeclaration<ItemService, never>;
1266
- static ɵprov: i0.ɵɵInjectableDeclaration<ItemService>;
1106
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorItemService, never>;
1107
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorItemService>;
1267
1108
  }
1268
1109
 
1269
- declare class UtilsService implements OnDestroy {
1270
- private _settingsService;
1271
- private _progressService;
1272
- private _itemService;
1273
- clips: any;
1274
- private _objectCache;
1275
- private _subs;
1276
- constructor(_settingsService: SettingsService, _progressService: ProgressService, _itemService: ItemService);
1277
- ngOnDestroy(): void;
1278
- createCanvasImage(thumbnail?: boolean): string;
1279
- loadObjModel(filePath: string, mtlUrl?: string): Promise<any>;
1280
- downloadUSDZforARIOS(object: Object3D): Promise<void>;
1281
- private _addGroupChildrenToObject;
1282
- private _handleUpdateProgressBar;
1283
- static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
1284
- static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
1110
+ declare class RenderResponse {
1111
+ result: string;
1112
+ statusCode: number;
1285
1113
  }
1286
1114
 
1287
- declare class ThreedselectorService {
1288
- private _variationCacheService;
1289
- private _settingsService;
1290
- private _utilsService;
1291
- private _threedUtils;
1292
- constructor(_variationCacheService: VariationCacheService, _settingsService: SettingsService, _utilsService: UtilsService);
1293
- downloadAssetsAndReturn(fileName: string, assetPath: string, prepareProgress?: boolean): Promise<THREE.Object3D>;
1294
- loadVariation(id: string): Promise<VariationSettings>;
1295
- static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorService, never>;
1296
- static ɵprov: i0.ɵɵInjectableDeclaration<ThreedselectorService>;
1115
+ declare enum BlenderRenderType {
1116
+ Realtime = 0,
1117
+ Raytrace = 1
1297
1118
  }
1298
1119
 
1299
- declare class VariationService {
1300
- private _threedSelectorService;
1301
- loadedAsset: string;
1302
- private _lastKnownVariations;
1303
- constructor(_threedSelectorService: ThreedselectorService);
1304
- clearCache(): void;
1305
- loadPart(assetPath: string, parts: any[], instanceId: string, obj: Object3D, usePbr?: boolean): Promise<void>;
1306
- loadVariation(assetPath: string, parts: any[], instanceId: string, obj: Object3D, usePbr?: boolean): Promise<void>;
1307
- loadVariationFromLocalFile(id: string, file: any, obj: Object3D): Promise<void>;
1308
- loadVariationForMaterial(gameObject: string): Promise<any>;
1309
- loadVariationByAssetUrl(assetUrl: string): Promise<any>;
1310
- createVariationForMaterialPreview(compressedZip: Blob): Promise<any>;
1311
- private _applyMaterialPart;
1312
- private _applyVariations;
1313
- private _applyMaterial;
1314
- private _setMeshMaterialFromVariation;
1315
- private _setLastKnownVariations;
1316
- private _getLastKnownVariations;
1317
- private _getChildrenFilterByProp;
1318
- private _createVariationFromNode;
1319
- static ɵfac: i0.ɵɵFactoryDeclaration<VariationService, never>;
1320
- static ɵprov: i0.ɵɵInjectableDeclaration<VariationService>;
1120
+ declare class OptionalRenderSettings {
1121
+ objectWidth: number;
1122
+ objectHeight: number;
1123
+ renderType: number | BlenderRenderType;
1124
+ objectRotation: any;
1125
+ margin: number;
1126
+ cameraRotationX: number;
1127
+ forceTransparency: boolean;
1321
1128
  }
1322
1129
 
1323
- declare abstract class BuildFurnitureBaseService implements OnDestroy {
1324
- protected configuratorConnectorService: ConfiguratorConnectorService;
1325
- protected dictionaryService: DictionaryService;
1326
- protected appEventService: AppEventService;
1327
- protected settingsService: SettingsService;
1328
- protected variationService: VariationService;
1329
- protected variationCacheService: VariationCacheService;
1330
- protected utilsService: UtilsService;
1331
- protected itemService: ItemService;
1332
- get useNodeIdToLink(): boolean;
1333
- get currentCustomFloorGroup(): Object3D;
1334
- set currentCustomFloorGroup(item: Object3D);
1335
- get selections(): Selection[];
1336
- set scene(scene: Scene);
1337
- get scene(): Scene;
1338
- defaultPosition: Vector3;
1339
- defaultRotation: Euler;
1340
- baseElementNodeId: number;
1341
- articleAssetPath: string;
1342
- startPosition: Vector3;
1343
- full3DObjectToUse: Object3D;
1344
- isMouseOverObject: boolean;
1345
- activeConnector: any;
1346
- answerSelected: Subject<ConfigurationResultObject>;
1347
- arPlacementUpdate: Subject<boolean>;
1348
- showElementToolbar: boolean;
1349
- private _useNodeIdToLink;
1350
- private _activeChildElement;
1351
- private _placedAddables;
1352
- private _adjustables;
1353
- private _addables;
1354
- private _currentCustomFloorGroup;
1355
- private _genericSelection;
1356
- private _answerSelected;
1357
- private _selectionsSelected;
1358
- private _scene;
1359
- protected subs: Subscription[];
1360
- protected placedAdjustables: any[];
1361
- constructor(configuratorConnectorService: ConfiguratorConnectorService, dictionaryService: DictionaryService, appEventService: AppEventService, settingsService: SettingsService, variationService: VariationService, variationCacheService: VariationCacheService, utilsService: UtilsService, itemService: ItemService);
1362
- ngOnDestroy(): void;
1363
- abstract build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1364
- abstract createSimple3DModel(result: ConfigurationResultObject): ConfigurationResultObject;
1365
- abstract startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1366
- abstract prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1367
- abstract createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1368
- abstract startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
1369
- emptyAnswerSelected(): void;
1370
- emptySelectionsSelected(): void;
1371
- getOptionsFromSelection(baseSelection: Selection): Selection[];
1372
- cancelConfiguringCurrentInstance(): void;
1373
- cancelAnswer(data: ConfigurationResultObject, rebuild?: boolean, getAnswers?: boolean): Promise<void>;
1374
- selectSelection(selection: Selection, data: ConfigurationResultObject, forceBackToNode?: boolean, after?: boolean, connector?: string): Promise<void>;
1375
- deleteSelection(selection: Selection, data: ConfigurationResultObject): Promise<void>;
1376
- replaceSelection(selection: Selection, data: ConfigurationResultObject): Promise<void>;
1377
- selectAnswer(answer: Answer, input: string, data: ConfigurationResultObject): Promise<void>;
1378
- selectSelectionAsAnswer(chosenOption: SelectorStructure, data: ConfigurationResultObject): Promise<void>;
1379
- linkSelectionsAndDecos(): void;
1380
- prepareTheSelections(instanceId?: string): void;
1381
- preloadMaterials(schema: string): void;
1382
- protected prepareInstanceForBuild(shouldCopyInstance: boolean, loadFromProject: boolean, looseOriginalConfiguration: boolean, result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1383
- protected getSelectionsAndDecos(): Promise<void>;
1384
- protected handlePrepareSelectionsDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1385
- protected normalizeMesh(mesh: Mesh): void;
1386
- protected setInstanceToConfigure(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1387
- protected getSelectionsAndDecosFromMetadata(result: ConfigurationResultObject): void;
1388
- protected selectionPublished(selection: Selection): boolean;
1389
- protected cleanupBeforePresetLoad(): void;
1390
- protected handleAfterPresetLoad(): void;
1391
- protected cleanup(): void;
1392
- protected canConnectSelections(sel1: Selection, sel2: Selection): boolean;
1393
- protected handleAnswerSelected(answer: Answer): void;
1394
- protected handleSelectionSelected(chosenOption: SelectorStructure): void;
1395
- protected createConfigurableItem(itemName: string): Object3D;
1396
- protected cloneSelections(): Selection[];
1397
- protected updateBuildObject(newItem: Object3D, resultObject: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1398
- protected isMoveableObject(obj: Object3D): boolean;
1399
- protected addElementOnConnector(currentItem: Object3D, element: Object3D, connector: string, connectedNodeId: number): Promise<void>;
1400
- protected saveElementConnector(element: Object3D, connector: string): void;
1401
- protected getIdentifierFromSelection(selection: Selection): string;
1402
- protected reset(): void;
1403
- /**
1404
- * Returns the materialId of the parent up the tree until presentionlevel 1 is reached
1405
- * @param id
1406
- * @private
1407
- */
1408
- protected getMaterialIdFromParent(id: number): string;
1409
- protected getAdjustables(checkGameObject?: boolean, checkType?: boolean): Selection[];
1410
- protected getVariations(): any[];
1411
- protected createAdjustable(item: Object3D, adj: Selection): Object3D;
1412
- protected createAddable(item: Object3D, add: Selection, part2?: any, part1?: any): Object3D;
1413
- protected placeAddable(item: Object3D, add: any): Object3D;
1414
- protected createUniqueName(item: Object3D, obj: Object3D): string;
1415
- protected placeAddables(item: Object3D): void;
1416
- protected loadVariations(item: Object3D, instanceId: string): Promise<void>;
1417
- protected preloadMaterial(answer: Answer): void;
1418
- protected preloadMaterialBySelection(answer: SelectorStructure): void;
1419
- protected buildFloor(result: any): Promise<void>;
1420
- downloadUDSZforARIOS(): void;
1421
- static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureBaseService, never>;
1422
- static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureBaseService>;
1130
+ declare class RenderBaseObject {
1131
+ selections: Selection[];
1132
+ decos: DecoNode[];
1133
+ assetUrl: string;
1134
+ cdnUrl: string;
1135
+ schema: string;
1136
+ options: any;
1423
1137
  }
1424
1138
 
1425
- declare class BuildFurnitureService extends BuildFurnitureBaseService implements OnDestroy {
1426
- build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1427
- createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1428
- startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
1429
- createSimple3DModel(result: ConfigurationResultObject): ConfigurationResultObject;
1430
- startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1431
- prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1432
- static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureService, never>;
1433
- static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureService>;
1139
+ declare class RenderApi {
1140
+ private _settingsService;
1141
+ private _overWriteTransparency;
1142
+ constructor(_settingsService: ConfiguratorSettingsService);
1143
+ prepareGlbRender(buildResult: ConfigurationResultObject, object3dPosition: Vector3, object3dRotation: Vector3, cameraFov?: number, forceNewRender?: boolean, optionalRenderParameters?: OptionalRenderSettings): RenderBaseObject;
1144
+ sendRenderRequest(data: RenderBaseObject): Promise<RenderResponse>;
1145
+ degreesToVector3(value: number): Vector3;
1146
+ private _adjustCameraRotation;
1147
+ private _getSceneRenderSettings;
1148
+ private _useTransparency;
1149
+ private _setForceTransparency;
1150
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderApi, never>;
1151
+ static ɵprov: i0.ɵɵInjectableDeclaration<RenderApi>;
1434
1152
  }
1435
1153
 
1436
- declare class BuildFurnitureWithoutSceneService extends BuildFurnitureBaseService implements OnDestroy {
1437
- build(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1438
- startToBuild(result?: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
1439
- startToBuildFromConfigurator(data: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1440
- prepareSelectionsAndDecos(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1441
- createSimple3DModel(result: ConfigurationResultObject, standAlone?: boolean): ConfigurationResultObject;
1442
- createNonConfigurableFloor(result: ConfigurationResultObject): Promise<ConfigurationResultObject>;
1443
- static ɵfac: i0.ɵɵFactoryDeclaration<BuildFurnitureWithoutSceneService, never>;
1444
- static ɵprov: i0.ɵɵInjectableDeclaration<BuildFurnitureWithoutSceneService>;
1154
+ declare class RenderService implements OnDestroy {
1155
+ private _settingsService;
1156
+ private _cameraService;
1157
+ private _appEventService;
1158
+ private _sceneService;
1159
+ private _renderApi;
1160
+ blenderRenderStarted: EventEmitter<string>;
1161
+ clientWidth: number;
1162
+ clientHeight: number;
1163
+ private _subs;
1164
+ constructor(_settingsService: ConfiguratorSettingsService, _cameraService: ConfiguratorCameraService, _appEventService: ConfiguratorEventService, _sceneService: ConfiguratorSceneService, _renderApi: RenderApi);
1165
+ ngOnDestroy(): void;
1166
+ renderImage(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): void;
1167
+ getNewGlbFromServer(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): void;
1168
+ private _handleAjaxGlb;
1169
+ static ɵfac: i0.ɵɵFactoryDeclaration<RenderService, never>;
1170
+ static ɵprov: i0.ɵɵInjectableDeclaration<RenderService>;
1445
1171
  }
1446
1172
 
1447
- declare class SwitchBuildFurnitureService implements OnDestroy {
1173
+ declare class ConfiguringService implements OnDestroy {
1174
+ settingsService: ConfiguratorSettingsService;
1175
+ private _loadFurnitureService;
1448
1176
  private _buildFurnitureService;
1449
- private _buildFurnitureWithoutSceneService;
1450
- private _settingsService;
1451
- private _configuratorService;
1452
- currentActiveService: BuildFurnitureBaseService;
1453
- private _controllerInitSub;
1454
- private _standAloneInstance;
1455
- constructor(_buildFurnitureService: BuildFurnitureService, _buildFurnitureWithoutSceneService: BuildFurnitureWithoutSceneService, _settingsService: SettingsService, _configuratorService: ConfiguratorConnectorService);
1177
+ private _appEventService;
1178
+ private _configuratorConnectorService;
1179
+ private _itemService;
1180
+ private _utilsService;
1181
+ private _renderService;
1182
+ set sku(value: string);
1183
+ get sku(): string;
1184
+ set instanceId(value: string);
1185
+ get instanceId(): string;
1186
+ set scene(value: Scene);
1187
+ get scene(): Scene;
1188
+ buildResult: ConfigurationResultObject;
1189
+ private _sku;
1190
+ private _instanceId;
1191
+ private _scene;
1192
+ private _subs;
1193
+ constructor(settingsService: ConfiguratorSettingsService, _loadFurnitureService: SwitchLoadFurnitureService, _buildFurnitureService: SwitchBuildFurnitureService, _appEventService: ConfiguratorEventService, _configuratorConnectorService: ConfiguratorConnectorService, _itemService: ConfiguratorItemService, _utilsService: UtilsService, _renderService: RenderService);
1456
1194
  ngOnDestroy(): void;
1457
- static ɵfac: i0.ɵɵFactoryDeclaration<SwitchBuildFurnitureService, never>;
1458
- static ɵprov: i0.ɵɵInjectableDeclaration<SwitchBuildFurnitureService>;
1195
+ configure(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, fromPreset?: boolean, standAlone?: boolean, fromScratch?: boolean, loadFromProject?: boolean): Promise<void>;
1196
+ renderImage(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): Promise<void>;
1197
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguringService, never>;
1198
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguringService>;
1459
1199
  }
1460
1200
 
1461
- declare enum ItemType {
1462
- Floor = 1,
1463
- Wall = 2,
1464
- InWall = 3,
1465
- InWallFloor = 7,
1466
- OnFloor = 8,
1467
- WallFloor = 9,
1468
- CustomFloorGroup = 10,
1469
- CustomShape = 11,
1470
- FloorGroup = 12,
1471
- ItemGroup = 13,
1472
- CustomCylinder = 14,
1473
- CustomCylinderWall = 15,
1474
- CustomShapeWall = 16,
1475
- CustomWall = 20,
1476
- CustomWallFloor = 21,
1477
- WallItemGroup = 22,
1478
- WallDecoration = 23,
1479
- WindowDecoration = 24,
1480
- FloorDecoration = 25
1481
- }
1482
-
1483
- declare abstract class LoadFurnitureBaseService implements OnDestroy {
1484
- protected configuratorConnectorService: ConfiguratorConnectorService;
1485
- protected threedSelectorService: ThreedselectorService;
1486
- protected buildFurnitureService: SwitchBuildFurnitureService;
1487
- protected settingsService: SettingsService;
1488
- private readonly _fullObjectCache;
1489
- set article(value: Article);
1490
- get article(): Article;
1491
- articleLoaded: BehaviorSubject<Article>;
1201
+ declare class ConfiguratorComponent implements OnInit, OnDestroy {
1202
+ settingsService: ConfiguratorSettingsService;
1203
+ loaderService: LoaderService;
1204
+ private _configuratorEventService;
1205
+ private _configuringService;
1206
+ private _buildFurnitureService;
1207
+ private _configuratorConnectorService;
1208
+ showClass: boolean;
1209
+ set sku(value: string);
1210
+ get sku(): string;
1211
+ set instanceId(value: string);
1212
+ get instanceId(): string;
1213
+ set settings(value: ConfiguratorSettings);
1214
+ scene: Scene;
1215
+ showLoader: boolean;
1216
+ showProgressBar: boolean;
1217
+ showErrorMessages: boolean;
1218
+ outputErrorMessages: boolean;
1219
+ canCloseConfigurator: boolean;
1220
+ animateSlideout: boolean;
1221
+ showHeaderInformation: boolean;
1222
+ isLoading: EventEmitter<boolean>;
1223
+ updateProgressBar: EventEmitter<boolean>;
1224
+ errorMessages: EventEmitter<ConfiguratorErrorMessage[]>;
1225
+ showChange: EventEmitter<boolean>;
1226
+ resultHasErrors: boolean;
1227
+ showErrorDiagram: boolean;
1228
+ configurationResultObject: ConfigurationResultObject;
1229
+ showFullConfiguration: boolean;
1230
+ showLiteSelector: boolean;
1231
+ showSelections: boolean;
1232
+ showAnswers: boolean;
1233
+ loaded: boolean;
1492
1234
  private _subs;
1493
- private _article;
1494
- protected constructor(configuratorConnectorService: ConfiguratorConnectorService, threedSelectorService: ThreedselectorService, buildFurnitureService: SwitchBuildFurnitureService, settingsService: SettingsService);
1235
+ private _loadingFromPreset;
1236
+ private _settings;
1237
+ private _instanceId;
1238
+ private _instanceIdSet;
1239
+ private _sku;
1240
+ private _skuSet;
1241
+ constructor(settingsService: ConfiguratorSettingsService, loaderService: LoaderService, _configuratorEventService: ConfiguratorEventService, _configuringService: ConfiguringService, _buildFurnitureService: SwitchBuildFurnitureService, _configuratorConnectorService: ConfiguratorConnectorService);
1242
+ ngOnInit(): void;
1495
1243
  ngOnDestroy(): void;
1496
- abstract loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance: boolean, looseOriginalConfiguration: boolean, standAlone: boolean, fromScratch: boolean, fromPreset: boolean, loadFromProject: boolean): Promise<ConfigurationResultObject>;
1497
- loadArticle(sku: string): Promise<Article>;
1498
- extendConfigurationBuildResult(article: Article, result: ConfigurationResultObject): ConfigurationResultObject;
1499
- getFull3DObject(sku: string, assetUrl: string, prepareProgress?: boolean): Promise<Object3D>;
1500
- protected tryLoadArticle(sku: string, result: ConfigurationResultObject, initConnector: boolean): Promise<void>;
1501
- private _cleanUp;
1502
- protected needs3DModel(type: ItemType): boolean;
1503
- initFull3DObject(configurationResultObject: ConfigurationResultObject): Promise<void>;
1504
- protected getAssetPathFromMetadata(metadata: ConfigurationResultObject): string;
1505
- private _getAssetPathFromModelUrlAndSchema;
1506
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureBaseService, never>;
1507
- static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureBaseService>;
1244
+ _initConnection(): void;
1245
+ handleShowChange(show: boolean): void;
1246
+ handleCloseErrorDialog(): void;
1247
+ private _handleArticleNotFound;
1248
+ private _handleAnswerCountReceived;
1249
+ private _handleBuildFinished;
1250
+ private _handleTemplateChange;
1251
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorComponent, never>;
1252
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorComponent, "co-configurator", never, { "sku": { "alias": "sku"; "required": false; }; "instanceId": { "alias": "instanceId"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "scene": { "alias": "scene"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "outputErrorMessages": { "alias": "outputErrorMessages"; "required": false; }; "canCloseConfigurator": { "alias": "canCloseConfigurator"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; }, { "isLoading": "isLoading"; "updateProgressBar": "updateProgressBar"; "errorMessages": "errorMessages"; "showChange": "showChange"; }, never, never, false, never>;
1508
1253
  }
1509
1254
 
1510
- declare class LoadFurnitureWithoutSceneService extends LoadFurnitureBaseService implements OnDestroy {
1511
- loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
1512
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureWithoutSceneService, never>;
1513
- static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureWithoutSceneService>;
1255
+ declare class ProgressBarComponent {
1256
+ progressService: ProgressService;
1257
+ showClass(): boolean;
1258
+ get showBar(): boolean;
1259
+ constructor(progressService: ProgressService);
1260
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
1261
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "co-progress-bar", never, {}, {}, never, never, false, never>;
1514
1262
  }
1515
1263
 
1516
- declare class LoadFurnitureService extends LoadFurnitureBaseService implements OnDestroy {
1517
- loadFurniture(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<ConfigurationResultObject>;
1518
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureService, never>;
1519
- static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureService>;
1264
+ declare class ProgressBarModule {
1265
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarModule, never>;
1266
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarModule, [typeof ProgressBarComponent], [typeof i3.CommonModule], [typeof ProgressBarComponent]>;
1267
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarModule>;
1520
1268
  }
1521
1269
 
1522
- declare class SwitchLoadFurnitureService implements OnDestroy {
1523
- private _loadFurnitureService;
1524
- private _loadFurnitureWithoutSceneService;
1525
- private _settingsService;
1526
- private _iOne;
1527
- currentActiveService: LoadFurnitureBaseService;
1528
- private _standAlone;
1529
- private _controllerInitSub;
1530
- private _standAloneInstance;
1531
- constructor(_loadFurnitureService: LoadFurnitureService, _loadFurnitureWithoutSceneService: LoadFurnitureWithoutSceneService, _settingsService: SettingsService, _iOne: ConfiguratorConnectorService);
1532
- ngOnDestroy(): void;
1533
- static ɵfac: i0.ɵɵFactoryDeclaration<SwitchLoadFurnitureService, never>;
1534
- static ɵprov: i0.ɵɵInjectableDeclaration<SwitchLoadFurnitureService>;
1270
+ declare class ConfiguratorLoaderComponent {
1271
+ showClass(): boolean;
1272
+ show: boolean;
1273
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorLoaderComponent, never>;
1274
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorLoaderComponent, "co-configurator-loader", never, { "show": { "alias": "show"; "required": false; }; }, {}, never, never, false, never>;
1275
+ }
1276
+
1277
+ declare class ConfiguratorLoaderModule {
1278
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorLoaderModule, never>;
1279
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorLoaderModule, [typeof ConfiguratorLoaderComponent], [typeof i3$1.LoaderModule, typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ConfiguratorLoaderComponent]>;
1280
+ static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorLoaderModule>;
1535
1281
  }
1536
1282
 
1537
1283
  /** AUTO GENERATED FILE. DO NOT CHANGE.. **/
@@ -1651,783 +1397,84 @@ declare enum IconEnum {
1651
1397
  XmarkRegular = "xmark_regular"
1652
1398
  }
1653
1399
 
1654
- declare class SceneOptionButtonInterface {
1655
- id: number;
1656
- elementId: string;
1657
- label?: string;
1658
- class?: string;
1659
- tooltip?: string;
1660
- image?: string | SafeHtml;
1661
- order?: number;
1662
- toggle?: boolean;
1663
- tooltipActive?: string;
1664
- active?: boolean;
1665
- object?: any;
1666
- click?: Function;
1667
- show?: boolean;
1668
- icon?: IconEnum;
1669
- children?: SceneOptionButtonInterface[];
1670
- }
1671
-
1672
- declare class SceneOptionsService {
1673
- sceneOptionButtonAdded: BehaviorSubject<SceneOptionButtonInterface>;
1674
- sceneOptionButtonUpdated: Subject<SceneOptionButtonInterface>;
1675
- addSceneOptionButton(button: SceneOptionButtonInterface): void;
1676
- updateSceneOptionButton(button: SceneOptionButtonInterface): void;
1677
- static ɵfac: i0.ɵɵFactoryDeclaration<SceneOptionsService, never>;
1678
- static ɵprov: i0.ɵɵInjectableDeclaration<SceneOptionsService>;
1400
+ declare class IconCacheService {
1401
+ private _sanitizer;
1402
+ /**
1403
+ * All the icons as a large JSON object, from the all-icons.json file.
1404
+ * The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
1405
+ */
1406
+ get iconCache(): {
1407
+ [iconName: string]: SafeHtml;
1408
+ };
1409
+ private _iconCache;
1410
+ private _allIcons;
1411
+ constructor(_sanitizer: DomSanitizer);
1412
+ getIcon(iconName: string): SafeHtml;
1413
+ getIconAsBase64(iconName: IconEnum): SafeHtml;
1414
+ setIconCache(): void;
1415
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconCacheService, never>;
1416
+ static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
1679
1417
  }
1680
1418
 
1681
- declare enum TextureType {
1682
- Basic = 0,
1683
- Image = 1,
1684
- CustomPattern = 2,
1685
- PBR = 3,
1686
- SHADOW = 4
1419
+ declare class ConfiguratorErrorDialogComponent {
1420
+ iconService: IconCacheService;
1421
+ showClass(): boolean;
1422
+ readonly icons: typeof IconEnum;
1423
+ errorMessages: ConfiguratorErrorMessage[];
1424
+ closeErrorDialoag: EventEmitter<void>;
1425
+ onClose(): void;
1426
+ constructor(iconService: IconCacheService);
1427
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorErrorDialogComponent, never>;
1428
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorErrorDialogComponent, "co-configurator-error-dialog", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; }, { "closeErrorDialoag": "closeErrorDialoag"; }, never, never, false, never>;
1687
1429
  }
1688
1430
 
1689
- interface TextureInterface {
1690
- name?: string;
1691
- type?: string | TextureType;
1692
- url?: string;
1693
- materializeUrl?: string;
1694
- bumpMap?: string;
1695
- bumpScale?: number;
1696
- roughness?: number;
1697
- roughnessMap?: string;
1698
- normalMap?: string;
1699
- alphaMap?: string;
1700
- repeatX?: number;
1701
- repeatY?: number;
1702
- metalness?: number;
1703
- metalnessMap?: string;
1704
- aoMapIntensity?: number;
1705
- aoMap?: string;
1706
- data?: any;
1707
- color?: string;
1708
- emissive?: string;
1709
- show?: boolean;
1710
- default?: boolean;
1711
- surfaces?: string[];
1712
- offset?: THREE.Vector2;
1713
- scale?: number;
1714
- rotation?: number;
1715
- stretch?: boolean;
1716
- height?: number;
1717
- width?: number;
1718
- tileSize?: number;
1719
- tileRotation?: number;
1720
- useStandalone?: boolean;
1721
- defaultStandalone?: boolean;
1722
- mirror?: boolean;
1723
- simplePlane?: boolean;
1724
- toneMapped?: boolean;
1725
- transparent?: boolean;
1726
- opacity?: number;
1727
- side?: number;
1728
- depthWrite?: boolean;
1729
- depthTest?: boolean;
1431
+ declare class ConfiguratorExportDialogComponent {
1432
+ iconService: IconCacheService;
1433
+ itemService: ConfiguratorItemService;
1434
+ private _utilService;
1435
+ readonly icons: typeof IconEnum;
1436
+ closeExportDialog: EventEmitter<void>;
1437
+ constructor(iconService: IconCacheService, itemService: ConfiguratorItemService, _utilService: UtilsService);
1438
+ onClose(): void;
1439
+ downloadGLB(): void;
1440
+ downloadUSDZ(): void;
1441
+ downloadBoth(): void;
1442
+ downloadThumbnail(): void;
1443
+ private _getObjectToExport;
1444
+ private _download3DModelAsGLB;
1445
+ private _download3DModelAsUSDZ;
1446
+ private _downloadFile;
1447
+ private _base64ToBlob;
1448
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorExportDialogComponent, never>;
1449
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorExportDialogComponent, "co-configurator-export-dialog", never, {}, { "closeExportDialog": "closeExportDialog"; }, never, never, false, never>;
1730
1450
  }
1731
1451
 
1732
- interface AdjustableElementInterface {
1733
- identifier: string;
1734
- connector: string;
1735
- connectedNodeId: number;
1452
+ declare class CameraSettings {
1453
+ sku: string;
1454
+ position: Vector3;
1455
+ rotation: Vector3;
1456
+ maxHorizontalOrbit: number;
1457
+ minHorizontalOrbit: number;
1458
+ maxVerticalOrbit: number;
1459
+ minVerticalOrbit: number;
1460
+ maxZoomDistance: number;
1461
+ minZoomDistance: number;
1736
1462
  }
1737
1463
 
1738
- interface Skin {
1739
- [face: string]: SkinFragment;
1740
- }
1741
- interface SkinFragment {
1742
- color?: number;
1743
- texture?: Texture;
1744
- }
1745
-
1746
- /** Meta data for items. */
1747
- interface Metadata {
1748
- itemName?: string;
1749
- itemDescription?: string;
1750
- itemType?: number;
1751
- /**
1752
- * InstanceId
1753
- */
1754
- itemId?: string;
1755
- originalItemId?: string;
1756
- /**
1757
- * Sku
1758
- */
1759
- itemIdentifier?: string;
1760
- goodId?: string;
1761
- goodType?: string;
1762
- isCustom?: boolean;
1763
- locked?: boolean;
1764
- configurable?: boolean;
1765
- ione?: boolean;
1766
- position?: Vector3;
1767
- rotation?: number | Euler;
1768
- scale?: Vector3;
1769
- centerPivot?: boolean;
1770
- ignoreInvisible?: boolean;
1771
- updatePivotOnCreate?: boolean;
1772
- elementConfiguration?: AdjustableElementInterface[];
1773
- obsolete?: boolean;
1774
- thirdPartyModel?: boolean;
1775
- usePivot?: boolean;
1776
- decos?: DecoNode[];
1777
- selections?: Selection[];
1778
- canElevate?: boolean;
1779
- onWall?: boolean;
1780
- modelUrl?: string;
1781
- scalable?: boolean;
1782
- scalePercentage?: number;
1783
- resizable?: boolean;
1784
- elevation?: number;
1785
- elevationFixed?: boolean;
1786
- elevationAdjustable?: boolean;
1787
- schema?: string;
1788
- assetPath?: string;
1789
- texture?: Texture;
1790
- textureAssetName?: string;
1791
- skin?: Skin;
1792
- frameColor?: number;
1793
- doorColor?: number;
1794
- windowColor?: THREE.Color;
1795
- doorpost?: boolean;
1796
- isGlass?: boolean;
1797
- itemGroup?: any;
1798
- canRotateX?: boolean;
1799
- canRotateY?: boolean;
1800
- canRotateZ?: boolean;
1801
- canScaleX?: boolean;
1802
- canScaleY?: boolean;
1803
- canScaleZ?: boolean;
1804
- colorable?: boolean;
1805
- default180?: boolean;
1806
- objectUUID?: string;
1807
- conversionGTMSend?: boolean;
1808
- conversionSubmittedPrice?: string;
1809
- hdecoType?: string;
1810
- opening?: {
1811
- show: boolean;
1812
- double: boolean;
1813
- invertDirection: boolean;
1814
- invertSide: boolean;
1815
- };
1816
- }
1817
-
1818
- declare class Texture {
1819
- name: string;
1820
- type: TextureType;
1821
- url: string;
1822
- materializeUrl: string;
1823
- bumpMap: string;
1824
- bumpScale: number;
1825
- roughness: number;
1826
- roughnessMap: string;
1827
- normalMap: string;
1828
- repeatX: number;
1829
- repeatY: number;
1830
- metalness: number;
1831
- metalnessMap: string;
1832
- aoMapIntensity: number;
1833
- aoMap: string;
1834
- alphaMap: string;
1835
- color: string;
1836
- emissive: string;
1837
- data: any;
1838
- surfaces: string[];
1839
- offset: THREE.Vector2;
1840
- scale: number;
1841
- rotation: number;
1842
- stretch: boolean;
1843
- show: boolean;
1844
- default: boolean;
1845
- height: number;
1846
- width: number;
1847
- tileSize: number;
1848
- tileRotation: number;
1849
- dimensions: Vector2;
1850
- offsetScale: number;
1851
- useStandalone: boolean;
1852
- defaultStandalone: boolean;
1853
- mirror: boolean;
1854
- simplePlane: boolean;
1855
- toneMapped: boolean;
1856
- transparent: boolean;
1857
- opacity: number;
1858
- side: THREE.Side;
1859
- depthWrite: boolean;
1860
- depthTest: boolean;
1861
- metadata?: Metadata;
1862
- static CreateModelFromInterface(modelInterface: TextureInterface): Texture;
1863
- }
1864
-
1865
- declare enum ShadowMapLocalType {
1866
- BasicShadowMap = "BasicShadowMap",
1867
- PCFShadowMap = "PCFShadowMap",
1868
- PCFSoftShadowMap = "PCFSoftShadowMap",
1869
- VSMShadowMap = "VSMShadowMap"
1870
- }
1871
-
1872
- declare enum OutputEncoding {
1873
- NoColorSpace = "NoColorSpace",
1874
- SRGBColorSpace = "SRGBColorSpace",
1875
- LinearSRGBColorSpace = "LinearSRGBColorSpace",
1876
- DisplayP3ColorSpace = "DisplayP3ColorSpace",
1877
- LinearDisplayP3ColorSpace = "LinearDisplayP3ColorSpace"
1878
- }
1879
-
1880
- declare enum LightEnum {
1881
- SpotLight = "SpotLight",
1882
- DirectionalLight = "DirectionalLight",
1883
- AmbientLight = "AmbientLight",
1884
- HemisphereLight = "HemisphereLight",
1885
- PointLight = "PointLight"
1886
- }
1887
-
1888
- declare class ShadowProperties {
1889
- mapSize: Vector2;
1890
- radius: number;
1891
- near: number;
1892
- far: number;
1893
- }
1894
-
1895
- declare class LightProperties {
1896
- type: LightEnum;
1897
- name: string;
1898
- visible: boolean;
1899
- position: Vector3;
1900
- color: Color;
1901
- groundColor: Color;
1902
- intensity: number;
1903
- angle: number;
1904
- power: number;
1905
- decay: number;
1906
- distance: number;
1907
- penumbra: number;
1908
- bias: number;
1909
- radius: number;
1910
- castShadow: boolean;
1911
- wallOffset: number;
1912
- rotationOffset: number;
1913
- topDownDirectional: boolean;
1914
- shadow: ShadowProperties;
1915
- static CreateNew(rawData: any): LightProperties;
1916
- }
1917
-
1918
- declare enum ToneMappingLocal {
1919
- NoToneMapping = "NoToneMapping",
1920
- LinearToneMapping = "LinearToneMapping",
1921
- ReinhardToneMapping = "ReinhardToneMapping",
1922
- CineonToneMapping = "CineonToneMapping",
1923
- ACESFilmicToneMapping = "ACESFilmicToneMapping",
1924
- CustomToneMapping = "CustomToneMapping",
1925
- AgXToneMapping = "AgXToneMapping",
1926
- NeutralToneMapping = "NeutralToneMapping"
1927
- }
1928
-
1929
- interface LightPresetInterface {
1930
- id: string;
1931
- name: string;
1932
- default: boolean;
1933
- standalone: boolean;
1934
- group: string;
1935
- navigatorType: NavigatorType;
1936
- shadowMapType: ShadowMapLocalType;
1937
- outputEncoding: OutputEncoding;
1938
- shadowRadius: number;
1939
- toneMapping: ToneMappingLocal;
1940
- toneMappingExposure: number;
1941
- physicallyCorrectLights: boolean;
1942
- lights: LightProperties[];
1943
- hdri: string;
1944
- hdriIntensity: number;
1945
- }
1946
-
1947
- declare class LightPreset {
1948
- id: string;
1949
- name: string;
1950
- navigatorType: NavigatorType;
1951
- default: boolean;
1952
- standalone: boolean;
1953
- group: string;
1954
- shadowMapType: ShadowMapLocalType;
1955
- outputEncoding: OutputEncoding;
1956
- colorSpace: ColorSpace;
1957
- shadowRadius: number;
1958
- toneMapping: ToneMappingLocal;
1959
- toneMappingExposure: number;
1960
- physicallyCorrectLights: boolean;
1961
- lights: LightProperties[];
1962
- hdri: string;
1963
- hdriIntensity: number;
1964
- dirty: boolean;
1965
- constructor();
1966
- static CreateModelFromInterface(modelInterface: LightPresetInterface): LightPreset;
1967
- private _generateUniqueId;
1968
- }
1969
-
1970
- declare class BundleInitializerService implements OnDestroy {
1971
- private _jsonUtilsService;
1972
- private _settingsService;
1973
- private _ioneControllerService;
1974
- private _appInitializerService;
1975
- private _configurationService;
1976
- private _sceneService;
1977
- private _sceneOptionsService;
1978
- floorTextures: Texture[];
1979
- lightPresets: LightPreset[];
1980
- settings: Setting[];
1981
- floorTexturesLoaded: BehaviorSubject<Texture[]>;
1982
- lightPresetsLoaded: BehaviorSubject<LightPreset[]>;
1983
- settingsLoaded: BehaviorSubject<Setting[]>;
1984
- allLoaded: BehaviorSubject<boolean>;
1985
- private _assetPath;
1986
- private _connectionSet;
1987
- private _subs;
1988
- private _jsonFile;
1989
- private _lightPresetsJsonFile;
1990
- constructor(_jsonUtilsService: JsonUtilsService, _settingsService: SettingsService, _ioneControllerService: ConfiguratorConnectorService, _appInitializerService: AppInitializerService, _configurationService: ConfigurationService, _sceneService: SceneService, _sceneOptionsService: SceneOptionsService);
1991
- ngOnDestroy(): void;
1992
- getFloorTextures(): Texture[];
1993
- getFloorTexture(): Texture;
1994
- getLightPreset(): LightPreset[];
1995
- private _initialize;
1996
- private _createTexture;
1997
- private _createLightPreset;
1998
- private _createSettings;
1999
- static ɵfac: i0.ɵɵFactoryDeclaration<BundleInitializerService, never>;
2000
- static ɵprov: i0.ɵɵInjectableDeclaration<BundleInitializerService>;
2001
- }
2002
-
2003
- declare class FloorPlaneService implements OnDestroy {
2004
- private _settingsService;
2005
- private _sceneService;
2006
- private _sceneOptionsService;
2007
- private _bundleInitializerService;
2008
- get floorPlane(): Object3D;
2009
- floorPlaneCreated: BehaviorSubject<boolean>;
2010
- private _standaloneFloors;
2011
- private _floorPlane;
2012
- private _subs;
2013
- private _sceneReady;
2014
- private _texturesReady;
2015
- constructor(_settingsService: SettingsService, _sceneService: SceneService, _sceneOptionsService: SceneOptionsService, _bundleInitializerService: BundleInitializerService);
2016
- ngOnDestroy(): void;
2017
- createFloorPlane(): Promise<void>;
2018
- getCenterFloorPlane(): Vector3;
2019
- getDimensions(scale?: number): {
2020
- x: {
2021
- min: number;
2022
- max: number;
2023
- };
2024
- y: {
2025
- min: number;
2026
- max: number;
2027
- };
2028
- };
2029
- getPlaneSize(): Vector3;
2030
- private _getStandaloneFloorSize;
2031
- private _generateFloorPlane;
2032
- private _createFloorMaterial;
2033
- private _upsertFloorButtons;
2034
- private _changeStandaloneFloor;
2035
- private _setFloorTexture;
2036
- private _updateFloorMaterial;
2037
- private _setUpdatedMaterial;
2038
- private _getMaterials;
2039
- static ɵfac: i0.ɵɵFactoryDeclaration<FloorPlaneService, never>;
2040
- static ɵprov: i0.ɵɵInjectableDeclaration<FloorPlaneService>;
2041
- }
2042
-
2043
- declare class LightsService implements OnDestroy {
2044
- private _sceneService;
2045
- private _bundleInitializerService;
2046
- private _configurationService;
2047
- private _floorPlanService;
2048
- lights: Light[];
2049
- onLightAdded: Subject<{
2050
- light: Light;
2051
- index: number;
2052
- }>;
2053
- private _subs;
2054
- constructor(_sceneService: SceneService, _bundleInitializerService: BundleInitializerService, _configurationService: ConfigurationService, _floorPlanService: FloorPlaneService);
2055
- ngOnDestroy(): void;
2056
- init(): void;
2057
- createLight<T extends Light>(modelClass: any): void;
2058
- addLight(light: Light): void;
2059
- removeAllLights(): void;
2060
- initiateLightPreset(): void;
2061
- updateAllOffsets(): void;
2062
- updateOffsets(light: Light): void;
2063
- private _addLight;
2064
- private _removeLight;
2065
- private _updateShadowCamera;
2066
- static ɵfac: i0.ɵɵFactoryDeclaration<LightsService, never>;
2067
- static ɵprov: i0.ɵɵInjectableDeclaration<LightsService>;
2068
- }
2069
-
2070
- declare class LightPresetsService implements OnDestroy {
2071
- private _lightsService;
2072
- private _appService;
2073
- private _sceneService;
2074
- private _screenSizeAnalysis;
2075
- private _settingsService;
2076
- set activeLightPreset(value: LightPreset);
2077
- get activeLightPreset(): LightPreset;
2078
- loadedLightPresets: LightPreset[];
2079
- presetLoaded: BehaviorSubject<boolean>;
2080
- private _activeLightPreset;
2081
- private _lightPresetsLoaded;
2082
- private _subs;
2083
- private _lightsMap;
2084
- constructor(_lightsService: LightsService, _appService: BundleInitializerService, _sceneService: SceneService, _screenSizeAnalysis: ScreenSizeAnalysisService, _settingsService: SettingsService);
2085
- init(): void;
2086
- ngOnDestroy(): void;
2087
- loadLightPreset(lightPreset: LightPreset): Promise<void>;
2088
- prepareLoadLightPreset(standalone?: boolean): Promise<void>;
2089
- private _prepareLoadLightPreset;
2090
- private _createLightFromProperties;
2091
- private _setObjectProperties;
2092
- static ɵfac: i0.ɵɵFactoryDeclaration<LightPresetsService, never>;
2093
- static ɵprov: i0.ɵɵInjectableDeclaration<LightPresetsService>;
2094
- }
2095
-
2096
- declare class IntersectionService {
2097
- private _cameraService;
2098
- constructor(_cameraService: CameraService);
2099
- getIntersections(mouseVector: Vector3, planeObjects: Object3D[], options?: any): Intersection[];
2100
- removeIf(array: any, func: any): any[];
2101
- static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionService, never>;
2102
- static ɵprov: i0.ɵɵInjectableDeclaration<IntersectionService>;
2103
- }
2104
-
2105
- declare class SceneEventService implements OnDestroy {
2106
- private _sceneService;
2107
- private _cameraService;
2108
- private _connectorService;
2109
- private _intersectionService;
2110
- private _floorPlaneService;
2111
- private _itemService;
2112
- private _appEventService;
2113
- readonly intersectOffsetForWalls = 20;
2114
- readonly longTouchDuration = 600;
2115
- rotateNoDrag: boolean;
2116
- private _element;
2117
- private _controls;
2118
- private _camera;
2119
- private _mousePosition;
2120
- private _oldMousePosition;
2121
- private _rotationStartPoint;
2122
- private _intersectedObject;
2123
- private _intersectedMesh;
2124
- private _mouseoverObject;
2125
- private _selectedObject;
2126
- private _prevSelectedObject;
2127
- private _defaultCursorStyle;
2128
- private _inDragOver;
2129
- private _mouseDown;
2130
- private _mouseMoved;
2131
- private _rotateMouseOver;
2132
- private _groupingMode;
2133
- private _state;
2134
- private _intersectedWall;
2135
- private _intersectedFloor;
2136
- private _subs;
2137
- private _cameraMoveSub;
2138
- private _debouncedSaveState;
2139
- private _touchStart;
2140
- private _touchEnd;
2141
- private _touchCancel;
2142
- private _touchMove;
2143
- constructor(_sceneService: SceneService, _cameraService: CameraService, _connectorService: ConfiguratorConnectorService, _intersectionService: IntersectionService, _floorPlaneService: FloorPlaneService, _itemService: ItemService, _appEventService: AppEventService);
2144
- ngOnDestroy(): void;
2145
- init(element: HTMLElement): void;
2146
- setExploreMode(on?: boolean): void;
2147
- setSelectedObject(object: Object3D, mesh?: Object3D | Mesh): void;
2148
- setUnselectedObject(): void;
2149
- private _updateIntersections;
2150
- private _clearIntersectedObject;
2151
- private _setMousePositionFromTouchEvent;
2152
- private _touchStartEvent;
2153
- private _touchEndEvent;
2154
- private _touchMoveEvent;
2155
- private _mouseUpEvent;
2156
- private _mouseMoveEvent;
2157
- private _leftMouseDownEvent;
2158
- private _getIntersections;
2159
- private _setIntersectedObject;
2160
- private _isMouseEventAllowed;
2161
- private _mouseToVec3;
2162
- private _markSceneToUpdate;
2163
- private _setCursorStyle;
2164
- static ɵfac: i0.ɵɵFactoryDeclaration<SceneEventService, never>;
2165
- static ɵprov: i0.ɵɵInjectableDeclaration<SceneEventService>;
2166
- }
2167
-
2168
- declare class RenderResponse {
2169
- result: string;
2170
- statusCode: number;
2171
- }
2172
-
2173
- declare enum BlenderRenderType {
2174
- Realtime = 0,
2175
- Raytrace = 1
2176
- }
2177
-
2178
- declare class OptionalRenderSettings {
2179
- objectWidth: number;
2180
- objectHeight: number;
2181
- renderType: number | BlenderRenderType;
2182
- objectRotation: any;
2183
- margin: number;
2184
- cameraRotationX: number;
2185
- forceTransparency: boolean;
2186
- }
2187
-
2188
- declare class RenderBaseObject {
2189
- selections: Selection[];
2190
- decos: DecoNode[];
2191
- assetUrl: string;
2192
- cdnUrl: string;
2193
- schema: string;
2194
- options: any;
2195
- }
2196
-
2197
- declare class RenderApi {
2198
- private _settingsService;
2199
- private _overWriteTransparency;
2200
- constructor(_settingsService: SettingsService);
2201
- prepareGlbRender(buildResult: ConfigurationResultObject, object3dPosition: Vector3, object3dRotation: Vector3, cameraFov?: number, forceNewRender?: boolean, optionalRenderParameters?: OptionalRenderSettings): RenderBaseObject;
2202
- sendRenderRequest(data: RenderBaseObject): Promise<RenderResponse>;
2203
- degreesToVector3(value: number): Vector3;
2204
- private _adjustCameraRotation;
2205
- private _getSceneRenderSettings;
2206
- private _useTransparency;
2207
- private _setForceTransparency;
2208
- static ɵfac: i0.ɵɵFactoryDeclaration<RenderApi, never>;
2209
- static ɵprov: i0.ɵɵInjectableDeclaration<RenderApi>;
2210
- }
2211
-
2212
- declare class RenderService implements OnDestroy {
2213
- private _settingsService;
2214
- private _cameraService;
2215
- private _itemService;
2216
- private _appEventService;
2217
- private _renderApi;
2218
- renderImageChanged: BehaviorSubject<string>;
2219
- renderImageError: BehaviorSubject<string>;
2220
- blenderRenderStarted: EventEmitter<string>;
2221
- clientWidth: number;
2222
- clientHeight: number;
2223
- private _subs;
2224
- constructor(_settingsService: SettingsService, _cameraService: CameraService, _itemService: ItemService, _appEventService: AppEventService, _renderApi: RenderApi);
2225
- ngOnDestroy(): void;
2226
- renderImage(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): void;
2227
- getNewGlbFromServer(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): void;
2228
- private _handleAjaxGlb;
2229
- static ɵfac: i0.ɵɵFactoryDeclaration<RenderService, never>;
2230
- static ɵprov: i0.ɵɵInjectableDeclaration<RenderService>;
2231
- }
2232
-
2233
- declare class ConfiguringService implements OnDestroy {
2234
- settingsService: SettingsService;
2235
- private _initializerService;
2236
- private _loadFurnitureService;
2237
- private _buildFurnitureService;
2238
- private _appEventService;
2239
- private _configuratorConnectorService;
2240
- private _itemService;
2241
- private _floorPlaneService;
2242
- private _lightPresetService;
2243
- private _cameraService;
2244
- private _sceneEventService;
2245
- private _sceneService;
2246
- private _utilsService;
2247
- private _renderService;
2248
- set settings(value: ConfiguratorSettings);
2249
- get settings(): ConfiguratorSettings;
2250
- set sku(value: string);
2251
- get sku(): string;
2252
- set instanceId(value: string);
2253
- get instanceId(): string;
2254
- set isConfiguring(value: boolean);
2255
- get isConfiguring(): boolean;
2256
- set scene(value: Scene);
2257
- get scene(): Scene;
2258
- onShowLiteSelector: EventEmitter<boolean>;
2259
- onShowSelections: EventEmitter<boolean>;
2260
- onShowAnswers: EventEmitter<boolean>;
2261
- onShowFullConfiguration: EventEmitter<boolean>;
2262
- onAnswersAvailable: EventEmitter<boolean>;
2263
- floorReady: EventEmitter<boolean>;
2264
- onRenderImageReceived: EventEmitter<string>;
2265
- onRenderErrorReceived: EventEmitter<string>;
2266
- onThumbnailReceived: EventEmitter<string>;
2267
- onCanvasImageReceived: EventEmitter<string>;
2268
- buildResult: ConfigurationResultObject;
2269
- private _settings;
2270
- private _sku;
2271
- private _instanceId;
2272
- private _isConfiguring;
2273
- private _scene;
2274
- private _showFullConfiguration;
2275
- private _subs;
2276
- constructor(settingsService: SettingsService, _initializerService: AppInitializerService, _loadFurnitureService: SwitchLoadFurnitureService, _buildFurnitureService: SwitchBuildFurnitureService, _appEventService: AppEventService, _configuratorConnectorService: ConfiguratorConnectorService, _itemService: ItemService, _floorPlaneService: FloorPlaneService, _lightPresetService: LightPresetsService, _cameraService: CameraService, _sceneEventService: SceneEventService, _sceneService: SceneService, _utilsService: UtilsService, _renderService: RenderService);
2277
- ngOnDestroy(): void;
2278
- init(settings: any): Promise<void>;
2279
- configure(furnitureData: ConfigurationResultObject, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, fromPreset?: boolean, standAlone?: boolean, fromScratch?: boolean, loadFromProject?: boolean): Promise<void>;
2280
- addBuildToScene(buildResult: ConfigurationResultObject): void;
2281
- handleLoadSceneContent(): Promise<void>;
2282
- renderImage(buildResult: ConfigurationResultObject, optionalRenderParameters?: any, forceNewRender?: boolean): Promise<void>;
2283
- private _handleTemplateChange;
2284
- private _handleFloorPlaneReady;
2285
- private _handleImageReceived;
2286
- private _handleRenderErrorReceived;
2287
- private _handleAnswerCountReceived;
2288
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguringService, never>;
2289
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguringService>;
2290
- }
2291
-
2292
- declare class ConfiguratorComponent implements OnDestroy {
2293
- settingsService: SettingsService;
2294
- loaderService: LoaderService;
2295
- private _appEventService;
2296
- private _configuringService;
2297
- showClass(): boolean;
2298
- showLoader: boolean;
2299
- showProgressBar: boolean;
2300
- showErrorMessages: boolean;
2301
- outputErrorMessages: boolean;
2302
- canCloseConfigurator: boolean;
2303
- animateSlideout: boolean;
2304
- showHeaderInformation: boolean;
2305
- showSaveAndLoadConfiguration: boolean;
2306
- buildResult: EventEmitter<ConfigurationResultObject>;
2307
- isLoading: EventEmitter<boolean>;
2308
- updateProgressBar: EventEmitter<boolean>;
2309
- errorMessages: EventEmitter<ConfiguratorErrorMessage[]>;
2310
- showChange: EventEmitter<boolean>;
2311
- resultHasErrors: boolean;
2312
- showErrorDiagram: boolean;
2313
- configurationResultObject: ConfigurationResultObject;
2314
- private _subs;
2315
- constructor(settingsService: SettingsService, loaderService: LoaderService, _appEventService: AppEventService, _configuringService: ConfiguringService);
2316
- ngOnDestroy(): void;
2317
- handleBuildFinished(result: ConfigurationResultObject): void;
2318
- handleShowChange(show: boolean): void;
2319
- handleCloseErrorDialog(): void;
2320
- private _handleArticleNotFound;
2321
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorComponent, never>;
2322
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorComponent, "co-configurator", never, { "showLoader": { "alias": "showLoader"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showErrorMessages": { "alias": "showErrorMessages"; "required": false; }; "outputErrorMessages": { "alias": "outputErrorMessages"; "required": false; }; "canCloseConfigurator": { "alias": "canCloseConfigurator"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; }, { "buildResult": "buildResult"; "isLoading": "isLoading"; "updateProgressBar": "updateProgressBar"; "errorMessages": "errorMessages"; "showChange": "showChange"; }, never, never, false, never>;
2323
- }
2324
-
2325
- declare class ProgressBarComponent {
2326
- progressService: ProgressService;
2327
- showClass(): boolean;
2328
- get showBar(): boolean;
2329
- constructor(progressService: ProgressService);
2330
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
2331
- static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "co-progress-bar", never, {}, {}, never, never, false, never>;
2332
- }
2333
-
2334
- declare class ProgressBarModule {
2335
- static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarModule, never>;
2336
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarModule, [typeof ProgressBarComponent], [typeof i3.CommonModule], [typeof ProgressBarComponent]>;
2337
- static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarModule>;
2338
- }
2339
-
2340
- declare class ConfiguratorLoaderComponent {
2341
- showClass(): boolean;
2342
- show: boolean;
2343
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorLoaderComponent, never>;
2344
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorLoaderComponent, "co-configurator-loader", never, { "show": { "alias": "show"; "required": false; }; }, {}, never, never, false, never>;
2345
- }
2346
-
2347
- declare class ConfiguratorLoaderModule {
2348
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorLoaderModule, never>;
2349
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorLoaderModule, [typeof ConfiguratorLoaderComponent], [typeof i3$1.LoaderModule, typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ConfiguratorLoaderComponent]>;
2350
- static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorLoaderModule>;
2351
- }
2352
-
2353
- declare class IconCacheService {
2354
- private _sanitizer;
2355
- /**
2356
- * All the icons as a large JSON object, from the all-icons.json file.
2357
- * The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
2358
- */
2359
- get iconCache(): {
2360
- [iconName: string]: SafeHtml;
2361
- };
2362
- private _iconCache;
2363
- private _allIcons;
2364
- constructor(_sanitizer: DomSanitizer);
2365
- getIcon(iconName: string): SafeHtml;
2366
- getIconAsBase64(iconName: IconEnum): SafeHtml;
2367
- setIconCache(): void;
2368
- static ɵfac: i0.ɵɵFactoryDeclaration<IconCacheService, never>;
2369
- static ɵprov: i0.ɵɵInjectableDeclaration<IconCacheService>;
2370
- }
2371
-
2372
- declare class ConfiguratorErrorDialogComponent {
2373
- iconService: IconCacheService;
2374
- showClass(): boolean;
2375
- readonly icons: typeof IconEnum;
2376
- errorMessages: ConfiguratorErrorMessage[];
2377
- closeErrorDialoag: EventEmitter<void>;
2378
- onClose(): void;
2379
- constructor(iconService: IconCacheService);
2380
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorErrorDialogComponent, never>;
2381
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorErrorDialogComponent, "co-configurator-error-dialog", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; }, { "closeErrorDialoag": "closeErrorDialoag"; }, never, never, false, never>;
2382
- }
2383
-
2384
- declare class ConfiguratorExportDialogComponent {
2385
- iconService: IconCacheService;
2386
- itemService: ItemService;
2387
- private _utilService;
2388
- readonly icons: typeof IconEnum;
2389
- closeExportDialog: EventEmitter<void>;
2390
- constructor(iconService: IconCacheService, itemService: ItemService, _utilService: UtilsService);
2391
- onClose(): void;
2392
- downloadGLB(): void;
2393
- downloadUSDZ(): void;
2394
- downloadBoth(): void;
2395
- downloadThumbnail(): void;
2396
- private _getObjectToExport;
2397
- private _download3DModelAsGLB;
2398
- private _download3DModelAsUSDZ;
2399
- private _downloadFile;
2400
- private _base64ToBlob;
2401
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorExportDialogComponent, never>;
2402
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorExportDialogComponent, "co-configurator-export-dialog", never, {}, { "closeExportDialog": "closeExportDialog"; }, never, never, false, never>;
2403
- }
2404
-
2405
- declare class CameraSettings {
2406
- sku: string;
2407
- position: Vector3;
2408
- rotation: Vector3;
2409
- maxHorizontalOrbit: number;
2410
- minHorizontalOrbit: number;
2411
- maxVerticalOrbit: number;
2412
- minVerticalOrbit: number;
2413
- maxZoomDistance: number;
2414
- minZoomDistance: number;
2415
- }
2416
-
2417
- declare class DynamicCameraService {
1464
+ declare class ConfiguratorDynamicCameraService {
2418
1465
  private _cameraService;
2419
1466
  private _sceneService;
2420
1467
  private _settingsService;
2421
1468
  private _configuratorConnectorService;
2422
1469
  currentCameraSettings: CameraSettings[];
2423
- constructor(_cameraService: CameraService, _sceneService: SceneService, _settingsService: SettingsService, _configuratorConnectorService: ConfiguratorConnectorService);
1470
+ constructor(_cameraService: ConfiguratorCameraService, _sceneService: ConfiguratorSceneService, _settingsService: ConfiguratorSettingsService, _configuratorConnectorService: ConfiguratorConnectorService);
2424
1471
  initCameraSettings(): Promise<void>;
2425
1472
  getCameraSettings(): CameraSettings;
2426
1473
  loadCustomCameraSettings(): Promise<void>;
2427
1474
  exportCameraSettings(): any;
2428
1475
  saveSettingsToCurrentSettings(cameraSettings: CameraSettings, asDefault: boolean): void;
2429
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicCameraService, never>;
2430
- static ɵprov: i0.ɵɵInjectableDeclaration<DynamicCameraService>;
1476
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorDynamicCameraService, never>;
1477
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorDynamicCameraService>;
2431
1478
  }
2432
1479
 
2433
1480
  declare class ConfiguratorCameraSettingsComponent implements OnInit {
@@ -2441,7 +1488,7 @@ declare class ConfiguratorCameraSettingsComponent implements OnInit {
2441
1488
  currentSku: string;
2442
1489
  positionAsString: string;
2443
1490
  rotationAsString: string;
2444
- constructor(iconService: IconCacheService, _cameraService: CameraService, _dynamicCameraService: DynamicCameraService, _configuratorConnectorService: ConfiguratorConnectorService);
1491
+ constructor(iconService: IconCacheService, _cameraService: ConfiguratorCameraService, _dynamicCameraService: ConfiguratorDynamicCameraService, _configuratorConnectorService: ConfiguratorConnectorService);
2445
1492
  ngOnInit(): void;
2446
1493
  onClose(): void;
2447
1494
  saveSettings(asDefault: boolean): void;
@@ -2453,101 +1500,46 @@ declare class ConfiguratorCameraSettingsComponent implements OnInit {
2453
1500
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorCameraSettingsComponent, "co-configurator-camera-settings-dialog", never, {}, { "closeCameraDialog": "closeCameraDialog"; }, never, never, false, never>;
2454
1501
  }
2455
1502
 
2456
- declare class AppendPipe implements PipeTransform {
2457
- transform(value: string, append?: string): string;
2458
- static ɵfac: i0.ɵɵFactoryDeclaration<AppendPipe, never>;
2459
- static ɵpipe: i0.ɵɵPipeDeclaration<AppendPipe, "append", false>;
2460
- }
2461
-
2462
- declare class LocalizePipe implements PipeTransform {
2463
- private _dictionaryService;
2464
- constructor(_dictionaryService: DictionaryService);
2465
- transform(value: string, upperCaseFirst?: boolean, replace?: string | string[]): string;
2466
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalizePipe, never>;
2467
- static ɵpipe: i0.ɵɵPipeDeclaration<LocalizePipe, "localize", false>;
2468
- }
2469
-
2470
- declare class GoogleTranslateService implements OnDestroy {
2471
- private _settingsService;
2472
- private _connectorService;
2473
- private _clientLanguage;
2474
- private _defaultLanguage;
2475
- private _translations;
2476
- private _initialized;
2477
- private _initializedSubject;
2478
- private _connectionSubject;
2479
- protected googleApiEnabled: boolean;
2480
- constructor(_settingsService: SettingsService, _connectorService: ConfiguratorConnectorService);
2481
- ngOnDestroy(): void;
2482
- getTranslation(input: string): Promise<string>;
2483
- static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslateService, never>;
2484
- static ɵprov: i0.ɵɵInjectableDeclaration<GoogleTranslateService>;
2485
- }
2486
-
2487
- declare class GoogleTranslatePipe implements PipeTransform {
2488
- private _googleTranslateService;
2489
- constructor(_googleTranslateService: GoogleTranslateService);
2490
- transform(value: string): Observable<string>;
2491
- static ɵfac: i0.ɵɵFactoryDeclaration<GoogleTranslatePipe, never>;
2492
- static ɵpipe: i0.ɵɵPipeDeclaration<GoogleTranslatePipe, "googleTranslate", false>;
2493
- }
2494
-
2495
- declare class PrependPipe implements PipeTransform {
2496
- transform(value: string, prepend?: string): string;
2497
- static ɵfac: i0.ɵɵFactoryDeclaration<PrependPipe, never>;
2498
- static ɵpipe: i0.ɵɵPipeDeclaration<PrependPipe, "prepend", false>;
2499
- }
2500
-
2501
- declare class StripHtmlPipe implements PipeTransform {
2502
- transform(html: string): string;
2503
- static ɵfac: i0.ɵɵFactoryDeclaration<StripHtmlPipe, never>;
2504
- static ɵpipe: i0.ɵɵPipeDeclaration<StripHtmlPipe, "stripHtml", false>;
2505
- }
2506
-
2507
- declare class PipesModule {
2508
- static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
2509
- static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof AppendPipe, typeof LocalizePipe, typeof GoogleTranslatePipe, typeof PrependPipe, typeof StripHtmlPipe], never, [typeof AppendPipe, typeof LocalizePipe, typeof GoogleTranslatePipe, typeof PrependPipe, typeof StripHtmlPipe]>;
2510
- static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
2511
- }
2512
-
2513
1503
  declare class ConfiguratorDialogModule {
2514
1504
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorDialogModule, never>;
2515
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorDialogModule, [typeof ConfiguratorErrorDialogComponent, typeof ConfiguratorExportDialogComponent, typeof ConfiguratorCameraSettingsComponent], [typeof PipesModule, typeof i3$1.IconModule, typeof i3.CommonModule, typeof i7.FormsModule], [typeof ConfiguratorErrorDialogComponent, typeof ConfiguratorExportDialogComponent, typeof ConfiguratorCameraSettingsComponent]>;
1505
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorDialogModule, [typeof ConfiguratorErrorDialogComponent, typeof ConfiguratorExportDialogComponent, typeof ConfiguratorCameraSettingsComponent], [typeof i2.TranslationModule, typeof i3$1.IconModule, typeof i3.CommonModule, typeof i7.FormsModule], [typeof ConfiguratorErrorDialogComponent, typeof ConfiguratorExportDialogComponent, typeof ConfiguratorCameraSettingsComponent]>;
2516
1506
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorDialogModule>;
2517
1507
  }
2518
1508
 
2519
- declare class ThreedselectorComponent implements OnInit, OnDestroy {
1509
+ declare class ConfigurationPresetDialogComponent implements OnDestroy {
1510
+ iconService: IconCacheService;
1511
+ private _overlay;
1512
+ private _viewContainerRef;
1513
+ private _configuratorConnectorService;
1514
+ private _translationService;
2520
1515
  private _appEventService;
2521
- private _buildFurnitureService;
2522
- private _configuringService;
2523
- private _configuratorService;
1516
+ readonly icons: typeof IconEnum;
1517
+ readonly presetDialogMode: typeof PresetDialogMode;
1518
+ dialogTemplate: TemplateRef<any>;
2524
1519
  showClass(): boolean;
2525
- customizeButtonClicked: EventEmitter<void>;
2526
- selections: Selection[];
2527
- canCloseConfigurator: boolean;
2528
- animateSlideout: boolean;
2529
- showHeaderInformation: boolean;
2530
- showSaveAndLoadConfiguration: boolean;
2531
- buildFinished: EventEmitter<ConfigurationResultObject>;
2532
- showChange: EventEmitter<boolean>;
2533
- showElementToolbar: boolean;
2534
- showLiteSelector: boolean;
2535
- showSelections: boolean;
2536
- showAnswers: boolean;
2537
- showFullConfiguration: boolean;
2538
- private _floorTexturesLoadedSub;
1520
+ instanceIdInput: string;
1521
+ showValidationErrors: boolean;
1522
+ validationError: string;
1523
+ dialogMode: PresetDialogMode;
1524
+ private _overlayRef;
1525
+ private _instanceId;
2539
1526
  private _subs;
2540
- private _loadingFromPreset;
2541
- constructor(_appEventService: AppEventService, _buildFurnitureService: SwitchBuildFurnitureService, _configuringService: ConfiguringService, _configuratorService: ConfiguratorService);
2542
- ngOnInit(): Promise<void>;
1527
+ constructor(iconService: IconCacheService, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _configuratorConnectorService: ConfiguratorConnectorService, _translationService: TranslationService, _appEventService: ConfiguratorEventService);
2543
1528
  ngOnDestroy(): void;
2544
- get showTemplate(): boolean;
2545
- handleShowChangeSelector(show: boolean): void;
2546
- private _handleAnswerCountReceived;
2547
- private _handleTemplateChange;
2548
- private _handleBuildResult;
2549
- static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorComponent, never>;
2550
- static ɵcmp: i0.ɵɵComponentDeclaration<ThreedselectorComponent, "co-threedselector", never, { "selections": { "alias": "selections"; "required": false; }; "canCloseConfigurator": { "alias": "canCloseConfigurator"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; }, { "customizeButtonClicked": "customizeButtonClicked"; "buildFinished": "buildFinished"; "showChange": "showChange"; }, never, never, false, never>;
1529
+ handleOpenDialog(mode: PresetDialogMode): void;
1530
+ handleCloseClick(): void;
1531
+ handleCopySuccess(): Promise<void>;
1532
+ loadConfiguration(): void;
1533
+ private _openOverlay;
1534
+ private _handleSetInstance;
1535
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetDialogComponent, never>;
1536
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationPresetDialogComponent, "co-configuration-preset-dialog", never, {}, {}, never, never, false, never>;
1537
+ }
1538
+
1539
+ declare class ConfigurationPresetDialogModule {
1540
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetDialogModule, never>;
1541
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetDialogModule, [typeof ConfigurationPresetDialogComponent], [typeof i2.TranslationModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard, typeof i3.AsyncPipe], [typeof ConfigurationPresetDialogComponent]>;
1542
+ static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationPresetDialogModule>;
2551
1543
  }
2552
1544
 
2553
1545
  declare class LiteSelectorComponent implements OnDestroy {
@@ -2556,16 +1548,11 @@ declare class LiteSelectorComponent implements OnDestroy {
2556
1548
  private _configuringService;
2557
1549
  showClass(): boolean;
2558
1550
  templateAnswers: TemplateRef<any>;
2559
- set showAnswers(value: boolean);
2560
- get showAnswers(): boolean;
2561
1551
  show: boolean;
2562
- set showSelections(value: boolean);
2563
- get showSelections(): boolean;
2564
1552
  showLabel: boolean;
2565
1553
  canClose: boolean;
2566
1554
  animateSlideout: boolean;
2567
1555
  customDimensions: boolean;
2568
- showSaveAndLoadConfiguration: boolean;
2569
1556
  readonly showChange: EventEmitter<boolean>;
2570
1557
  readonly answerChosen: EventEmitter<Answer>;
2571
1558
  answerToShowFromSelectionText: string;
@@ -2582,11 +1569,11 @@ declare class LiteSelectorComponent implements OnDestroy {
2582
1569
  onSelectionsSummaryDeleteSelection(selection: Selection): Promise<void>;
2583
1570
  onAnswersSlideoutAnswerChosen(answerSelected: any): void;
2584
1571
  static ɵfac: i0.ɵɵFactoryDeclaration<LiteSelectorComponent, never>;
2585
- static ɵcmp: i0.ɵɵComponentDeclaration<LiteSelectorComponent, "co-lite-selector", never, { "showAnswers": { "alias": "showAnswers"; "required": false; }; "show": { "alias": "show"; "required": false; }; "showSelections": { "alias": "showSelections"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; }, { "showChange": "showChange"; "answerChosen": "answerChosen"; }, never, never, false, never>;
1572
+ static ɵcmp: i0.ɵɵComponentDeclaration<LiteSelectorComponent, "co-lite-selector", never, { "show": { "alias": "show"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "animateSlideout": { "alias": "animateSlideout"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "showChange": "showChange"; "answerChosen": "answerChosen"; }, never, never, false, never>;
2586
1573
  }
2587
1574
 
2588
1575
  declare class AnswerCardComponent implements OnInit {
2589
- settingsService: SettingsService;
1576
+ settingsService: ConfiguratorSettingsService;
2590
1577
  iconService: IconCacheService;
2591
1578
  private _configuratorConnectorService;
2592
1579
  readonly icons: typeof IconEnum;
@@ -2616,7 +1603,7 @@ declare class AnswerCardComponent implements OnInit {
2616
1603
  showAnswerInfo: boolean;
2617
1604
  private _waitForInput;
2618
1605
  private _waitForInqValue;
2619
- constructor(settingsService: SettingsService, iconService: IconCacheService, _configuratorConnectorService: ConfiguratorConnectorService);
1606
+ constructor(settingsService: ConfiguratorSettingsService, iconService: IconCacheService, _configuratorConnectorService: ConfiguratorConnectorService);
2620
1607
  ngOnInit(): void;
2621
1608
  onContentClick(): void;
2622
1609
  handleClick(event: MouseEvent): void;
@@ -2640,7 +1627,7 @@ declare class AnswerCardComponent implements OnInit {
2640
1627
 
2641
1628
  declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2642
1629
  configuratorConnectorService: ConfiguratorConnectorService;
2643
- settingsService: SettingsService;
1630
+ settingsService: ConfiguratorSettingsService;
2644
1631
  iconService: IconCacheService;
2645
1632
  private _appEventService;
2646
1633
  private _buildFurnitureService;
@@ -2651,7 +1638,6 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2651
1638
  readonly icons: typeof IconEnum;
2652
1639
  private readonly _showSmallAnswerCardsFromThisAmount;
2653
1640
  private readonly _propsToSearch;
2654
- isShown: boolean;
2655
1641
  question: Question;
2656
1642
  showTitle: boolean;
2657
1643
  showFilter: boolean;
@@ -2659,7 +1645,6 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2659
1645
  useSlideout: boolean;
2660
1646
  get answers(): Answer[];
2661
1647
  customDimensions: boolean;
2662
- readonly isShownChange: EventEmitter<boolean>;
2663
1648
  readonly answerChosen: EventEmitter<{
2664
1649
  answer: Answer;
2665
1650
  input: string;
@@ -2667,7 +1652,7 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2667
1652
  isSmallCardsModus: boolean;
2668
1653
  bottomAlign: boolean;
2669
1654
  filteredAnswers: Answer[];
2670
- colorArray: Color$1[];
1655
+ colorArray: Color[];
2671
1656
  tagArray: Tag[];
2672
1657
  showTheFilter: boolean;
2673
1658
  zoomImage: string;
@@ -2683,12 +1668,12 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2683
1668
  private _subs;
2684
1669
  private _filterOnColors;
2685
1670
  private _filterOnTags;
2686
- constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: SettingsService, iconService: IconCacheService, _appEventService: AppEventService, _buildFurnitureService: SwitchBuildFurnitureService, _configuringService: ConfiguringService);
1671
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: ConfiguratorSettingsService, iconService: IconCacheService, _appEventService: ConfiguratorEventService, _buildFurnitureService: SwitchBuildFurnitureService, _configuringService: ConfiguringService);
2687
1672
  ngOnInit(): void;
2688
1673
  ngOnDestroy(): void;
2689
1674
  onZoomClick(answer: Answer): void;
2690
1675
  applyFilter(): void;
2691
- onFilterColor(color: Color$1): void;
1676
+ onFilterColor(color: Color): void;
2692
1677
  onFilterTag(tag: Tag): void;
2693
1678
  onCloseAnswerSlideout(): void;
2694
1679
  handleAnswerChosen(answer: Answer): void;
@@ -2708,7 +1693,7 @@ declare class AnswersSlideoutComponent implements OnInit, OnDestroy {
2708
1693
  private _addToArray;
2709
1694
  private _inArray;
2710
1695
  static ɵfac: i0.ɵɵFactoryDeclaration<AnswersSlideoutComponent, never>;
2711
- static ɵcmp: i0.ɵɵComponentDeclaration<AnswersSlideoutComponent, "co-answers-slideout", never, { "isShown": { "alias": "isShown"; "required": false; }; "question": { "alias": "question"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "answers": { "alias": "answers"; "required": false; }; "useSlideout": { "alias": "useSlideout"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "isShownChange": "isShownChange"; "answerChosen": "answerChosen"; }, never, never, false, never>;
1696
+ static ɵcmp: i0.ɵɵComponentDeclaration<AnswersSlideoutComponent, "co-answers-slideout", never, { "question": { "alias": "question"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "answers": { "alias": "answers"; "required": false; }; "useSlideout": { "alias": "useSlideout"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "answerChosen": "answerChosen"; }, never, never, false, never>;
2712
1697
  }
2713
1698
 
2714
1699
  declare class SlideoutComponent implements AfterViewInit {
@@ -2760,7 +1745,7 @@ declare class AnswersInfoDialogComponent implements OnInit {
2760
1745
  showTooltip: boolean;
2761
1746
  showPopup: boolean;
2762
1747
  hasEmbed: boolean;
2763
- constructor(iconService: IconCacheService, _settingsService: SettingsService, _configuratorConnectorService: ConfiguratorConnectorService, _sanitizer: DomSanitizer);
1748
+ constructor(iconService: IconCacheService, _settingsService: ConfiguratorSettingsService, _configuratorConnectorService: ConfiguratorConnectorService, _sanitizer: DomSanitizer);
2764
1749
  ngOnInit(): Promise<void>;
2765
1750
  private _loadInfo;
2766
1751
  private _formatAnswerInfo;
@@ -2770,13 +1755,13 @@ declare class AnswersInfoDialogComponent implements OnInit {
2770
1755
 
2771
1756
  declare class AnswersInfoDialogModule {
2772
1757
  static ɵfac: i0.ɵɵFactoryDeclaration<AnswersInfoDialogModule, never>;
2773
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnswersInfoDialogModule, [typeof AnswersInfoDialogComponent], [typeof i3.CommonModule, typeof PipesModule, typeof i3$1.IconModule], [typeof AnswersInfoDialogComponent]>;
1758
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnswersInfoDialogModule, [typeof AnswersInfoDialogComponent], [typeof i3.CommonModule, typeof i2.TranslationModule, typeof i3$1.IconModule], [typeof AnswersInfoDialogComponent]>;
2774
1759
  static ɵinj: i0.ɵɵInjectorDeclaration<AnswersInfoDialogModule>;
2775
1760
  }
2776
1761
 
2777
1762
  declare class AnswerCardModule {
2778
1763
  static ɵfac: i0.ɵɵFactoryDeclaration<AnswerCardModule, never>;
2779
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnswerCardModule, [typeof AnswerCardComponent], [typeof i3.CommonModule, typeof i3$1.CardModule, typeof PipesModule, typeof i3$1.CardModule, typeof i3$1.InputTextModule, typeof i3$1.IconModule, typeof AnswersInfoDialogModule, typeof i3$1.CardModule, typeof i3$1.ButtonModule], [typeof AnswerCardComponent]>;
1764
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnswerCardModule, [typeof AnswerCardComponent], [typeof i3.CommonModule, typeof i3$1.CardModule, typeof i3$1.CardModule, typeof i3$1.InputTextModule, typeof i3$1.IconModule, typeof AnswersInfoDialogModule, typeof i3$1.CardModule, typeof i3$1.ButtonModule, typeof i2.TranslationModule], [typeof AnswerCardComponent]>;
2780
1765
  static ɵinj: i0.ɵɵInjectorDeclaration<AnswerCardModule>;
2781
1766
  }
2782
1767
 
@@ -2803,8 +1788,8 @@ declare class ColorFilterComponent {
2803
1788
  private _sanitizer;
2804
1789
  readonly icons: typeof IconEnum;
2805
1790
  showClass(): boolean;
2806
- set color(value: Color$1);
2807
- get color(): Color$1;
1791
+ set color(value: Color);
1792
+ get color(): Color;
2808
1793
  active: boolean;
2809
1794
  get lightBackground(): boolean;
2810
1795
  backgroundStyle: SafeStyle;
@@ -2867,7 +1852,7 @@ declare class DirectivesModule {
2867
1852
 
2868
1853
  declare class AnswersSlideoutModule {
2869
1854
  static ɵfac: i0.ɵɵFactoryDeclaration<AnswersSlideoutModule, never>;
2870
- static ɵmod: i0.ɵɵNgModuleDeclaration<AnswersSlideoutModule, [typeof AnswersSlideoutComponent], [typeof SlideoutModule, typeof PipesModule, typeof i3.CommonModule, typeof i3$1.IconModule, typeof i3$1.PriceDisplayPipeModule, typeof AnswerCardModule, typeof ImageZoomModule, typeof ColorFilterModule, typeof TagFilterModule, typeof DirectivesModule], [typeof AnswersSlideoutComponent]>;
1855
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnswersSlideoutModule, [typeof AnswersSlideoutComponent], [typeof SlideoutModule, typeof i2.TranslationModule, typeof i3.CommonModule, typeof i3$1.IconModule, typeof i3$1.PriceDisplayPipeModule, typeof AnswerCardModule, typeof ImageZoomModule, typeof ColorFilterModule, typeof TagFilterModule, typeof DirectivesModule, typeof i2.UtilitiesPipesModule], [typeof AnswersSlideoutComponent]>;
2871
1856
  static ɵinj: i0.ɵɵInjectorDeclaration<AnswersSlideoutModule>;
2872
1857
  }
2873
1858
 
@@ -2881,7 +1866,6 @@ declare class SelectionsSummaryComponent implements OnDestroy {
2881
1866
  canClose: boolean;
2882
1867
  answersTemplate: TemplateRef<any>;
2883
1868
  answerToShowFromSelectionText: string;
2884
- showSaveAndLoadConfiguration: boolean;
2885
1869
  customDimensions: boolean;
2886
1870
  disableMouse: boolean;
2887
1871
  handledocumentMouseUp(event: any): void;
@@ -2902,7 +1886,7 @@ declare class SelectionsSummaryComponent implements OnDestroy {
2902
1886
  handleDelete(event: MouseEvent, sel: Selection): void;
2903
1887
  toggleElement(sel: Selection): void;
2904
1888
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectionsSummaryComponent, never>;
2905
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectionsSummaryComponent, "co-selections-summary", never, { "selections": { "alias": "selections"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "answersTemplate": { "alias": "answersTemplate"; "required": false; }; "answerToShowFromSelectionText": { "alias": "answerToShowFromSelectionText"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "closeClick": "closeClick"; "cancelAnswers": "cancelAnswers"; "selectSelection": "selectSelection"; "repeatSelection": "repeatSelection"; "deleteSelection": "deleteSelection"; }, never, never, false, never>;
1889
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectionsSummaryComponent, "co-selections-summary", never, { "selections": { "alias": "selections"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "answersTemplate": { "alias": "answersTemplate"; "required": false; }; "answerToShowFromSelectionText": { "alias": "answerToShowFromSelectionText"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "closeClick": "closeClick"; "cancelAnswers": "cancelAnswers"; "selectSelection": "selectSelection"; "repeatSelection": "repeatSelection"; "deleteSelection": "deleteSelection"; }, never, never, false, never>;
2906
1890
  }
2907
1891
 
2908
1892
  declare class CoSummaryLine implements AfterViewInit {
@@ -2954,7 +1938,7 @@ declare class CoSummaryLine implements AfterViewInit {
2954
1938
 
2955
1939
  declare class CoSummaryLineModule {
2956
1940
  static ɵfac: i0.ɵɵFactoryDeclaration<CoSummaryLineModule, never>;
2957
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoSummaryLineModule, [typeof CoSummaryLine], [typeof PipesModule, typeof i3.CommonModule, typeof i3$1.PriceDisplayPipeModule, typeof i3$1.ImageModule, typeof i3$1.IconModule], [typeof CoSummaryLine]>;
1941
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoSummaryLineModule, [typeof CoSummaryLine], [typeof i2.TranslationModule, typeof i3.CommonModule, typeof i3$1.PriceDisplayPipeModule, typeof i3$1.ImageModule, typeof i3$1.IconModule], [typeof CoSummaryLine]>;
2958
1942
  static ɵinj: i0.ɵɵInjectorDeclaration<CoSummaryLineModule>;
2959
1943
  }
2960
1944
 
@@ -2984,18 +1968,22 @@ declare class SelectionsSummaryLineComponent implements OnDestroy {
2984
1968
 
2985
1969
  declare class SelectionsSummaryLineModule {
2986
1970
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectionsSummaryLineModule, never>;
2987
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsSummaryLineModule, [typeof SelectionsSummaryLineComponent], [typeof PipesModule, typeof i3.CommonModule, typeof CoSummaryLineModule], [typeof SelectionsSummaryLineComponent]>;
1971
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsSummaryLineModule, [typeof SelectionsSummaryLineComponent], [typeof i3.CommonModule, typeof CoSummaryLineModule, typeof i2.TranslationModule], [typeof SelectionsSummaryLineComponent]>;
2988
1972
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectionsSummaryLineModule>;
2989
1973
  }
2990
1974
 
2991
- declare class ConfigurationPresetComponent {
1975
+ declare class ConfigurationPresetComponent implements OnInit {
2992
1976
  iconService: IconCacheService;
1977
+ settingService: ConfiguratorSettingsService;
2993
1978
  private _appEventService;
2994
1979
  readonly icons: typeof IconEnum;
2995
- isSaveLoadMenuOpen: boolean;
2996
1980
  showClass(): boolean;
2997
1981
  closeSaveLoadMenu(): void;
2998
- constructor(iconService: IconCacheService, _appEventService: AppEventService);
1982
+ isSaveLoadMenuOpen: boolean;
1983
+ showSavePresetButton: boolean;
1984
+ showLoadPresetButton: boolean;
1985
+ constructor(iconService: IconCacheService, settingService: ConfiguratorSettingsService, _appEventService: ConfiguratorEventService);
1986
+ ngOnInit(): void;
2999
1987
  toggleSaveLoadMenu(event: MouseEvent): void;
3000
1988
  handleSavePresetClicked(): void;
3001
1989
  handleLoadPresetClicked(): void;
@@ -3005,13 +1993,13 @@ declare class ConfigurationPresetComponent {
3005
1993
 
3006
1994
  declare class ConfigurationPresetModule {
3007
1995
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetModule, never>;
3008
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetModule, [typeof ConfigurationPresetComponent], [typeof PipesModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard], [typeof ConfigurationPresetComponent]>;
1996
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetModule, [typeof ConfigurationPresetComponent], [typeof i2.TranslationModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard, typeof i3.AsyncPipe, typeof ConfigurationPresetDialogModule], [typeof ConfigurationPresetComponent]>;
3009
1997
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationPresetModule>;
3010
1998
  }
3011
1999
 
3012
2000
  declare class SelectionsSummaryModule {
3013
2001
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectionsSummaryModule, never>;
3014
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsSummaryModule, [typeof SelectionsSummaryComponent], [typeof CoSummaryLineModule, typeof i3.CommonModule, typeof PipesModule, typeof i3$1.PriceDisplayPipeModule, typeof SelectionsSummaryLineModule, typeof i3$1.IconModule, typeof ConfigurationPresetModule], [typeof SelectionsSummaryComponent]>;
2002
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsSummaryModule, [typeof SelectionsSummaryComponent], [typeof CoSummaryLineModule, typeof i3.CommonModule, typeof i2.TranslationModule, typeof i3$1.PriceDisplayPipeModule, typeof SelectionsSummaryLineModule, typeof i3$1.IconModule, typeof ConfigurationPresetModule], [typeof SelectionsSummaryComponent]>;
3015
2003
  static ɵinj: i0.ɵɵInjectorDeclaration<SelectionsSummaryModule>;
3016
2004
  }
3017
2005
 
@@ -3029,25 +2017,23 @@ declare class ProductConfiguratorService {
3029
2017
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductConfiguratorService>;
3030
2018
  }
3031
2019
 
3032
- declare class ProductConfiguratorComponent implements OnInit, OnDestroy {
2020
+ declare class ProductConfiguratorComponent implements OnDestroy {
3033
2021
  configuratorConnectorService: ConfiguratorConnectorService;
3034
2022
  buildFurnitureService: SwitchBuildFurnitureService;
3035
- settingsService: SettingsService;
2023
+ settingsService: ConfiguratorSettingsService;
3036
2024
  productConfiguratorService: ProductConfiguratorService;
3037
2025
  iconService: IconCacheService;
3038
2026
  private _sanitizer;
3039
2027
  private _configuringService;
2028
+ private _eventService;
3040
2029
  showClass(): boolean;
3041
2030
  readonly icons: typeof IconEnum;
3042
- set show(value: boolean);
3043
- get show(): boolean;
3044
2031
  showHeaderInformation: boolean;
3045
2032
  set showSelections(value: boolean);
3046
2033
  get showSelections(): boolean;
3047
2034
  showLabel: boolean;
3048
2035
  canClose: boolean;
3049
2036
  customDimensions: boolean;
3050
- showSaveAndLoadConfiguration: boolean;
3051
2037
  readonly showChange: EventEmitter<boolean>;
3052
2038
  readonly answerChosen: EventEmitter<Answer>;
3053
2039
  valutaSymbol: string;
@@ -3058,18 +2044,19 @@ declare class ProductConfiguratorComponent implements OnInit, OnDestroy {
3058
2044
  private _show;
3059
2045
  private _selectionSelected;
3060
2046
  private _subs;
3061
- constructor(configuratorConnectorService: ConfiguratorConnectorService, buildFurnitureService: SwitchBuildFurnitureService, settingsService: SettingsService, productConfiguratorService: ProductConfiguratorService, iconService: IconCacheService, _sanitizer: DomSanitizer, _configuringService: ConfiguringService);
3062
- ngOnInit(): void;
2047
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, buildFurnitureService: SwitchBuildFurnitureService, settingsService: ConfiguratorSettingsService, productConfiguratorService: ProductConfiguratorService, iconService: IconCacheService, _sanitizer: DomSanitizer, _configuringService: ConfiguringService, _eventService: ConfiguratorEventService);
3063
2048
  ngOnDestroy(): void;
3064
2049
  onSelectionsSummarySelectSelection(chosenOption: SelectorStructure): Promise<void>;
3065
2050
  handleCloseClick(): void;
2051
+ private _handleSelectionWithAnswersChanged;
2052
+ private _handleArticleReceived;
3066
2053
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorComponent, never>;
3067
- static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorComponent, "co-product-configurator", never, { "show": { "alias": "show"; "required": false; }; "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; "showSelections": { "alias": "showSelections"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; "showSaveAndLoadConfiguration": { "alias": "showSaveAndLoadConfiguration"; "required": false; }; }, { "showChange": "showChange"; "answerChosen": "answerChosen"; }, never, never, false, never>;
2054
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorComponent, "co-product-configurator", never, { "showHeaderInformation": { "alias": "showHeaderInformation"; "required": false; }; "showSelections": { "alias": "showSelections"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "canClose": { "alias": "canClose"; "required": false; }; "customDimensions": { "alias": "customDimensions"; "required": false; }; }, { "showChange": "showChange"; "answerChosen": "answerChosen"; }, never, never, false, never>;
3068
2055
  }
3069
2056
 
3070
2057
  declare class ProductConfiguratorSelectorComponent implements OnInit, OnChanges {
3071
2058
  configuratorConnectorService: ConfiguratorConnectorService;
3072
- settingsService: SettingsService;
2059
+ settingsService: ConfiguratorSettingsService;
3073
2060
  iconService: IconCacheService;
3074
2061
  get hostClasses(): string;
3075
2062
  readonly icons: typeof IconEnum;
@@ -3094,7 +2081,7 @@ declare class ProductConfiguratorSelectorComponent implements OnInit, OnChanges
3094
2081
  get suppressSubShowMoreForChildren(): boolean;
3095
2082
  get groupedRemainingTilesCount(): number;
3096
2083
  get useGroupedVisibilityForChildren(): boolean;
3097
- constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: SettingsService, iconService: IconCacheService);
2084
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: ConfiguratorSettingsService, iconService: IconCacheService);
3098
2085
  ngOnInit(): void;
3099
2086
  ngOnChanges(changes: SimpleChanges): void;
3100
2087
  showAndScroll(): void;
@@ -3117,7 +2104,7 @@ declare class ProductConfiguratorSelectorComponent implements OnInit, OnChanges
3117
2104
 
3118
2105
  declare class ProductConfiguratorSelectorOptionComponent implements OnInit, OnChanges {
3119
2106
  configuratorConnectorService: ConfiguratorConnectorService;
3120
- settingsService: SettingsService;
2107
+ settingsService: ConfiguratorSettingsService;
3121
2108
  productConfiguratorService: ProductConfiguratorService;
3122
2109
  showClass(): boolean;
3123
2110
  selection: SelectorStructure;
@@ -3134,7 +2121,7 @@ declare class ProductConfiguratorSelectorOptionComponent implements OnInit, OnCh
3134
2121
  remainingTilesCount: number;
3135
2122
  readonly smallTileOptions: ConfigurationDisplayOption[];
3136
2123
  readonly largeTileOptions: ConfigurationDisplayOption[];
3137
- constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: SettingsService, productConfiguratorService: ProductConfiguratorService);
2124
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, settingsService: ConfiguratorSettingsService, productConfiguratorService: ProductConfiguratorService);
3138
2125
  ngOnInit(): void;
3139
2126
  ngOnChanges(changes: SimpleChanges): void;
3140
2127
  selectionClicked(answer: SelectorStructure): void;
@@ -3149,14 +2136,14 @@ declare class ProductConfiguratorSelectorOptionComponent implements OnInit, OnCh
3149
2136
  declare class ProductConfiguratorSelectorOptionTileComponent {
3150
2137
  configuratorConnectorService: ConfiguratorConnectorService;
3151
2138
  iconService: IconCacheService;
3152
- settingsService: SettingsService;
2139
+ settingsService: ConfiguratorSettingsService;
3153
2140
  showClass(): boolean;
3154
2141
  readonly icons: typeof IconEnum;
3155
2142
  option: SelectorStructure;
3156
2143
  tileClass: string;
3157
2144
  noLabel: boolean;
3158
2145
  selectionClicked: EventEmitter<void>;
3159
- constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: SettingsService);
2146
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: ConfiguratorSettingsService);
3160
2147
  changeSelection(): void;
3161
2148
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionTileComponent, never>;
3162
2149
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorSelectorOptionTileComponent, "co-product-configurator-selector-option-tile", never, { "option": { "alias": "option"; "required": false; }; "tileClass": { "alias": "tileClass"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; }, { "selectionClicked": "selectionClicked"; }, never, never, false, never>;
@@ -3164,19 +2151,19 @@ declare class ProductConfiguratorSelectorOptionTileComponent {
3164
2151
 
3165
2152
  declare class ProductConfiguratorSelectorOptionTileModule {
3166
2153
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionTileModule, never>;
3167
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionTileModule, [typeof ProductConfiguratorSelectorOptionTileComponent], [typeof i3$1.IconModule, typeof i3.CommonModule, typeof PipesModule], [typeof ProductConfiguratorSelectorOptionTileComponent]>;
2154
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionTileModule, [typeof ProductConfiguratorSelectorOptionTileComponent], [typeof i3$1.IconModule, typeof i3.CommonModule, typeof i2.TranslationModule], [typeof ProductConfiguratorSelectorOptionTileComponent]>;
3168
2155
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionTileModule>;
3169
2156
  }
3170
2157
 
3171
2158
  declare class ProductConfiguratorOptionCheckboxComponent {
3172
2159
  configuratorConnectorService: ConfiguratorConnectorService;
3173
2160
  iconService: IconCacheService;
3174
- settingsService: SettingsService;
2161
+ settingsService: ConfiguratorSettingsService;
3175
2162
  showClass(): boolean;
3176
2163
  readonly icons: typeof IconEnum;
3177
2164
  option: SelectorStructure;
3178
2165
  selectionClicked: EventEmitter<void>;
3179
- constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: SettingsService);
2166
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: ConfiguratorSettingsService);
3180
2167
  changeSelection(): void;
3181
2168
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorOptionCheckboxComponent, never>;
3182
2169
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorOptionCheckboxComponent, "co-product-configurator-option-checkbox", never, { "option": { "alias": "option"; "required": false; }; }, { "selectionClicked": "selectionClicked"; }, never, never, false, never>;
@@ -3184,19 +2171,19 @@ declare class ProductConfiguratorOptionCheckboxComponent {
3184
2171
 
3185
2172
  declare class ProductConfiguratorSelectorOptionCheckboxModule {
3186
2173
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionCheckboxModule, never>;
3187
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionCheckboxModule, [typeof ProductConfiguratorOptionCheckboxComponent], [typeof PipesModule, typeof i3.CommonModule, typeof i3$1.IconModule], [typeof ProductConfiguratorOptionCheckboxComponent]>;
2174
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionCheckboxModule, [typeof ProductConfiguratorOptionCheckboxComponent], [typeof i2.TranslationModule, typeof i3.CommonModule, typeof i3$1.IconModule], [typeof ProductConfiguratorOptionCheckboxComponent]>;
3188
2175
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionCheckboxModule>;
3189
2176
  }
3190
2177
 
3191
2178
  declare class ProductConfiguratorSelectorOptionButtonComponent {
3192
2179
  configuratorConnectorService: ConfiguratorConnectorService;
3193
2180
  iconService: IconCacheService;
3194
- settingsService: SettingsService;
2181
+ settingsService: ConfiguratorSettingsService;
3195
2182
  showClass(): boolean;
3196
2183
  readonly icons: typeof IconEnum;
3197
2184
  option: SelectorStructure;
3198
2185
  selectionClicked: EventEmitter<void>;
3199
- constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: SettingsService);
2186
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: ConfiguratorSettingsService);
3200
2187
  changeSelection(): void;
3201
2188
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionButtonComponent, never>;
3202
2189
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorSelectorOptionButtonComponent, "co-product-configurator-selector-option-button", never, { "option": { "alias": "option"; "required": false; }; }, { "selectionClicked": "selectionClicked"; }, never, never, false, never>;
@@ -3204,296 +2191,685 @@ declare class ProductConfiguratorSelectorOptionButtonComponent {
3204
2191
 
3205
2192
  declare class ProductConfiguratorSelectorOptionButtonModule {
3206
2193
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionButtonModule, never>;
3207
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionButtonModule, [typeof ProductConfiguratorSelectorOptionButtonComponent], [typeof PipesModule, typeof i3.CommonModule, typeof i3$1.IconModule], [typeof ProductConfiguratorSelectorOptionButtonComponent]>;
2194
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionButtonModule, [typeof ProductConfiguratorSelectorOptionButtonComponent], [typeof i3.CommonModule, typeof i3$1.IconModule, typeof i2.TranslationModule], [typeof ProductConfiguratorSelectorOptionButtonComponent]>;
3208
2195
  static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionButtonModule>;
3209
2196
  }
3210
2197
 
3211
2198
  declare class ProductConfiguratorSelectorOptionDropDownComponent {
3212
2199
  configuratorConnectorService: ConfiguratorConnectorService;
3213
2200
  iconService: IconCacheService;
3214
- settingsService: SettingsService;
2201
+ settingsService: ConfiguratorSettingsService;
3215
2202
  showClass(): boolean;
3216
2203
  readonly icons: typeof IconEnum;
3217
2204
  options: SelectorStructure[];
3218
2205
  tileClass: string;
3219
2206
  selectionClicked: EventEmitter<SelectorStructure>;
3220
- constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: SettingsService);
2207
+ constructor(configuratorConnectorService: ConfiguratorConnectorService, iconService: IconCacheService, settingsService: ConfiguratorSettingsService);
3221
2208
  onChange(event: Event): void;
3222
2209
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionDropDownComponent, never>;
3223
2210
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductConfiguratorSelectorOptionDropDownComponent, "co-product-configurator-selector-option-dropdown", never, { "options": { "alias": "options"; "required": false; }; "tileClass": { "alias": "tileClass"; "required": false; }; }, { "selectionClicked": "selectionClicked"; }, never, never, false, never>;
3224
2211
  }
3225
2212
 
3226
- declare class ProductConfiguratorSelectorOptionDropdownModule {
3227
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionDropdownModule, never>;
3228
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionDropdownModule, [typeof ProductConfiguratorSelectorOptionDropDownComponent], [typeof PipesModule, typeof i3.CommonModule, typeof i3$1.IconModule], [typeof ProductConfiguratorSelectorOptionDropDownComponent]>;
3229
- static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionDropdownModule>;
2213
+ declare class ProductConfiguratorSelectorOptionDropdownModule {
2214
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionDropdownModule, never>;
2215
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionDropdownModule, [typeof ProductConfiguratorSelectorOptionDropDownComponent], [typeof i2.TranslationModule, typeof i3.CommonModule, typeof i3$1.IconModule], [typeof ProductConfiguratorSelectorOptionDropDownComponent]>;
2216
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionDropdownModule>;
2217
+ }
2218
+
2219
+ declare class ProductConfiguratorSelectorOptionModule {
2220
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionModule, never>;
2221
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionModule, [typeof ProductConfiguratorSelectorOptionComponent], [typeof i2.TranslationModule, typeof i3.CommonModule, typeof ProductConfiguratorSelectorOptionTileModule, typeof ProductConfiguratorSelectorOptionCheckboxModule, typeof ProductConfiguratorSelectorOptionButtonModule, typeof ProductConfiguratorSelectorOptionDropdownModule], [typeof ProductConfiguratorSelectorOptionComponent]>;
2222
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionModule>;
2223
+ }
2224
+
2225
+ declare class ProductConfiguratorSelectorModule {
2226
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorModule, never>;
2227
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorModule, [typeof ProductConfiguratorSelectorComponent], [typeof i2.TranslationModule, typeof i3.CommonModule, typeof i3$1.IconModule, typeof ProductConfiguratorSelectorOptionModule], [typeof ProductConfiguratorSelectorComponent]>;
2228
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorModule>;
2229
+ }
2230
+
2231
+ declare class ProductConfiguratorModule {
2232
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorModule, never>;
2233
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorModule, [typeof ProductConfiguratorComponent], [typeof i3.CommonModule, typeof i3$2.MatIconModule, typeof i4$1.MatButtonModule, typeof i3$1.CardModule, typeof SlideoutModule, typeof i3$1.PriceDisplayPipeModule, typeof i3$1.ButtonModule, typeof i3$1.InputTextModule, typeof i7.FormsModule, typeof i2.TranslationModule, typeof i3$1.IconModule, typeof i3$1.TooltipDirectiveModule, typeof ProductConfiguratorSelectorModule, typeof ConfigurationPresetModule], [typeof ProductConfiguratorComponent]>;
2234
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorModule>;
2235
+ }
2236
+
2237
+ declare class ConfiguratorModule {
2238
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorModule, never>;
2239
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorModule, [typeof ConfiguratorComponent], [typeof i3.CommonModule, typeof ProgressBarModule, typeof ConfiguratorLoaderModule, typeof ConfiguratorDialogModule, typeof ConfigurationPresetDialogModule, typeof LiteSelectorModule, typeof ProductConfiguratorModule], [typeof ConfiguratorComponent]>;
2240
+ static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorModule>;
2241
+ }
2242
+
2243
+ declare class ConfiguratorSceneLoaderComponent {
2244
+ showClass: boolean;
2245
+ loaderProgress: number;
2246
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneLoaderComponent, never>;
2247
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorSceneLoaderComponent, "co-configurator-scene-loader", never, { "loaderProgress": { "alias": "loaderProgress"; "required": false; }; }, {}, never, never, false, never>;
2248
+ }
2249
+
2250
+ declare class ConfiguratorSceneLoaderModule {
2251
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneLoaderModule, never>;
2252
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneLoaderModule, [typeof ConfiguratorSceneLoaderComponent], [typeof i3.CommonModule], [typeof ConfiguratorSceneLoaderComponent]>;
2253
+ static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorSceneLoaderModule>;
2254
+ }
2255
+
2256
+ declare class CustomButton {
2257
+ caption: string;
2258
+ handler: Function;
2259
+ data: any;
2260
+ xPos: number;
2261
+ yPos: number;
2262
+ size: number;
2263
+ opacity: number;
2264
+ constructor(caption?: string, handler?: Function, data?: any);
2265
+ }
2266
+
2267
+ declare class ElementButtonsComponent implements OnDestroy {
2268
+ iconCache: IconCacheService;
2269
+ private _elementRef;
2270
+ private _settingsService;
2271
+ showClass(): boolean;
2272
+ readonly icon: typeof IconEnum;
2273
+ disableMouse: boolean;
2274
+ handleDocumentMouseUp(event: any): void;
2275
+ handleDocumentMouseDown(event: any): void;
2276
+ addButtons: CustomButton[];
2277
+ customizeButtons: CustomButton[];
2278
+ resizeButtons: CustomButton[];
2279
+ elementPointer: ElementRef;
2280
+ set elementPosition(value: Vector2);
2281
+ customizeButtonClicked: EventEmitter<void>;
2282
+ get elementPosition(): Vector2;
2283
+ showCaptionAddButton: boolean;
2284
+ private _elementPosition;
2285
+ private _subs;
2286
+ constructor(iconCache: IconCacheService, _elementRef: ElementRef, _settingsService: ConfiguratorSettingsService);
2287
+ ngOnDestroy(): void;
2288
+ private _repositionLine;
2289
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementButtonsComponent, never>;
2290
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementButtonsComponent, "co-element-buttons", never, { "addButtons": { "alias": "addButtons"; "required": false; }; "customizeButtons": { "alias": "customizeButtons"; "required": false; }; "resizeButtons": { "alias": "resizeButtons"; "required": false; }; "elementPointer": { "alias": "elementPointer"; "required": false; }; "elementPosition": { "alias": "elementPosition"; "required": false; }; }, { "customizeButtonClicked": "customizeButtonClicked"; }, never, never, false, never>;
2291
+ }
2292
+
2293
+ declare class ElementButtonsModule {
2294
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementButtonsModule, never>;
2295
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementButtonsModule, [typeof ElementButtonsComponent], [typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ElementButtonsComponent]>;
2296
+ static ɵinj: i0.ɵɵInjectorDeclaration<ElementButtonsModule>;
2297
+ }
2298
+
2299
+ declare class ElementToolbarComponent implements OnDestroy {
2300
+ settingsService: ConfiguratorSettingsService;
2301
+ iconCache: IconCacheService;
2302
+ showClass(): boolean;
2303
+ readonly icon: typeof IconEnum;
2304
+ elementPointer: ElementRef;
2305
+ hostClass: boolean;
2306
+ editMenu: CustomButton[];
2307
+ showPointer: boolean;
2308
+ showSwap: boolean;
2309
+ readonly deleteClicked: EventEmitter<any>;
2310
+ readonly swapClicked: EventEmitter<any>;
2311
+ readonly animationClicked: EventEmitter<any>;
2312
+ showEditMenu: boolean;
2313
+ get instantMenu(): boolean;
2314
+ constructor(settingsService: ConfiguratorSettingsService, iconCache: IconCacheService);
2315
+ ngOnDestroy(): void;
2316
+ handleEditClick(): void;
2317
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementToolbarComponent, never>;
2318
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElementToolbarComponent, "co-element-toolbar", never, { "editMenu": { "alias": "editMenu"; "required": false; }; "showPointer": { "alias": "showPointer"; "required": false; }; "showSwap": { "alias": "showSwap"; "required": false; }; }, { "deleteClicked": "deleteClicked"; "swapClicked": "swapClicked"; "animationClicked": "animationClicked"; }, never, never, false, never>;
3230
2319
  }
3231
2320
 
3232
- declare class ProductConfiguratorSelectorOptionModule {
3233
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorOptionModule, never>;
3234
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorOptionModule, [typeof ProductConfiguratorSelectorOptionComponent], [typeof PipesModule, typeof i3.CommonModule, typeof ProductConfiguratorSelectorOptionTileModule, typeof ProductConfiguratorSelectorOptionCheckboxModule, typeof ProductConfiguratorSelectorOptionButtonModule, typeof ProductConfiguratorSelectorOptionDropdownModule], [typeof ProductConfiguratorSelectorOptionComponent]>;
3235
- static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorOptionModule>;
2321
+ declare class ElementToolbarModule {
2322
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementToolbarModule, never>;
2323
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementToolbarModule, [typeof ElementToolbarComponent], [typeof i2.TranslationModule, typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ElementToolbarComponent]>;
2324
+ static ɵinj: i0.ɵɵInjectorDeclaration<ElementToolbarModule>;
3236
2325
  }
3237
2326
 
3238
- declare class ProductConfiguratorSelectorModule {
3239
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorSelectorModule, never>;
3240
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorSelectorModule, [typeof ProductConfiguratorSelectorComponent], [typeof PipesModule, typeof i3.CommonModule, typeof i3$1.IconModule, typeof ProductConfiguratorSelectorOptionModule], [typeof ProductConfiguratorSelectorComponent]>;
3241
- static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorSelectorModule>;
2327
+ declare class SceneOptionButtonInterface {
2328
+ id: number;
2329
+ elementId: string;
2330
+ label?: string;
2331
+ class?: string;
2332
+ tooltip?: string;
2333
+ image?: string | SafeHtml;
2334
+ order?: number;
2335
+ toggle?: boolean;
2336
+ tooltipActive?: string;
2337
+ active?: boolean;
2338
+ object?: any;
2339
+ click?: Function;
2340
+ show?: boolean;
2341
+ icon?: IconEnum;
2342
+ children?: SceneOptionButtonInterface[];
3242
2343
  }
3243
2344
 
3244
- declare class ProductConfiguratorModule {
3245
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductConfiguratorModule, never>;
3246
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProductConfiguratorModule, [typeof ProductConfiguratorComponent], [typeof i3.CommonModule, typeof i3$2.MatIconModule, typeof i4$1.MatButtonModule, typeof i3$1.CardModule, typeof SlideoutModule, typeof i3$1.PriceDisplayPipeModule, typeof i3$1.ButtonModule, typeof i3$1.InputTextModule, typeof i7.FormsModule, typeof PipesModule, typeof i3$1.IconModule, typeof i3$1.TooltipDirectiveModule, typeof ProductConfiguratorSelectorModule, typeof ConfigurationPresetModule], [typeof ProductConfiguratorComponent]>;
3247
- static ɵinj: i0.ɵɵInjectorDeclaration<ProductConfiguratorModule>;
2345
+ declare class SceneOptionsService {
2346
+ sceneOptionButtonAdded: BehaviorSubject<SceneOptionButtonInterface>;
2347
+ sceneOptionButtonUpdated: Subject<SceneOptionButtonInterface>;
2348
+ addSceneOptionButton(button: SceneOptionButtonInterface): void;
2349
+ updateSceneOptionButton(button: SceneOptionButtonInterface): void;
2350
+ static ɵfac: i0.ɵɵFactoryDeclaration<SceneOptionsService, never>;
2351
+ static ɵprov: i0.ɵɵInjectableDeclaration<SceneOptionsService>;
3248
2352
  }
3249
2353
 
3250
- declare class ConfigurationPresetDialogComponent implements OnDestroy {
2354
+ declare class SceneOptionsComponent implements OnDestroy {
3251
2355
  iconService: IconCacheService;
3252
- private _configuringService;
3253
- private _configuratorConnectorService;
3254
- private _dictionaryService;
3255
- private _appEventService;
3256
- readonly icons: typeof IconEnum;
3257
- readonly presetDialogMode: typeof PresetDialogMode;
2356
+ private _sceneOptionsService;
3258
2357
  showClass(): boolean;
3259
- showDialog: boolean;
3260
- instanceIdInput: string;
3261
- dialogMode: PresetDialogMode;
3262
- showValidationErrors: boolean;
3263
- validationError: string;
2358
+ readonly icons: typeof IconEnum;
2359
+ buttons: SceneOptionButtonInterface[];
3264
2360
  private _subs;
3265
- constructor(iconService: IconCacheService, _configuringService: ConfiguringService, _configuratorConnectorService: ConfiguratorConnectorService, _dictionaryService: DictionaryService, _appEventService: AppEventService);
2361
+ private _childrenShowing;
2362
+ constructor(iconService: IconCacheService, _sceneOptionsService: SceneOptionsService);
3266
2363
  ngOnDestroy(): void;
3267
- handleOpenDialog(mode: PresetDialogMode): void;
3268
- handleCloseClick(): void;
3269
- handleCopySuccess(): void;
3270
- loadConfiguration(): void;
3271
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetDialogComponent, never>;
3272
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationPresetDialogComponent, "co-configuration-preset-dialog", never, {}, {}, never, never, false, never>;
2364
+ handleClick(event: MouseEvent, button: SceneOptionButtonInterface): void;
2365
+ handleShowChildren(event: MouseEvent, button: SceneOptionButtonInterface): void;
2366
+ getIcon(buttonIcon: IconEnum): SafeHtml;
2367
+ private _addButton;
2368
+ static ɵfac: i0.ɵɵFactoryDeclaration<SceneOptionsComponent, never>;
2369
+ static ɵcmp: i0.ɵɵComponentDeclaration<SceneOptionsComponent, "co-scene-options", never, {}, {}, never, never, false, never>;
3273
2370
  }
3274
2371
 
3275
- declare class ConfigurationPresetDialogModule {
3276
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationPresetDialogModule, never>;
3277
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationPresetDialogModule, [typeof ConfigurationPresetDialogComponent], [typeof PipesModule, typeof i3$1.ButtonModule, typeof i3$1.IconModule, typeof i3$1.InputTextModule, typeof i4.CdkCopyToClipboard], [typeof ConfigurationPresetDialogComponent]>;
3278
- static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationPresetDialogModule>;
2372
+ declare class SelectionsModule {
2373
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectionsModule, never>;
2374
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsModule, [typeof SceneOptionsComponent], [typeof i3.CommonModule, typeof i3$1.IconModule, typeof i2.TranslationModule], [typeof SceneOptionsComponent]>;
2375
+ static ɵinj: i0.ɵɵInjectorDeclaration<SelectionsModule>;
2376
+ }
2377
+
2378
+ declare enum ConfigurationKey {
2379
+ DimensioningUnit = "dimUnit",
2380
+ DimensioningSquareUnit = "dimSqUnit",
2381
+ AngleUnit = "angleUnit",
2382
+ CmStep = "cmStep",
2383
+ MStep = "mStep",
2384
+ MmStep = "mmStep",
2385
+ AngleLabelDistanceInCm = "angleLabelDistanceCm",
2386
+ WallHeight = "wallHeight",
2387
+ WallThickness = "wallThickness",
2388
+ MaxWallHeight = "maxWallHeight",
2389
+ MaxWallThickness = "maxWallThickness",
2390
+ MaxWallLength = "maxWallLength",
2391
+ MinWallLength = "minWallLength",
2392
+ WallSnapping = "wallSnapping",
2393
+ CornerSnapping = "cornerSnapping",
2394
+ ShowObjectDistances = "showObjectDistances",
2395
+ ShowObjectMeasurements = "showObjectMeasurements",
2396
+ ShowDetailedWallMeasurements = "showDetailedWallMeasurements",
2397
+ ShowWallItemMeasurements = "showWallItemMeasurements",
2398
+ ShowWallMeasurements = "showWallMeasurements",
2399
+ ShowCornerAngles = "showCornerAngles",
2400
+ RotationSnappingEnabled = "RotationSnappingEnabled",
2401
+ DisplayCustomShapeNames = "DisplayCustomShapeNames",
2402
+ ShowWalkThroughCameraControls = "ShowWalkThroughCameraControls",
2403
+ ShowInteriorLights = "ShowInteriorLights",
2404
+ InteriorLightIntensity = "InteriorLightIntensity",
2405
+ ShowLightingControls = "ShowLightingControls",
2406
+ ShowLightplansDialog = "ShowLightplansDialog",
2407
+ WalkThroughCameraFoV = "WalkThroughCameraFoV",
2408
+ WalkThroughCameraAspectRatio = "WalkThroughCameraAspectRatio",
2409
+ WalkThroughCameraFocus = "WalkThroughCameraFocus",
2410
+ ShowPostProcessingSettings = "showPostProcessingSettings",
2411
+ ShowWalls = "ShowWalls",
2412
+ ShowCeiling = "ShowCeiling",
2413
+ IsLimited = "IsLimited",
2414
+ EnableTouch = "EnableTouch",
2415
+ CameraFOV = "CameraFOV"
3279
2416
  }
3280
2417
 
3281
- declare class ThreedselectorModule {
3282
- static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorModule, never>;
3283
- static ɵmod: i0.ɵɵNgModuleDeclaration<ThreedselectorModule, [typeof ThreedselectorComponent], [typeof LiteSelectorModule, typeof ProductConfiguratorModule, typeof i3.CommonModule, typeof ConfigurationPresetDialogModule], [typeof ThreedselectorComponent]>;
3284
- static ɵinj: i0.ɵɵInjectorDeclaration<ThreedselectorModule>;
2418
+ interface ConfigurationData {
2419
+ [ConfigurationKey.DimensioningUnit]?: string;
2420
+ [ConfigurationKey.DimensioningSquareUnit]?: string;
2421
+ [ConfigurationKey.AngleUnit]?: string;
2422
+ [ConfigurationKey.CmStep]?: number;
2423
+ [ConfigurationKey.MStep]?: number;
2424
+ [ConfigurationKey.MmStep]?: number;
2425
+ [ConfigurationKey.AngleLabelDistanceInCm]?: number;
2426
+ [ConfigurationKey.WallHeight]?: number;
2427
+ [ConfigurationKey.WallThickness]?: number;
2428
+ [ConfigurationKey.MaxWallHeight]?: number;
2429
+ [ConfigurationKey.MaxWallThickness]?: number;
2430
+ [ConfigurationKey.MaxWallLength]?: number;
2431
+ [ConfigurationKey.MinWallLength]?: number;
2432
+ [ConfigurationKey.WallSnapping]?: boolean;
2433
+ [ConfigurationKey.CornerSnapping]?: boolean;
2434
+ [ConfigurationKey.ShowObjectDistances]?: boolean;
2435
+ [ConfigurationKey.ShowObjectMeasurements]?: boolean;
2436
+ [ConfigurationKey.ShowDetailedWallMeasurements]?: boolean;
2437
+ [ConfigurationKey.ShowWallItemMeasurements]?: boolean;
2438
+ [ConfigurationKey.ShowWallMeasurements]?: boolean;
2439
+ [ConfigurationKey.ShowCornerAngles]?: boolean;
2440
+ [ConfigurationKey.RotationSnappingEnabled]?: boolean;
2441
+ [ConfigurationKey.DisplayCustomShapeNames]?: boolean;
2442
+ [ConfigurationKey.ShowInteriorLights]?: boolean;
2443
+ [ConfigurationKey.InteriorLightIntensity]?: number;
2444
+ [ConfigurationKey.ShowWalkThroughCameraControls]?: boolean;
2445
+ [ConfigurationKey.ShowLightingControls]?: boolean;
2446
+ [ConfigurationKey.ShowLightplansDialog]?: boolean;
2447
+ [ConfigurationKey.WalkThroughCameraFoV]?: number;
2448
+ [ConfigurationKey.WalkThroughCameraAspectRatio]?: number;
2449
+ [ConfigurationKey.WalkThroughCameraFocus]?: number;
2450
+ [ConfigurationKey.ShowPostProcessingSettings]?: boolean;
2451
+ [ConfigurationKey.ShowWalls]?: boolean;
2452
+ [ConfigurationKey.ShowCeiling]?: boolean;
2453
+ [ConfigurationKey.IsLimited]?: boolean;
2454
+ [ConfigurationKey.EnableTouch]?: boolean;
2455
+ [ConfigurationKey.CameraFOV]?: number;
3285
2456
  }
3286
2457
 
3287
- declare class ConfiguratorModule {
3288
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorModule, never>;
3289
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorModule, [typeof ConfiguratorComponent], [typeof i3.CommonModule, typeof ProgressBarModule, typeof ConfiguratorLoaderModule, typeof ConfiguratorDialogModule, typeof ThreedselectorModule], [typeof ConfiguratorComponent]>;
3290
- static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorModule>;
2458
+ declare class ConfigurationService {
2459
+ private _data;
2460
+ onChange: BehaviorSubject<{}>;
2461
+ setValue<T extends ConfigurationKey>(key: T, value: ConfigurationData[T]): void;
2462
+ getValue<T extends ConfigurationKey>(key: T): ConfigurationData[T];
2463
+ get(): ConfigurationData;
2464
+ set(data: ConfigurationData): void;
2465
+ getDistanceStep(): number;
2466
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationService, never>;
2467
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationService>;
3291
2468
  }
3292
2469
 
3293
- declare class ConfiguratorSceneLoaderComponent {
3294
- showClass(): boolean;
3295
- loaderProgress: number;
3296
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneLoaderComponent, never>;
3297
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorSceneLoaderComponent, "co-configurator-scene-loader", never, { "loaderProgress": { "alias": "loaderProgress"; "required": false; }; }, {}, never, never, false, never>;
2470
+ declare class ConfiguratorRotationService implements OnDestroy {
2471
+ private _configService;
2472
+ private _sceneService;
2473
+ private _settingsService;
2474
+ objectRotated: Subject<void>;
2475
+ sliderValue: number;
2476
+ private _subs;
2477
+ private _mouseXOnMouseDown;
2478
+ private _targetRotationOnMouseDownX;
2479
+ private _targetRotationX;
2480
+ private _mouseX;
2481
+ private _itemToRotate;
2482
+ private _renderInterval;
2483
+ private _renderTimeout;
2484
+ private _timeToRender;
2485
+ private _moveFactor;
2486
+ constructor(_configService: ConfigurationService, _sceneService: ConfiguratorSceneService, _settingsService: ConfiguratorSettingsService);
2487
+ ngOnDestroy(): void;
2488
+ rotate(item: Object3D, from: Vector3, to: Vector3, ccw?: boolean): Vector3;
2489
+ enableRotationFor(item: Object3D): void;
2490
+ private _handleMouseDown;
2491
+ private _handleMouseMove;
2492
+ private _handleSliderChange;
2493
+ private _handleMouseUp;
2494
+ private _handleMouseOut;
2495
+ private _handleTouchStart;
2496
+ private _handleTouchMove;
2497
+ private _handleTouchEnd;
2498
+ private _handleTouchCancel;
2499
+ private _removeMouseEvents;
2500
+ private _removeTouchEvents;
2501
+ private _renderForAmountOfTime;
2502
+ private _doRender;
2503
+ private _removeListeners;
2504
+ private _addListeners;
2505
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorRotationService, never>;
2506
+ static ɵprov: i0.ɵɵInjectableDeclaration<ConfiguratorRotationService>;
3298
2507
  }
3299
2508
 
3300
- declare class ConfiguratorSceneLoaderModule {
3301
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneLoaderModule, never>;
3302
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneLoaderModule, [typeof ConfiguratorSceneLoaderComponent], [typeof i3.CommonModule], [typeof ConfiguratorSceneLoaderComponent]>;
3303
- static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorSceneLoaderModule>;
2509
+ declare enum TextureType {
2510
+ Basic = 0,
2511
+ Image = 1,
2512
+ CustomPattern = 2,
2513
+ PBR = 3,
2514
+ SHADOW = 4
3304
2515
  }
3305
2516
 
3306
- declare class CustomButton {
3307
- caption: string;
3308
- handler: Function;
3309
- data: any;
3310
- xPos: number;
3311
- yPos: number;
3312
- size: number;
3313
- opacity: number;
3314
- constructor(caption?: string, handler?: Function, data?: any);
2517
+ interface TextureInterface {
2518
+ name?: string;
2519
+ type?: string | TextureType;
2520
+ url?: string;
2521
+ materializeUrl?: string;
2522
+ bumpMap?: string;
2523
+ bumpScale?: number;
2524
+ roughness?: number;
2525
+ roughnessMap?: string;
2526
+ normalMap?: string;
2527
+ alphaMap?: string;
2528
+ repeatX?: number;
2529
+ repeatY?: number;
2530
+ metalness?: number;
2531
+ metalnessMap?: string;
2532
+ aoMapIntensity?: number;
2533
+ aoMap?: string;
2534
+ data?: any;
2535
+ color?: string;
2536
+ emissive?: string;
2537
+ show?: boolean;
2538
+ default?: boolean;
2539
+ surfaces?: string[];
2540
+ offset?: THREE.Vector2;
2541
+ scale?: number;
2542
+ rotation?: number;
2543
+ stretch?: boolean;
2544
+ height?: number;
2545
+ width?: number;
2546
+ tileSize?: number;
2547
+ tileRotation?: number;
2548
+ useStandalone?: boolean;
2549
+ defaultStandalone?: boolean;
2550
+ mirror?: boolean;
2551
+ simplePlane?: boolean;
2552
+ toneMapped?: boolean;
2553
+ transparent?: boolean;
2554
+ opacity?: number;
2555
+ side?: number;
2556
+ depthWrite?: boolean;
2557
+ depthTest?: boolean;
2558
+ }
2559
+
2560
+ interface AdjustableElementInterface {
2561
+ identifier: string;
2562
+ connector: string;
2563
+ connectedNodeId: number;
3315
2564
  }
3316
2565
 
3317
- declare class ElementButtonsComponent implements OnDestroy {
3318
- iconCache: IconCacheService;
3319
- private _elementRef;
3320
- private _settingsService;
3321
- showClass(): boolean;
3322
- readonly icon: typeof IconEnum;
3323
- disableMouse: boolean;
3324
- handleDocumentMouseUp(event: any): void;
3325
- handleDocumentMouseDown(event: any): void;
3326
- addButtons: CustomButton[];
3327
- customizeButtons: CustomButton[];
3328
- resizeButtons: CustomButton[];
3329
- elementPointer: ElementRef;
3330
- set elementPosition(value: Vector2);
3331
- customizeButtonClicked: EventEmitter<void>;
3332
- get elementPosition(): Vector2;
3333
- showCaptionAddButton: boolean;
3334
- private _elementPosition;
3335
- private _subs;
3336
- constructor(iconCache: IconCacheService, _elementRef: ElementRef, _settingsService: SettingsService);
3337
- ngOnDestroy(): void;
3338
- private _repositionLine;
3339
- static ɵfac: i0.ɵɵFactoryDeclaration<ElementButtonsComponent, never>;
3340
- static ɵcmp: i0.ɵɵComponentDeclaration<ElementButtonsComponent, "co-element-buttons", never, { "addButtons": { "alias": "addButtons"; "required": false; }; "customizeButtons": { "alias": "customizeButtons"; "required": false; }; "resizeButtons": { "alias": "resizeButtons"; "required": false; }; "elementPointer": { "alias": "elementPointer"; "required": false; }; "elementPosition": { "alias": "elementPosition"; "required": false; }; }, { "customizeButtonClicked": "customizeButtonClicked"; }, never, never, false, never>;
2566
+ interface Skin {
2567
+ [face: string]: SkinFragment;
3341
2568
  }
3342
-
3343
- declare class ElementButtonsModule {
3344
- static ɵfac: i0.ɵɵFactoryDeclaration<ElementButtonsModule, never>;
3345
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElementButtonsModule, [typeof ElementButtonsComponent], [typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ElementButtonsComponent]>;
3346
- static ɵinj: i0.ɵɵInjectorDeclaration<ElementButtonsModule>;
2569
+ interface SkinFragment {
2570
+ color?: number;
2571
+ texture?: Texture;
3347
2572
  }
3348
2573
 
3349
- declare class ElementToolbarComponent implements OnDestroy {
3350
- settingsService: SettingsService;
3351
- iconCache: IconCacheService;
3352
- showClass(): boolean;
3353
- readonly icon: typeof IconEnum;
3354
- elementPointer: ElementRef;
3355
- hostClass: boolean;
3356
- editMenu: CustomButton[];
3357
- showPointer: boolean;
3358
- showSwap: boolean;
3359
- readonly deleteClicked: EventEmitter<any>;
3360
- readonly swapClicked: EventEmitter<any>;
3361
- readonly animationClicked: EventEmitter<any>;
3362
- showEditMenu: boolean;
3363
- get instantMenu(): boolean;
3364
- constructor(settingsService: SettingsService, iconCache: IconCacheService);
3365
- ngOnDestroy(): void;
3366
- handleEditClick(): void;
3367
- static ɵfac: i0.ɵɵFactoryDeclaration<ElementToolbarComponent, never>;
3368
- static ɵcmp: i0.ɵɵComponentDeclaration<ElementToolbarComponent, "co-element-toolbar", never, { "editMenu": { "alias": "editMenu"; "required": false; }; "showPointer": { "alias": "showPointer"; "required": false; }; "showSwap": { "alias": "showSwap"; "required": false; }; }, { "deleteClicked": "deleteClicked"; "swapClicked": "swapClicked"; "animationClicked": "animationClicked"; }, never, never, false, never>;
2574
+ /** Meta data for items. */
2575
+ interface Metadata {
2576
+ itemName?: string;
2577
+ itemDescription?: string;
2578
+ itemType?: number;
2579
+ /**
2580
+ * InstanceId
2581
+ */
2582
+ itemId?: string;
2583
+ originalItemId?: string;
2584
+ /**
2585
+ * Sku
2586
+ */
2587
+ itemIdentifier?: string;
2588
+ goodId?: string;
2589
+ goodType?: string;
2590
+ isCustom?: boolean;
2591
+ locked?: boolean;
2592
+ configurable?: boolean;
2593
+ ione?: boolean;
2594
+ position?: Vector3;
2595
+ rotation?: number | Euler;
2596
+ scale?: Vector3;
2597
+ centerPivot?: boolean;
2598
+ ignoreInvisible?: boolean;
2599
+ updatePivotOnCreate?: boolean;
2600
+ elementConfiguration?: AdjustableElementInterface[];
2601
+ obsolete?: boolean;
2602
+ thirdPartyModel?: boolean;
2603
+ usePivot?: boolean;
2604
+ decos?: DecoNode[];
2605
+ selections?: Selection[];
2606
+ canElevate?: boolean;
2607
+ onWall?: boolean;
2608
+ modelUrl?: string;
2609
+ scalable?: boolean;
2610
+ scalePercentage?: number;
2611
+ resizable?: boolean;
2612
+ elevation?: number;
2613
+ elevationFixed?: boolean;
2614
+ elevationAdjustable?: boolean;
2615
+ schema?: string;
2616
+ assetPath?: string;
2617
+ texture?: Texture;
2618
+ textureAssetName?: string;
2619
+ skin?: Skin;
2620
+ frameColor?: number;
2621
+ doorColor?: number;
2622
+ windowColor?: THREE.Color;
2623
+ doorpost?: boolean;
2624
+ isGlass?: boolean;
2625
+ itemGroup?: any;
2626
+ canRotateX?: boolean;
2627
+ canRotateY?: boolean;
2628
+ canRotateZ?: boolean;
2629
+ canScaleX?: boolean;
2630
+ canScaleY?: boolean;
2631
+ canScaleZ?: boolean;
2632
+ colorable?: boolean;
2633
+ default180?: boolean;
2634
+ objectUUID?: string;
2635
+ conversionGTMSend?: boolean;
2636
+ conversionSubmittedPrice?: string;
2637
+ hdecoType?: string;
2638
+ opening?: {
2639
+ show: boolean;
2640
+ double: boolean;
2641
+ invertDirection: boolean;
2642
+ invertSide: boolean;
2643
+ };
3369
2644
  }
3370
2645
 
3371
- declare class ElementToolbarModule {
3372
- static ɵfac: i0.ɵɵFactoryDeclaration<ElementToolbarModule, never>;
3373
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElementToolbarModule, [typeof ElementToolbarComponent], [typeof PipesModule, typeof i3$1.IconModule, typeof i3.CommonModule], [typeof ElementToolbarComponent]>;
3374
- static ɵinj: i0.ɵɵInjectorDeclaration<ElementToolbarModule>;
2646
+ declare class Texture {
2647
+ name: string;
2648
+ type: TextureType;
2649
+ url: string;
2650
+ materializeUrl: string;
2651
+ bumpMap: string;
2652
+ bumpScale: number;
2653
+ roughness: number;
2654
+ roughnessMap: string;
2655
+ normalMap: string;
2656
+ repeatX: number;
2657
+ repeatY: number;
2658
+ metalness: number;
2659
+ metalnessMap: string;
2660
+ aoMapIntensity: number;
2661
+ aoMap: string;
2662
+ alphaMap: string;
2663
+ color: string;
2664
+ emissive: string;
2665
+ data: any;
2666
+ surfaces: string[];
2667
+ offset: THREE.Vector2;
2668
+ scale: number;
2669
+ rotation: number;
2670
+ stretch: boolean;
2671
+ show: boolean;
2672
+ default: boolean;
2673
+ height: number;
2674
+ width: number;
2675
+ tileSize: number;
2676
+ tileRotation: number;
2677
+ dimensions: Vector2;
2678
+ offsetScale: number;
2679
+ useStandalone: boolean;
2680
+ defaultStandalone: boolean;
2681
+ mirror: boolean;
2682
+ simplePlane: boolean;
2683
+ toneMapped: boolean;
2684
+ transparent: boolean;
2685
+ opacity: number;
2686
+ side: THREE.Side;
2687
+ depthWrite: boolean;
2688
+ depthTest: boolean;
2689
+ metadata?: Metadata;
2690
+ static CreateModelFromInterface(modelInterface: TextureInterface): Texture;
3375
2691
  }
3376
2692
 
3377
- declare class SceneOptionsComponent implements OnDestroy {
3378
- iconService: IconCacheService;
2693
+ declare class FloorPlaneService implements OnDestroy {
2694
+ private _settingsService;
2695
+ private _sceneService;
3379
2696
  private _sceneOptionsService;
3380
- showClass(): boolean;
3381
- readonly icons: typeof IconEnum;
3382
- buttons: SceneOptionButtonInterface[];
2697
+ get floorPlane(): Object3D;
2698
+ floorPlaneCreated: BehaviorSubject<boolean>;
2699
+ floorTextures: Texture[];
2700
+ private _standaloneFloors;
2701
+ private _floorPlane;
3383
2702
  private _subs;
3384
- private _childrenShowing;
3385
- constructor(iconService: IconCacheService, _sceneOptionsService: SceneOptionsService);
2703
+ constructor(_settingsService: ConfiguratorSettingsService, _sceneService: ConfiguratorSceneService, _sceneOptionsService: SceneOptionsService);
3386
2704
  ngOnDestroy(): void;
3387
- handleClick(event: MouseEvent, button: SceneOptionButtonInterface): void;
3388
- handleShowChildren(event: MouseEvent, button: SceneOptionButtonInterface): void;
3389
- getIcon(buttonIcon: IconEnum): SafeHtml;
3390
- private _addButton;
3391
- static ɵfac: i0.ɵɵFactoryDeclaration<SceneOptionsComponent, never>;
3392
- static ɵcmp: i0.ɵɵComponentDeclaration<SceneOptionsComponent, "co-scene-options", never, {}, {}, never, never, false, never>;
3393
- }
3394
-
3395
- declare class SelectionsModule {
3396
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionsModule, never>;
3397
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionsModule, [typeof SceneOptionsComponent], [typeof i3.CommonModule, typeof i3$1.IconModule, typeof PipesModule], [typeof SceneOptionsComponent]>;
3398
- static ɵinj: i0.ɵɵInjectorDeclaration<SelectionsModule>;
2705
+ createFloorPlane(rawFloors: TextureInterface$1[]): Promise<void>;
2706
+ getCenterFloorPlane(): Vector3;
2707
+ getDimensions(scale?: number): {
2708
+ x: {
2709
+ min: number;
2710
+ max: number;
2711
+ };
2712
+ y: {
2713
+ min: number;
2714
+ max: number;
2715
+ };
2716
+ };
2717
+ getPlaneSize(): Vector3;
2718
+ private _getStandaloneFloorSize;
2719
+ private _generateFloorPlane;
2720
+ private _createFloorMaterial;
2721
+ private _upsertFloorButtons;
2722
+ private _changeStandaloneFloor;
2723
+ private _setFloorTexture;
2724
+ private _updateFloorMaterial;
2725
+ private _setUpdatedMaterial;
2726
+ private _getMaterials;
2727
+ private _createTexture;
2728
+ static ɵfac: i0.ɵɵFactoryDeclaration<FloorPlaneService, never>;
2729
+ static ɵprov: i0.ɵɵInjectableDeclaration<FloorPlaneService>;
3399
2730
  }
3400
2731
 
3401
- declare class ConfiguratorSceneComponent implements OnDestroy {
3402
- private settingsService;
2732
+ declare class DimensionsService implements OnDestroy {
3403
2733
  private _sceneService;
3404
- private _lightService;
3405
- private _lightPresetService;
3406
- private _sceneEventService;
3407
- private _initializerService;
3408
- showClass(): boolean;
2734
+ private _fontService;
2735
+ private _itemService;
2736
+ set enabled(value: boolean);
2737
+ get enabled(): boolean;
2738
+ private readonly _offSet;
2739
+ private readonly _labelOffSet;
2740
+ private readonly _nameHeightArrow;
2741
+ private readonly _nameWidthArrow;
2742
+ private readonly _nameDepthArrow;
2743
+ private readonly _headLength;
2744
+ private readonly _headWidth;
2745
+ private readonly _defaultColor;
2746
+ private _subs;
2747
+ private _dimensions;
2748
+ private _enabled;
2749
+ constructor(_sceneService: ConfiguratorSceneService, _fontService: FontService, _itemService: ConfiguratorItemService);
2750
+ ngOnDestroy(): void;
2751
+ private _renderDimensions;
2752
+ private _removeDimensionsOfNotExistingFurniture;
2753
+ private _removeDimensions;
2754
+ private _positionDimensions;
2755
+ private _createDimensions;
2756
+ private _createLabel;
2757
+ private _getBoxSize;
2758
+ static ɵfac: i0.ɵɵFactoryDeclaration<DimensionsService, never>;
2759
+ static ɵprov: i0.ɵɵInjectableDeclaration<DimensionsService>;
2760
+ }
2761
+
2762
+ declare class ConfiguratorSceneComponent implements AfterViewInit, OnDestroy {
2763
+ private _settingsService;
2764
+ private _rotationService;
2765
+ private _dynamicCameraService;
2766
+ private _sceneService;
2767
+ private _eventService;
2768
+ private _cameraService;
2769
+ private _itemService;
2770
+ private _buildFurnitureService;
2771
+ private _sceneOptionsService;
2772
+ private _dimensionsService;
2773
+ private _floorService;
3409
2774
  canvasElement: ElementRef;
2775
+ elementToolbar: ElementToolbarComponent;
2776
+ showClass: boolean;
2777
+ totalSteps: number;
2778
+ currentStep: number;
2779
+ showSwapButton: boolean;
2780
+ selectedElementPosition: Vector2;
2781
+ editElementMenu: CustomButton[];
2782
+ editAddButtons: CustomButton[];
2783
+ setSceneBuildLoader: boolean;
2784
+ loaderProgress: number;
2785
+ showElementToolbar: boolean;
2786
+ animateEditAddButtons: boolean;
2787
+ enabledDownloadDialog: boolean;
2788
+ showSceneBuildLoader: boolean;
2789
+ development: boolean;
2790
+ showDownloadDialog: boolean;
2791
+ showCameraSettingsDialog: boolean;
3410
2792
  private _subs;
3411
- constructor(settingsService: SettingsService, _sceneService: SceneService, _lightService: LightsService, _lightPresetService: LightPresetsService, _sceneEventService: SceneEventService, _initializerService: AppInitializerService);
2793
+ private _firstBuild;
2794
+ private _selectedElementObject;
2795
+ private _buildResult;
2796
+ constructor(_settingsService: ConfiguratorSettingsService, _rotationService: ConfiguratorRotationService, _dynamicCameraService: ConfiguratorDynamicCameraService, _sceneService: ConfiguratorSceneService, _eventService: ConfiguratorEventService, _cameraService: ConfiguratorCameraService, _itemService: ConfiguratorItemService, _buildFurnitureService: SwitchBuildFurnitureService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _floorService: FloorPlaneService);
2797
+ ngAfterViewInit(): void;
3412
2798
  ngOnDestroy(): void;
3413
- loadScene(ready: boolean): void;
2799
+ swapElement(): void;
2800
+ deleteElement(): void;
2801
+ openAnimationSidebar(): void;
2802
+ handleCustomizeClick(): void;
2803
+ private _handleFirstBuildStandalone;
2804
+ private _loaderProcessUpdate;
2805
+ private _animateProgress;
2806
+ private _removeAddButtons;
2807
+ private _resetElementPosition;
2808
+ private _repositionButtons;
2809
+ private _handleAddButtonClick;
2810
+ private _resetSelectedElement;
2811
+ private _removeAllButtons;
2812
+ private _repositionButton;
2813
+ private _showPlusButtonsBriefly;
2814
+ private _createDownloadButton;
2815
+ private _createCameraSettingsButton;
2816
+ private _createMeasurementsButton;
2817
+ private _downloadCurrentBuild;
2818
+ private _openCameraSettingsDialog;
2819
+ private _handleShowMeasurements;
3414
2820
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneComponent, never>;
3415
2821
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfiguratorSceneComponent, "co-configurator-scene", never, {}, {}, never, never, false, never>;
3416
2822
  }
3417
2823
 
3418
2824
  declare class ConfiguratorSceneModule {
3419
2825
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfiguratorSceneModule, never>;
3420
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneModule, [typeof ConfiguratorSceneComponent], never, [typeof ConfiguratorSceneComponent]>;
2826
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfiguratorSceneModule, [typeof ConfiguratorSceneComponent], [typeof ConfiguratorSceneLoaderModule, typeof SelectionsModule, typeof ElementToolbarModule, typeof ElementButtonsModule, typeof ConfiguratorDialogModule], [typeof ConfiguratorSceneComponent]>;
3421
2827
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfiguratorSceneModule>;
3422
2828
  }
3423
2829
 
3424
- declare class Builder {
3425
- selectionsReceived: BehaviorSubject<Selection[]>;
3426
- articleLoaded: BehaviorSubject<Article>;
3427
- decosReceived: BehaviorSubject<DecoNode[]>;
3428
- answersReceived: BehaviorSubject<Answer[]>;
3429
- modelLoaded: BehaviorSubject<THREE.Object3D>;
3430
- set debug(value: Function);
3431
- get debug(): Function;
3432
- private _scene;
3433
- private _instanceId;
3434
- private _sku;
3435
- private _goodId;
3436
- private _selections;
3437
- private _answers;
3438
- private _decos;
3439
- private _placedAdjustables;
3440
- private _placedAddables;
3441
- private _adjustables;
3442
- private _addables;
3443
- private _debug;
3444
- private _imageCache;
3445
- private _boFactory;
3446
- private _source;
3447
- private _threedUtils;
3448
- private _variationHelper;
3449
- private _articleCache;
3450
- private _configuratorService;
3451
- private _buildFurnitureService;
3452
- private _loadFurnitureService;
3453
- private _configuratorConnectorService;
2830
+ declare enum ArFeature {
2831
+ PlaneDetection = "PlaneDetection",
2832
+ PlaneDetectionHitTest = "PlaneDetectionHitTest",
2833
+ DefaultHitTest = "DefaultHitTest",
2834
+ AnchoredHitTest = "AnchoredHitTest",
2835
+ CPUDepthHitTest = "CPUDepthHitTest",
2836
+ GPUDepthHitTest = "GPUDepthHitTest",
2837
+ CPUDepthOcclusion = "CPUDepthOcclusion",
2838
+ GPUDepthOcclusion = "GPUDepthOcclusion",
2839
+ LightEstimation = "LightEstimation",
2840
+ ReflectionCubeMap = "ReflectionCubeMap"
2841
+ }
2842
+
2843
+ /**
2844
+ This file is a modified version of THREE.OrbitControls
2845
+ Contributors:
2846
+ * @author qiao / https://github.com/qiao
2847
+ * @author mrdoob / http://mrdoob.com
2848
+ * @author alteredq / http://alteredqualia.com/
2849
+ * @author WestLangley / http://github.com/WestLangley
2850
+ * @author erich666 / http://erichaines.com
2851
+ */
2852
+ declare let Controls: (camera: any, domElement: any) => void;
2853
+
2854
+ declare class Reticle extends Object3D {
2855
+ private _rayCaster;
2856
+ /**
2857
+ * @param {XRSession} xrSession
2858
+ * @param {THREE.Camera} camera
2859
+ */
3454
2860
  constructor();
3455
- initNewBuild(scene: Scene, options?: Options, sku?: string, instanceId?: string, goodId?: number): Promise<THREE.Object3D>;
3456
- buildWithData(options?: Options, selections?: Selection[], decos?: DecoNode[], assetUrl?: string, cdnUrl?: string, schema?: string): Promise<THREE.Object3D>;
3457
- init(scene: Scene, options?: Options): void;
3458
- buildModel(sku?: string, instanceId?: string, goodId?: number): Promise<THREE.Object3D>;
3459
- buildModelFromData(selections: Selection[], decos: DecoNode[], assetUrl: string, cdnUrl: string, schema: string): Promise<THREE.Object3D>;
3460
- initNodeInstance(goodId: number): Promise<any>;
3461
- destroy(): void;
3462
- selectSelection(selection: Selection): Promise<void>;
3463
- getQuestionAndAnswers(publicationCode?: number): Promise<void>;
3464
- selectAnswer(answer: Answer): Promise<void>;
3465
- getImageForSelectionOrAnswer(object: Selection | Answer): Promise<string>;
3466
- _cleanUp(): void;
3467
- private _handleResponseData;
3468
- private _preloadMaterials;
3469
- private _setInstanceId;
3470
- private _prepareConfiguration;
3471
- private _downloadAsset;
3472
- private _build;
3473
- private _prepareTheSelections;
3474
2861
  /**
3475
- * Returns the materialId of the parent up the tree until presentionlevel 1 is reached
3476
- * @param id
3477
- * @private
2862
+ * Fires a hit test in the middle of the screen and places the reticle
2863
+ * upon the surface if found.
2864
+ *
2865
+ * @param {XRCoordinateSystem} frameOfRef
3478
2866
  */
3479
- private _getMaterialIdFromParent;
3480
- private _createAdjustable;
3481
- private _createAddable;
3482
- private _placeAddables;
3483
- private _createUniqueName;
3484
- private _getGoodIdFromSku;
3485
- private _getArticle;
3486
- private _getSelections;
3487
- private _getDecos;
3488
- private _linkSelectionsAndDecos;
3489
- private _getVariations;
3490
- private _loadVariations;
3491
- private _getAdjustables;
3492
- private _updatePivot;
3493
- private _reset;
3494
- private _log;
3495
- static ɵfac: i0.ɵɵFactoryDeclaration<Builder, never>;
3496
- static ɵprov: i0.ɵɵInjectableDeclaration<Builder>;
3497
- }
3498
-
3499
- export { AnswerCardComponent, AnswerCardModule, AnswersInfoDialogComponent, AnswersInfoDialogModule, AnswersSlideoutComponent, AnswersSlideoutModule, Builder, CoSummaryLine, CoSummaryLineModule, ColorFilterComponent, ColorFilterModule, ConfigurationResultObject, ConfiguratorCameraSettingsComponent, ConfiguratorComponent, ConfiguratorDialogModule, ConfiguratorErrorDialogComponent, ConfiguratorErrorMessage, ConfiguratorExportDialogComponent, ConfiguratorLoaderComponent, ConfiguratorLoaderModule, ConfiguratorModule, ConfiguratorSceneComponent, ConfiguratorSceneLoaderComponent, ConfiguratorSceneLoaderModule, ConfiguratorSceneModule, ConfiguringService, ElementButtonsComponent, ElementButtonsModule, ElementToolbarComponent, ElementToolbarModule, ImageZoomComponent, ImageZoomModule, LiteSelectorComponent, LiteSelectorModule, ProductConfiguratorComponent, ProductConfiguratorModule, ProductConfiguratorOptionCheckboxComponent, ProductConfiguratorSelectorComponent, ProductConfiguratorSelectorModule, ProductConfiguratorSelectorOptionButtonComponent, ProductConfiguratorSelectorOptionButtonModule, ProductConfiguratorSelectorOptionCheckboxModule, ProductConfiguratorSelectorOptionComponent, ProductConfiguratorSelectorOptionDropDownComponent, ProductConfiguratorSelectorOptionDropdownModule, ProductConfiguratorSelectorOptionModule, ProductConfiguratorSelectorOptionTileComponent, ProductConfiguratorSelectorOptionTileModule, ProgressBarComponent, ProgressBarModule, SceneOptionsComponent, SceneService, SelectionsModule, SelectionsSummaryComponent, SelectionsSummaryLineComponent, SelectionsSummaryModule, TagFilterComponent, TagFilterModule, ThreedselectorComponent, ThreedselectorModule };
2867
+ update(session: any, camera: any, frameOfRef: any): Promise<void>;
2868
+ toggleValidPosition(valid: boolean): void;
2869
+ }
2870
+
2871
+ declare class ArPositionIndicator extends Object3D {
2872
+ constructor(boundingBox: Box3);
2873
+ }
2874
+
2875
+ export { AnswerCardComponent, AnswerCardModule, AnswersInfoDialogComponent, AnswersInfoDialogModule, AnswersSlideoutComponent, AnswersSlideoutModule, ArFeature, ArPositionIndicator, CoSummaryLine, CoSummaryLineModule, ColorFilterComponent, ColorFilterModule, ConfigurationPresetComponent, ConfigurationPresetModule, ConfigurationResultObject, ConfiguratorArService, ConfiguratorCameraService, ConfiguratorCameraSettingsComponent, ConfiguratorComponent, ConfiguratorConnectorService, ConfiguratorDialogModule, ConfiguratorErrorDialogComponent, ConfiguratorErrorMessage, ConfiguratorEventService, ConfiguratorExportDialogComponent, ConfiguratorLoaderComponent, ConfiguratorLoaderModule, ConfiguratorModule, ConfiguratorSceneComponent, ConfiguratorSceneLoaderComponent, ConfiguratorSceneLoaderModule, ConfiguratorSceneModule, ConfiguratorSceneService, ConfiguratorVrService, ConfiguratorXrService, ConfiguringService, Controls, ElementButtonsComponent, ElementButtonsModule, ElementToolbarComponent, ElementToolbarModule, ImageZoomComponent, ImageZoomModule, LiteSelectorComponent, LiteSelectorModule, ProductConfiguratorComponent, ProductConfiguratorModule, ProductConfiguratorOptionCheckboxComponent, ProductConfiguratorSelectorComponent, ProductConfiguratorSelectorModule, ProductConfiguratorSelectorOptionButtonComponent, ProductConfiguratorSelectorOptionButtonModule, ProductConfiguratorSelectorOptionCheckboxModule, ProductConfiguratorSelectorOptionComponent, ProductConfiguratorSelectorOptionDropDownComponent, ProductConfiguratorSelectorOptionDropdownModule, ProductConfiguratorSelectorOptionModule, ProductConfiguratorSelectorOptionTileComponent, ProductConfiguratorSelectorOptionTileModule, ProgressBarComponent, ProgressBarModule, Reticle, SceneOptionsComponent, SelectionsModule, SelectionsSummaryComponent, SelectionsSummaryLineComponent, SelectionsSummaryModule, TagFilterComponent, TagFilterModule, XrMode };