@colijnit/inphoto 300.1.7 → 300.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/assets/inphoto-add-products-tile.jpg +0 -0
  2. package/assets/inphoto-change-floorl.jpg +0 -0
  3. package/assets/inphoto-change-wall.jpg +0 -0
  4. package/fesm2022/colijnit-inphoto.mjs +1674 -681
  5. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  6. package/icons/layer_group_sharp_solid.svg +1 -0
  7. package/icons/paint_roller_sharp_solid.svg +1 -0
  8. package/index.d.ts +247 -75
  9. package/lib/component/ai-prompt/style/_layout.scss +76 -86
  10. package/lib/component/ai-prompt/style/_material-definition.scss +38 -6
  11. package/lib/component/ai-prompt/style/_theme.scss +78 -67
  12. package/lib/component/canvas-tool-bar/style/_layout.scss +71 -65
  13. package/lib/component/canvas-tool-bar/style/_material-definition.scss +40 -11
  14. package/lib/component/canvas-tool-bar/style/_theme.scss +138 -106
  15. package/lib/component/catalog/style/_layout.scss +68 -55
  16. package/lib/component/catalog/style/_material-definition.scss +22 -4
  17. package/lib/component/catalog/style/_theme.scss +43 -59
  18. package/lib/component/configuration-side-bar-menu/style/_layout.scss +33 -33
  19. package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +10 -6
  20. package/lib/component/configuration-side-bar-menu/style/_theme.scss +4 -1
  21. package/lib/component/edit-canvas/style/_layout.scss +74 -75
  22. package/lib/component/edit-canvas/style/_material-definition.scss +21 -3
  23. package/lib/component/edit-canvas/style/_theme.scss +26 -46
  24. package/lib/component/error-dialog/style/_layout.scss +36 -39
  25. package/lib/component/error-dialog/style/_material-definition.scss +12 -3
  26. package/lib/component/error-dialog/style/_theme.scss +17 -10
  27. package/lib/component/header/style/_layout.scss +20 -21
  28. package/lib/component/header/style/_material-definition.scss +8 -6
  29. package/lib/component/header/style/_theme.scss +7 -0
  30. package/lib/component/image-enhancer/style/_layout.scss +37 -38
  31. package/lib/component/image-enhancer/style/_material-definition.scss +13 -6
  32. package/lib/component/image-enhancer/style/_theme.scss +45 -43
  33. package/lib/component/image-enhancer-style/style/_layout.scss +65 -107
  34. package/lib/component/image-enhancer-style/style/_material-definition.scss +16 -3
  35. package/lib/component/image-enhancer-style/style/_theme.scss +120 -72
  36. package/lib/component/image-enhancer-upload/style/_layout.scss +48 -11
  37. package/lib/component/image-enhancer-upload/style/_material-definition.scss +14 -3
  38. package/lib/component/image-enhancer-upload/style/_theme.scss +66 -87
  39. package/lib/component/image-history/style/_layout.scss +57 -127
  40. package/lib/component/image-history/style/_material-definition.scss +20 -5
  41. package/lib/component/image-history/style/_theme.scss +25 -46
  42. package/lib/component/image-history-tile/style/_layout.scss +53 -56
  43. package/lib/component/image-history-tile/style/_material-definition.scss +15 -3
  44. package/lib/component/image-history-tile/style/_theme.scss +32 -28
  45. package/lib/component/image-overlay/style/_layout.scss +84 -0
  46. package/lib/component/image-overlay/style/_material-definition.scss +21 -0
  47. package/lib/component/image-overlay/style/_theme.scss +40 -0
  48. package/lib/component/image-overlay/style/material.scss +3 -0
  49. package/lib/component/image-process-complete/style/_layout.scss +42 -33
  50. package/lib/component/image-process-complete/style/_material-definition.scss +13 -5
  51. package/lib/component/image-process-complete/style/_theme.scss +24 -18
  52. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +15 -17
  53. package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +9 -3
  54. package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +15 -12
  55. package/lib/component/image-tile/style/_layout.scss +102 -101
  56. package/lib/component/image-tile/style/_material-definition.scss +18 -3
  57. package/lib/component/image-tile/style/_theme.scss +58 -53
  58. package/lib/component/image-upload/style/_layout.scss +93 -103
  59. package/lib/component/image-upload/style/_material-definition.scss +35 -9
  60. package/lib/component/image-upload/style/_theme.scss +103 -80
  61. package/lib/component/inphoto/style/_layout.scss +11 -0
  62. package/lib/component/inphoto/style/_material-definition.scss +3 -1
  63. package/lib/component/inphoto/style/_theme.scss +2 -1
  64. package/lib/component/marker/style/_layout.scss +30 -0
  65. package/lib/component/marker/style/_material-definition.scss +12 -0
  66. package/lib/component/marker/style/_theme.scss +30 -0
  67. package/lib/component/marker/style/material.scss +3 -0
  68. package/lib/component/photo-editor/style/_layout.scss +38 -29
  69. package/lib/component/photo-editor/style/_material-definition.scss +8 -3
  70. package/lib/component/photo-editor/style/_theme.scss +2 -1
  71. package/lib/component/prepare-starting-image/style/_layout.scss +34 -26
  72. package/lib/component/prepare-starting-image/style/_material-definition.scss +11 -4
  73. package/lib/component/prepare-starting-image/style/_theme.scss +7 -0
  74. package/lib/component/process-loader/style/_layout.scss +74 -92
  75. package/lib/component/process-loader/style/_material-definition.scss +24 -6
  76. package/lib/component/process-loader/style/_theme.scss +128 -103
  77. package/lib/component/scene-context-menu/style/_layout.scss +59 -66
  78. package/lib/component/scene-context-menu/style/_material-definition.scss +27 -4
  79. package/lib/component/scene-context-menu/style/_theme.scss +57 -44
  80. package/lib/component/segment-inpaint/style/_layout.scss +51 -32
  81. package/lib/component/segment-inpaint/style/_material-definition.scss +11 -3
  82. package/lib/component/segment-inpaint/style/_theme.scss +29 -19
  83. package/lib/component/side-bar-menu/style/_layout.scss +26 -45
  84. package/lib/component/side-bar-menu/style/_material-definition.scss +12 -3
  85. package/lib/component/side-bar-menu/style/_theme.scss +32 -6
  86. package/lib/component/side-panel/style/_layout.scss +45 -40
  87. package/lib/component/side-panel/style/_material-definition.scss +16 -6
  88. package/lib/component/side-panel/style/_theme.scss +39 -44
  89. package/lib/component/step-tile/style/_layout.scss +50 -53
  90. package/lib/component/step-tile/style/_material-definition.scss +20 -6
  91. package/lib/component/step-tile/style/_theme.scss +78 -72
  92. package/lib/component/threedscene/style/_layout.scss +57 -35
  93. package/lib/component/threedscene/style/_material-definition.scss +12 -3
  94. package/lib/component/threedscene/style/_theme.scss +17 -8
  95. package/lib/component/upload-starting-image/style/_layout.scss +58 -51
  96. package/lib/component/upload-starting-image/style/_material-definition.scss +18 -3
  97. package/lib/component/upload-starting-image/style/_theme.scss +39 -46
  98. package/lib/style/_index.scss +0 -1
  99. package/lib/style/_variables.scss +5 -2
  100. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -22,9 +22,9 @@ import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/
