@colijnit/inphoto 300.1.7 → 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 +1344 -492
- 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 +198 -49
- 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 -35
- 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 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2026 Fonticons, Inc.--><path d="M320 320L48 192L320 64L592 192L320 320zM127.6 282.5L320 373L512.4 282.5L592 320L320 448L48 320L127.6 282.5zM48 448L127.6 410.5L320 501L512.4 410.5L592 448L320 576L48 448z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2026 Fonticons, Inc.--><path d="M64 64L480 64L480 128L576 128L576 384L320 384L320 416L352 416L352 608L224 608L224 416L256 416L256 320L512 320L512 192L480 192L480 256L64 256L64 64z"/></svg>
|
package/index.d.ts
CHANGED
|
@@ -74,14 +74,22 @@ declare class Settings extends Options {
|
|
|
74
74
|
|
|
75
75
|
declare class ImageRoomResponse {
|
|
76
76
|
floorGeometry: FloorGeometry;
|
|
77
|
+
wallGeometry: WallGeometry[];
|
|
77
78
|
cameraData: CameraData;
|
|
78
|
-
static fromJson(
|
|
79
|
+
static fromJson(floorGeometryJson: any, wallGeometryJson: any): ImageRoomResponse;
|
|
79
80
|
}
|
|
80
81
|
declare class FloorGeometry {
|
|
81
82
|
boundaryPoints: Vector3[];
|
|
82
83
|
normal: Vector3;
|
|
83
84
|
static fromJson(json: any): FloorGeometry;
|
|
84
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
|
+
}
|
|
85
93
|
declare class CameraData {
|
|
86
94
|
imageSize: number[];
|
|
87
95
|
imageWidth: number;
|
|
@@ -92,8 +100,9 @@ declare class CameraData {
|
|
|
92
100
|
|
|
93
101
|
declare class SceneBuildObject {
|
|
94
102
|
image: string;
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
floor: ImageRoomResponse;
|
|
104
|
+
walls: WallGeometry[];
|
|
105
|
+
constructor(image?: string, floor?: ImageRoomResponse);
|
|
97
106
|
}
|
|
98
107
|
|
|
99
108
|
declare class ArticleConfiguration {
|
|
@@ -233,10 +242,11 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
233
242
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
234
243
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
235
244
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
236
|
-
segmentInpaint(
|
|
245
|
+
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
237
246
|
getRoomTypes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
238
247
|
getDecorationModes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
239
248
|
getDecorationStyles(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
249
|
+
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
240
250
|
private _handleRoomData;
|
|
241
251
|
private _processRoom;
|
|
242
252
|
private _getJobStatus;
|
|
@@ -264,6 +274,12 @@ declare class InphotoSettingsService {
|
|
|
264
274
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSettingsService>;
|
|
265
275
|
}
|
|
266
276
|
|
|
277
|
+
declare class SegmentationObject {
|
|
278
|
+
id: number;
|
|
279
|
+
label: string;
|
|
280
|
+
contours: number[][][];
|
|
281
|
+
}
|
|
282
|
+
|
|
267
283
|
declare class InPhotoConnectorService {
|
|
268
284
|
private _connectorAdapterService;
|
|
269
285
|
private _settingsService;
|
|
@@ -277,6 +293,7 @@ declare class InPhotoConnectorService {
|
|
|
277
293
|
private _roomTypes;
|
|
278
294
|
private _decorationModes;
|
|
279
295
|
private _decorationStyles;
|
|
296
|
+
private _boFactory;
|
|
280
297
|
constructor(_connectorAdapterService: InPhotoConnectorAdapterService, _settingsService: InphotoSettingsService);
|
|
281
298
|
initConnection(forceReload?: boolean, standAlone?: boolean): Promise<void>;
|
|
282
299
|
initConnector(options: any, externalSource?: string, forceReload?: boolean, externalSourceId?: number): Promise<boolean>;
|
|
@@ -295,10 +312,11 @@ declare class InPhotoConnectorService {
|
|
|
295
312
|
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
296
313
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
297
314
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
298
|
-
segmentInpaint(
|
|
315
|
+
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
299
316
|
getDecorationModes(showLoader?: boolean): Promise<string[]>;
|
|
300
317
|
getDecorationStyles(showLoader?: boolean): Promise<string[]>;
|
|
301
318
|
getRoomTypes(showLoader?: boolean): Promise<string[]>;
|
|
319
|
+
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<SegmentationObject[]>;
|
|
302
320
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoConnectorService, never>;
|
|
303
321
|
static ɵprov: i0.ɵɵInjectableDeclaration<InPhotoConnectorService>;
|
|
304
322
|
}
|
|
@@ -336,10 +354,12 @@ declare enum Icon {
|
|
|
336
354
|
ImageCircleXmarkSolidFull = "image_circle_xmark_solid_full",
|
|
337
355
|
ImageSolidFull = "image_solid_full",
|
|
338
356
|
InfoSolidFull = "info_solid_full",
|
|
357
|
+
LayerGroupSharpSolid = "layer_group_sharp_solid",
|
|
339
358
|
LightbulbRegularFull = "lightbulb_regular_full",
|
|
340
359
|
LockSolidFull = "lock_solid_full",
|
|
341
360
|
MinusSolidFull = "minus_solid_full",
|
|
342
361
|
PaintbrushRegular = "paintbrush_regular",
|
|
362
|
+
PaintRollerSharpSolid = "paint_roller_sharp_solid",
|
|
343
363
|
PenToSquareSolidFull = "pen_to_square_solid_full",
|
|
344
364
|
PlusSolidFull = "plus_solid_full",
|
|
345
365
|
RotateLeftSharpSolidFull = "rotate_left_sharp_solid_full",
|
|
@@ -380,6 +400,8 @@ declare class InphotoItemService implements OnDestroy {
|
|
|
380
400
|
get selectedObject(): ArticleConfiguration | undefined;
|
|
381
401
|
set floorPlane(plane: Mesh);
|
|
382
402
|
get floorPlane(): Mesh;
|
|
403
|
+
set wallPlanes(planes: Mesh[]);
|
|
404
|
+
get wallPlanes(): Mesh[];
|
|
383
405
|
set floorItems(items: ArticleConfiguration[]);
|
|
384
406
|
get floorItems(): ArticleConfiguration[];
|
|
385
407
|
set floorBounds(value: Box3);
|
|
@@ -387,6 +409,7 @@ declare class InphotoItemService implements OnDestroy {
|
|
|
387
409
|
private _selectedObject;
|
|
388
410
|
private _floorItems;
|
|
389
411
|
private _floorPlane;
|
|
412
|
+
private _wallPlanes;
|
|
390
413
|
private _floorBounds;
|
|
391
414
|
ngOnDestroy(): void;
|
|
392
415
|
addFloorItem(item: ArticleConfiguration): void;
|
|
@@ -421,6 +444,7 @@ declare class InphotoSceneService implements OnDestroy {
|
|
|
421
444
|
getObjectByUUID(uuid: string): Object3D | undefined;
|
|
422
445
|
removeObject(object: Object3D): void;
|
|
423
446
|
addFloorToScene(floorMesh: Mesh): void;
|
|
447
|
+
addWallsToScene(wallMeshes: Mesh[]): void;
|
|
424
448
|
setPlacementMarker(marker: Object3D | null): void;
|
|
425
449
|
private _prepLights;
|
|
426
450
|
private _animate;
|
|
@@ -672,6 +696,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
672
696
|
readonly icons: typeof Icon;
|
|
673
697
|
showClass(): boolean;
|
|
674
698
|
canvas: ElementRef<HTMLCanvasElement>;
|
|
699
|
+
canvasContainer: ElementRef<HTMLDivElement>;
|
|
675
700
|
set image(value: string);
|
|
676
701
|
get image(): string;
|
|
677
702
|
set segmentationInPainting(value: SegmentationResponse);
|
|
@@ -681,6 +706,8 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
681
706
|
get dragMode(): boolean;
|
|
682
707
|
set brushSize(value: number);
|
|
683
708
|
get brushSize(): number;
|
|
709
|
+
set segmentationObjects(value: SegmentationObject[]);
|
|
710
|
+
get segmentationObjects(): SegmentationObject[];
|
|
684
711
|
onSegmentationPointClick: EventEmitter<SegmentationPoint>;
|
|
685
712
|
imageState: EventEmitter<string>;
|
|
686
713
|
set maskColor(color: ColorPalette);
|
|
@@ -693,6 +720,9 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
693
720
|
ctx: CanvasRenderingContext2D;
|
|
694
721
|
drawing: boolean;
|
|
695
722
|
maskOpacity: number;
|
|
723
|
+
hoveredObjectLabel: string | null;
|
|
724
|
+
hoveredLabelX: number;
|
|
725
|
+
hoveredLabelY: number;
|
|
696
726
|
private _backgroundImage;
|
|
697
727
|
private _maskLayers;
|
|
698
728
|
private _currentStroke;
|
|
@@ -700,6 +730,8 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
700
730
|
private _segCtx;
|
|
701
731
|
private _exportCanvas;
|
|
702
732
|
private _exportCtx;
|
|
733
|
+
private _segmentationObjects;
|
|
734
|
+
private _hoveredObject;
|
|
703
735
|
private _image;
|
|
704
736
|
private _inpaintMode;
|
|
705
737
|
private _eraserMode;
|
|
@@ -744,12 +776,18 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
744
776
|
private _getBufferCoords;
|
|
745
777
|
private _getCanvasCoords;
|
|
746
778
|
private _drawSegmentation;
|
|
779
|
+
private _updateHoveredObject;
|
|
780
|
+
private _findSegmentationObjectAtPoint;
|
|
781
|
+
private _isPointInPolygon;
|
|
782
|
+
private _drawHoveredSegmentationObject;
|
|
783
|
+
private _applyHoveredObjectAsMask;
|
|
784
|
+
private _fillContours;
|
|
747
785
|
private _ensureSegCanvas;
|
|
748
786
|
private _saveCanvas;
|
|
749
787
|
private _setPlainCursor;
|
|
750
788
|
private _colorToString;
|
|
751
789
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditCanvasComponent, never>;
|
|
752
|
-
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>;
|
|
753
791
|
}
|
|
754
792
|
|
|
755
793
|
declare class EditCanvasModule {
|
|
@@ -892,7 +930,7 @@ declare class ImageEnhancerStyleComponent implements OnInit {
|
|
|
892
930
|
|
|
893
931
|
declare class AiPromptComponent {
|
|
894
932
|
private _changeDetection;
|
|
895
|
-
|
|
933
|
+
showClass(): boolean;
|
|
896
934
|
customPrompt: string;
|
|
897
935
|
set promptMode(value: PromptStyle);
|
|
898
936
|
get promptMode(): PromptStyle;
|
|
@@ -1011,7 +1049,7 @@ declare class ImageEnhancerModule {
|
|
|
1011
1049
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerModule>;
|
|
1012
1050
|
}
|
|
1013
1051
|
|
|
1014
|
-
declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
1052
|
+
declare class ImageHistoryComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
1015
1053
|
dataService: InphotoDataService;
|
|
1016
1054
|
iconService: InphotoIconCacheService;
|
|
1017
1055
|
private _eventService;
|
|
@@ -1019,10 +1057,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1019
1057
|
private tilesRow?;
|
|
1020
1058
|
showClass(): boolean;
|
|
1021
1059
|
onResize(): void;
|
|
1022
|
-
onEscape(): void;
|
|
1023
|
-
onArrowLeft(event: KeyboardEvent): void;
|
|
1024
|
-
onArrowRight(event: KeyboardEvent): void;
|
|
1025
1060
|
setImageAsBackground: EventEmitter<string>;
|
|
1061
|
+
editIn3D: EventEmitter<string>;
|
|
1062
|
+
removeObjects: EventEmitter<string>;
|
|
1026
1063
|
displayedImages: string[];
|
|
1027
1064
|
selectedImage: string;
|
|
1028
1065
|
showFullImage: boolean;
|
|
@@ -1030,7 +1067,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1030
1067
|
canScrollLeft: boolean;
|
|
1031
1068
|
canScrollRight: boolean;
|
|
1032
1069
|
private _subs;
|
|
1070
|
+
private _tilesObserver;
|
|
1033
1071
|
constructor(dataService: InphotoDataService, iconService: InphotoIconCacheService, _eventService: InphotoEventService);
|
|
1072
|
+
ngOnInit(): void;
|
|
1034
1073
|
ngAfterViewInit(): void;
|
|
1035
1074
|
ngOnDestroy(): void;
|
|
1036
1075
|
setDataCollection(): void;
|
|
@@ -1039,16 +1078,11 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
|
|
|
1039
1078
|
handleCloseFullImage(): void;
|
|
1040
1079
|
handleRemoveImageFromHistory(event: string): void;
|
|
1041
1080
|
handleDownloadImage(event: string): void;
|
|
1042
|
-
handleDownloadFullImage(): void;
|
|
1043
|
-
handleDeleteFullImage(): void;
|
|
1044
1081
|
scroll(direction: number): void;
|
|
1045
1082
|
onWheel(event: WheelEvent): void;
|
|
1046
1083
|
updateScrollState(): void;
|
|
1047
|
-
showNextPrevImage(): void;
|
|
1048
|
-
showNextLargeImage(): void;
|
|
1049
|
-
private _getCurrentIndex;
|
|
1050
1084
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageHistoryComponent, never>;
|
|
1051
|
-
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>;
|
|
1052
1086
|
}
|
|
1053
1087
|
|
|
1054
1088
|
declare class ImageHistoryTileComponent {
|
|
@@ -1072,13 +1106,52 @@ declare class ImageHistoryTileModule {
|
|
|
1072
1106
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryTileModule>;
|
|
1073
1107
|
}
|
|
1074
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
|
+
|
|
1075
1148
|
declare class ImageHistoryModule {
|
|
1076
1149
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageHistoryModule, never>;
|
|
1077
|
-
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]>;
|
|
1078
1151
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryModule>;
|
|
1079
1152
|
}
|
|
1080
1153
|
|
|
1081
|
-
declare class PhotoEditorComponent implements
|
|
1154
|
+
declare class PhotoEditorComponent implements OnDestroy {
|
|
1082
1155
|
iconService: InphotoIconCacheService;
|
|
1083
1156
|
dataService: InphotoDataService;
|
|
1084
1157
|
private _connectorService;
|
|
@@ -1090,6 +1163,8 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1090
1163
|
set image(value: string);
|
|
1091
1164
|
get image(): string;
|
|
1092
1165
|
resetButtonClicked: EventEmitter<void>;
|
|
1166
|
+
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1167
|
+
startSegmentation: EventEmitter<string>;
|
|
1093
1168
|
showLoader: boolean;
|
|
1094
1169
|
loadingTexts: string[];
|
|
1095
1170
|
canvasErase: boolean;
|
|
@@ -1099,14 +1174,17 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1099
1174
|
canvasMaskColor: ColorPalette;
|
|
1100
1175
|
private _image;
|
|
1101
1176
|
private _canvasImage;
|
|
1177
|
+
private _subs;
|
|
1102
1178
|
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
|
|
1103
|
-
|
|
1179
|
+
ngOnDestroy(): void;
|
|
1104
1180
|
toggleEraseMode(state: boolean): void;
|
|
1105
1181
|
toggleDragMode(value: boolean): void;
|
|
1106
1182
|
handleChangeBrushSize(size: number): void;
|
|
1107
1183
|
handleCreatePromptWithImages(event: PromptWithImages): void;
|
|
1108
1184
|
handleStyleSelection(event: EnhanceStyle): void;
|
|
1109
1185
|
handleSetImageFromHistory(event: string): void;
|
|
1186
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1187
|
+
handleRemoveObjectsFromHistory(image: string): void;
|
|
1110
1188
|
handleBackButtonClicked(): void;
|
|
1111
1189
|
handleImageUpload(event: File[]): void;
|
|
1112
1190
|
handleChangeMarkerColor(data: MaskImageColorInterface): void;
|
|
@@ -1114,8 +1192,9 @@ declare class PhotoEditorComponent implements OnInit {
|
|
|
1114
1192
|
private _handleSetLoader;
|
|
1115
1193
|
private _handleImageResponse;
|
|
1116
1194
|
private _addToHistory;
|
|
1195
|
+
private _handleRoomReceived;
|
|
1117
1196
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorComponent, never>;
|
|
1118
|
-
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>;
|
|
1119
1198
|
}
|
|
1120
1199
|
|
|
1121
1200
|
declare class ProcessLoaderComponent implements OnDestroy {
|
|
@@ -1199,33 +1278,31 @@ declare class PhotoEditorModule {
|
|
|
1199
1278
|
static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
|
|
1200
1279
|
}
|
|
1201
1280
|
|
|
1202
|
-
interface SegmentationJob {
|
|
1203
|
-
image: string;
|
|
1204
|
-
segmentJobId: string;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
1281
|
declare class PrepareStartingImageComponent {
|
|
1208
1282
|
iconService: InphotoIconCacheService;
|
|
1209
1283
|
private _connectorService;
|
|
1284
|
+
private _appEventService;
|
|
1210
1285
|
readonly icons: typeof Icon;
|
|
1211
1286
|
showClass(): boolean;
|
|
1212
1287
|
image: string;
|
|
1213
1288
|
cancelClick: EventEmitter<void>;
|
|
1214
1289
|
processedRoom: EventEmitter<SceneBuildObject>;
|
|
1215
|
-
|
|
1290
|
+
startSegmentation: EventEmitter<string>;
|
|
1216
1291
|
imageReady: EventEmitter<string>;
|
|
1217
1292
|
continueToAI: EventEmitter<string>;
|
|
1218
1293
|
disableSelectObjectsButton: boolean;
|
|
1219
1294
|
showLoader: boolean;
|
|
1220
1295
|
loadingTexts: string[];
|
|
1221
|
-
|
|
1296
|
+
private _subs;
|
|
1297
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
|
|
1222
1298
|
handleCancelClick(): void;
|
|
1223
1299
|
handleClearAllObjects(): void;
|
|
1300
|
+
handleClearAllObjectsAndStart3D(): void;
|
|
1224
1301
|
handleSelectToClearObjects(): void;
|
|
1225
1302
|
handleContinueToAI(): void;
|
|
1226
1303
|
private _handleRoomReceived;
|
|
1227
1304
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1228
|
-
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>;
|
|
1229
1306
|
}
|
|
1230
1307
|
|
|
1231
1308
|
declare class StepTileComponent {
|
|
@@ -1309,15 +1386,17 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1309
1386
|
private _settingsService;
|
|
1310
1387
|
private _configuringService;
|
|
1311
1388
|
private _configuratorEventService;
|
|
1389
|
+
private _cdk;
|
|
1312
1390
|
private _inphotoHudService;
|
|
1313
1391
|
readonly icons: typeof Icon;
|
|
1314
1392
|
showClass(): boolean;
|
|
1315
1393
|
container: ElementRef<HTMLDivElement>;
|
|
1394
|
+
sceneContainer: ElementRef<HTMLDivElement>;
|
|
1316
1395
|
set room(value: SceneBuildObject);
|
|
1317
1396
|
get room(): SceneBuildObject;
|
|
1318
|
-
|
|
1319
|
-
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1397
|
+
debug: boolean;
|
|
1320
1398
|
startAiDecoration: EventEmitter<string>;
|
|
1399
|
+
startSegmentation: EventEmitter<string>;
|
|
1321
1400
|
openCatalog: EventEmitter<void>;
|
|
1322
1401
|
closeClick: EventEmitter<void>;
|
|
1323
1402
|
configuratorSettings: any;
|
|
@@ -1326,14 +1405,30 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1326
1405
|
firstBuild: boolean;
|
|
1327
1406
|
loadConfigurator: boolean;
|
|
1328
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;
|
|
1329
1422
|
private _room;
|
|
1330
1423
|
private _sceneReady;
|
|
1331
1424
|
private _currentArticleConfiguration;
|
|
1332
1425
|
private _userActionNeeded;
|
|
1333
1426
|
private _subs;
|
|
1334
|
-
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);
|
|
1335
1428
|
ngAfterViewInit(): void;
|
|
1336
1429
|
init(): void;
|
|
1430
|
+
set currentArticleConfiguration(value: ArticleConfiguration);
|
|
1431
|
+
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1337
1432
|
handleCancelClick(): void;
|
|
1338
1433
|
handleOpenCatalog(): void;
|
|
1339
1434
|
setBackgroundImage(url: string): void;
|
|
@@ -1344,6 +1439,15 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1344
1439
|
handleChangeObjectScale(scale: Vector3): void;
|
|
1345
1440
|
handleCloseConfiguratorSideBar(): void;
|
|
1346
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;
|
|
1347
1451
|
private _addArticleToScene;
|
|
1348
1452
|
private _prepareSettings;
|
|
1349
1453
|
private _handleFirstBuild;
|
|
@@ -1351,7 +1455,7 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1351
1455
|
private _continueConfiguration;
|
|
1352
1456
|
private _resetConfigurator;
|
|
1353
1457
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedSceneComponent, never>;
|
|
1354
|
-
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>;
|
|
1355
1459
|
}
|
|
1356
1460
|
|
|
1357
1461
|
declare class SceneContextMenuComponent implements OnDestroy {
|
|
@@ -1420,9 +1524,28 @@ declare class ConfigurationSideBarMenuModule {
|
|
|
1420
1524
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationSideBarMenuModule>;
|
|
1421
1525
|
}
|
|
1422
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
|
+
|
|
1423
1546
|
declare class InphotoThreedsceneModule {
|
|
1424
1547
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedsceneModule, never>;
|
|
1425
|
-
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]>;
|
|
1426
1549
|
static ɵinj: i0.ɵɵInjectorDeclaration<InphotoThreedsceneModule>;
|
|
1427
1550
|
}
|
|
1428
1551
|
|
|
@@ -1487,6 +1610,8 @@ declare class InPhotoComponent {
|
|
|
1487
1610
|
private _dataService;
|
|
1488
1611
|
showClass(): boolean;
|
|
1489
1612
|
set settings(input: any);
|
|
1613
|
+
debug: boolean;
|
|
1614
|
+
set useMockRoomData(value: boolean);
|
|
1490
1615
|
showImageUpload: boolean;
|
|
1491
1616
|
showImagePrepare: boolean;
|
|
1492
1617
|
showImageNextStep: boolean;
|
|
@@ -1498,14 +1623,15 @@ declare class InPhotoComponent {
|
|
|
1498
1623
|
preparedImage: string;
|
|
1499
1624
|
aiDecorationImage: string;
|
|
1500
1625
|
roomData: SceneBuildObject;
|
|
1501
|
-
|
|
1626
|
+
segmentImage: string;
|
|
1502
1627
|
constructor(appInitializerService: AppInitializerService, appEventService: InphotoEventService, _cdk: ChangeDetectorRef, _dataService: InphotoDataService);
|
|
1628
|
+
private _createMockSceneBuildObject;
|
|
1503
1629
|
handleCancelClick(): void;
|
|
1504
1630
|
startPoint(): void;
|
|
1505
1631
|
handleImageUpload(image: string): void;
|
|
1506
1632
|
handleProcessedRoom(roomData: SceneBuildObject): void;
|
|
1507
1633
|
handleStart3D(data: SceneBuildObject): void;
|
|
1508
|
-
handleSegmentationJob(
|
|
1634
|
+
handleSegmentationJob(image: string): void;
|
|
1509
1635
|
handleSegmentOutput(image: string): void;
|
|
1510
1636
|
handleCancelSegmentClick(): void;
|
|
1511
1637
|
handleMenuChange(event: any): void;
|
|
@@ -1514,7 +1640,19 @@ declare class InPhotoComponent {
|
|
|
1514
1640
|
closeReadyToOpen(): void;
|
|
1515
1641
|
handleOpenCatalog(): void;
|
|
1516
1642
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
|
|
1517
|
-
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;
|
|
1518
1656
|
}
|
|
1519
1657
|
|
|
1520
1658
|
declare class SegmentInpaintComponent {
|
|
@@ -1522,34 +1660,40 @@ declare class SegmentInpaintComponent {
|
|
|
1522
1660
|
private _connectorService;
|
|
1523
1661
|
private _loaderService;
|
|
1524
1662
|
readonly icons: typeof Icon;
|
|
1663
|
+
readonly SegmentationType: typeof SegmentationType;
|
|
1525
1664
|
showClass(): boolean;
|
|
1526
|
-
set
|
|
1527
|
-
get
|
|
1665
|
+
set image(value: string);
|
|
1666
|
+
get image(): string;
|
|
1528
1667
|
cancelClick: EventEmitter<void>;
|
|
1529
1668
|
preparedImage: EventEmitter<string>;
|
|
1530
1669
|
segmentationInPaintingData: any;
|
|
1531
|
-
showInfoDialog: boolean;
|
|
1532
1670
|
canvasInPaint: boolean;
|
|
1671
|
+
inpaintClick: boolean;
|
|
1533
1672
|
canvasErase: boolean;
|
|
1534
1673
|
dragMode: boolean;
|
|
1535
1674
|
showLoader: boolean;
|
|
1536
1675
|
loadingTexts: string[];
|
|
1537
|
-
image: string;
|
|
1538
1676
|
segmentJobId: string;
|
|
1539
|
-
|
|
1677
|
+
segmentJob: SegmentationJob;
|
|
1678
|
+
segmentMode: SegmentationType;
|
|
1679
|
+
brushSize: number;
|
|
1680
|
+
segmentationObjects: SegmentationObject[];
|
|
1681
|
+
private _image;
|
|
1540
1682
|
private _inpaintImageState;
|
|
1541
1683
|
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService);
|
|
1542
|
-
|
|
1684
|
+
handleSegmentationClick(): void;
|
|
1685
|
+
handleSegmentationMask(): void;
|
|
1686
|
+
handleSegmentationObject(): void;
|
|
1543
1687
|
handleCancelClick(): void;
|
|
1544
|
-
openInfoDialog(): void;
|
|
1545
1688
|
toggleEraseMode(erase: boolean): void;
|
|
1546
1689
|
toggleDragMode(value: boolean): void;
|
|
1547
1690
|
handleSegmentationPointClick(event: SegmentationPoint): void;
|
|
1548
1691
|
processInpainted(): void;
|
|
1549
1692
|
handleImageStateChange(image: string): void;
|
|
1693
|
+
handleChangeBrushSize(size: number): void;
|
|
1550
1694
|
private _handleLoader;
|
|
1551
1695
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1552
|
-
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>;
|
|
1553
1697
|
}
|
|
1554
1698
|
|
|
1555
1699
|
declare class SegmentInpaintModule {
|
|
@@ -1562,31 +1706,36 @@ declare class ImageProcessCompleteComponent {
|
|
|
1562
1706
|
iconService: InphotoIconCacheService;
|
|
1563
1707
|
private _connectorService;
|
|
1564
1708
|
private _appEventService;
|
|
1709
|
+
private _dataService;
|
|
1565
1710
|
readonly icons: typeof Icon;
|
|
1566
1711
|
showClass(): boolean;
|
|
1567
1712
|
set image(value: string);
|
|
1568
1713
|
get image(): string;
|
|
1569
1714
|
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1570
1715
|
handleAiDecorationClicked: EventEmitter<string>;
|
|
1571
|
-
|
|
1716
|
+
startSegmentation: EventEmitter<string>;
|
|
1572
1717
|
cancelClick: EventEmitter<void>;
|
|
1573
1718
|
showLoader: boolean;
|
|
1574
1719
|
loadingTexts: string[];
|
|
1575
1720
|
private _image;
|
|
1576
1721
|
private _subs;
|
|
1577
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
|
|
1722
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService, _dataService: InphotoDataService);
|
|
1723
|
+
handleSetImage(): void;
|
|
1578
1724
|
handle3DClick(): void;
|
|
1579
1725
|
handleAiClick(): void;
|
|
1580
1726
|
handleContinueSegmentationClick(): void;
|
|
1727
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1728
|
+
handleRemoveObjectsFromHistory(image: string): void;
|
|
1581
1729
|
handleCancelClick(): void;
|
|
1582
1730
|
private _handleRoomReceived;
|
|
1731
|
+
private _startRoomGeneration;
|
|
1583
1732
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteComponent, never>;
|
|
1584
|
-
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>;
|
|
1585
1734
|
}
|
|
1586
1735
|
|
|
1587
1736
|
declare class ImageProcessCompleteModule {
|
|
1588
1737
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteModule, never>;
|
|
1589
|
-
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]>;
|
|
1590
1739
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageProcessCompleteModule>;
|
|
1591
1740
|
}
|
|
1592
1741
|
|