@colijnit/homedecorator 256.1.13 → 256.1.14

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 (28) hide show
  1. package/app/core/model/light-preset.d.ts +1 -0
  2. package/app/core/service/homedecorator-connector-adapter.service.d.ts +3 -0
  3. package/app/core/utils/file.utils.d.ts +1 -0
  4. package/app/core/utils/variation-utils.d.ts +1 -0
  5. package/app/plugins/core3d/service/scene.service.d.ts +1 -0
  6. package/app/plugins/threedselector/threedselector/service/build-furniture.service.d.ts +1 -1
  7. package/app/plugins/threedselector/threedselector/service/load-furniture.service.d.ts +7 -4
  8. package/app/plugins/threedselector/threedselector/service/threedselector.service.d.ts +1 -1
  9. package/app/plugins/threedselector/threedselector/service/variation.service.d.ts +3 -3
  10. package/app/plugins/threedselector/threedselector/threedselector.component.d.ts +3 -1
  11. package/bundles/colijnit-homedecorator.umd.js +262 -161
  12. package/bundles/colijnit-homedecorator.umd.js.map +1 -1
  13. package/esm2015/app/app.version.js +3 -3
  14. package/esm2015/app/core/model/light-preset.js +2 -1
  15. package/esm2015/app/core/service/homedecorator-connector-adapter.service.js +15 -2
  16. package/esm2015/app/core/utils/file.utils.js +13 -1
  17. package/esm2015/app/core/utils/variation-utils.js +13 -1
  18. package/esm2015/app/plugins/core3d/service/camera.service.js +2 -2
  19. package/esm2015/app/plugins/core3d/service/light-presets.service.js +2 -3
  20. package/esm2015/app/plugins/core3d/service/scene.service.js +4 -2
  21. package/esm2015/app/plugins/threedselector/threedselector/service/build-furniture.service.js +18 -13
  22. package/esm2015/app/plugins/threedselector/threedselector/service/load-furniture.service.js +50 -37
  23. package/esm2015/app/plugins/threedselector/threedselector/service/threedselector.service.js +7 -3
  24. package/esm2015/app/plugins/threedselector/threedselector/service/variation.service.js +7 -7
  25. package/esm2015/app/plugins/threedselector/threedselector/threedselector.component.js +48 -31
  26. package/fesm2015/colijnit-homedecorator.js +151 -77
  27. package/fesm2015/colijnit-homedecorator.js.map +1 -1
  28. package/package.json +1 -1