22
22
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
23
23
  import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
24
24
  import * as i2 from '@colijnit/corecomponents_v12';
25
- import * as i2$1 from '@angular/forms';
25
+ import * as i4 from '@angular/forms';
26
26
  import * as i7 from '@angular/cdk/drag-drop';
27
- import * as i4 from '@angular/common';
27
+ import * as i4$1 from '@angular/common';
28
28
  import * as i5 from '@colijnit/utilities';
29
29
 
30
30
  declare class InphotoDictionaryService {
@@ -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(json: any): ImageRoomResponse;
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
- floorPlaneMap: ImageRoomResponse;
96
- constructor(image?: string, floorPlaneMap?: ImageRoomResponse);
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(jobId: string, image: string): Promise<CreatedImageResponse>;
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(jobId: string, image: string): Promise<CreatedImageResponse>;
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,17 +776,23 @@ 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 {
756
794
  static ɵfac: i0.ɵɵFactoryDeclaration<EditCanvasModule, never>;
757
- static ɵmod: i0.ɵɵNgModuleDeclaration<EditCanvasModule, [typeof EditCanvasComponent], [typeof i2$1.FormsModule, typeof i2.IconModule, typeof i2.ButtonModule, typeof i2.InputTextModule], [typeof EditCanvasComponent]>;
795
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EditCanvasModule, [typeof EditCanvasComponent], [typeof i2.IconModule], [typeof EditCanvasComponent]>;
758
796
  static ɵinj: i0.ɵɵInjectorDeclaration<EditCanvasModule>;
759
797
  }
760
798
 
@@ -780,18 +818,15 @@ interface MaskImageColorInterface {
780
818
  color: ColorPalette;
781
819
  }
782
820
 
783
- declare class PromptWithImages extends Prompt {
784
- imageData: ImageData[];
785
- }
786
-
787
821
  declare class ImageEnhancer {
788
822
  iconService: InphotoIconCacheService;
789
823
  dataService: InphotoDataService;
790
824
  private _appEventService;
791
825
  readonly icons: typeof Icon;
792
826
  showClass(): boolean;
793
- selectedStyle: EventEmitter<EnhanceStyle>;
794
- createPromptWithImages: EventEmitter<PromptWithImages>;
827
+ canvasImage: string;
828
+ generateStarted: EventEmitter<void>;
829
+ imageGenerated: EventEmitter<string>;
795
830
  backButtonClicked: EventEmitter<void>;
796
831
  changeMarkerColor: EventEmitter<MaskImageColorInterface>;
797
832
  prompt: string;
@@ -800,14 +835,14 @@ declare class ImageEnhancer {
800
835
  collapsed: boolean;
801
836
  constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _appEventService: InphotoEventService);
802
837
  setTab(index: number): void;
803
- handlePromptWithImages(event: PromptWithImages): void;
804
- handleStylePrompt(event: EnhanceStyle): void;
838
+ handleGenerateStarted(): void;
839
+ handleImageGenerated(image: string): void;
805
840
  handleBackClicked(): void;
806
841
  handleChangeMarkerColor(data: MaskImageColorInterface): void;
807
842
  closeDialog(): void;
808
843
  openDialog(): void;
809
844
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancer, never>;
810
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancer, "co-image-enhancer", never, {}, { "selectedStyle": "selectedStyle"; "createPromptWithImages": "createPromptWithImages"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
845
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancer, "co-image-enhancer", never, { "canvasImage": { "alias": "canvasImage"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
811
846
  }
812
847
 
813
848
  declare enum FileTypes {
@@ -864,9 +899,14 @@ declare class ImageEnhancerStyleComponent implements OnInit {
864
899
  connectorService: InPhotoConnectorService;
865
900
  iconCacheService: InphotoIconCacheService;
866
901
  private _changeDetection;
902
+ private _eventService;
867
903
  readonly icons: typeof Icon;
868
904
  get showClass(): boolean;
869
- prompt: EventEmitter<EnhanceStyle>;
905
+ canvasImage: string;
906
+ showInstructionTexts: boolean;
907
+ showResetButton: boolean;
908
+ generateStarted: EventEmitter<void>;
909
+ imageGenerated: EventEmitter<string>;
870
910
  backButtonClicked: EventEmitter<void>;
871
911
  customPrompt: string;
872
912
  customPromptMode: PromptStyle;
@@ -879,20 +919,21 @@ declare class ImageEnhancerStyleComponent implements OnInit {
879
919
  modeCollection: DecorationStyle[];
880
920
  selectedDecorationStyle: DecorationStyle;
881
921
  decorationStyleCollection: DecorationStyle[];
882
- constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef);
922
+ constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
883
923
  ngOnInit(): Promise<void>;
884
924
  handleChangeRoomType(event: DecorationStyle): void;
885
925
  handleChangeMode(event: DecorationStyle): void;
886
926
  handleChangeStyle(event: DecorationStyle): void;
887
927
  handleGenerateClicked(): void;
928
+ handleStyleSelection(event: EnhanceStyle): void;
888
929
  handleBackClicked(): void;
889
930
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerStyleComponent, never>;
890
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerStyleComponent, "co-image-enhancer-style", never, {}, { "prompt": "prompt"; "backButtonClicked": "backButtonClicked"; }, never, never, false, never>;
931
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerStyleComponent, "co-image-enhancer-style", never, { "canvasImage": { "alias": "canvasImage"; "required": false; }; "showInstructionTexts": { "alias": "showInstructionTexts"; "required": false; }; "showResetButton": { "alias": "showResetButton"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; }, never, never, false, never>;
891
932
  }
892
933
 
893
934
  declare class AiPromptComponent {
894
935
  private _changeDetection;
895
- get showClass(): boolean;
936
+ showClass(): boolean;
896
937
  customPrompt: string;
897
938
  set promptMode(value: PromptStyle);
898
939
  get promptMode(): PromptStyle;
@@ -912,7 +953,7 @@ declare class AiPromptComponent {
912
953
 
913
954
  declare class AiPromptModule {
914
955
  static ɵfac: i0.ɵɵFactoryDeclaration<AiPromptModule, never>;
915
- static ɵmod: i0.ɵɵNgModuleDeclaration<AiPromptModule, [typeof AiPromptComponent], [typeof i2.InputTextareaModule, typeof PipeModule, typeof i2$1.FormsModule], [typeof AiPromptComponent]>;
956
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AiPromptModule, [typeof AiPromptComponent], [typeof i2.InputTextareaModule, typeof PipeModule, typeof i4.FormsModule], [typeof AiPromptComponent]>;
916
957
  static ɵinj: i0.ɵɵInjectorDeclaration<AiPromptModule>;
917
958
  }
918
959
 
@@ -922,13 +963,20 @@ declare class ImageEnhancerStyleModule {
922
963
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerStyleModule>;
923
964
  }
924
965
 
966
+ declare class PromptWithImages extends Prompt {
967
+ imageData: ImageData[];
968
+ }
969
+
925
970
  declare class ImageEnhancerUploadComponent {
926
971
  dataService: InphotoDataService;
927
972
  iconCacheService: InphotoIconCacheService;
973
+ private _connectorService;
928
974
  readonly FileTypes: typeof FileTypes;
929
975
  readonly icons: typeof Icon;
930
976
  multiUpload: boolean;
931
- prompt: EventEmitter<PromptWithImages>;
977
+ canvasImage: string;
978
+ generateStarted: EventEmitter<void>;
979
+ imageGenerated: EventEmitter<string>;
932
980
  backButtonClicked: EventEmitter<void>;
933
981
  changeMarkerColor: EventEmitter<MaskImageColorInterface>;
934
982
  showClass(): boolean;
@@ -936,15 +984,16 @@ declare class ImageEnhancerUploadComponent {
936
984
  customPrompt: string;
937
985
  customPromptMode: PromptStyle;
938
986
  showInputError: boolean;
939
- constructor(dataService: InphotoDataService, iconCacheService: InphotoIconCacheService);
987
+ constructor(dataService: InphotoDataService, iconCacheService: InphotoIconCacheService, _connectorService: InPhotoConnectorService);
940
988
  handleImageUpload(event: File[]): void;
941
989
  handleGenerateClicked(): void;
990
+ handleCreatePromptWithImages(event: PromptWithImages): void;
942
991
  handleBackClicked(): void;
943
992
  handleDeleteImage(image: ImageData): void;
944
993
  handleDeleteMask(data: ImageData): void;
945
994
  handleChangeMarkerColor(color: ColorPalette, data: ImageData): void;
946
995
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerUploadComponent, never>;
947
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerUploadComponent, "co-image-enhancer-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; }, { "prompt": "prompt"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
996
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerUploadComponent, "co-image-enhancer-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; "canvasImage": { "alias": "canvasImage"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
948
997
  }
949
998
 
950
999
  declare class ImageTileComponent {
@@ -1011,7 +1060,7 @@ declare class ImageEnhancerModule {
1011
1060
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerModule>;
1012
1061
  }
1013
1062
 
1014
- declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
1063
+ declare class ImageHistoryComponent implements OnInit, AfterViewInit, OnDestroy {
1015
1064
  dataService: InphotoDataService;
1016
1065
  iconService: InphotoIconCacheService;
1017
1066
  private _eventService;
@@ -1019,10 +1068,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
1019
1068
  private tilesRow?;
1020
1069
  showClass(): boolean;
1021
1070
  onResize(): void;
1022
- onEscape(): void;
1023
- onArrowLeft(event: KeyboardEvent): void;
1024
- onArrowRight(event: KeyboardEvent): void;
1025
1071
  setImageAsBackground: EventEmitter<string>;
1072
+ editIn3D: EventEmitter<string>;
1073
+ removeObjects: EventEmitter<string>;
1026
1074
  displayedImages: string[];
1027
1075
  selectedImage: string;
1028
1076
  showFullImage: boolean;
@@ -1030,7 +1078,9 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
1030
1078
  canScrollLeft: boolean;
1031
1079
  canScrollRight: boolean;
1032
1080
  private _subs;
1081
+ private _tilesObserver;
1033
1082
  constructor(dataService: InphotoDataService, iconService: InphotoIconCacheService, _eventService: InphotoEventService);
1083
+ ngOnInit(): void;
1034
1084
  ngAfterViewInit(): void;
1035
1085
  ngOnDestroy(): void;
1036
1086
  setDataCollection(): void;
@@ -1039,16 +1089,11 @@ declare class ImageHistoryComponent implements AfterViewInit, OnDestroy {
1039
1089
  handleCloseFullImage(): void;
1040
1090
  handleRemoveImageFromHistory(event: string): void;
1041
1091
  handleDownloadImage(event: string): void;
1042
- handleDownloadFullImage(): void;
1043
- handleDeleteFullImage(): void;
1044
1092
  scroll(direction: number): void;
1045
1093
  onWheel(event: WheelEvent): void;
1046
1094
  updateScrollState(): void;
1047
- showNextPrevImage(): void;
1048
- showNextLargeImage(): void;
1049
- private _getCurrentIndex;
1050
1095
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageHistoryComponent, never>;
1051
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageHistoryComponent, "co-image-history", never, {}, { "setImageAsBackground": "setImageAsBackground"; }, never, never, false, never>;
1096
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageHistoryComponent, "co-image-history", never, {}, { "setImageAsBackground": "setImageAsBackground"; "editIn3D": "editIn3D"; "removeObjects": "removeObjects"; }, never, never, false, never>;
1052
1097
  }
1053
1098
 
1054
1099
  declare class ImageHistoryTileComponent {
@@ -1072,13 +1117,52 @@ declare class ImageHistoryTileModule {
1072
1117
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryTileModule>;
1073
1118
  }
1074
1119
 
1120
+ declare class ImageOverlayComponent implements OnDestroy {
1121
+ iconService: InphotoIconCacheService;
1122
+ readonly icons: typeof Icon;
1123
+ showClass(): boolean;
1124
+ onEscape(): void;
1125
+ onArrowLeft(event: KeyboardEvent): void;
1126
+ onArrowRight(event: KeyboardEvent): void;
1127
+ onDocumentClick(): void;
1128
+ images: string[];
1129
+ set image(value: string);
1130
+ get image(): string;
1131
+ closeOverlay: EventEmitter<void>;
1132
+ downloadImage: EventEmitter<string>;
1133
+ removeImage: EventEmitter<string>;
1134
+ editIn3D: EventEmitter<string>;
1135
+ removeObjects: EventEmitter<string>;
1136
+ currentImage: string;
1137
+ showOptions: boolean;
1138
+ private _image;
1139
+ constructor(iconService: InphotoIconCacheService);
1140
+ ngOnDestroy(): void;
1141
+ toggleOptions(event: MouseEvent): void;
1142
+ handleClose(): void;
1143
+ handleDownload(): void;
1144
+ handleDelete(): void;
1145
+ handleEditIn3D(): void;
1146
+ handleRemoveObjects(): void;
1147
+ showPrevImage(): void;
1148
+ showNextImage(): void;
1149
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayComponent, never>;
1150
+ 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>;
1151
+ }
1152
+
1153
+ declare class ImageOverlayModule {
1154
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageOverlayModule, never>;
1155
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImageOverlayModule, [typeof ImageOverlayComponent], [typeof PipeModule, typeof i2.ButtonModule, typeof i2.IconModule], [typeof ImageOverlayComponent]>;
1156
+ static ɵinj: i0.ɵɵInjectorDeclaration<ImageOverlayModule>;
1157
+ }
1158
+
1075
1159
  declare class ImageHistoryModule {
1076
1160
  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]>;
1161
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ImageHistoryModule, [typeof ImageHistoryComponent], [typeof ImageHistoryTileModule, typeof ImageOverlayModule, typeof PipeModule, typeof i2.ButtonModule, typeof i2.IconModule], [typeof ImageHistoryComponent]>;
1078
1162
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryModule>;
1079
1163
  }
1080
1164
 
1081
- declare class PhotoEditorComponent implements OnInit {
1165
+ declare class PhotoEditorComponent implements OnDestroy {
1082
1166
  iconService: InphotoIconCacheService;
1083
1167
  dataService: InphotoDataService;
1084
1168
  private _connectorService;
@@ -1089,7 +1173,10 @@ declare class PhotoEditorComponent implements OnInit {
1089
1173
  showClass(): boolean;
1090
1174
  set image(value: string);
1091
1175
  get image(): string;
1176
+ get canvasImage(): string;
1092
1177
  resetButtonClicked: EventEmitter<void>;
1178
+ handleStart3D: EventEmitter<SceneBuildObject>;
1179
+ startSegmentation: EventEmitter<string>;
1093
1180
  showLoader: boolean;
1094
1181
  loadingTexts: string[];
1095
1182
  canvasErase: boolean;
@@ -1099,14 +1186,17 @@ declare class PhotoEditorComponent implements OnInit {
1099
1186
  canvasMaskColor: ColorPalette;
1100
1187
  private _image;
1101
1188
  private _canvasImage;
1189
+ private _subs;
1102
1190
  constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
1103
- ngOnInit(): void;
1191
+ ngOnDestroy(): void;
1104
1192
  toggleEraseMode(state: boolean): void;
1105
1193
  toggleDragMode(value: boolean): void;
1106
1194
  handleChangeBrushSize(size: number): void;
1107
- handleCreatePromptWithImages(event: PromptWithImages): void;
1108
- handleStyleSelection(event: EnhanceStyle): void;
1195
+ handleGenerateStarted(): void;
1196
+ handleImageGenerated(image: string): void;
1109
1197
  handleSetImageFromHistory(event: string): void;
1198
+ handleEditIn3DFromHistory(image: string): void;
1199
+ handleRemoveObjectsFromHistory(image: string): void;
1110
1200
  handleBackButtonClicked(): void;
1111
1201
  handleImageUpload(event: File[]): void;
1112
1202
  handleChangeMarkerColor(data: MaskImageColorInterface): void;
@@ -1114,8 +1204,9 @@ declare class PhotoEditorComponent implements OnInit {
1114
1204
  private _handleSetLoader;
1115
1205
  private _handleImageResponse;
1116
1206
  private _addToHistory;
1207
+ private _handleRoomReceived;
1117
1208
  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>;
1209
+ 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
1210
  }
1120
1211
 
1121
1212
  declare class ProcessLoaderComponent implements OnDestroy {
@@ -1147,7 +1238,7 @@ declare class ProcessLoaderComponent implements OnDestroy {
1147
1238
 
1148
1239
  declare class ProcessLoaderModule {
1149
1240
  static ɵfac: i0.ɵɵFactoryDeclaration<ProcessLoaderModule, never>;
1150
- static ɵmod: i0.ɵɵNgModuleDeclaration<ProcessLoaderModule, [typeof ProcessLoaderComponent], [typeof i2.LoaderModule, typeof PipeModule, typeof i4.DecimalPipe, typeof i5.UtilitiesPipesModule, typeof i2.IconModule], [typeof ProcessLoaderComponent]>;
1241
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProcessLoaderModule, [typeof ProcessLoaderComponent], [typeof i2.LoaderModule, typeof PipeModule, typeof i4$1.DecimalPipe, typeof i5.UtilitiesPipesModule, typeof i2.IconModule], [typeof ProcessLoaderComponent]>;
1151
1242
  static ɵinj: i0.ɵɵInjectorDeclaration<ProcessLoaderModule>;
1152
1243
  }
1153
1244
 
@@ -1173,6 +1264,14 @@ declare class CanvasToolBarComponent {
1173
1264
  changeEraseMode: EventEmitter<boolean>;
1174
1265
  changeDragMode: EventEmitter<boolean>;
1175
1266
  changeBrushSize: EventEmitter<number>;
1267
+ changeZoomIn: EventEmitter<void>;
1268
+ changeZoomOut: EventEmitter<void>;
1269
+ changeZoomInput: EventEmitter<Event>;
1270
+ zoomPercent: number;
1271
+ minZoomPercent: number;
1272
+ maxZoomPercent: number;
1273
+ canZoomIn: boolean;
1274
+ canZoomOut: boolean;
1176
1275
  showBrushSize: boolean;
1177
1276
  private _canvasInpaintMode;
1178
1277
  private _canvasEraseMode;
@@ -1183,13 +1282,16 @@ declare class CanvasToolBarComponent {
1183
1282
  selectEraser(): void;
1184
1283
  toggleDragMode(): void;
1185
1284
  onBrushSizeChange(event: Event): void;
1285
+ zoomIn(): void;
1286
+ zoomOut(): void;
1287
+ onZoomInput(event: Event): void;
1186
1288
  static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolBarComponent, never>;
1187
- static ɵcmp: i0.ɵɵComponentDeclaration<CanvasToolBarComponent, "co-canvas-tool-bar", never, { "canvasInpaintMode": { "alias": "canvasInpaintMode"; "required": false; }; "canvasEraseMode": { "alias": "canvasEraseMode"; "required": false; }; "canvasDragMode": { "alias": "canvasDragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "minBrushSize": { "alias": "minBrushSize"; "required": false; }; "maxBrushSize": { "alias": "maxBrushSize"; "required": false; }; "brushSizeStep": { "alias": "brushSizeStep"; "required": false; }; }, { "changeEraseMode": "changeEraseMode"; "changeDragMode": "changeDragMode"; "changeBrushSize": "changeBrushSize"; }, never, never, false, never>;
1289
+ static ɵcmp: i0.ɵɵComponentDeclaration<CanvasToolBarComponent, "co-canvas-tool-bar", never, { "canvasInpaintMode": { "alias": "canvasInpaintMode"; "required": false; }; "canvasEraseMode": { "alias": "canvasEraseMode"; "required": false; }; "canvasDragMode": { "alias": "canvasDragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "minBrushSize": { "alias": "minBrushSize"; "required": false; }; "maxBrushSize": { "alias": "maxBrushSize"; "required": false; }; "brushSizeStep": { "alias": "brushSizeStep"; "required": false; }; "zoomPercent": { "alias": "zoomPercent"; "required": false; }; "minZoomPercent": { "alias": "minZoomPercent"; "required": false; }; "maxZoomPercent": { "alias": "maxZoomPercent"; "required": false; }; "canZoomIn": { "alias": "canZoomIn"; "required": false; }; "canZoomOut": { "alias": "canZoomOut"; "required": false; }; }, { "changeEraseMode": "changeEraseMode"; "changeDragMode": "changeDragMode"; "changeBrushSize": "changeBrushSize"; "changeZoomIn": "changeZoomIn"; "changeZoomOut": "changeZoomOut"; "changeZoomInput": "changeZoomInput"; }, never, never, false, never>;
1188
1290
  }
1189
1291
 
1190
1292
  declare class CanvasToolBarModule {
1191
1293
  static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolBarModule, never>;
1192
- static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasToolBarModule, [typeof CanvasToolBarComponent], [typeof i2.ButtonModule, typeof i2.IconModule, typeof PipeModule, typeof i7.CdkDrag, typeof i7.CdkDragHandle], [typeof CanvasToolBarComponent]>;
1294
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasToolBarModule, [typeof CanvasToolBarComponent], [typeof i2.ButtonModule, typeof i2.IconModule, typeof i2.InputTextModule, typeof PipeModule, typeof i7.CdkDrag, typeof i7.CdkDragHandle, typeof i4.FormsModule], [typeof CanvasToolBarComponent]>;
1193
1295
  static ɵinj: i0.ɵɵInjectorDeclaration<CanvasToolBarModule>;
1194
1296
  }
1195
1297
 
@@ -1199,33 +1301,31 @@ declare class PhotoEditorModule {
1199
1301
  static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
1200
1302
  }
1201
1303
 
1202
- interface SegmentationJob {
1203
- image: string;
1204
- segmentJobId: string;
1205
- }
1206
-
1207
1304
  declare class PrepareStartingImageComponent {
1208
1305
  iconService: InphotoIconCacheService;
1209
1306
  private _connectorService;
1307
+ private _appEventService;
1210
1308
  readonly icons: typeof Icon;
1211
1309
  showClass(): boolean;
1212
1310
  image: string;
1213
1311
  cancelClick: EventEmitter<void>;
1214
1312
  processedRoom: EventEmitter<SceneBuildObject>;
1215
- segmentationJobId: EventEmitter<SegmentationJob>;
1313
+ startSegmentation: EventEmitter<string>;
1216
1314
  imageReady: EventEmitter<string>;
1217
1315
  continueToAI: EventEmitter<string>;
1218
1316
  disableSelectObjectsButton: boolean;
1219
1317
  showLoader: boolean;
1220
1318
  loadingTexts: string[];
1221
- constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService);
1319
+ private _subs;
1320
+ constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
1222
1321
  handleCancelClick(): void;
1223
1322
  handleClearAllObjects(): void;
1323
+ handleClearAllObjectsAndStart3D(): void;
1224
1324
  handleSelectToClearObjects(): void;
1225
1325
  handleContinueToAI(): void;
1226
1326
  private _handleRoomReceived;
1227
1327
  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"; "segmentationJobId": "segmentationJobId"; "imageReady": "imageReady"; "continueToAI": "continueToAI"; }, never, never, false, never>;
1328
+ 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
1329
  }
1230
1330
 
1231
1331
  declare class StepTileComponent {
@@ -1309,15 +1409,17 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
1309
1409
  private _settingsService;
1310
1410
  private _configuringService;
1311
1411
  private _configuratorEventService;
1412
+ private _cdk;
1312
1413
  private _inphotoHudService;
1313
1414
  readonly icons: typeof Icon;
1314
1415
  showClass(): boolean;
1315
1416
  container: ElementRef<HTMLDivElement>;
1417
+ sceneContainer: ElementRef<HTMLDivElement>;
1316
1418
  set room(value: SceneBuildObject);
1317
1419
  get room(): SceneBuildObject;
1318
- set currentArticleConfiguration(value: ArticleConfiguration);
1319
- get currentArticleConfiguration(): ArticleConfiguration;
1420
+ debug: boolean;
1320
1421
  startAiDecoration: EventEmitter<string>;
1422
+ startSegmentation: EventEmitter<string>;
1321
1423
  openCatalog: EventEmitter<void>;
1322
1424
  closeClick: EventEmitter<void>;
1323
1425
  configuratorSettings: any;
@@ -1326,14 +1428,30 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
1326
1428
  firstBuild: boolean;
1327
1429
  loadConfigurator: boolean;
1328
1430
  showConfiguratorSideBar: boolean;
1431
+ showWallOptions: boolean;
1432
+ wallMarkers: {
1433
+ x: number;
1434
+ y: number;
1435
+ uuid: string;
1436
+ }[];
1437
+ selectedWallUuid: string | null;
1438
+ showFloorOptions: boolean;
1439
+ floorMarkers: {
1440
+ x: number;
1441
+ y: number;
1442
+ uuid: string;
1443
+ }[];
1444
+ selectedFloorUuid: string | null;
1329
1445
  private _room;
1330
1446
  private _sceneReady;
1331
1447
  private _currentArticleConfiguration;
1332
1448
  private _userActionNeeded;
1333
1449
  private _subs;
1334
- constructor(iconService: InphotoIconCacheService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _objectsService: InphotoItemService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _inphotoHudService: InphotoHudService);
1450
+ constructor(iconService: InphotoIconCacheService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _objectsService: InphotoItemService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _cdk: ChangeDetectorRef, _inphotoHudService: InphotoHudService);
1335
1451
  ngAfterViewInit(): void;
1336
1452
  init(): void;
1453
+ set currentArticleConfiguration(value: ArticleConfiguration);
1454
+ get currentArticleConfiguration(): ArticleConfiguration;
1337
1455
  handleCancelClick(): void;
1338
1456
  handleOpenCatalog(): void;
1339
1457
  setBackgroundImage(url: string): void;
@@ -1344,6 +1462,15 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
1344
1462
  handleChangeObjectScale(scale: Vector3): void;
1345
1463
  handleCloseConfiguratorSideBar(): void;
1346
1464
  handleThreedToAi(): void;
1465
+ handleSegmentationClick(): void;
1466
+ handleShowWallOptions(): void;
1467
+ handleShowFloorOptions(): void;
1468
+ handleWallMarkerClick(uuid: string): void;
1469
+ handleFloorMarkerClick(uuid: string): void;
1470
+ private _getMeshByUuid;
1471
+ private _getMarkersForMeshType;
1472
+ private _getMeshesByType;
1473
+ private _worldPositionToContainerPixel;
1347
1474
  private _addArticleToScene;
1348
1475
  private _prepareSettings;
1349
1476
  private _handleFirstBuild;
@@ -1351,7 +1478,7 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
1351
1478
  private _continueConfiguration;
1352
1479
  private _resetConfigurator;
1353
1480
  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>;
1481
+ 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
1482
  }
1356
1483
 
1357
1484
  declare class SceneContextMenuComponent implements OnDestroy {
@@ -1416,13 +1543,32 @@ declare class ConfigurationSideBarMenuComponent implements OnDestroy {
1416
1543
 
1417
1544
  declare class ConfigurationSideBarMenuModule {
1418
1545
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationSideBarMenuModule, never>;
1419
- static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationSideBarMenuModule, [typeof ConfigurationSideBarMenuComponent], [typeof i2$1.FormsModule, typeof PipeModule, typeof i2.IconModule, typeof i2.ButtonModule, typeof i4.NgClass], [typeof ConfigurationSideBarMenuComponent]>;
1546
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ConfigurationSideBarMenuModule, [typeof ConfigurationSideBarMenuComponent], [typeof i4.FormsModule, typeof PipeModule, typeof i2.IconModule, typeof i2.ButtonModule, typeof i4$1.NgClass], [typeof ConfigurationSideBarMenuComponent]>;
1420
1547
  static ɵinj: i0.ɵɵInjectorDeclaration<ConfigurationSideBarMenuModule>;
1421
1548
  }
1422
1549
 
1550
+ declare class MarkerComponent {
1551
+ iconService: InphotoIconCacheService;
1552
+ showClass(): boolean;
1553
+ icon: Icon;
1554
+ label: string;
1555
+ selected: boolean;
1556
+ onClick: EventEmitter<void>;
1557
+ constructor(iconService: InphotoIconCacheService);
1558
+ handleClick(): void;
1559
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerComponent, never>;
1560
+ 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>;
1561
+ }
1562
+
1563
+ declare class MarkerModule {
1564
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkerModule, never>;
1565
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MarkerModule, [typeof MarkerComponent], [typeof i2.IconModule], [typeof MarkerComponent]>;
1566
+ static ɵinj: i0.ɵɵInjectorDeclaration<MarkerModule>;
1567
+ }
1568
+
1423
1569
  declare class InphotoThreedsceneModule {
1424
1570
  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]>;
1571
+ 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
1572
  static ɵinj: i0.ɵɵInjectorDeclaration<InphotoThreedsceneModule>;
1427
1573
  }
1428
1574
 
@@ -1487,6 +1633,8 @@ declare class InPhotoComponent {
1487
1633
  private _dataService;
1488
1634
  showClass(): boolean;
1489
1635
  set settings(input: any);
1636
+ debug: boolean;
1637
+ set useMockRoomData(value: boolean);
1490
1638
  showImageUpload: boolean;
1491
1639
  showImagePrepare: boolean;
1492
1640
  showImageNextStep: boolean;
@@ -1498,14 +1646,15 @@ declare class InPhotoComponent {
1498
1646
  preparedImage: string;
1499
1647
  aiDecorationImage: string;
1500
1648
  roomData: SceneBuildObject;
1501
- segmentJob: SegmentationJob;
1649
+ segmentImage: string;
1502
1650
  constructor(appInitializerService: AppInitializerService, appEventService: InphotoEventService, _cdk: ChangeDetectorRef, _dataService: InphotoDataService);
1651
+ private _createMockSceneBuildObject;
1503
1652
  handleCancelClick(): void;
1504
1653
  startPoint(): void;
1505
1654
  handleImageUpload(image: string): void;
1506
1655
  handleProcessedRoom(roomData: SceneBuildObject): void;
1507
1656
  handleStart3D(data: SceneBuildObject): void;
1508
- handleSegmentationJob(segmentJob: SegmentationJob): void;
1657
+ handleSegmentationJob(image: string): void;
1509
1658
  handleSegmentOutput(image: string): void;
1510
1659
  handleCancelSegmentClick(): void;
1511
1660
  handleMenuChange(event: any): void;
@@ -1514,7 +1663,19 @@ declare class InPhotoComponent {
1514
1663
  closeReadyToOpen(): void;
1515
1664
  handleOpenCatalog(): void;
1516
1665
  static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
1517
- static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
1666
+ 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>;
1667
+ }
1668
+
1669
+ declare enum SegmentationType {
1670
+ Yolo = "yolo",
1671
+ Click = "click",
1672
+ Manual = "manual"
1673
+ }
1674
+
1675
+ interface SegmentationJob {
1676
+ image: string;
1677
+ segmentJobId: string;
1678
+ segmentationType: SegmentationType;
1518
1679
  }
1519
1680
 
1520
1681
  declare class SegmentInpaintComponent {
@@ -1522,34 +1683,40 @@ declare class SegmentInpaintComponent {
1522
1683
  private _connectorService;
1523
1684
  private _loaderService;
1524
1685
  readonly icons: typeof Icon;
1686
+ readonly SegmentationType: typeof SegmentationType;
1525
1687
  showClass(): boolean;
1526
- set segmentJob(value: SegmentationJob);
1527
- get segmentJob(): SegmentationJob;
1688
+ set image(value: string);
1689
+ get image(): string;
1528
1690
  cancelClick: EventEmitter<void>;
1529
1691
  preparedImage: EventEmitter<string>;
1530
1692
  segmentationInPaintingData: any;
1531
- showInfoDialog: boolean;
1532
1693
  canvasInPaint: boolean;
1694
+ inpaintClick: boolean;
1533
1695
  canvasErase: boolean;
1534
1696
  dragMode: boolean;
1535
1697
  showLoader: boolean;
1536
1698
  loadingTexts: string[];
1537
- image: string;
1538
1699
  segmentJobId: string;
1539
- private _segmentJob;
1700
+ segmentJob: SegmentationJob;
1701
+ segmentMode: SegmentationType;
1702
+ brushSize: number;
1703
+ segmentationObjects: SegmentationObject[];
1704
+ private _image;
1540
1705
  private _inpaintImageState;
1541
1706
  constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService);
1542
- handleSetValues(): void;
1707
+ handleSegmentationClick(): void;
1708
+ handleSegmentationMask(): void;
1709
+ handleSegmentationObject(): void;
1543
1710
  handleCancelClick(): void;
1544
- openInfoDialog(): void;
1545
1711
  toggleEraseMode(erase: boolean): void;
1546
1712
  toggleDragMode(value: boolean): void;
1547
1713
  handleSegmentationPointClick(event: SegmentationPoint): void;
1548
1714
  processInpainted(): void;
1549
1715
  handleImageStateChange(image: string): void;
1716
+ handleChangeBrushSize(size: number): void;
1550
1717
  private _handleLoader;
1551
1718
  static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
1552
- static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "segmentJob": { "alias": "segmentJob"; "required": false; }; }, { "cancelClick": "cancelClick"; "preparedImage": "preparedImage"; }, never, never, false, never>;
1719
+ static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "preparedImage": "preparedImage"; }, never, never, false, never>;
1553
1720
  }
1554
1721
 
1555
1722
  declare class SegmentInpaintModule {
@@ -1562,31 +1729,36 @@ declare class ImageProcessCompleteComponent {
1562
1729
  iconService: InphotoIconCacheService;
1563
1730
  private _connectorService;
1564
1731
  private _appEventService;
1732
+ private _dataService;
1565
1733
  readonly icons: typeof Icon;
1566
1734
  showClass(): boolean;
1567
1735
  set image(value: string);
1568
1736
  get image(): string;
1569
1737
  handleStart3D: EventEmitter<SceneBuildObject>;
1570
1738
  handleAiDecorationClicked: EventEmitter<string>;
1571
- handleContinueSegmentation: EventEmitter<SegmentationJob>;
1739
+ startSegmentation: EventEmitter<string>;
1572
1740
  cancelClick: EventEmitter<void>;
1573
1741
  showLoader: boolean;
1574
1742
  loadingTexts: string[];
1575
1743
  private _image;
1576
1744
  private _subs;
1577
- constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
1745
+ constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService, _dataService: InphotoDataService);
1746
+ handleSetImage(): void;
1578
1747
  handle3DClick(): void;
1579
1748
  handleAiClick(): void;
1580
1749
  handleContinueSegmentationClick(): void;
1750
+ handleEditIn3DFromHistory(image: string): void;
1751
+ handleRemoveObjectsFromHistory(image: string): void;
1581
1752
  handleCancelClick(): void;
1582
1753
  private _handleRoomReceived;
1754
+ private _startRoomGeneration;
1583
1755
  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"; "handleContinueSegmentation": "handleContinueSegmentation"; "cancelClick": "cancelClick"; }, never, never, false, never>;
1756
+ 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
1757
  }
1586
1758
 
1587
1759
  declare class ImageProcessCompleteModule {
1588
1760
  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]>;
1761
+ 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
1762
  static ɵinj: i0.ɵɵInjectorDeclaration<ImageProcessCompleteModule>;
1591
1763
  }
1592
1764
 
@@ -1621,4 +1793,4 @@ declare class InPhotoModule {
1621
1793
  static ɵinj: i0.ɵɵInjectorDeclaration<InPhotoModule>;
1622
1794
  }
1623
1795
 
1624
- export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, UploadStartingImageComponent, UploadStartingImageModule };
1796
+ export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoConnectorService, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoSettingsService, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, UploadStartingImageComponent, UploadStartingImageModule };