@colijnit/configurator 262.1.3 → 262.1.5

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