@@ -16,6 +16,7 @@ export declare class LightPreset {
16
16
  group: string;
17
17
  shadowMapType: ShadowMapLocalType;
18
18
  outputEncoding: OutputEncoding;
19
+ colorSpace: ColorSpace;
19
20
  shadowRadius: number;
20
21
  toneMappingExposure: number;
21
22
  physicallyCorrectLights: boolean;
@@ -27,6 +27,8 @@ import { HomedecoratorAppEventService } from './homedecorator-app-event.service'
27
27
  import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
28
28
  import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
29
29
  import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
30
+ import { Metadata } from '../../plugins/core3d/items/metadata';
31
+ import { HomedecoratorSettings } from '../model/homedecorator-settings';
30
32
  import * as i0 from "@angular/core";
31
33
  export declare class ExternalConnector {
32
34
  loginResponse: LoginResponse;
@@ -58,6 +60,7 @@ export declare class HomedecoratorConnectorAdapterService {
58
60
  private _mainApi;
59
61
  private _boFactory;
60
62
  constructor(_appEventService: HomedecoratorAppEventService);
63
+ initConnectionFromMetadata(metadata: Metadata, settings: HomedecoratorSettings): Promise<void>;
61
64
  initConnector(options: Options, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<void>;
62
65
  logOut(): Promise<void>;
63
66
  getPublicationCodeBasedOnLogin(): number;
@@ -6,6 +6,7 @@ export declare class FileUtils {
6
6
  * Deprecated
7
7
  */
8
8
  static FileExists(url: string, assetPath?: string): boolean;
9
+ static DoesFileExist(url: string): Promise<boolean>;
9
10
  static CheckModelConversion(url: string, assetPath: string): any;
10
11
  static SaveTextureImage(metaData: any, fileName: string, assetPath: string): any;
11
12
  static SaveGLBFile(data: Blob, assetPath: string): Promise<any>;
@@ -2,6 +2,7 @@ import { VariationSettings } from '../../plugins/threedselector/threedselector/m
2
2
  export declare class VariationUtils {
3
3
  private static MaterialCache;
4
4
  static LoadVariation(assetPath: string, url: string, fileName: string, includeVariationFolder?: boolean): Promise<VariationSettings>;
5
+ static GetUrl(assetPath: string, url: string, fileName: string, includeVariationFolder?: boolean): string;
5
6
  static GetVariationSettingsFromFile(id: string, compressedFile: any): Promise<VariationSettings>;
6
7
  private static CreateSettingsBasedOnIndex;
7
8
  private static CreateSettingsBasedOnFileName;
@@ -31,6 +31,7 @@ export declare class SceneService implements OnDestroy {
31
31
  scene: Scene;
32
32
  renderer: WebGLRenderer;
33
33
  pathTracer: WebGLPathTracer;
34
+ standAlone: boolean;
34
35
  onBeforeRender: Subject<{
35
36
  renderer: WebGLRenderer;
36
37
  scene: Scene;
@@ -109,7 +109,7 @@ export declare class BuildFurnitureService implements OnDestroy {
109
109
  constructor(_dialog: MatDialog, _iOne: HomedecoratorConnectorService, _threedSelectorService: ThreedselectorService, _collisionManager: CollisionManagerService, _messageBus: MessageBusService, _dictionaryService: HomedecoratorDictionaryService, _hudService: HudService, _sceneService: SceneService, _cameraService: CameraService, _sceneEventService: SceneEventService, _appEventService: HomedecoratorAppEventService, _presetService: PresetsService, _itemService: ItemService, _elementService: ElementService, _permanentStoreService: PermanentStoreService, _googleTagManager: GoogleTagManagerService, _settingsService: HomedecoratorSettingsService, _utilsService: UtilsService, _variationService: VariationService, _appStateService: AppStateService, _errorService: ErrorService, _itemGroupService: ItemGroupService, _variationCacheService: VariationCacheService, _resizeService: ResizeService, _viewModeService: ViewModeService, _floorService: FloorService, _floorPatternService: FloorPatternService, _floorTileIntersectionService: FloorTileIntersectionService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _outlineService: OutlineService);
110
110
  ngOnDestroy(): void;
111
111
  build(result: CustomFloorGroupResult): Promise<CustomFloorGroupResult>;
112
- startToBuild(result?: CustomFloorGroupResult, metadata?: Metadata, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean): Promise<CustomFloorGroupResult>;
112
+ startToBuild(result?: CustomFloorGroupResult, metadata?: Metadata, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, firstBuild?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<CustomFloorGroupResult>;
113
113
  getOptionsFromSelection(baseSelection: Selection): Selection[];
114
114
  downloadCurrentCustomFloorgroup(): void;
115
115
  downloadUDSZforARIOS(): void;
@@ -12,6 +12,7 @@ import { BuildFurnitureService } from './build-furniture.service';
12
12
  import { PresetsService } from '../../../../core/service/presets.service';
13
13
  import { HomedecoratorSettingsService } from '../../../../core/service/homedecorator-settings.service';
14
14
  import { ThreedselectorService } from './threedselector.service';
15
+ import { HomedecoratorConnectorAdapterService } from '../../../../core/service/homedecorator-connector-adapter.service';
15
16
  import * as i0 from "@angular/core";
16
17
  export interface FurnitureInitialized {
17
18
  initialized: boolean;
@@ -19,6 +20,7 @@ export interface FurnitureInitialized {
19
20
  }
20
21
  export declare class LoadFurnitureService implements OnDestroy {
21
22
  private _iOne;
23
+ private _connectorAdapterService;
22
24
  private _modelService;
23
25
  private _threedSelectorService;
24
26
  private _messageBus;
@@ -43,10 +45,10 @@ export declare class LoadFurnitureService implements OnDestroy {
43
45
  private _subs;
44
46
  private _shouldCopyFurniture;
45
47
  private _configurationDirty;
46
- constructor(_iOne: HomedecoratorConnectorService, _modelService: ModelsService, _threedSelectorService: ThreedselectorService, _messageBus: MessageBusService, _buildFurnitureService: BuildFurnitureService, _presetService: PresetsService, _settingsService: HomedecoratorSettingsService);
48
+ constructor(_iOne: HomedecoratorConnectorService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _modelService: ModelsService, _threedSelectorService: ThreedselectorService, _messageBus: MessageBusService, _buildFurnitureService: BuildFurnitureService, _presetService: PresetsService, _settingsService: HomedecoratorSettingsService);
47
49
  ngOnDestroy(): void;
48
50
  loadArticle(sku: string): Promise<Article>;
49
- loadFurniture(furnitureData: Metadata, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean): Promise<CustomFloorGroupResult>;
51
+ loadFurniture(furnitureData: Metadata, shouldCopyInstance?: boolean, looseOriginalConfiguration?: boolean, standAlone?: boolean, fromScratch?: boolean, fromPreset?: boolean, loadFromProject?: boolean): Promise<CustomFloorGroupResult>;
50
52
  switchConfiguration(furniture: any): Promise<void>;
51
53
  configureFurniture: (furniture: any) => Promise<void>;
52
54
  deleteFromObjectList(id: string, useInstanceId?: boolean): void;
@@ -58,8 +60,9 @@ export declare class LoadFurnitureService implements OnDestroy {
58
60
  private _cleanUp;
59
61
  private _needs3DModel;
60
62
  private _initFull3DObject;
61
- getFull3DObject(sku: string, assetPath: string, name?: string, assetUrl?: string, prepareProgress?: boolean): Promise<Object3D>;
62
- private _checkModelURL;
63
+ private _getAssetPathFromMetadata;
64
+ private _getAssetPathFromModelUrlAndSchema;
65
+ getFull3DObject(sku: string, assetPath: string, name: string, assetUrl: string, prepareProgress?: boolean): Promise<Object3D>;
63
66
  static ɵfac: i0.ɵɵFactoryDeclaration<LoadFurnitureService, never>;
64
67
  static ɵprov: i0.ɵɵInjectableDeclaration<LoadFurnitureService>;
65
68
  }
@@ -16,7 +16,7 @@ export declare class ThreedselectorService {
16
16
  private _presetService;
17
17
  constructor(_variationCacheService: VariationCacheService, _settingsService: HomedecoratorSettingsService, _ione: HomedecoratorConnectorService, _utilsService: UtilsService, _progressService: ProgressService, _presetService: PresetsService);
18
18
  downloadAssetsAndReturn(fileName: string, assetPath: string, prepareProgress?: boolean): Promise<THREE.Object3D>;
19
- loadVariation(id: string, schema: string): Promise<VariationSettings>;
19
+ loadVariation(assetPath: string, id: string, schema: string): Promise<VariationSettings>;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<ThreedselectorService, never>;
21
21
  static ɵprov: i0.ɵɵInjectableDeclaration<ThreedselectorService>;
22
22
  }
@@ -9,10 +9,10 @@ export declare class VariationService {
9
9
  private _lastKnownVariations;
10
10
  constructor(_threedSelectorService: ThreedselectorService, _itemService: ItemService);
11
11
  clearCache(): void;
12
- loadPart(parts: any[], instanceId: string, obj: Item, usePbr?: boolean): Promise<void>;
13
- loadVariation(parts: any[], instanceId: string, obj: Item, usePbr?: boolean): Promise<void>;
12
+ loadPart(assetPath: string, parts: any[], instanceId: string, obj: Item, usePbr?: boolean): Promise<void>;
13
+ loadVariation(assetPath: string, parts: any[], instanceId: string, obj: Item, usePbr?: boolean): Promise<void>;
14
14
  loadVariationFromLocalFile(id: string, file: any, obj: Object3D): Promise<void>;
15
- loadVariationForMaterial(gameObject: string, schema: string): Promise<void>;
15
+ loadVariationForMaterial(assetPath: string, gameObject: string, schema: string): Promise<void>;
16
16
  private _applyMaterialPart;
17
17
  private _applyVariations;
18
18
  private _applyMaterial;
@@ -45,6 +45,7 @@ import { RenderService } from '../../render/service/render.service';
45
45
  import { NewRenderService } from '../../render/service/new-render.service';
46
46
  import { HomedecoratorConnectorAdapterService } from '../../../core/service/homedecorator-connector-adapter.service';
47
47
  import { LightPresetsService } from '../../core3d/service/light-presets.service';
48
+ import { ViewModeService } from '../../../core/service/view-mode.service';
48
49
  import * as i0 from "@angular/core";
49
50
  export declare class ThreedselectorComponent implements OnInit, OnDestroy {
50
51
  screenSizeService: ScreenSizeAnalysisService;
@@ -86,6 +87,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
86
87
  private _newRenderService;
87
88
  private _connectorAdapterService;
88
89
  private _lightPresetService;
90
+ private _viewModeService;
89
91
  readonly iconName: typeof IconName;
90
92
  toolbarIconModels: TemplateRef<any>;
91
93
  selectedThreedObjectCustomizationSidebar: TemplateRef<any>;
@@ -121,7 +123,7 @@ export declare class ThreedselectorComponent implements OnInit, OnDestroy {
121
123
  private _subs;
122
124
  private _loadingFromPreset;
123
125
  private _callBackFnWhenBuildFinished;
124
- constructor(screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _appService: HomedecoratorAppService, _iOne: HomedecoratorConnectorService, _messageBus: MessageBusService, _loadFurnitureService: LoadFurnitureService, _buildFurnitureService: BuildFurnitureService, _integrationService: IntegrationService, _dictionaryService: HomedecoratorDictionaryService, _toastService: ToastService, _messageService: MessageBusService, _sceneService: SceneService, _dialogService: DialogService, _cameraService: CameraService, _presetsService: PresetsService, _itemService: ItemService, _settingsService: HomedecoratorSettingsService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _appEventService: HomedecoratorAppEventService, _floorplanService: FloorplanService, _floorService: FloorService, _iconCacheService: HomedecoratorIconCacheService, _arService: ArService, _googleTagManager: GoogleTagManagerService, _errorService: ErrorService, _rotationService: RotationService, _roomService: RoomService, _appStateService: AppStateService, _progressService: ProgressService, _animationService: AnimationService, _resizeService: ResizeService, _customizerService: CustomizerService, _dynamicCameraService: DynamicCameraService, _threedInPhotoInitializerService: ThreedInPhotoInitializerService, _renderService: RenderService, _newRenderService: NewRenderService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _lightPresetService: LightPresetsService);
126
+ constructor(screenSizeService: ScreenSizeAnalysisService, _dialog: MatDialog, _appService: HomedecoratorAppService, _iOne: HomedecoratorConnectorService, _messageBus: MessageBusService, _loadFurnitureService: LoadFurnitureService, _buildFurnitureService: BuildFurnitureService, _integrationService: IntegrationService, _dictionaryService: HomedecoratorDictionaryService, _toastService: ToastService, _messageService: MessageBusService, _sceneService: SceneService, _dialogService: DialogService, _cameraService: CameraService, _presetsService: PresetsService, _itemService: ItemService, _settingsService: HomedecoratorSettingsService, _sceneOptionsService: SceneOptionsService, _dimensionsService: DimensionsService, _appEventService: HomedecoratorAppEventService, _floorplanService: FloorplanService, _floorService: FloorService, _iconCacheService: HomedecoratorIconCacheService, _arService: ArService, _googleTagManager: GoogleTagManagerService, _errorService: ErrorService, _rotationService: RotationService, _roomService: RoomService, _appStateService: AppStateService, _progressService: ProgressService, _animationService: AnimationService, _resizeService: ResizeService, _customizerService: CustomizerService, _dynamicCameraService: DynamicCameraService, _threedInPhotoInitializerService: ThreedInPhotoInitializerService, _renderService: RenderService, _newRenderService: NewRenderService, _connectorAdapterService: HomedecoratorConnectorAdapterService, _lightPresetService: LightPresetsService, _viewModeService: ViewModeService);
125
127
  ngOnInit(): void;
126
128
  ngOnDestroy(): void;
127
129
  copySceneInstance(saveAs: boolean): Promise<void>;