@colijnit/homedecorator 255.1.1 → 255.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/core/enum/configuration-key.enum.d.ts +1 -0
- package/app/core/interface/configuration-data.interface.d.ts +1 -0
- package/app/core/interface/homedecorator-external-settings.interface.d.ts +9 -0
- package/app/core/interface/message-with-payload.interface.d.ts +3 -3
- package/app/core/service/homedecorator-app-event.service.d.ts +2 -0
- package/app/plugins/core3d/items/metadata.d.ts +2 -2
- package/app/plugins/core3d/service/post-processing.service.d.ts +27 -0
- package/app/plugins/core3d/service/scene.service.d.ts +4 -1
- package/app/plugins/product-catalog/own-collection-catalog/product-own-collection.component.d.ts +4 -4
- package/app/plugins/product-catalog/product-catalog/product-catalog.component.d.ts +5 -7
- package/app/plugins/room-planner/components/floorplanner/floorplanner.component.d.ts +1 -0
- package/app/plugins/room-planner/components/settings/settings.component.d.ts +1 -0
- package/app/plugins/room-planner/room-planner/room-planner.component.d.ts +3 -1
- package/bundles/colijnit-homedecorator.umd.js +218 -44
- package/bundles/colijnit-homedecorator.umd.js.map +1 -1
- package/esm2015/app/core/enum/configuration-key.enum.js +2 -1
- package/esm2015/app/core/interface/configuration-data.interface.js +1 -1
- package/esm2015/app/core/interface/homedecorator-external-settings.interface.js +2 -0
- package/esm2015/app/core/interface/message-with-payload.interface.js +1 -1
- package/esm2015/app/core/service/configuration.service.js +2 -1
- package/esm2015/app/core/service/homedecorator-app-event.service.js +2 -1
- package/esm2015/app/core/service/homedecorator-connector-adapter.service.js +1 -2
- package/esm2015/app/core/service/homedecorator-connector.service.js +1 -1
- package/esm2015/app/plugins/core3d/core3d/core3d.component.js +2 -2
- package/esm2015/app/plugins/core3d/items/metadata.js +1 -1
- package/esm2015/app/plugins/core3d/service/post-processing.service.js +132 -0
- package/esm2015/app/plugins/core3d/service/scene.service.js +24 -9
- package/esm2015/app/plugins/lite-selector/lite-selector/component/selections-summary/selections-summary-line.component.js +5 -3
- package/esm2015/app/plugins/product-catalog/own-collection-catalog/product-own-collection.component.js +1 -1
- package/esm2015/app/plugins/product-catalog/product-catalog/product-catalog.component.js +22 -12
- package/esm2015/app/plugins/room-planner/components/floorplanner/floorplanner.component.js +6 -1
- package/esm2015/app/plugins/room-planner/components/settings/settings.component.js +3 -2
- package/esm2015/app/plugins/room-planner/room-planner/room-planner.component.js +43 -29
- package/esm2015/app/plugins/threedselector/threedselector/service/load-furniture.service.js +2 -2
- package/esm2015/app/plugins/threedselector/threedselector/threedselector.component.js +3 -3
- package/esm2015/app/plugins/toolbar/save-dialog/save-dialog.component.js +5 -3
- package/esm2015/app/shared/model-dialog/model-dialog-furniture-list.component.js +2 -2
- package/fesm2015/colijnit-homedecorator.js +210 -34
- package/fesm2015/colijnit-homedecorator.js.map +1 -1
- package/package.json +3 -3
- package/app/core/interface/external-settings.interface.d.ts +0 -6
- package/esm2015/app/core/interface/external-settings.interface.js +0 -2
|
@@ -28,6 +28,7 @@ export declare enum ConfigurationKey {
|
|
|
28
28
|
WalkThroughCameraFoV = "WalkThroughCameraFoV",
|
|
29
29
|
WalkThroughCameraAspectRatio = "WalkThroughCameraAspectRatio",
|
|
30
30
|
WalkThroughCameraFocus = "WalkThroughCameraFocus",
|
|
31
|
+
ShowPostProcessingSettings = "showPostProcessingSettings",
|
|
31
32
|
ShowWalls = "ShowWalls",
|
|
32
33
|
ShowCeiling = "ShowCeiling",
|
|
33
34
|
IsLimited = "IsLimited",
|
|
@@ -29,6 +29,7 @@ export interface ConfigurationData {
|
|
|
29
29
|
[ConfigurationKey.WalkThroughCameraFoV]?: number;
|
|
30
30
|
[ConfigurationKey.WalkThroughCameraAspectRatio]?: number;
|
|
31
31
|
[ConfigurationKey.WalkThroughCameraFocus]?: number;
|
|
32
|
+
[ConfigurationKey.ShowPostProcessingSettings]?: boolean;
|
|
32
33
|
[ConfigurationKey.ShowWalls]?: boolean;
|
|
33
34
|
[ConfigurationKey.ShowCeiling]?: boolean;
|
|
34
35
|
[ConfigurationKey.IsLimited]?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
2
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
3
|
+
export interface HomedecoratorExternalSettingsInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
settings: any;
|
|
6
|
+
catalogDefinition: CatalogDefinition;
|
|
7
|
+
externalSource: ExternalSource;
|
|
8
|
+
schema: string;
|
|
9
|
+
}
|
|
@@ -6,10 +6,10 @@ import type { Item } from '../../plugins/core3d/items/item';
|
|
|
6
6
|
import type { ItemGroup } from '../../plugins/core3d/items/item-group';
|
|
7
7
|
import { Category } from '../model/category';
|
|
8
8
|
import { DraggedData } from '../../plugins/core3d/interface/dragged-data.interface';
|
|
9
|
-
import {
|
|
9
|
+
import { HomedecoratorExternalSettingsInterface } from './homedecorator-external-settings.interface';
|
|
10
10
|
import { ToolbarIcon } from './toolbar-icon.interface';
|
|
11
11
|
import { LoadingOverlayData } from './loading-overlay-data.interface';
|
|
12
|
-
import { ArticleListObjectExtended } from '@colijnit/
|
|
12
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
13
13
|
export interface MessagesWithPayload {
|
|
14
14
|
[MessageType.StartWithPreset]: {
|
|
15
15
|
preset: Preset;
|
|
@@ -29,7 +29,7 @@ export interface MessagesWithPayload {
|
|
|
29
29
|
};
|
|
30
30
|
[MessageType.LoadIOneFurnitureIntoSceneBySKU]: {
|
|
31
31
|
sku: string;
|
|
32
|
-
settings:
|
|
32
|
+
settings: HomedecoratorExternalSettingsInterface;
|
|
33
33
|
position: {
|
|
34
34
|
x: number;
|
|
35
35
|
y: number;
|
|
@@ -2,6 +2,7 @@ import { BehaviorSubject, Subject } from 'rxjs';
|
|
|
2
2
|
import { Selection } from '@colijnit/configuratorapi/build/model/selection';
|
|
3
3
|
import { Answer } from '@colijnit/configuratorapi/build/model/answer';
|
|
4
4
|
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
5
|
+
import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class HomedecoratorAppEventService {
|
|
7
8
|
instanceSet: BehaviorSubject<string>;
|
|
@@ -18,6 +19,7 @@ export declare class HomedecoratorAppEventService {
|
|
|
18
19
|
article: string | ArticleExtended;
|
|
19
20
|
quantity: number;
|
|
20
21
|
}>;
|
|
22
|
+
addExternalSourceToCart: Subject<ExternalSourceArticleAddInterface>;
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorAppEventService, never>;
|
|
22
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<HomedecoratorAppEventService>;
|
|
23
25
|
}
|
|
@@ -5,7 +5,7 @@ import { Euler, Vector3 } from 'three';
|
|
|
5
5
|
import { DecoNode } from '@colijnit/configuratorapi/build/model/deco-node';
|
|
6
6
|
import { Selection } from '@colijnit/configuratorapi/build/model/selection';
|
|
7
7
|
import { AdjustableElementInterface } from '../../../core/interface/adjustable-element.interface';
|
|
8
|
-
import {
|
|
8
|
+
import { HomedecoratorExternalSettingsInterface } from '../../../core/interface/homedecorator-external-settings.interface';
|
|
9
9
|
/** Meta data for items. */
|
|
10
10
|
export interface Metadata {
|
|
11
11
|
itemName?: string;
|
|
@@ -34,7 +34,7 @@ export interface Metadata {
|
|
|
34
34
|
updatePivotOnCreate?: boolean;
|
|
35
35
|
elementConfiguration?: AdjustableElementInterface[];
|
|
36
36
|
obsolete?: boolean;
|
|
37
|
-
externalSettings?:
|
|
37
|
+
externalSettings?: HomedecoratorExternalSettingsInterface;
|
|
38
38
|
thirdPartyModel?: boolean;
|
|
39
39
|
usePivot?: boolean;
|
|
40
40
|
decos?: DecoNode[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
3
|
+
import { ConfigurationService } from '../../../core/service/configuration.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PostProcessingService implements OnDestroy {
|
|
6
|
+
private _configurationService;
|
|
7
|
+
private _composer;
|
|
8
|
+
private _n8aoPass;
|
|
9
|
+
private _scene;
|
|
10
|
+
private _renderer;
|
|
11
|
+
private _camera;
|
|
12
|
+
private _effectController;
|
|
13
|
+
private _postProcessingGui;
|
|
14
|
+
private _subs;
|
|
15
|
+
constructor(_configurationService: ConfigurationService);
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
init(renderer: WebGLRenderer, scene: Scene, camera: PerspectiveCamera, width: number, height: number): void;
|
|
18
|
+
private _updatePass;
|
|
19
|
+
setSize(width: number, height: number): void;
|
|
20
|
+
render(): void;
|
|
21
|
+
showGui(): void;
|
|
22
|
+
hideGui(): void;
|
|
23
|
+
private _showHideGui;
|
|
24
|
+
private _createGui;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PostProcessingService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PostProcessingService>;
|
|
27
|
+
}
|
|
@@ -11,6 +11,7 @@ import { ViewModeService } from '../../../core/service/view-mode.service';
|
|
|
11
11
|
import { OutlineService } from './outline.service';
|
|
12
12
|
import { HomedecoratorSettingsService } from '../../../core/service/homedecorator-settings.service';
|
|
13
13
|
import { WebGLPathTracer } from 'three-gpu-pathtracer';
|
|
14
|
+
import { PostProcessingService } from './post-processing.service';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class SceneService implements OnDestroy {
|
|
16
17
|
private _cameraService;
|
|
@@ -22,6 +23,7 @@ export declare class SceneService implements OnDestroy {
|
|
|
22
23
|
private _viewModeService;
|
|
23
24
|
private _outlineService;
|
|
24
25
|
private _settingsService;
|
|
26
|
+
private _postProcessing;
|
|
25
27
|
set needsRender(value: boolean);
|
|
26
28
|
get needsRender(): boolean;
|
|
27
29
|
scene: Scene;
|
|
@@ -44,7 +46,7 @@ export declare class SceneService implements OnDestroy {
|
|
|
44
46
|
private _subs;
|
|
45
47
|
private _maxRenderSamples;
|
|
46
48
|
private _numberOfSamplesRendered;
|
|
47
|
-
constructor(_cameraService: CameraService, _configurationService: ConfigurationService, _xrService: XrService, _vrService: VrService, _arService: ArService, _messageBusService: MessageBusService, _viewModeService: ViewModeService, _outlineService: OutlineService, _settingsService: HomedecoratorSettingsService);
|
|
49
|
+
constructor(_cameraService: CameraService, _configurationService: ConfigurationService, _xrService: XrService, _vrService: VrService, _arService: ArService, _messageBusService: MessageBusService, _viewModeService: ViewModeService, _outlineService: OutlineService, _settingsService: HomedecoratorSettingsService, _postProcessing: PostProcessingService);
|
|
48
50
|
ngOnDestroy(): void;
|
|
49
51
|
getScene(): Scene;
|
|
50
52
|
set arMode(value: boolean);
|
|
@@ -58,6 +60,7 @@ export declare class SceneService implements OnDestroy {
|
|
|
58
60
|
private _initScene;
|
|
59
61
|
private _initCamera;
|
|
60
62
|
private _initOutline;
|
|
63
|
+
private _initPostProcessing;
|
|
61
64
|
private _initPathTracer;
|
|
62
65
|
private _initRenderer;
|
|
63
66
|
private _resizeRendererToDisplaySize;
|
package/app/plugins/product-catalog/own-collection-catalog/product-own-collection.component.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { HomedecoratorExternalSettingsInterface } from '../../../core/interface/homedecorator-external-settings.interface';
|
|
3
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ProductOwnCollectionComponent {
|
|
6
6
|
settings: any;
|
|
7
7
|
articleClick: EventEmitter<{
|
|
8
8
|
article: ArticleListObjectExtended;
|
|
9
|
-
settings?:
|
|
9
|
+
settings?: HomedecoratorExternalSettingsInterface;
|
|
10
10
|
}>;
|
|
11
11
|
arButtonClick: EventEmitter<{
|
|
12
12
|
article: ArticleListObjectExtended;
|
|
13
|
-
settings?:
|
|
13
|
+
settings?: HomedecoratorExternalSettingsInterface;
|
|
14
14
|
}>;
|
|
15
15
|
handleArticleClick(article: ArticleListObjectExtended): void;
|
|
16
16
|
handleArButtonClick(article: ArticleListObjectExtended): void;
|
|
@@ -14,9 +14,10 @@ import { CatalogService } from '@colijnit/catalog';
|
|
|
14
14
|
import { DynamicScriptService } from '../../../service/dynamic-script.service';
|
|
15
15
|
import { HomedecoratorConnectorService } from '../../../core/service/homedecorator-connector.service';
|
|
16
16
|
import { HomedecoratorConnectorAdapterService } from '../../../core/service/homedecorator-connector-adapter.service';
|
|
17
|
-
import {
|
|
18
|
-
import { ArticleListObjectExtended } from '@colijnit/configuratorapi/build/model/article-list-object-extended';
|
|
17
|
+
import { HomedecoratorExternalSettingsInterface } from '../../../core/interface/homedecorator-external-settings.interface';
|
|
19
18
|
import { ThirdPartyModelService } from '../../threedselector/threedselector/service/third-party-model.service';
|
|
19
|
+
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
20
|
+
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
20
21
|
import * as i0 from "@angular/core";
|
|
21
22
|
export declare class ProductCatalogComponent implements OnInit, OnDestroy {
|
|
22
23
|
settingsService: HomedecoratorSettingsService;
|
|
@@ -49,13 +50,10 @@ export declare class ProductCatalogComponent implements OnInit, OnDestroy {
|
|
|
49
50
|
ngOnInit(): Promise<void>;
|
|
50
51
|
ngOnDestroy(): void;
|
|
51
52
|
hideCatalog(): void;
|
|
52
|
-
handleArticleClick(data:
|
|
53
|
-
article: ArticleListObjectExtended;
|
|
54
|
-
settings: ExternalSettingsInterface;
|
|
55
|
-
}, catalogInfo?: ExternalCatalogStartupInfo): void;
|
|
53
|
+
handleArticleClick(data: ExternalSourceArticleClickInterface, catalogInfo?: ExternalCatalogStartupInfo): void;
|
|
56
54
|
handleArButtonClick(data: {
|
|
57
55
|
article: ArticleListObjectExtended;
|
|
58
|
-
settings:
|
|
56
|
+
settings: HomedecoratorExternalSettingsInterface;
|
|
59
57
|
}): void;
|
|
60
58
|
handleExternalSourceClick(source?: ExternalSourceViewmodel): Promise<void>;
|
|
61
59
|
handleShowOwnCollectionClick(event: MouseEvent): void;
|
|
@@ -67,6 +67,7 @@ export declare class FloorplannerComponent implements AfterViewInit, OnDestroy {
|
|
|
67
67
|
private _diagramScale;
|
|
68
68
|
private _cameraZoom;
|
|
69
69
|
private _lastTouchPoint;
|
|
70
|
+
private _readyToDraw;
|
|
70
71
|
readonly floorplannerMode: typeof FloorplannerMode;
|
|
71
72
|
readonly initialViewScale = 100;
|
|
72
73
|
readonly scalingFactor = 1.2;
|
|
@@ -35,6 +35,7 @@ export declare class SettingsComponent implements OnInit, OnDestroy {
|
|
|
35
35
|
rotationSnappingEnabled: boolean;
|
|
36
36
|
showCameraControls: boolean;
|
|
37
37
|
showLightControls: boolean;
|
|
38
|
+
showPostProcessingSettings: boolean;
|
|
38
39
|
showWalls: boolean;
|
|
39
40
|
showCeiling: boolean;
|
|
40
41
|
wallSnapping: boolean;
|
|
@@ -39,6 +39,7 @@ import { PermanentStoreService } from '../../../core/service/permanent-store.ser
|
|
|
39
39
|
import { CustomButton } from '../../../core/model/custom-button';
|
|
40
40
|
import { HomedecoratorAppEventService } from '../../../core/service/homedecorator-app-event.service';
|
|
41
41
|
import { HomedecoratorConnectorService } from '../../../core/service/homedecorator-connector.service';
|
|
42
|
+
import { HomedecoratorConnectorAdapterService } from '../../../core/service/homedecorator-connector-adapter.service';
|
|
42
43
|
import * as i0 from "@angular/core";
|
|
43
44
|
export declare class RoomPlannerComponent implements OnInit, OnDestroy, PluginInterface {
|
|
44
45
|
iconService: HomedecoratorIconCacheService;
|
|
@@ -67,6 +68,7 @@ export declare class RoomPlannerComponent implements OnInit, OnDestroy, PluginIn
|
|
|
67
68
|
private _permanentStoreService;
|
|
68
69
|
private _appEventService;
|
|
69
70
|
private _connectorService;
|
|
71
|
+
private _connectorAdapterService;
|
|
70
72
|
floorplanner: FloorplannerComponent;
|
|
71
73
|
toolbarIconLibrary: TemplateRef<any>;
|
|
72
74
|
toolbarIconAccessoires: TemplateRef<any>;
|
|
@@ -133,7 +135,7 @@ export declare class RoomPlannerComponent implements OnInit, OnDestroy, PluginIn
|
|
|
133
135
|
private _mode;
|
|
134
136
|
private _catalogIsShown;
|
|
135
137
|
private _blockLeftSideBar;
|
|
136
|
-
constructor(iconService: HomedecoratorIconCacheService, viewModeService: ViewModeService, modelsService: ModelsService, _presetsService: PresetsService, _appService: HomedecoratorAppService, _screenAnalysis: ScreenSizeAnalysisService, _cd: ChangeDetectorRef, _utilsService: UtilsService, _messageService: MessageBusService, _dialog: MatDialog, _configurationService: ConfigurationService, _floorplanService: FloorplanService, _sceneService: SceneService, _hudService: HudService, _roomService: RoomService, _cameraService: CameraService, _itemService: ItemService, _itemSerializationService: ItemSerializationService, _lightsService: LightsService, _arService: ArService, itemService: ItemService, settingsService: HomedecoratorSettingsService, _googleTagManager: GoogleTagManagerService, _permanentStoreService: PermanentStoreService, _appEventService: HomedecoratorAppEventService, _connectorService: HomedecoratorConnectorService);
|
|
138
|
+
constructor(iconService: HomedecoratorIconCacheService, viewModeService: ViewModeService, modelsService: ModelsService, _presetsService: PresetsService, _appService: HomedecoratorAppService, _screenAnalysis: ScreenSizeAnalysisService, _cd: ChangeDetectorRef, _utilsService: UtilsService, _messageService: MessageBusService, _dialog: MatDialog, _configurationService: ConfigurationService, _floorplanService: FloorplanService, _sceneService: SceneService, _hudService: HudService, _roomService: RoomService, _cameraService: CameraService, _itemService: ItemService, _itemSerializationService: ItemSerializationService, _lightsService: LightsService, _arService: ArService, itemService: ItemService, settingsService: HomedecoratorSettingsService, _googleTagManager: GoogleTagManagerService, _permanentStoreService: PermanentStoreService, _appEventService: HomedecoratorAppEventService, _connectorService: HomedecoratorConnectorService, _connectorAdapterService: HomedecoratorConnectorAdapterService);
|
|
137
139
|
handleDocKeyDown(event: KeyboardEvent): void;
|
|
138
140
|
get selectedEdges(): any[];
|
|
139
141
|
ngOnInit(): Promise<void>;
|