@colijnit/inphoto 301.1.5 → 301.1.7
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/fesm2022/colijnit-inphoto.mjs +930 -337
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/index.d.ts +197 -19
- package/lib/component/image-to-room/style/_layout.scss +22 -0
- package/lib/component/image-to-room/style/_material-definition.scss +10 -0
- package/lib/component/image-to-room/style/_theme.scss +12 -0
- package/lib/component/image-to-room/style/material.scss +3 -0
- package/package.json +12 -12
- package/assets/01-bohemian.jpg +0 -0
- package/assets/02-mid-century-modern.jpg +0 -0
- package/assets/03-rustic-farmhouse.jpg +0 -0
- package/assets/04-coastal-nautical.jpg +0 -0
- package/assets/05-art-deco.jpg +0 -0
- package/assets/06-eclectic.jpg +0 -0
- package/assets/07-japanese-zen.jpg +0 -0
- package/assets/08-modern.jpg +0 -0
- package/assets/09-contemporary.jpg +0 -0
- package/assets/10-minimalist.jpg +0 -0
- package/assets/11-scandinavian.jpg +0 -0
- package/assets/12-industrial.jpg +0 -0
- package/assets/13-traditional.jpg +0 -0
- package/assets/14-transitional.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-01.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-02.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-03.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-04.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-01.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-02.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-03.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-04.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-05.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-06.jpg +0 -0
- package/assets/inphoto-add-products-tile.jpg +0 -0
- package/assets/inphoto-add-products.jpg +0 -0
- package/assets/inphoto-change-floorl.jpg +0 -0
- package/assets/inphoto-change-wall.jpg +0 -0
- package/assets/inphoto-make-selection.jpg +0 -0
- package/assets/inphoto-redesign-ai.jpg +0 -0
- package/assets/inphoto-remove-all.jpg +0 -0
- package/assets/inphoto-select-all.png +0 -0
- package/assets/inphoto-single-select.png +0 -0
- package/assets/room-01-living-room.jpg +0 -0
- package/assets/room-02-kitchen.jpg +0 -0
- package/assets/room-03-dining-room.jpg +0 -0
- package/assets/room-04-bathroom.jpg +0 -0
- package/assets/room-05-bedroom.jpg +0 -0
- package/assets/room-06-kids-room.jpg +0 -0
- package/assets/room-07-home-office.jpg +0 -0
- package/assets/room-08-home-bar.jpg +0 -0
package/index.d.ts
CHANGED
|
@@ -15,8 +15,9 @@ import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/dat
|
|
|
15
15
|
import { ExternalCatalogStartupInfoRequest } from '@colijnit/articleapi/build/model/external-catalog-startup-info-request';
|
|
16
16
|
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
17
17
|
import * as i6 from '@colijnit/configurator';
|
|
18
|
-
import { ConfigurationResultObject, ConfiguringService, ConfiguratorEventService } from '@colijnit/configurator';
|
|
18
|
+
import { ConfigurationResultObject, ConfiguringService, ConfiguratorEventService, ConfiguratorConnectorService, ConfiguratorErrorMessage } from '@colijnit/configurator';
|
|
19
19
|
import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
|
|
20
|
+
import { RenderSettingsService, RenderConnectorService, RenderService, RenderEventService } from '@colijnit/render';
|
|
20
21
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
21
22
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
22
23
|
import * as i2 from '@colijnit/corecomponents_v12';
|
|
@@ -25,7 +26,6 @@ import * as i7 from '@angular/cdk/drag-drop';
|
|
|
25
26
|
import * as i4$1 from '@angular/common';
|
|
26
27
|
import * as i5 from '@colijnit/utilities';
|
|
27
28
|
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
28
|
-
import { RenderConnectorService, RenderService, RenderEventService } from '@colijnit/render';
|
|
29
29
|
|
|
30
30
|
declare class InphotoDictionaryService {
|
|
31
31
|
get language(): string;
|
|
@@ -64,6 +64,7 @@ declare class Settings extends Options {
|
|
|
64
64
|
currencySymbol: string;
|
|
65
65
|
session: any;
|
|
66
66
|
assetPath: string;
|
|
67
|
+
applicationAssetPath: string;
|
|
67
68
|
threeDAssetPath: string;
|
|
68
69
|
options: SettingOptions;
|
|
69
70
|
catalogParameters: GetArticlesForCatalogRequest;
|
|
@@ -125,6 +126,94 @@ declare class ArticleConfiguration {
|
|
|
125
126
|
placement2D: Image2DPlacement;
|
|
126
127
|
}
|
|
127
128
|
|
|
129
|
+
declare enum WallSource {
|
|
130
|
+
Inferred = "inferred",
|
|
131
|
+
Reconstructed = "reconstructed"
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare enum OpeningType {
|
|
135
|
+
Window = "window",
|
|
136
|
+
Door = "door"
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare class RoomCoordinateSystem {
|
|
140
|
+
handedness: string;
|
|
141
|
+
upAxis: string;
|
|
142
|
+
forwardAxis: string;
|
|
143
|
+
rightAxis: string;
|
|
144
|
+
origin: string;
|
|
145
|
+
static fromJson(json: any): RoomCoordinateSystem;
|
|
146
|
+
}
|
|
147
|
+
declare class RoomSceneMetadata {
|
|
148
|
+
units: string;
|
|
149
|
+
coordinateSystem: RoomCoordinateSystem;
|
|
150
|
+
floorLeveled: boolean;
|
|
151
|
+
ceilingHeight: number;
|
|
152
|
+
static fromJson(json: any): RoomSceneMetadata;
|
|
153
|
+
}
|
|
154
|
+
declare class RoomCameraPose {
|
|
155
|
+
location: Vector3;
|
|
156
|
+
forward: Vector3;
|
|
157
|
+
up: Vector3;
|
|
158
|
+
right: Vector3;
|
|
159
|
+
static fromJson(json: any): RoomCameraPose;
|
|
160
|
+
}
|
|
161
|
+
declare class RoomCamera {
|
|
162
|
+
pose: RoomCameraPose;
|
|
163
|
+
intrinsics: Vector3[];
|
|
164
|
+
imageWidth: number;
|
|
165
|
+
imageHeight: number;
|
|
166
|
+
fovHorizontal: number;
|
|
167
|
+
fovVertical: number;
|
|
168
|
+
static fromJson(json: any): RoomCamera;
|
|
169
|
+
}
|
|
170
|
+
declare class RoomCorner {
|
|
171
|
+
id: string;
|
|
172
|
+
position: Vector3;
|
|
173
|
+
static fromJson(json: any): RoomCorner;
|
|
174
|
+
}
|
|
175
|
+
declare class RoomFloor {
|
|
176
|
+
polygon: Vector3[];
|
|
177
|
+
normal: Vector3;
|
|
178
|
+
static fromJson(json: any): RoomFloor;
|
|
179
|
+
}
|
|
180
|
+
declare class RoomWall {
|
|
181
|
+
id: string;
|
|
182
|
+
corner1Id: string;
|
|
183
|
+
corner2Id: string;
|
|
184
|
+
height: number;
|
|
185
|
+
polygon: Vector3[];
|
|
186
|
+
normal: Vector3;
|
|
187
|
+
source: WallSource;
|
|
188
|
+
heightReconstructed: number;
|
|
189
|
+
static fromJson(json: any): RoomWall;
|
|
190
|
+
}
|
|
191
|
+
declare class RoomImageBoundingBox {
|
|
192
|
+
x1: number;
|
|
193
|
+
y1: number;
|
|
194
|
+
x2: number;
|
|
195
|
+
y2: number;
|
|
196
|
+
static fromJson(json: number[]): RoomImageBoundingBox;
|
|
197
|
+
}
|
|
198
|
+
declare class RoomOpening {
|
|
199
|
+
id: string;
|
|
200
|
+
type: OpeningType;
|
|
201
|
+
wallId: string;
|
|
202
|
+
polygon: Vector3[];
|
|
203
|
+
imageBoundingBox: RoomImageBoundingBox;
|
|
204
|
+
static fromJson(json: any): RoomOpening;
|
|
205
|
+
}
|
|
206
|
+
declare class RoomSceneResponse {
|
|
207
|
+
image: string;
|
|
208
|
+
metadata: RoomSceneMetadata;
|
|
209
|
+
camera: RoomCamera;
|
|
210
|
+
corners: RoomCorner[];
|
|
211
|
+
floor: RoomFloor;
|
|
212
|
+
walls: RoomWall[];
|
|
213
|
+
openings: RoomOpening[];
|
|
214
|
+
static fromJson(json: any): RoomSceneResponse;
|
|
215
|
+
}
|
|
216
|
+
|
|
128
217
|
declare class InphotoEventService {
|
|
129
218
|
onProcessRoomReceived: Subject<SceneBuildObject>;
|
|
130
219
|
openCatalog: Subject<boolean>;
|
|
@@ -135,6 +224,7 @@ declare class InphotoEventService {
|
|
|
135
224
|
updateCanvasMaskColor: Subject<boolean>;
|
|
136
225
|
clearMarkedCanvas: Subject<void>;
|
|
137
226
|
onGeneratedImageReceived: Subject<void>;
|
|
227
|
+
onRoomDataFromImageReceived: Subject<RoomSceneResponse>;
|
|
138
228
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoEventService, never>;
|
|
139
229
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoEventService>;
|
|
140
230
|
}
|
|
@@ -223,6 +313,17 @@ declare class SegmentationResponse {
|
|
|
223
313
|
contours: any[];
|
|
224
314
|
}
|
|
225
315
|
|
|
316
|
+
declare class SegmentationObject {
|
|
317
|
+
id: number;
|
|
318
|
+
label: string;
|
|
319
|
+
contours: number[][][];
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare class SegmentationBaseObject {
|
|
323
|
+
job_id: string;
|
|
324
|
+
objects: SegmentationObject[];
|
|
325
|
+
}
|
|
326
|
+
|
|
226
327
|
declare class ExternalConnector {
|
|
227
328
|
loginResponse: LoginResponse;
|
|
228
329
|
connector: Connector;
|
|
@@ -243,6 +344,7 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
243
344
|
mainUrl: string;
|
|
244
345
|
mainSchema: string;
|
|
245
346
|
mainVersion: string;
|
|
347
|
+
private readonly _interval;
|
|
246
348
|
get connector(): Configurator;
|
|
247
349
|
get articleApi(): Articles;
|
|
248
350
|
get mainApi(): MainApi;
|
|
@@ -274,6 +376,7 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
274
376
|
processEmptyRoom(canvasImage: string): Promise<CreatedImageResponse>;
|
|
275
377
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle, aspect_ratio: AspectRatio, image_size: RenderSize): Promise<CreatedImageResponse>;
|
|
276
378
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
379
|
+
prepareSegmentation(image: string): Promise<SegmentationBaseObject>;
|
|
277
380
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
278
381
|
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
279
382
|
getRoomTypes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -281,9 +384,24 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
281
384
|
getDecorationStyles(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
282
385
|
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
283
386
|
inPhotoGenerate(image: string, prompt: string): Promise<DataServiceResponseData>;
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* Unreal / HDH call to get better room data
|
|
390
|
+
*
|
|
391
|
+
* */
|
|
392
|
+
getRoomDataFromImage(image: string, skipInpainting: boolean): Promise<RoomSceneResponse>;
|
|
393
|
+
uploadImageForUnreal(image: string, skipInpainting?: boolean): Promise<string>;
|
|
394
|
+
handleProcessRoomJob(jobId: string): Promise<any>;
|
|
284
395
|
private _handleRoomData;
|
|
285
396
|
private _processRoom;
|
|
286
397
|
private _getJobStatus;
|
|
398
|
+
private _handleJobStatusResponse;
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* This function should be temp.
|
|
402
|
+
* While the backend struggles to return predictable data, everything should be try catch and this is kinda clean.
|
|
403
|
+
*
|
|
404
|
+
* */
|
|
287
405
|
private _request;
|
|
288
406
|
private _getResponseError;
|
|
289
407
|
private _loadRoom;
|
|
@@ -294,6 +412,7 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
294
412
|
declare class InphotoSettingsService {
|
|
295
413
|
private _dictionary;
|
|
296
414
|
private _connectorAdapterService;
|
|
415
|
+
private _renderSettingsService;
|
|
297
416
|
readonly languageCodeToDictionary: Map<string, string>;
|
|
298
417
|
get languageCode(): string;
|
|
299
418
|
set languageCode(value: string);
|
|
@@ -303,19 +422,13 @@ declare class InphotoSettingsService {
|
|
|
303
422
|
settingsLoaded: BehaviorSubject<boolean>;
|
|
304
423
|
private _languageCode;
|
|
305
424
|
private _settings;
|
|
306
|
-
constructor(_dictionary: InphotoDictionaryService, _connectorAdapterService: InPhotoConnectorAdapterService);
|
|
425
|
+
constructor(_dictionary: InphotoDictionaryService, _connectorAdapterService: InPhotoConnectorAdapterService, _renderSettingsService: RenderSettingsService);
|
|
307
426
|
createSettingsFromObject(obj: any): void;
|
|
308
427
|
initialize(options?: Settings): Promise<void>;
|
|
309
428
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoSettingsService, never>;
|
|
310
429
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSettingsService>;
|
|
311
430
|
}
|
|
312
431
|
|
|
313
|
-
declare class SegmentationObject {
|
|
314
|
-
id: number;
|
|
315
|
-
label: string;
|
|
316
|
-
contours: number[][][];
|
|
317
|
-
}
|
|
318
|
-
|
|
319
432
|
declare class InPhotoConnectorService {
|
|
320
433
|
private _connectorAdapterService;
|
|
321
434
|
private _settingsService;
|
|
@@ -343,8 +456,10 @@ declare class InPhotoConnectorService {
|
|
|
343
456
|
*
|
|
344
457
|
* */
|
|
345
458
|
uploadRoomImage(image: string, skipInpainting?: boolean): Promise<SceneBuildObject>;
|
|
459
|
+
getRoomDataFromImage(image: string, skipInpainting?: boolean): Promise<RoomSceneResponse>;
|
|
346
460
|
processDecorateImage(canvasImage: string, style: EnhanceStyle): Promise<DecorateResponse>;
|
|
347
461
|
processEmptyRoom(canvasImage: string): Promise<CreatedImageResponse>;
|
|
462
|
+
prepareSegmentation(image: string): Promise<SegmentationBaseObject>;
|
|
348
463
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle, aspect_ratio: AspectRatio, image_size: RenderSize): Promise<CreatedImageResponse>;
|
|
349
464
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
350
465
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
@@ -738,6 +853,7 @@ declare class ImageUpload implements OnDestroy {
|
|
|
738
853
|
readonly icons: typeof Icon;
|
|
739
854
|
showClass(): boolean;
|
|
740
855
|
multiUpload: boolean;
|
|
856
|
+
useDragAndDrop: boolean;
|
|
741
857
|
set supportedFiles(value: FileTypes[]);
|
|
742
858
|
get supportedFiles(): FileTypes[];
|
|
743
859
|
set compactMode(value: boolean);
|
|
@@ -761,7 +877,7 @@ declare class ImageUpload implements OnDestroy {
|
|
|
761
877
|
private _handleSetSupportedFiles;
|
|
762
878
|
private _setAcceptAttr;
|
|
763
879
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageUpload, never>;
|
|
764
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageUpload, "co-image-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; "supportedFiles": { "alias": "supportedFiles"; "required": false; }; "compactMode": { "alias": "compactMode"; "required": false; }; }, { "uploadedFiles": "uploadedFiles"; }, never, never, false, never>;
|
|
880
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageUpload, "co-image-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; "useDragAndDrop": { "alias": "useDragAndDrop"; "required": false; }; "supportedFiles": { "alias": "supportedFiles"; "required": false; }; "compactMode": { "alias": "compactMode"; "required": false; }; }, { "uploadedFiles": "uploadedFiles"; }, never, never, false, never>;
|
|
765
881
|
}
|
|
766
882
|
|
|
767
883
|
declare class ImageUploadModule {
|
|
@@ -783,12 +899,30 @@ declare class AiImageStyleOption {
|
|
|
783
899
|
constructor(label: string, value: string, image: string);
|
|
784
900
|
}
|
|
785
901
|
|
|
902
|
+
declare class InphotoImageCacheService implements OnDestroy {
|
|
903
|
+
private _settingsService;
|
|
904
|
+
/**
|
|
905
|
+
*
|
|
906
|
+
* Service for loading and caching images that are used in tiles and lov's in the application
|
|
907
|
+
* Has nothing to do with uploaded user data.
|
|
908
|
+
*
|
|
909
|
+
* */
|
|
910
|
+
private _imageCache;
|
|
911
|
+
constructor(_settingsService: InphotoSettingsService);
|
|
912
|
+
ngOnDestroy(): void;
|
|
913
|
+
assetUrlResolver(assetName: string): string;
|
|
914
|
+
private _clearCache;
|
|
915
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoImageCacheService, never>;
|
|
916
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoImageCacheService>;
|
|
917
|
+
}
|
|
918
|
+
|
|
786
919
|
declare class ImageEnhancerStyleComponent implements OnInit {
|
|
787
920
|
connectorService: InPhotoConnectorService;
|
|
788
921
|
iconCacheService: InphotoIconCacheService;
|
|
789
922
|
private _changeDetection;
|
|
790
923
|
private _eventService;
|
|
791
924
|
private _dataService;
|
|
925
|
+
private _imageCacheService;
|
|
792
926
|
readonly icons: typeof Icon;
|
|
793
927
|
get showClass(): boolean;
|
|
794
928
|
canvasImage: string;
|
|
@@ -809,7 +943,7 @@ declare class ImageEnhancerStyleComponent implements OnInit {
|
|
|
809
943
|
renderSizeModel: RenderSize;
|
|
810
944
|
decorationStyleCollection: AiImageStyleOption[];
|
|
811
945
|
selectedDecorationStyle: AiImageStyleOption;
|
|
812
|
-
constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _dataService: InphotoDataService);
|
|
946
|
+
constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _dataService: InphotoDataService, _imageCacheService: InphotoImageCacheService);
|
|
813
947
|
ngOnInit(): Promise<void>;
|
|
814
948
|
handleRoomTypeChange(value: AiImageStyleOption): void;
|
|
815
949
|
handleChangeMode(event: DecorationStyle): void;
|
|
@@ -932,7 +1066,7 @@ declare class ImageTileComponent {
|
|
|
932
1066
|
iconCacheService: InphotoIconCacheService;
|
|
933
1067
|
private _dataService;
|
|
934
1068
|
readonly icons: typeof Icon;
|
|
935
|
-
readonly
|
|
1069
|
+
readonly colorOptions: ColorPalette[];
|
|
936
1070
|
showClass(): boolean;
|
|
937
1071
|
index: number;
|
|
938
1072
|
set activeItem(value: boolean);
|
|
@@ -1275,10 +1409,12 @@ declare class HeaderModule {
|
|
|
1275
1409
|
|
|
1276
1410
|
declare class StepTileComponent {
|
|
1277
1411
|
iconService: InphotoIconCacheService;
|
|
1412
|
+
private _imageCacheService;
|
|
1278
1413
|
readonly icons: typeof Icon;
|
|
1279
1414
|
showClass(): boolean;
|
|
1280
1415
|
tileIcon: Icon;
|
|
1281
|
-
tileImage: string;
|
|
1416
|
+
set tileImage(value: string);
|
|
1417
|
+
get tileImage(): string;
|
|
1282
1418
|
title: string;
|
|
1283
1419
|
description: string;
|
|
1284
1420
|
showNewBanner: boolean;
|
|
@@ -1287,9 +1423,11 @@ declare class StepTileComponent {
|
|
|
1287
1423
|
buttonIcon: Icon;
|
|
1288
1424
|
onClick: EventEmitter<void>;
|
|
1289
1425
|
onButtonClick: EventEmitter<void>;
|
|
1290
|
-
|
|
1426
|
+
private _image;
|
|
1427
|
+
constructor(iconService: InphotoIconCacheService, _imageCacheService: InphotoImageCacheService);
|
|
1291
1428
|
handleClick(): void;
|
|
1292
1429
|
handleButtonClick(): void;
|
|
1430
|
+
private _handleSetTileImage;
|
|
1293
1431
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepTileComponent, never>;
|
|
1294
1432
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepTileComponent, "co-step-tile", never, { "tileIcon": { "alias": "tileIcon"; "required": false; }; "tileImage": { "alias": "tileImage"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "showNewBanner": { "alias": "showNewBanner"; "required": false; }; "numberedStep": { "alias": "numberedStep"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; }, { "onClick": "onClick"; "onButtonClick": "onButtonClick"; }, never, never, false, never>;
|
|
1295
1433
|
}
|
|
@@ -1582,6 +1720,7 @@ declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
|
1582
1720
|
private _settingsService;
|
|
1583
1721
|
private _configuringService;
|
|
1584
1722
|
private _configuratorEventService;
|
|
1723
|
+
private _configuratorConnectorService;
|
|
1585
1724
|
private _cdk;
|
|
1586
1725
|
private _renderConnectorService;
|
|
1587
1726
|
private _renderService;
|
|
@@ -1629,6 +1768,8 @@ declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
|
1629
1768
|
showRenderLoader: boolean;
|
|
1630
1769
|
loadingTexts: string[];
|
|
1631
1770
|
private readonly _copyOffset2D;
|
|
1771
|
+
private readonly _userInputResultTypes;
|
|
1772
|
+
private readonly _placeableResultTypes;
|
|
1632
1773
|
private _room;
|
|
1633
1774
|
private _sceneReady;
|
|
1634
1775
|
private _currentArticleConfiguration;
|
|
@@ -1636,7 +1777,11 @@ declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
|
1636
1777
|
private _pendingImageArticleConfiguration;
|
|
1637
1778
|
private _pendingImageIsReconfigure;
|
|
1638
1779
|
private _backgroundSize;
|
|
1639
|
-
|
|
1780
|
+
private _article;
|
|
1781
|
+
private _instanceId;
|
|
1782
|
+
private _userActionNeeded;
|
|
1783
|
+
private _answerSelectedSub;
|
|
1784
|
+
constructor(iconService: InphotoIconCacheService, objectsService: InphotoItemService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _configuratorConnectorService: ConfiguratorConnectorService, _cdk: ChangeDetectorRef, _renderConnectorService: RenderConnectorService, _renderService: RenderService, _renderEventService: RenderEventService, _errorService: ErrorService, _inphotoHudService: InphotoHudService);
|
|
1640
1785
|
ngAfterViewInit(): void;
|
|
1641
1786
|
ngOnDestroy(): void;
|
|
1642
1787
|
init(): void;
|
|
@@ -1650,6 +1795,7 @@ declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
|
1650
1795
|
handleCopyObject(articleConfiguration: ArticleConfiguration): void;
|
|
1651
1796
|
handleDeleteObject(articleConfiguration: ArticleConfiguration): void;
|
|
1652
1797
|
showConfiguratorChange(show: boolean): void;
|
|
1798
|
+
handleConfiguratorErrorMessages(errorMessages: ConfiguratorErrorMessage[]): void;
|
|
1653
1799
|
handleChangeObjectScale(scale: Vector3): void;
|
|
1654
1800
|
handle2DImageSelected(articleConfiguration: ArticleConfiguration): void;
|
|
1655
1801
|
handle2DImageDeselected(): void;
|
|
@@ -1670,6 +1816,13 @@ declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
|
1670
1816
|
private _addArticleToScene;
|
|
1671
1817
|
private _prepareSettings;
|
|
1672
1818
|
private _handleFirstBuild;
|
|
1819
|
+
private _waitForUserInput;
|
|
1820
|
+
private _listenForAnswers;
|
|
1821
|
+
private _stopListeningForAnswers;
|
|
1822
|
+
private _handleAnswerSelected;
|
|
1823
|
+
private _cancelPendingArticle;
|
|
1824
|
+
private _handleFailedFirstBuild;
|
|
1825
|
+
private _getErrorMessageText;
|
|
1673
1826
|
private _handleBuildResult;
|
|
1674
1827
|
private _handleReconfigure2DImage;
|
|
1675
1828
|
private _continueConfiguration;
|
|
@@ -1839,11 +1992,33 @@ declare class UploadStartingImageModule {
|
|
|
1839
1992
|
static ɵinj: i0.ɵɵInjectorDeclaration<UploadStartingImageModule>;
|
|
1840
1993
|
}
|
|
1841
1994
|
|
|
1995
|
+
declare class ImageToRoomComponent {
|
|
1996
|
+
private _connectorService;
|
|
1997
|
+
readonly FileTypes: typeof FileTypes;
|
|
1998
|
+
showClass(): boolean;
|
|
1999
|
+
skipInpainting: boolean;
|
|
2000
|
+
useDragAndDrop: boolean;
|
|
2001
|
+
onRoomSceneResponseReceived: EventEmitter<RoomSceneResponse>;
|
|
2002
|
+
showLoader: boolean;
|
|
2003
|
+
loadingTexts: string[];
|
|
2004
|
+
constructor(_connectorService: InPhotoConnectorService);
|
|
2005
|
+
handleImageUpload(files: File[]): Promise<void>;
|
|
2006
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageToRoomComponent, never>;
|
|
2007
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageToRoomComponent, "co-image-to-room", never, { "skipInpainting": { "alias": "skipInpainting"; "required": false; }; "useDragAndDrop": { "alias": "useDragAndDrop"; "required": false; }; }, { "onRoomSceneResponseReceived": "onRoomSceneResponseReceived"; }, never, never, false, never>;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
declare class ImageToRoomModule {
|
|
2011
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageToRoomModule, never>;
|
|
2012
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageToRoomModule, [typeof ImageToRoomComponent], [typeof ImageUploadModule, typeof ProcessLoaderModule], [typeof ImageToRoomComponent]>;
|
|
2013
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ImageToRoomModule>;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1842
2016
|
declare class AppInitializerService {
|
|
1843
2017
|
private _settingsService;
|
|
1844
2018
|
private _connectorService;
|
|
2019
|
+
private _imageCacheService;
|
|
1845
2020
|
appInitialized: BehaviorSubject<boolean>;
|
|
1846
|
-
constructor(_settingsService: InphotoSettingsService, _connectorService: InPhotoConnectorService);
|
|
2021
|
+
constructor(_settingsService: InphotoSettingsService, _connectorService: InPhotoConnectorService, _imageCacheService: InphotoImageCacheService);
|
|
1847
2022
|
initializeApp(options?: Settings): Promise<void>;
|
|
1848
2023
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppInitializerService, never>;
|
|
1849
2024
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppInitializerService>;
|
|
@@ -1860,6 +2035,7 @@ declare class InPhotoComponent implements OnDestroy {
|
|
|
1860
2035
|
set settings(input: any);
|
|
1861
2036
|
set image(value: string);
|
|
1862
2037
|
debug: boolean;
|
|
2038
|
+
imageToRoom: boolean;
|
|
1863
2039
|
set useMockRoomData(value: boolean);
|
|
1864
2040
|
showImageUpload: boolean;
|
|
1865
2041
|
showImagePrepare: boolean;
|
|
@@ -1891,7 +2067,7 @@ declare class InPhotoComponent implements OnDestroy {
|
|
|
1891
2067
|
closeReadyToOpen(): void;
|
|
1892
2068
|
handleOpenCatalog(is2D?: boolean): void;
|
|
1893
2069
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
|
|
1894
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "image": { "alias": "image"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
2070
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "image": { "alias": "image"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "imageToRoom": { "alias": "imageToRoom"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1895
2071
|
}
|
|
1896
2072
|
|
|
1897
2073
|
declare enum SegmentationType {
|
|
@@ -1934,6 +2110,7 @@ declare class SegmentInpaintComponent implements OnDestroy {
|
|
|
1934
2110
|
segmentationObjects: SegmentationObject[];
|
|
1935
2111
|
clearButtonDisabled: boolean;
|
|
1936
2112
|
private _image;
|
|
2113
|
+
private _preparedObjects;
|
|
1937
2114
|
private _inpaintImageState;
|
|
1938
2115
|
private _subs;
|
|
1939
2116
|
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService, _eventService: InphotoEventService);
|
|
@@ -1954,6 +2131,7 @@ declare class SegmentInpaintComponent implements OnDestroy {
|
|
|
1954
2131
|
private _handleError;
|
|
1955
2132
|
private _resetSegmentation;
|
|
1956
2133
|
private _handleLoader;
|
|
2134
|
+
private _prepareSegmentation;
|
|
1957
2135
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1958
2136
|
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; }, never, never, false, never>;
|
|
1959
2137
|
}
|
|
@@ -1992,8 +2170,8 @@ declare class SideBarMenuModule {
|
|
|
1992
2170
|
|
|
1993
2171
|
declare class InPhotoModule {
|
|
1994
2172
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoModule, never>;
|
|
1995
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InPhotoModule, [typeof InPhotoComponent], [typeof UploadStartingImageModule, typeof ErrorDialogModule, typeof ProcessLoaderModule, typeof PrepareStartingImageModule, typeof InphotoThreedsceneModule, typeof PhotoEditorModule, typeof EditCanvasModule, typeof SegmentInpaintModule, typeof SideBarMenuModule, typeof InphotoCatalogModule], [typeof InPhotoComponent]>;
|
|
2173
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InPhotoModule, [typeof InPhotoComponent], [typeof UploadStartingImageModule, typeof ErrorDialogModule, typeof ProcessLoaderModule, typeof PrepareStartingImageModule, typeof InphotoThreedsceneModule, typeof PhotoEditorModule, typeof EditCanvasModule, typeof SegmentInpaintModule, typeof SideBarMenuModule, typeof InphotoCatalogModule, typeof ImageToRoomModule], [typeof InPhotoComponent]>;
|
|
1996
2174
|
static ɵinj: i0.ɵɵInjectorDeclaration<InPhotoModule>;
|
|
1997
2175
|
}
|
|
1998
2176
|
|
|
1999
|
-
export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoConnectorService, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoSettingsService, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, UploadStartingImageComponent, UploadStartingImageModule };
|
|
2177
|
+
export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageToRoomComponent, ImageToRoomModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoConnectorService, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoSettingsService, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, RoomCamera, RoomCameraPose, RoomCoordinateSystem, RoomCorner, RoomFloor, RoomImageBoundingBox, RoomOpening, RoomSceneMetadata, RoomSceneResponse, RoomWall, UploadStartingImageComponent, UploadStartingImageModule };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-to-room-layout') {
|
|
4
|
+
.co-image-to-room {
|
|
5
|
+
|
|
6
|
+
.image-to-room-container {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: var(--co-inphoto-image-to-room-full-size);
|
|
11
|
+
height: var(--co-inphoto-image-to-room-full-size);
|
|
12
|
+
min-height: var(--co-inphoto-image-to-room-min-height);
|
|
13
|
+
padding: var(--co-inphoto-image-to-room-padding);
|
|
14
|
+
box-sizing: var(--co-inphoto-image-to-room-box-sizing);
|
|
15
|
+
|
|
16
|
+
.co-image-upload {
|
|
17
|
+
width: var(--co-inphoto-image-to-room-full-size);
|
|
18
|
+
max-width: var(--co-inphoto-image-to-room-upload-max-width);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.co-image-to-room {
|
|
2
|
+
--co-inphoto-image-to-room-font-family: var(--co-inphoto-font-family);
|
|
3
|
+
--co-inphoto-image-to-room-font-size-text: var(--co-inphoto-font-size-text);
|
|
4
|
+
--co-inphoto-image-to-room-background: #eee;
|
|
5
|
+
--co-inphoto-image-to-room-full-size: 100%;
|
|
6
|
+
--co-inphoto-image-to-room-min-height: 100vh;
|
|
7
|
+
--co-inphoto-image-to-room-padding: 25px;
|
|
8
|
+
--co-inphoto-image-to-room-box-sizing: border-box;
|
|
9
|
+
--co-inphoto-image-to-room-upload-max-width: 500px;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-image-to-room-theme') {
|
|
4
|
+
.co-image-to-room {
|
|
5
|
+
font-family: var(--co-inphoto-image-to-room-font-family);
|
|
6
|
+
font-size: var(--co-inphoto-image-to-room-font-size-text);
|
|
7
|
+
|
|
8
|
+
.image-to-room-container {
|
|
9
|
+
background-color: var(--co-inphoto-image-to-room-background);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/inphoto",
|
|
3
|
-
"version": "301.1.
|
|
3
|
+
"version": "301.1.7",
|
|
4
4
|
"description": "Colijn IT inphoto module for Angular 20",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"@angular/common": ">=20.3.16",
|
|
12
12
|
"@angular/core": ">=20.3.16",
|
|
13
13
|
"@angular/forms": ">=20.3.16",
|
|
14
|
-
"@colijnit/articleapi": ">=301.1.
|
|
15
|
-
"@colijnit/catalog": ">=301.1.
|
|
16
|
-
"@colijnit/configurator": ">=301.1.
|
|
17
|
-
"@colijnit/configuratorapi": ">=301.1.
|
|
18
|
-
"@colijnit/corecomponents_v12": ">=301.1.
|
|
19
|
-
"@colijnit/ioneconnector": ">=301.1.
|
|
20
|
-
"@colijnit/mainapi": ">=301.1.
|
|
21
|
-
"@colijnit/render": ">=301.1.
|
|
22
|
-
"@colijnit/renderapi": ">=301.1.
|
|
23
|
-
"@colijnit/transactionapi": ">=301.1.0",
|
|
24
|
-
"@colijnit/utilities": ">=301.1.
|
|
14
|
+
"@colijnit/articleapi": ">=301.1.5 < 302",
|
|
15
|
+
"@colijnit/catalog": ">=301.1.7 < 302",
|
|
16
|
+
"@colijnit/configurator": ">=301.1.7 < 302",
|
|
17
|
+
"@colijnit/configuratorapi": ">=301.1.5 < 302",
|
|
18
|
+
"@colijnit/corecomponents_v12": ">=301.1.5 < 302",
|
|
19
|
+
"@colijnit/ioneconnector": ">=301.1.1 < 302",
|
|
20
|
+
"@colijnit/mainapi": ">=301.1.7 < 302",
|
|
21
|
+
"@colijnit/render": ">=301.1.3 < 302",
|
|
22
|
+
"@colijnit/renderapi": ">=301.1.1 < 302",
|
|
23
|
+
"@colijnit/transactionapi": ">=301.1.0 < 302",
|
|
24
|
+
"@colijnit/utilities": ">=301.1.1 < 302",
|
|
25
25
|
"@types/three": "0.178.1",
|
|
26
26
|
"rxjs": "^7.4.0",
|
|
27
27
|
"three": "0.178.0"
|
package/assets/01-bohemian.jpg
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/05-art-deco.jpg
DELETED
|
Binary file
|
package/assets/06-eclectic.jpg
DELETED
|
Binary file
|
|
Binary file
|
package/assets/08-modern.jpg
DELETED
|
Binary file
|
|
Binary file
|
package/assets/10-minimalist.jpg
DELETED
|
Binary file
|
|
Binary file
|
package/assets/12-industrial.jpg
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|