@colijnit/inphoto 300.1.6 → 300.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/inphoto-add-products-tile.jpg +0 -0
- package/assets/inphoto-change-floorl.jpg +0 -0
- package/assets/inphoto-change-wall.jpg +0 -0
- package/fesm2022/colijnit-inphoto.mjs +1372 -528
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/icons/layer_group_sharp_solid.svg +1 -0
- package/icons/paint_roller_sharp_solid.svg +1 -0
- package/index.d.ts +205 -57
- package/lib/component/ai-prompt/style/_layout.scss +76 -86
- package/lib/component/ai-prompt/style/_material-definition.scss +38 -6
- package/lib/component/ai-prompt/style/_theme.scss +78 -67
- package/lib/component/canvas-tool-bar/style/_layout.scss +63 -65
- package/lib/component/canvas-tool-bar/style/_material-definition.scss +37 -11
- package/lib/component/canvas-tool-bar/style/_theme.scss +108 -106
- package/lib/component/catalog/style/_layout.scss +68 -55
- package/lib/component/catalog/style/_material-definition.scss +22 -4
- package/lib/component/catalog/style/_theme.scss +43 -59
- package/lib/component/configuration-side-bar-menu/style/_layout.scss +33 -33
- package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +10 -6
- package/lib/component/configuration-side-bar-menu/style/_theme.scss +4 -1
- package/lib/component/edit-canvas/style/_layout.scss +85 -75
- package/lib/component/edit-canvas/style/_material-definition.scss +25 -3
- package/lib/component/edit-canvas/style/_theme.scss +61 -46
- package/lib/component/error-dialog/style/_layout.scss +36 -39
- package/lib/component/error-dialog/style/_material-definition.scss +12 -3
- package/lib/component/error-dialog/style/_theme.scss +17 -10
- package/lib/component/header/style/_layout.scss +20 -21
- package/lib/component/header/style/_material-definition.scss +8 -6
- package/lib/component/header/style/_theme.scss +7 -0
- package/lib/component/image-enhancer/style/_layout.scss +37 -38
- package/lib/component/image-enhancer/style/_material-definition.scss +13 -6
- package/lib/component/image-enhancer/style/_theme.scss +45 -43
- package/lib/component/image-enhancer-style/style/_layout.scss +65 -107
- package/lib/component/image-enhancer-style/style/_material-definition.scss +16 -3
- package/lib/component/image-enhancer-style/style/_theme.scss +120 -72
- package/lib/component/image-enhancer-upload/style/_layout.scss +48 -11
- package/lib/component/image-enhancer-upload/style/_material-definition.scss +14 -3
- package/lib/component/image-enhancer-upload/style/_theme.scss +66 -87
- package/lib/component/image-history/style/_layout.scss +57 -127
- package/lib/component/image-history/style/_material-definition.scss +20 -5
- package/lib/component/image-history/style/_theme.scss +25 -46
- package/lib/component/image-history-tile/style/_layout.scss +53 -56
- package/lib/component/image-history-tile/style/_material-definition.scss +15 -3
- package/lib/component/image-history-tile/style/_theme.scss +32 -28
- package/lib/component/image-overlay/style/_layout.scss +84 -0
- package/lib/component/image-overlay/style/_material-definition.scss +21 -0
- package/lib/component/image-overlay/style/_theme.scss +40 -0
- package/lib/component/image-overlay/style/material.scss +3 -0
- package/lib/component/image-process-complete/style/_layout.scss +42 -33
- package/lib/component/image-process-complete/style/_material-definition.scss +13 -5
- package/lib/component/image-process-complete/style/_theme.scss +24 -18
- package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +15 -17
- package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +9 -3
- package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +15 -12
- package/lib/component/image-tile/style/_layout.scss +102 -101
- package/lib/component/image-tile/style/_material-definition.scss +18 -3
- package/lib/component/image-tile/style/_theme.scss +58 -53
- package/lib/component/image-upload/style/_layout.scss +93 -103
- package/lib/component/image-upload/style/_material-definition.scss +35 -9
- package/lib/component/image-upload/style/_theme.scss +103 -80
- package/lib/component/inphoto/style/_layout.scss +11 -0
- package/lib/component/inphoto/style/_material-definition.scss +3 -1
- package/lib/component/inphoto/style/_theme.scss +2 -1
- package/lib/component/marker/style/_layout.scss +30 -0
- package/lib/component/marker/style/_material-definition.scss +12 -0
- package/lib/component/marker/style/_theme.scss +30 -0
- package/lib/component/marker/style/material.scss +3 -0
- package/lib/component/photo-editor/style/_layout.scss +38 -29
- package/lib/component/photo-editor/style/_material-definition.scss +8 -3
- package/lib/component/photo-editor/style/_theme.scss +2 -1
- package/lib/component/prepare-starting-image/style/_layout.scss +34 -26
- package/lib/component/prepare-starting-image/style/_material-definition.scss +11 -4
- package/lib/component/prepare-starting-image/style/_theme.scss +7 -0
- package/lib/component/process-loader/style/_layout.scss +74 -92
- package/lib/component/process-loader/style/_material-definition.scss +24 -6
- package/lib/component/process-loader/style/_theme.scss +128 -103
- package/lib/component/scene-context-menu/style/_layout.scss +59 -66
- package/lib/component/scene-context-menu/style/_material-definition.scss +27 -4
- package/lib/component/scene-context-menu/style/_theme.scss +57 -44
- package/lib/component/segment-inpaint/style/_layout.scss +51 -32
- package/lib/component/segment-inpaint/style/_material-definition.scss +11 -3
- package/lib/component/segment-inpaint/style/_theme.scss +29 -19
- package/lib/component/side-bar-menu/style/_layout.scss +26 -45
- package/lib/component/side-bar-menu/style/_material-definition.scss +12 -3
- package/lib/component/side-bar-menu/style/_theme.scss +32 -6
- package/lib/component/side-panel/style/_layout.scss +45 -40
- package/lib/component/side-panel/style/_material-definition.scss +16 -6
- package/lib/component/side-panel/style/_theme.scss +39 -44
- package/lib/component/step-tile/style/_layout.scss +50 -53
- package/lib/component/step-tile/style/_material-definition.scss +20 -6
- package/lib/component/step-tile/style/_theme.scss +78 -72
- package/lib/component/threedscene/style/_layout.scss +57 -47
- package/lib/component/threedscene/style/_material-definition.scss +12 -3
- package/lib/component/threedscene/style/_theme.scss +17 -8
- package/lib/component/upload-starting-image/style/_layout.scss +58 -51
- package/lib/component/upload-starting-image/style/_material-definition.scss +18 -3
- package/lib/component/upload-starting-image/style/_theme.scss +39 -46
- package/lib/style/_index.scss +0 -1
- package/lib/style/_variables.scss +5 -3
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { MainApi } from '@colijnit/mainapi';
|
|
|
10
10
|
import { Configurator } from '@colijnit/configuratorapi';
|
|
11
11
|
import { LoginResponse } from '@colijnit/ioneconnector/build/model/login-response';
|
|
12
12
|
import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
|
|
13
|
-
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
14
13
|
import * as i3 from '@colijnit/catalog';
|
|
15
14
|
import { CatalogExternalSourcesService, FilterOrder, CatalogService, ExternalSourceViewmodel } from '@colijnit/catalog';
|
|
16
15
|
import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
|
|
@@ -18,6 +17,7 @@ import { ExternalCatalogStartupInfoRequest } from '@colijnit/articleapi/build/mo
|
|
|
18
17
|
import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
|
|
19
18
|
import * as i6 from '@colijnit/configurator';
|
|
20
19
|
import { ConfigurationResultObject, ConfiguringService, ConfiguratorEventService } from '@colijnit/configurator';
|
|
20
|
+
import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
|
|
21
21
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
22
22
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
23
23
|
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
@@ -67,18 +67,29 @@ declare class Settings extends Options {
|
|
|
67
67
|
options: SettingOptions;
|
|
68
68
|
catalogParameters: GetArticlesForCatalogRequest;
|
|
69
69
|
infoPublicationCode: number;
|
|
70
|
+
mainUrl?: string;
|
|
71
|
+
mainSchema?: string;
|
|
72
|
+
mainVersion?: string;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
declare class ImageRoomResponse {
|
|
73
76
|
floorGeometry: FloorGeometry;
|
|
77
|
+
wallGeometry: WallGeometry[];
|
|
74
78
|
cameraData: CameraData;
|
|
75
|
-
static fromJson(
|
|
79
|
+
static fromJson(floorGeometryJson: any, wallGeometryJson: any): ImageRoomResponse;
|
|
76
80
|
}
|
|
77
81
|
declare class FloorGeometry {
|
|
78
82
|
boundaryPoints: Vector3[];
|
|
79
83
|
normal: Vector3;
|
|
80
84
|
static fromJson(json: any): FloorGeometry;
|
|
81
85
|
}
|
|
86
|
+
declare class WallGeometry {
|
|
87
|
+
boundaryPoints: Vector3[];
|
|
88
|
+
normal: Vector3;
|
|
89
|
+
segmentIndex: number;
|
|
90
|
+
static fromJson(json: any): WallGeometry;
|
|
91
|
+
static fromJsonArray(json: any): WallGeometry[];
|
|
92
|
+
}
|
|
82
93
|
declare class CameraData {
|
|
83
94
|
imageSize: number[];
|
|
84
95
|
imageWidth: number;
|
|
@@ -89,16 +100,15 @@ declare class CameraData {
|
|
|
89
100
|
|
|
90
101
|
declare class SceneBuildObject {
|
|
91
102
|
image: string;
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
floor: ImageRoomResponse;
|
|
104
|
+
walls: WallGeometry[];
|
|
105
|
+
constructor(image?: string, floor?: ImageRoomResponse);
|
|
94
106
|
}
|
|
95
107
|
|
|
96
108
|
declare class ArticleConfiguration {
|
|
97
109
|
sku: string;
|
|
98
110
|
instanceId: string;
|
|
99
111
|
externalSourceId: number;
|
|
100
|
-
externalSourceUserName: string;
|
|
101
|
-
externalSourcePassword: string;
|
|
102
112
|
externalSourceSchema: string;
|
|
103
113
|
externalSourceUrl: string;
|
|
104
114
|
configurationResult: ConfigurationResultObject;
|
|
@@ -208,8 +218,6 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
208
218
|
loginResponse: LoginResponse;
|
|
209
219
|
private _catalogDefinitions;
|
|
210
220
|
private _externalSources;
|
|
211
|
-
private _catalogDefinitionsOriginal;
|
|
212
|
-
private _externalSourcesOriginal;
|
|
213
221
|
private _connector?;
|
|
214
222
|
private _articleApi;
|
|
215
223
|
private _mainApi;
|
|
@@ -218,10 +226,10 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
218
226
|
constructor(_catalogExternalSourcesService: CatalogExternalSourcesService, _appEventService: InphotoEventService, _errorService: ErrorService, _loaderService: LoaderService);
|
|
219
227
|
ngOnDestroy(): void;
|
|
220
228
|
initConnector(options: Options, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<boolean>;
|
|
221
|
-
getExternalSourceFromId(id: number):
|
|
229
|
+
getExternalSourceFromId(id: number): ExternalSourceInfo;
|
|
222
230
|
prepareExternalSources(): Promise<void>;
|
|
223
231
|
getCatalogDefinitionsList(): Promise<CatalogDefinition[]>;
|
|
224
|
-
getExternalSource(externalSourceId: number): Promise<
|
|
232
|
+
getExternalSource(externalSourceId: number): Promise<ExternalSourceInfo>;
|
|
225
233
|
getWebViewStartupInfo(request: ExternalCatalogStartupInfoRequest): Promise<ExternalCatalogStartupInfo>;
|
|
226
234
|
/**
|
|
227
235
|
*
|
|
@@ -234,10 +242,11 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
234
242
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
235
243
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
236
244
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
237
|
-
segmentInpaint(
|
|
245
|
+
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
238
246
|
getRoomTypes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
239
247
|
getDecorationModes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
240
248
|
getDecorationStyles(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
249
|
+
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
241
250
|
private _handleRoomData;
|
|
242
251
|
private _processRoom;
|
|
243
252
|
private _getJobStatus;
|
|
@@ -265,6 +274,12 @@ declare class InphotoSettingsService {
|
|
|
265
274
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSettingsService>;
|
|
266
275
|
}
|
|
267
276
|
|
|
277
|
+
declare class SegmentationObject {
|
|
278
|
+
id: number;
|
|
279
|
+
label: string;
|
|
280
|
+
contours: number[][][];
|
|
281
|
+
}
|
|
282
|
+
|
|
268
283
|
declare class InPhotoConnectorService {
|
|
269
284
|
private _connectorAdapterService;
|
|
270
285
|
private _settingsService;
|
|
@@ -278,6 +293,7 @@ declare class InPhotoConnectorService {
|
|
|
278
293
|
private _roomTypes;
|
|
279
294
|
private _decorationModes;
|
|
280
295
|
private _decorationStyles;
|
|
296
|
+
private _boFactory;
|
|
281
297
|
constructor(_connectorAdapterService: InPhotoConnectorAdapterService, _settingsService: InphotoSettingsService);
|
|
282
298
|
initConnection(forceReload?: boolean, standAlone?: boolean): Promise<void>;
|
|
283
299
|
initConnector(options: any, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<boolean>;
|
|
@@ -296,10 +312,11 @@ declare class InPhotoConnectorService {
|
|
|
296
312
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
297
313
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
298
314
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
299
|
-
segmentInpaint(
|
|
315
|
+
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
300
316
|
getDecorationModes(showLoader?: boolean): Promise<string[]>;
|
|
301
317
|
getDecorationStyles(showLoader?: boolean): Promise<string[]>;
|
|
302
318
|
getRoomTypes(showLoader?: boolean): Promise<string[]>;
|
|
319
|
+
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<SegmentationObject[]>;
|
|
303
320
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoConnectorService, never>;
|
|
304
321
|
static ɵprov: i0.ɵɵInjectableDeclaration<InPhotoConnectorService>;
|
|
305
322
|
}
|
|
@@ -337,10 +354,12 @@ declare enum Icon {
|
|
|
337
354
|
ImageCircleXmarkSolidFull = "image_circle_xmark_solid_full",
|
|
338
355
|
ImageSolidFull = "image_solid_full",
|
|
339
356
|
InfoSolidFull = "info_solid_full",
|
|
357
|
+
LayerGroupSharpSolid = "layer_group_sharp_solid",
|
|
340
358
|
LightbulbRegularFull = "lightbulb_regular_full",
|
|
341
359
|
LockSolidFull = "lock_solid_full",
|
|
342
360
|
MinusSolidFull = "minus_solid_full",
|
|
343
361
|
PaintbrushRegular = "paintbrush_regular",
|
|
362
|
+
PaintRollerSharpSolid = "paint_roller_sharp_solid",
|
|
344
363
|
PenToSquareSolidFull = "pen_to_square_solid_full",
|
|
345
364
|
PlusSolidFull = "plus_solid_full",
|
|
346
365
|
RotateLeftSharpSolidFull = "rotate_left_sharp_solid_full",
|
|
@@ -381,6 +400,8 @@ declare class InphotoItemService implements OnDestroy {
|
|
|
381
400
|
get selectedObject(): ArticleConfiguration | undefined;
|
|
382
401
|
set floorPlane(plane: Mesh);
|
|
383
402
|
get floorPlane(): Mesh;
|
|
403
|
+
set wallPlanes(planes: Mesh[]);
|
|
404
|
+
get wallPlanes(): Mesh[];
|
|
384
405
|
set floorItems(items: ArticleConfiguration[]);
|
|
385
406
|
get floorItems(): ArticleConfiguration[];
|
|
386
407
|
set floorBounds(value: Box3);
|
|
@@ -388,6 +409,7 @@ declare class InphotoItemService implements OnDestroy {
|
|
|
388
409
|
private _selectedObject;
|
|
389
410
|
private _floorItems;
|
|
390
411
|
private _floorPlane;
|
|
412
|
+
private _wallPlanes;
|
|
391
413
|
private _floorBounds;
|
|
392
414
|
ngOnDestroy(): void;
|
|
393
415
|
addFloorItem(item: ArticleConfiguration): void;
|
|
@@ -422,6 +444,7 @@ declare class InphotoSceneService implements OnDestroy {
|
|
|
422
444
|
getObjectByUUID(uuid: string): Object3D | undefined;
|
|
423
445
|
removeObject(object: Object3D): void;
|
|
424
446
|
addFloorToScene(floorMesh: Mesh): void;
|
|
447
|
+
addWallsToScene(wallMeshes: Mesh[]): void;
|
|
425
448
|
setPlacementMarker(marker: Object3D | null): void;
|
|
426
449
|
private _prepLights;
|
|
427
450
|
private _animate;
|
|
@@ -567,7 +590,7 @@ declare class InphotoCatalogComponent implements OnInit, OnDestroy {
|
|
|
567
590
|
purchaseFilterOrders: FilterOrder[];
|
|
568
591
|
logisticsFilterOrders: FilterOrder[];
|
|
569
592
|
subs: Subscription[];
|
|
570
|
-
externalSource:
|
|
593
|
+
externalSource: ExternalSourceInfo;
|
|
571
594
|
catalogDefinition: CatalogDefinition;
|
|
572
595
|
catalogInfo: ExternalCatalogStartupInfo;
|
|
573
596
|
externalCatalogName: string;
|
|
@@ -673,6 +696,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
673
696
|
readonly icons: typeof Icon;
|
|
674
697
|
showClass(): boolean;
|
|
675
698
|
canvas: ElementRef<HTMLCanvasElement>;
|
|
699
|
+
canvasContainer: ElementRef<HTMLDivElement>;
|
|
676
700
|
set image(value: string);
|
|
677
701
|
get image(): string;
|
|
678
702
|
set segmentationInPainting(value: SegmentationResponse);
|
|
@@ -682,6 +706,8 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
682
706
|
get dragMode(): boolean;
|
|
683
707
|
set brushSize(value: number);
|
|
684
708
|
get brushSize(): number;
|
|
709
|
+
set segmentationObjects(value: SegmentationObject[]);
|
|
710
|
+
get segmentationObjects(): SegmentationObject[];
|
|
685
711
|
onSegmentationPointClick: EventEmitter<SegmentationPoint>;
|
|
686
712
|
imageState: EventEmitter<string>;
|
|
687
713
|
set maskColor(color: ColorPalette);
|
|
@@ -694,6 +720,9 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
694
720
|
ctx: CanvasRenderingContext2D;
|
|
695
721
|
drawing: boolean;
|
|
696
722
|
maskOpacity: number;
|
|
723
|
+
hoveredObjectLabel: string | null;
|
|
724
|
+
hoveredLabelX: number;
|
|
725
|
+
hoveredLabelY: number;
|
|
697
726
|
private _backgroundImage;
|
|
698
727
|
private _maskLayers;
|
|
699
728
|
private _currentStroke;
|
|
@@ -701,6 +730,8 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
701
730
|
private _segCtx;
|
|
702
731
|
private _exportCanvas;
|
|
703
732
|
private _exportCtx;
|
|
733
|
+
private _segmentationObjects;
|
|
734
|
+
private _hoveredObject;
|
|
704
735
|
private _image;
|
|
705
736
|
private _inpaintMode;
|
|
706
737
|
private _eraserMode;
|
|
@@ -745,12 +776,18 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
745
776
|
private _getBufferCoords;
|
|
746
777
|
private _getCanvasCoords;
|
|
747
778
|
private _drawSegmentation;
|
|
779
|
+
private _updateHoveredObject;
|
|
780
|
+
private _findSegmentationObjectAtPoint;
|
|
781
|
+
private _isPointInPolygon;
|
|
782
|
+
private _drawHoveredSegmentationObject;
|
|
783
|
+
private _applyHoveredObjectAsMask;
|
|
784
|
+
private _fillContours;
|
|
748
785
|
private _ensureSegCanvas;
|
|
749
786
|
private _saveCanvas;
|
|
750
787
|
private _setPlainCursor;
|
|
751
788
|
private _colorToString;
|
|
752
789
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditCanvasComponent, never>;
|
|
753
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditCanvasComponent, "co-edit-canvas", never, { "image": { "alias": "image"; "required": false; }; "segmentationInPainting": { "alias": "segmentationInPainting"; "required": false; }; "inpaintMode": { "alias": "inpaintMode"; "required": false; }; "eraserMode": { "alias": "eraserMode"; "required": false; }; "dragMode": { "alias": "dragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; }, { "onSegmentationPointClick": "onSegmentationPointClick"; "imageState": "imageState"; }, never, never, false, never>;
|
|
790
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditCanvasComponent, "co-edit-canvas", never, { "image": { "alias": "image"; "required": false; }; "segmentationInPainting": { "alias": "segmentationInPainting"; "required": false; }; "inpaintMode": { "alias": "inpaintMode"; "required": false; }; "eraserMode": { "alias": "eraserMode"; "required": false; }; "dragMode": { "alias": "dragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "segmentationObjects": { "alias": "segmentationObjects"; "required": false; }; }, { "onSegmentationPointClick": "onSegmentationPointClick"; "imageState": "imageState"; }, never, never, false, never>;
|
|
754
791
|
}
|
|
755
792
|
|
|
756
793
|
declare class EditCanvasModule {
|
|
@@ -893,7 +930,7 @@ declare class ImageEnhancerStyleComponent implements OnInit {
|
|
|
893
930
|
|
|
894
931
|
declare class AiPromptComponent {
|
|
895
932
|
private _changeDetection;
|
|
896
|
-
|
|
933
|
+
showClass(): boolean;
|
|
897
934
|
customPrompt: string;
|
|
898
935
|
set promptMode(value: PromptStyle);
|
|
899
936
|
get promptMode(): PromptStyle;
|
|
@@ -1012,7 +1049,7 @@ declare class ImageEnhancerModule {
|
|
|
1012
1049
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerModule>;
|
|
1013
1050
|
}
|
|
1014
1051
|
|
|
1015
|
-
declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
1052
|
+
declare class ImageHistoryComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
1016
1053
|
dataService: InphotoDataService;
|
|
1017
1054
|
iconService: InphotoIconCacheService;
|
|
1018
1055
|
private _eventService;
|
|
@@ -1020,10 +1057,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1020
1057
|
private tilesRow?;
|
|
1021
1058
|
showClass(): boolean;
|
|
1022
1059
|
onResize(): void;
|
|
1023
|
-
onEscape(): void;
|
|
1024
|
-
onArrowLeft(event: KeyboardEvent): void;
|
|
1025
|
-
onArrowRight(event: KeyboardEvent): void;
|
|
1026
1060
|
setImageAsBackground: EventEmitter<string>;
|
|
1061
|
+
editIn3D: EventEmitter<string>;
|
|
1062
|
+
removeObjects: EventEmitter<string>;
|
|
1027
1063
|
displayedImages: string[];
|
|
1028
1064
|
selectedImage: string;
|
|
1029
1065
|
showFullImage: boolean;
|
|
@@ -1031,7 +1067,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1031
1067
|
canScrollLeft: boolean;
|
|
1032
1068
|
canScrollRight: boolean;
|
|
1033
1069
|
private _subs;
|
|
1070
|
+
private _tilesObserver;
|
|
1034
1071
|
constructor(dataService: InphotoDataService, iconService: InphotoIconCacheService, _eventService: InphotoEventService);
|
|
1072
|
+
ngOnInit(): void;
|
|
1035
1073
|
ngAfterViewInit(): void;
|
|
1036
1074
|
ngOnDestroy(): void;
|
|
1037
1075
|
setDataCollection(): void;
|
|
@@ -1040,16 +1078,11 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1040
1078
|
handleCloseFullImage(): void;
|
|
1041
1079
|
handleRemoveImageFromHistory(event: string): void;
|
|
1042
1080
|
handleDownloadImage(event: string): void;
|
|
1043
|
-
handleDownloadFullImage(): void;
|
|
1044
|
-
handleDeleteFullImage(): void;
|
|
1045
1081
|
scroll(direction: number): void;
|
|
1046
1082
|
onWheel(event: WheelEvent): void;
|
|
1047
1083
|
updateScrollState(): void;
|
|
1048
|
-
showNextPrevImage(): void;
|
|
1049
|
-
showNextLargeImage(): void;
|
|
1050
|
-
private _getCurrentIndex;
|
|
1051
1084
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageHistoryComponent, never>;
|
|
1052
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageHistoryComponent, "co-image-history", never, {}, { "setImageAsBackground": "setImageAsBackground"; }, never, never, false, never>;
|
|
1085
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageHistoryComponent, "co-image-history", never, {}, { "setImageAsBackground": "setImageAsBackground"; "editIn3D": "editIn3D"; "removeObjects": "removeObjects"; }, never, never, false, never>;
|
|
1053
1086
|
}
|
|
1054
1087
|
|
|
1055
1088
|
declare class ImageHistoryTileComponent {
|
|
@@ -1073,13 +1106,52 @@ declare class ImageHistoryTileModule {
|
|
|
1073
1106
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryTileModule>;
|
|
1074
1107
|
}
|
|
1075
1108
|
|
|
1109
|
+
declare class ImageOverlayComponent implements OnDestroy {
|
|
1110
|
+
iconService: InphotoIconCacheService;
|
|
1111
|
+
readonly icons: typeof Icon;
|
|
1112
|
+
showClass(): boolean;
|
|
1113
|
+
onEscape(): void;
|
|
1114
|
+
onArrowLeft(event: KeyboardEvent): void;
|
|
1115
|
+
onArrowRight(event: KeyboardEvent): void;
|
|
1116
|
+
onDocumentClick(): void;
|
|
1117
|
+
images: string[];
|
|
1118
|
+
set image(value: string);
|
|
1119
|
+
get image(): string;
|
|
1120
|
+
closeOverlay: EventEmitter<void>;
|
|
1121
|
+
downloadImage: EventEmitter<string>;
|
|
1122
|
+
removeImage: EventEmitter<string>;
|
|
1123
|
+
editIn3D: EventEmitter<string>;
|
|
1124
|
+
removeObjects: EventEmitter<string>;
|
|
1125
|
+
currentImage: string;
|
|
1126
|
+
showOptions: boolean;
|
|
1127
|
+
private _image;
|
|
1128
|
+
constructor(iconService: InphotoIconCacheService);
|
|
1129
|
+
ngOnDestroy(): void;
|
|
1130
|
+
toggleOptions(event: MouseEvent): void;
|
|
1131
|
+
handleClose(): void;
|
|
1132
|
+
handleDownload(): void;
|
|
1133
|
+
handleDelete(): void;
|
|
1134
|
+
handleEditIn3D(): void;
|
|
1135
|
+
handleRemoveObjects(): void;
|
|
1136
|
+
showPrevImage(): void;
|
|
1137
|
+
showNextImage(): void;
|
|
1138
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayComponent, never>;
|
|
1139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageOverlayComponent, "co-image-overlay", never, { "images": { "alias": "images"; "required": false; }; "image": { "alias": "image"; "required": false; }; }, { "closeOverlay": "closeOverlay"; "downloadImage": "downloadImage"; "removeImage": "removeImage"; "editIn3D": "editIn3D"; "removeObjects": "removeObjects"; }, never, never, false, never>;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
declare class ImageOverlayModule {
|
|
1143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayModule, never>;
|
|
1144
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageOverlayModule, [typeof ImageOverlayComponent], [typeof PipeModule, typeof i2.ButtonModule, typeof i2.IconModule], [typeof ImageOverlayComponent]>;
|
|
1145
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ImageOverlayModule>;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1076
1148
|
declare class ImageHistoryModule {
|
|
1077
1149
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageHistoryModule, never>;
|
|
1078
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageHistoryModule, [typeof ImageHistoryComponent], [typeof ImageHistoryTileModule, typeof PipeModule, typeof i2.ButtonModule, typeof i2.IconModule], [typeof ImageHistoryComponent]>;
|
|
1150
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageHistoryModule, [typeof ImageHistoryComponent], [typeof ImageHistoryTileModule, typeof ImageOverlayModule, typeof PipeModule, typeof i2.ButtonModule, typeof i2.IconModule], [typeof ImageHistoryComponent]>;
|
|
1079
1151
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryModule>;
|
|
1080
1152
|
}
|
|
1081
1153
|
|
|
1082
|
-
declare class PhotoEditorComponent implements
|
|
1154
|
+
declare class PhotoEditorComponent implements OnDestroy {
|
|
1083
1155
|
iconService: InphotoIconCacheService;
|
|
1084
1156
|
dataService: InphotoDataService;
|
|
1085
1157
|
private _connectorService;
|
|
@@ -1091,6 +1163,8 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1091
1163
|
set image(value: string);
|
|
1092
1164
|
get image(): string;
|
|
1093
1165
|
resetButtonClicked: EventEmitter<void>;
|
|
1166
|
+
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1167
|
+
startSegmentation: EventEmitter<string>;
|
|
1094
1168
|
showLoader: boolean;
|
|
1095
1169
|
loadingTexts: string[];
|
|
1096
1170
|
canvasErase: boolean;
|
|
@@ -1100,14 +1174,17 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1100
1174
|
canvasMaskColor: ColorPalette;
|
|
1101
1175
|
private _image;
|
|
1102
1176
|
private _canvasImage;
|
|
1177
|
+
private _subs;
|
|
1103
1178
|
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
|
|
1104
|
-
|
|
1179
|
+
ngOnDestroy(): void;
|
|
1105
1180
|
toggleEraseMode(state: boolean): void;
|
|
1106
1181
|
toggleDragMode(value: boolean): void;
|
|
1107
1182
|
handleChangeBrushSize(size: number): void;
|
|
1108
1183
|
handleCreatePromptWithImages(event: PromptWithImages): void;
|
|
1109
1184
|
handleStyleSelection(event: EnhanceStyle): void;
|
|
1110
1185
|
handleSetImageFromHistory(event: string): void;
|
|
1186
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1187
|
+
handleRemoveObjectsFromHistory(image: string): void;
|
|
1111
1188
|
handleBackButtonClicked(): void;
|
|
1112
1189
|
handleImageUpload(event: File[]): void;
|
|
1113
1190
|
handleChangeMarkerColor(data: MaskImageColorInterface): void;
|
|
@@ -1115,8 +1192,9 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1115
1192
|
private _handleSetLoader;
|
|
1116
1193
|
private _handleImageResponse;
|
|
1117
1194
|
private _addToHistory;
|
|
1195
|
+
private _handleRoomReceived;
|
|
1118
1196
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorComponent, never>;
|
|
1119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoEditorComponent, "co-photo-editor", never, { "image": { "alias": "image"; "required": false; }; }, { "resetButtonClicked": "resetButtonClicked"; }, never, never, false, never>;
|
|
1197
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoEditorComponent, "co-photo-editor", never, { "image": { "alias": "image"; "required": false; }; }, { "resetButtonClicked": "resetButtonClicked"; "handleStart3D": "handleStart3D"; "startSegmentation": "startSegmentation"; }, never, never, false, never>;
|
|
1120
1198
|
}
|
|
1121
1199
|
|
|
1122
1200
|
declare class ProcessLoaderComponent implements OnDestroy {
|
|
@@ -1200,33 +1278,31 @@ declare class PhotoEditorModule {
|
|
|
1200
1278
|
static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
|
|
1201
1279
|
}
|
|
1202
1280
|
|
|
1203
|
-
interface SegmentationJob {
|
|
1204
|
-
image: string;
|
|
1205
|
-
segmentJobId: string;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
1281
|
declare class PrepareStartingImageComponent {
|
|
1209
1282
|
iconService: InphotoIconCacheService;
|
|
1210
1283
|
private _connectorService;
|
|
1284
|
+
private _appEventService;
|
|
1211
1285
|
readonly icons: typeof Icon;
|
|
1212
1286
|
showClass(): boolean;
|
|
1213
1287
|
image: string;
|
|
1214
1288
|
cancelClick: EventEmitter<void>;
|
|
1215
1289
|
processedRoom: EventEmitter<SceneBuildObject>;
|
|
1216
|
-
|
|
1290
|
+
startSegmentation: EventEmitter<string>;
|
|
1217
1291
|
imageReady: EventEmitter<string>;
|
|
1218
1292
|
continueToAI: EventEmitter<string>;
|
|
1219
1293
|
disableSelectObjectsButton: boolean;
|
|
1220
1294
|
showLoader: boolean;
|
|
1221
1295
|
loadingTexts: string[];
|
|
1222
|
-
|
|
1296
|
+
private _subs;
|
|
1297
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
|
|
1223
1298
|
handleCancelClick(): void;
|
|
1224
1299
|
handleClearAllObjects(): void;
|
|
1300
|
+
handleClearAllObjectsAndStart3D(): void;
|
|
1225
1301
|
handleSelectToClearObjects(): void;
|
|
1226
1302
|
handleContinueToAI(): void;
|
|
1227
1303
|
private _handleRoomReceived;
|
|
1228
1304
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1229
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PrepareStartingImageComponent, "co-prepare-starting-image", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "processedRoom": "processedRoom"; "
|
|
1305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PrepareStartingImageComponent, "co-prepare-starting-image", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "processedRoom": "processedRoom"; "startSegmentation": "startSegmentation"; "imageReady": "imageReady"; "continueToAI": "continueToAI"; }, never, never, false, never>;
|
|
1230
1306
|
}
|
|
1231
1307
|
|
|
1232
1308
|
declare class StepTileComponent {
|
|
@@ -1310,15 +1386,17 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1310
1386
|
private _settingsService;
|
|
1311
1387
|
private _configuringService;
|
|
1312
1388
|
private _configuratorEventService;
|
|
1389
|
+
private _cdk;
|
|
1313
1390
|
private _inphotoHudService;
|
|
1314
1391
|
readonly icons: typeof Icon;
|
|
1315
1392
|
showClass(): boolean;
|
|
1316
1393
|
container: ElementRef<HTMLDivElement>;
|
|
1394
|
+
sceneContainer: ElementRef<HTMLDivElement>;
|
|
1317
1395
|
set room(value: SceneBuildObject);
|
|
1318
1396
|
get room(): SceneBuildObject;
|
|
1319
|
-
|
|
1320
|
-
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1397
|
+
debug: boolean;
|
|
1321
1398
|
startAiDecoration: EventEmitter<string>;
|
|
1399
|
+
startSegmentation: EventEmitter<string>;
|
|
1322
1400
|
openCatalog: EventEmitter<void>;
|
|
1323
1401
|
closeClick: EventEmitter<void>;
|
|
1324
1402
|
configuratorSettings: any;
|
|
@@ -1327,14 +1405,30 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1327
1405
|
firstBuild: boolean;
|
|
1328
1406
|
loadConfigurator: boolean;
|
|
1329
1407
|
showConfiguratorSideBar: boolean;
|
|
1408
|
+
showWallOptions: boolean;
|
|
1409
|
+
wallMarkers: {
|
|
1410
|
+
x: number;
|
|
1411
|
+
y: number;
|
|
1412
|
+
uuid: string;
|
|
1413
|
+
}[];
|
|
1414
|
+
selectedWallUuid: string | null;
|
|
1415
|
+
showFloorOptions: boolean;
|
|
1416
|
+
floorMarkers: {
|
|
1417
|
+
x: number;
|
|
1418
|
+
y: number;
|
|
1419
|
+
uuid: string;
|
|
1420
|
+
}[];
|
|
1421
|
+
selectedFloorUuid: string | null;
|
|
1330
1422
|
private _room;
|
|
1331
1423
|
private _sceneReady;
|
|
1332
1424
|
private _currentArticleConfiguration;
|
|
1333
1425
|
private _userActionNeeded;
|
|
1334
1426
|
private _subs;
|
|
1335
|
-
constructor(iconService: InphotoIconCacheService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _objectsService: InphotoItemService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _inphotoHudService: InphotoHudService);
|
|
1427
|
+
constructor(iconService: InphotoIconCacheService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _objectsService: InphotoItemService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _cdk: ChangeDetectorRef, _inphotoHudService: InphotoHudService);
|
|
1336
1428
|
ngAfterViewInit(): void;
|
|
1337
1429
|
init(): void;
|
|
1430
|
+
set currentArticleConfiguration(value: ArticleConfiguration);
|
|
1431
|
+
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1338
1432
|
handleCancelClick(): void;
|
|
1339
1433
|
handleOpenCatalog(): void;
|
|
1340
1434
|
setBackgroundImage(url: string): void;
|
|
@@ -1345,6 +1439,15 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1345
1439
|
handleChangeObjectScale(scale: Vector3): void;
|
|
1346
1440
|
handleCloseConfiguratorSideBar(): void;
|
|
1347
1441
|
handleThreedToAi(): void;
|
|
1442
|
+
handleSegmentationClick(): void;
|
|
1443
|
+
handleShowWallOptions(): void;
|
|
1444
|
+
handleShowFloorOptions(): void;
|
|
1445
|
+
handleWallMarkerClick(uuid: string): void;
|
|
1446
|
+
handleFloorMarkerClick(uuid: string): void;
|
|
1447
|
+
private _getMeshByUuid;
|
|
1448
|
+
private _getMarkersForMeshType;
|
|
1449
|
+
private _getMeshesByType;
|
|
1450
|
+
private _worldPositionToContainerPixel;
|
|
1348
1451
|
private _addArticleToScene;
|
|
1349
1452
|
private _prepareSettings;
|
|
1350
1453
|
private _handleFirstBuild;
|
|
@@ -1352,7 +1455,7 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1352
1455
|
private _continueConfiguration;
|
|
1353
1456
|
private _resetConfigurator;
|
|
1354
1457
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedSceneComponent, never>;
|
|
1355
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InphotoThreedSceneComponent, "co-inphoto-threed-scene", never, { "room": { "alias": "room"; "required": false; }; }, { "startAiDecoration": "startAiDecoration"; "openCatalog": "openCatalog"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
1458
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InphotoThreedSceneComponent, "co-inphoto-threed-scene", never, { "room": { "alias": "room"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "startAiDecoration": "startAiDecoration"; "startSegmentation": "startSegmentation"; "openCatalog": "openCatalog"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
1356
1459
|
}
|
|
1357
1460
|
|
|
1358
1461
|
declare class SceneContextMenuComponent implements OnDestroy {
|
|
@@ -1421,9 +1524,28 @@ declare class ConfigurationSideBarMenuModule {
|
|
|
1421
1524
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationSideBarMenuModule>;
|
|
1422
1525
|
}
|
|
1423
1526
|
|
|
1527
|
+
declare class MarkerComponent {
|
|
1528
|
+
iconService: InphotoIconCacheService;
|
|
1529
|
+
showClass(): boolean;
|
|
1530
|
+
icon: Icon;
|
|
1531
|
+
label: string;
|
|
1532
|
+
selected: boolean;
|
|
1533
|
+
onClick: EventEmitter<void>;
|
|
1534
|
+
constructor(iconService: InphotoIconCacheService);
|
|
1535
|
+
handleClick(): void;
|
|
1536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkerComponent, never>;
|
|
1537
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkerComponent, "co-marker", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
declare class MarkerModule {
|
|
1541
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkerModule, never>;
|
|
1542
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MarkerModule, [typeof MarkerComponent], [typeof i2.IconModule], [typeof MarkerComponent]>;
|
|
1543
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MarkerModule>;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1424
1546
|
declare class InphotoThreedsceneModule {
|
|
1425
1547
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedsceneModule, never>;
|
|
1426
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InphotoThreedsceneModule, [typeof InphotoThreedSceneComponent], [typeof ImageUploadModule, typeof i2.ButtonModule, typeof PipeModule, typeof InphotoCatalogModule, typeof i2.IconModule, typeof i6.ConfiguratorModule, typeof SceneContextMenuModule, typeof ConfigurationSideBarMenuModule, typeof SidePanelModule, typeof StepTileModule], [typeof InphotoThreedSceneComponent]>;
|
|
1548
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InphotoThreedsceneModule, [typeof InphotoThreedSceneComponent], [typeof ImageUploadModule, typeof i2.ButtonModule, typeof PipeModule, typeof InphotoCatalogModule, typeof i2.IconModule, typeof i6.ConfiguratorModule, typeof SceneContextMenuModule, typeof ConfigurationSideBarMenuModule, typeof SidePanelModule, typeof StepTileModule, typeof ProcessLoaderModule, typeof MarkerModule], [typeof InphotoThreedSceneComponent]>;
|
|
1427
1549
|
static ɵinj: i0.ɵɵInjectorDeclaration<InphotoThreedsceneModule>;
|
|
1428
1550
|
}
|
|
1429
1551
|
|
|
@@ -1488,6 +1610,8 @@ declare class InPhotoComponent {
|
|
|
1488
1610
|
private _dataService;
|
|
1489
1611
|
showClass(): boolean;
|
|
1490
1612
|
set settings(input: any);
|
|
1613
|
+
debug: boolean;
|
|
1614
|
+
set useMockRoomData(value: boolean);
|
|
1491
1615
|
showImageUpload: boolean;
|
|
1492
1616
|
showImagePrepare: boolean;
|
|
1493
1617
|
showImageNextStep: boolean;
|
|
@@ -1499,14 +1623,15 @@ declare class InPhotoComponent {
|
|
|
1499
1623
|
preparedImage: string;
|
|
1500
1624
|
aiDecorationImage: string;
|
|
1501
1625
|
roomData: SceneBuildObject;
|
|
1502
|
-
|
|
1626
|
+
segmentImage: string;
|
|
1503
1627
|
constructor(appInitializerService: AppInitializerService, appEventService: InphotoEventService, _cdk: ChangeDetectorRef, _dataService: InphotoDataService);
|
|
1628
|
+
private _createMockSceneBuildObject;
|
|
1504
1629
|
handleCancelClick(): void;
|
|
1505
1630
|
startPoint(): void;
|
|
1506
1631
|
handleImageUpload(image: string): void;
|
|
1507
1632
|
handleProcessedRoom(roomData: SceneBuildObject): void;
|
|
1508
1633
|
handleStart3D(data: SceneBuildObject): void;
|
|
1509
|
-
handleSegmentationJob(
|
|
1634
|
+
handleSegmentationJob(image: string): void;
|
|
1510
1635
|
handleSegmentOutput(image: string): void;
|
|
1511
1636
|
handleCancelSegmentClick(): void;
|
|
1512
1637
|
handleMenuChange(event: any): void;
|
|
@@ -1515,7 +1640,19 @@ declare class InPhotoComponent {
|
|
|
1515
1640
|
closeReadyToOpen(): void;
|
|
1516
1641
|
handleOpenCatalog(): void;
|
|
1517
1642
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
|
|
1518
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
|
|
1643
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
declare enum SegmentationType {
|
|
1647
|
+
Yolo = "yolo",
|
|
1648
|
+
Click = "click",
|
|
1649
|
+
Manual = "manual"
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
interface SegmentationJob {
|
|
1653
|
+
image: string;
|
|
1654
|
+
segmentJobId: string;
|
|
1655
|
+
segmentationType: SegmentationType;
|
|
1519
1656
|
}
|
|
1520
1657
|
|
|
1521
1658
|
declare class SegmentInpaintComponent {
|
|
@@ -1523,34 +1660,40 @@ declare class SegmentInpaintComponent {
|
|
|
1523
1660
|
private _connectorService;
|
|
1524
1661
|
private _loaderService;
|
|
1525
1662
|
readonly icons: typeof Icon;
|
|
1663
|
+
readonly SegmentationType: typeof SegmentationType;
|
|
1526
1664
|
showClass(): boolean;
|
|
1527
|
-
set
|
|
1528
|
-
get
|
|
1665
|
+
set image(value: string);
|
|
1666
|
+
get image(): string;
|
|
1529
1667
|
cancelClick: EventEmitter<void>;
|
|
1530
1668
|
preparedImage: EventEmitter<string>;
|
|
1531
1669
|
segmentationInPaintingData: any;
|
|
1532
|
-
showInfoDialog: boolean;
|
|
1533
1670
|
canvasInPaint: boolean;
|
|
1671
|
+
inpaintClick: boolean;
|
|
1534
1672
|
canvasErase: boolean;
|
|
1535
1673
|
dragMode: boolean;
|
|
1536
1674
|
showLoader: boolean;
|
|
1537
1675
|
loadingTexts: string[];
|
|
1538
|
-
image: string;
|
|
1539
1676
|
segmentJobId: string;
|
|
1540
|
-
|
|
1677
|
+
segmentJob: SegmentationJob;
|
|
1678
|
+
segmentMode: SegmentationType;
|
|
1679
|
+
brushSize: number;
|
|
1680
|
+
segmentationObjects: SegmentationObject[];
|
|
1681
|
+
private _image;
|
|
1541
1682
|
private _inpaintImageState;
|
|
1542
1683
|
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService);
|
|
1543
|
-
|
|
1684
|
+
handleSegmentationClick(): void;
|
|
1685
|
+
handleSegmentationMask(): void;
|
|
1686
|
+
handleSegmentationObject(): void;
|
|
1544
1687
|
handleCancelClick(): void;
|
|
1545
|
-
openInfoDialog(): void;
|
|
1546
1688
|
toggleEraseMode(erase: boolean): void;
|
|
1547
1689
|
toggleDragMode(value: boolean): void;
|
|
1548
1690
|
handleSegmentationPointClick(event: SegmentationPoint): void;
|
|
1549
1691
|
processInpainted(): void;
|
|
1550
1692
|
handleImageStateChange(image: string): void;
|
|
1693
|
+
handleChangeBrushSize(size: number): void;
|
|
1551
1694
|
private _handleLoader;
|
|
1552
1695
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1553
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "
|
|
1696
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "preparedImage": "preparedImage"; }, never, never, false, never>;
|
|
1554
1697
|
}
|
|
1555
1698
|
|
|
1556
1699
|
declare class SegmentInpaintModule {
|
|
@@ -1563,31 +1706,36 @@ declare class ImageProcessCompleteComponent {
|
|
|
1563
1706
|
iconService: InphotoIconCacheService;
|
|
1564
1707
|
private _connectorService;
|
|
1565
1708
|
private _appEventService;
|
|
1709
|
+
private _dataService;
|
|
1566
1710
|
readonly icons: typeof Icon;
|
|
1567
1711
|
showClass(): boolean;
|
|
1568
1712
|
set image(value: string);
|
|
1569
1713
|
get image(): string;
|
|
1570
1714
|
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1571
1715
|
handleAiDecorationClicked: EventEmitter<string>;
|
|
1572
|
-
|
|
1716
|
+
startSegmentation: EventEmitter<string>;
|
|
1573
1717
|
cancelClick: EventEmitter<void>;
|
|
1574
1718
|
showLoader: boolean;
|
|
1575
1719
|
loadingTexts: string[];
|
|
1576
1720
|
private _image;
|
|
1577
1721
|
private _subs;
|
|
1578
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
|
|
1722
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService, _dataService: InphotoDataService);
|
|
1723
|
+
handleSetImage(): void;
|
|
1579
1724
|
handle3DClick(): void;
|
|
1580
1725
|
handleAiClick(): void;
|
|
1581
1726
|
handleContinueSegmentationClick(): void;
|
|
1727
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1728
|
+
handleRemoveObjectsFromHistory(image: string): void;
|
|
1582
1729
|
handleCancelClick(): void;
|
|
1583
1730
|
private _handleRoomReceived;
|
|
1731
|
+
private _startRoomGeneration;
|
|
1584
1732
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteComponent, never>;
|
|
1585
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageProcessCompleteComponent, "co-image-process-complete", never, { "image": { "alias": "image"; "required": false; }; }, { "handleStart3D": "handleStart3D"; "handleAiDecorationClicked": "handleAiDecorationClicked"; "
|
|
1733
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageProcessCompleteComponent, "co-image-process-complete", never, { "image": { "alias": "image"; "required": false; }; }, { "handleStart3D": "handleStart3D"; "handleAiDecorationClicked": "handleAiDecorationClicked"; "startSegmentation": "startSegmentation"; "cancelClick": "cancelClick"; }, never, never, false, never>;
|
|
1586
1734
|
}
|
|
1587
1735
|
|
|
1588
1736
|
declare class ImageProcessCompleteModule {
|
|
1589
1737
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteModule, never>;
|
|
1590
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageProcessCompleteModule, [typeof ImageProcessCompleteComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule], [typeof ImageProcessCompleteComponent]>;
|
|
1738
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageProcessCompleteModule, [typeof ImageProcessCompleteComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof ImageHistoryModule], [typeof ImageProcessCompleteComponent]>;
|
|
1591
1739
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageProcessCompleteModule>;
|
|
1592
1740
|
}
|
|
1593
1741
|
|