@colijnit/inphoto 301.1.3 → 301.1.4

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.
@@ -3337,6 +3337,7 @@ class ImageEnhancerStyleComponent {
3337
3337
  new AiImageStyleOption('Eclectic', 'Eclectic', './assets/06-eclectic.jpg'),
3338
3338
  new AiImageStyleOption('Japanese / Zen', 'Japanese / Zen', './assets/07-japanese-zen.jpg')
3339
3339
  ];
3340
+ this.selectedDecorationStyle = this.decorationStyleCollection[0];
3340
3341
  // TODO new AiImageStyleOption('Hollywood Regency', 'Hollywood Regency', './assets/') => NO IMAGE
3341
3342
  if (modes && modes.length > 0) {
3342
3343
  for (const mode of modes) {
@@ -6571,7 +6572,7 @@ class PrepareStartingImageComponent {
6571
6572
  startSegmentation = new EventEmitter();
6572
6573
  imageReady = new EventEmitter();
6573
6574
  continueToAI = new EventEmitter();
6574
- customPrompt;
6575
+ customPrompt = '';
6575
6576
  disableSelectObjectsButton = false;
6576
6577
  showLoader = false;
6577
6578
  // Loading text for getting to 3d
@@ -6689,254 +6690,256 @@ class PrepareStartingImageComponent {
6689
6690
  this._changeDetection.markForCheck();
6690
6691
  }
6691
6692
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PrepareStartingImageComponent, deps: [{ token: InphotoIconCacheService }, { token: InPhotoConnectorService }, { token: InphotoDataService }, { token: ErrorService }, { token: InphotoEventService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6692
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: PrepareStartingImageComponent, isStandalone: false, selector: "co-prepare-starting-image", inputs: { image: "image" }, outputs: { cancelClick: "cancelClick", startSegmentation: "startSegmentation", imageReady: "imageReady", continueToAI: "continueToAI" }, host: { properties: { "class.co-prepare-starting-image": "this.showClass" } }, ngImport: i0, template: `
6693
- <div class="prepare-starting-image-container">
6694
-
6695
- <div class="prepare-image-canvas">
6696
- <div class="prepare-image-canvas-area">
6697
- @if (image) {
6698
- <co-canvas-tool-bar
6699
- dragBoundary=".prepare-starting-image-container"
6700
- [canvasInpaintMode]="false"
6701
- [canvasEraseMode]="canvasErase"
6702
- [canvasDragMode]="dragMode"
6703
- [brushSize]="brushSize"
6704
- [title]="'INPHOTO_MARK_FOR_INSTRUCTIONS'"
6705
- [zoomPercent]="editCanvas.zoomPercent"
6706
- [minZoomPercent]="editCanvas.minZoomPercent"
6707
- [maxZoomPercent]="editCanvas.maxZoomPercent"
6708
- [canZoomIn]="editCanvas.canZoomIn"
6709
- [canZoomOut]="editCanvas.canZoomOut"
6710
- (changeEraseMode)="toggleEraseMode($event)"
6711
- (changeDragMode)="toggleDragMode($event)"
6712
- (changeBrushSize)="handleChangeBrushSize($event)"
6713
- (changeZoomIn)="editCanvas.zoomIn()"
6714
- (changeZoomOut)="editCanvas.zoomOut()"
6715
- (changeZoomInput)="editCanvas.onZoomInput($event)"
6716
- ></co-canvas-tool-bar>
6717
-
6718
- <co-edit-canvas
6719
- #editCanvas
6720
- [inpaintMode]="false"
6721
- [eraserMode]="canvasErase"
6722
- [dragMode]="dragMode"
6723
- [brushSize]="brushSize"
6724
- [image]="image"
6725
- (imageState)="handleUpdateCanvasImage($event)">
6726
- </co-edit-canvas>
6727
- }
6728
- </div>
6729
-
6730
- <div class="prepare-image-bottom">
6731
- <co-image-history
6732
- (setImageAsBackground)="handleSetImageFromHistory($event)"
6733
- (editIn3D)="handleClearAllObjectsAndStart3D($event)"
6734
- (removeObjects)="handleSelectToClearObjects($event)"
6735
- ></co-image-history>
6736
- </div>
6737
- </div>
6738
-
6739
- <div class="prepare-starting-image-dialog">
6740
- <co-side-panel
6741
- [headerClass]="'prepare-starting-dialog-header'"
6742
- [header]="'INPHOTO_EDIT_IMAGE'"
6743
- [description]="'INPHOTO_EDIT_IMAGE_INFO'">
6744
-
6745
- <div class="prepare-starting-image-side-panel">
6746
- <div class="prepare-starting-image-tiles-container">
6747
- <div class="prepare-starting-image-tiles">
6748
- <co-step-tile
6749
- [title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
6750
- [tileIcon]="icons.AngleRightSharpSolid"
6751
- [tileImage]="'how-do-want-to-edit-the-image-01.jpg'"
6752
- (onClick)="handleContinueToAI(redesignMode.style)"
6753
- ></co-step-tile>
6754
- <co-step-tile
6755
- [title]="'INPHOTO_REFERATION_IMAGE'"
6756
- [tileIcon]="icons.AngleRightSharpSolid"
6757
- [tileImage]="'how-do-want-to-edit-the-image-02.jpg'"
6758
- (onClick)="handleContinueToAI(redesignMode.referenceImage)"
6759
- ></co-step-tile>
6760
- <co-step-tile
6761
- [title]="'INPHOTO_IMAGE_ADD_MODELS_FROM_CATALOG'"
6762
- [tileIcon]="icons.AngleRightSharpSolid"
6763
- [tileImage]="'how-do-want-to-edit-the-image-03.jpg'"
6764
- (onClick)="handleClearAllObjectsAndStart3D()"
6765
- ></co-step-tile>
6766
- <co-step-tile
6767
- [title]="'INPHOTO_DELETE_OBJECTS'"
6768
- [tileIcon]="icons.AngleRightSharpSolid"
6769
- [tileImage]="'how-do-want-to-edit-the-image-04.jpg'"
6770
- (onClick)="handleSelectToClearObjects()"
6771
- ></co-step-tile>
6772
- </div>
6773
-
6774
- <div class="prepare-starting-image-side-panel-prompt">
6775
- <co-ai-prompt
6776
- [showModeToggle]="false"
6777
- [(showEmptyInputError)]="showInputError"
6778
- [(customPrompt)]="customPrompt">
6779
- </co-ai-prompt>
6780
- </div>
6781
- </div>
6782
-
6783
- <div class="prepare-starting-image-side-panel-buttons">
6784
- <co-button
6785
- [iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
6786
- [label]="'INPHOTO_RESTART' | localize"
6787
- (onClick)="handleCancelClick()"
6788
- ></co-button>
6789
- <co-button
6790
- class="generate-button"
6791
- [iconData]="iconService.getIcon(icons.SparklesRegularFull)"
6792
- [label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
6793
- (onClick)="handleGenerateClicked()"
6794
- ></co-button>
6795
- </div>
6796
- </div>
6797
- </co-side-panel>
6798
- </div>
6799
- </div>
6800
-
6801
- <!--
6802
- Not sure how to handle this better, we got two types of loaders
6803
- One needs to show 3d related texts, One needs to some AI generating texts.
6804
- -->
6805
- <co-process-loader
6806
- [showLoader]="showAILoader"
6807
- [loadingTexts]="loadingAIgenerationTexts"
6808
- ></co-process-loader>
6809
- <co-process-loader
6810
- [showLoader]="showLoader"
6811
- [loadingTexts]="loadingTexts"
6812
- ></co-process-loader>
6693
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: PrepareStartingImageComponent, isStandalone: false, selector: "co-prepare-starting-image", inputs: { image: "image" }, outputs: { cancelClick: "cancelClick", startSegmentation: "startSegmentation", imageReady: "imageReady", continueToAI: "continueToAI" }, host: { properties: { "class.co-prepare-starting-image": "this.showClass" } }, ngImport: i0, template: `
6694
+ <div class="prepare-starting-image-container">
6695
+
6696
+ <div class="prepare-image-canvas">
6697
+ <div class="prepare-image-canvas-area">
6698
+ @if (image) {
6699
+ <co-canvas-tool-bar
6700
+ dragBoundary=".prepare-starting-image-container"
6701
+ [canvasInpaintMode]="false"
6702
+ [canvasEraseMode]="canvasErase"
6703
+ [canvasDragMode]="dragMode"
6704
+ [brushSize]="brushSize"
6705
+ [title]="'INPHOTO_MARK_FOR_INSTRUCTIONS'"
6706
+ [zoomPercent]="editCanvas.zoomPercent"
6707
+ [minZoomPercent]="editCanvas.minZoomPercent"
6708
+ [maxZoomPercent]="editCanvas.maxZoomPercent"
6709
+ [canZoomIn]="editCanvas.canZoomIn"
6710
+ [canZoomOut]="editCanvas.canZoomOut"
6711
+ (changeEraseMode)="toggleEraseMode($event)"
6712
+ (changeDragMode)="toggleDragMode($event)"
6713
+ (changeBrushSize)="handleChangeBrushSize($event)"
6714
+ (changeZoomIn)="editCanvas.zoomIn()"
6715
+ (changeZoomOut)="editCanvas.zoomOut()"
6716
+ (changeZoomInput)="editCanvas.onZoomInput($event)"
6717
+ ></co-canvas-tool-bar>
6718
+
6719
+ <co-edit-canvas
6720
+ #editCanvas
6721
+ [inpaintMode]="false"
6722
+ [eraserMode]="canvasErase"
6723
+ [dragMode]="dragMode"
6724
+ [brushSize]="brushSize"
6725
+ [image]="image"
6726
+ (imageState)="handleUpdateCanvasImage($event)">
6727
+ </co-edit-canvas>
6728
+ }
6729
+ </div>
6730
+
6731
+ <div class="prepare-image-bottom">
6732
+ <co-image-history
6733
+ (setImageAsBackground)="handleSetImageFromHistory($event)"
6734
+ (editIn3D)="handleClearAllObjectsAndStart3D($event)"
6735
+ (removeObjects)="handleSelectToClearObjects($event)"
6736
+ ></co-image-history>
6737
+ </div>
6738
+ </div>
6739
+
6740
+ <div class="prepare-starting-image-dialog">
6741
+ <co-side-panel
6742
+ [headerClass]="'prepare-starting-dialog-header'"
6743
+ [header]="'INPHOTO_EDIT_IMAGE'"
6744
+ [description]="'INPHOTO_EDIT_IMAGE_INFO'">
6745
+
6746
+ <div class="prepare-starting-image-side-panel">
6747
+ <div class="prepare-starting-image-tiles-container">
6748
+ <div class="prepare-starting-image-tiles">
6749
+ <co-step-tile
6750
+ [title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
6751
+ [tileIcon]="icons.AngleRightSharpSolid"
6752
+ [tileImage]="'how-do-want-to-edit-the-image-01.jpg'"
6753
+ (onClick)="handleContinueToAI(redesignMode.style)"
6754
+ ></co-step-tile>
6755
+ <co-step-tile
6756
+ [title]="'INPHOTO_REFERATION_IMAGE'"
6757
+ [tileIcon]="icons.AngleRightSharpSolid"
6758
+ [tileImage]="'how-do-want-to-edit-the-image-02.jpg'"
6759
+ (onClick)="handleContinueToAI(redesignMode.referenceImage)"
6760
+ ></co-step-tile>
6761
+ <co-step-tile
6762
+ [title]="'INPHOTO_IMAGE_ADD_MODELS_FROM_CATALOG'"
6763
+ [tileIcon]="icons.AngleRightSharpSolid"
6764
+ [tileImage]="'how-do-want-to-edit-the-image-03.jpg'"
6765
+ (onClick)="handleClearAllObjectsAndStart3D()"
6766
+ ></co-step-tile>
6767
+ <co-step-tile
6768
+ [title]="'INPHOTO_DELETE_OBJECTS'"
6769
+ [tileIcon]="icons.AngleRightSharpSolid"
6770
+ [tileImage]="'how-do-want-to-edit-the-image-04.jpg'"
6771
+ (onClick)="handleSelectToClearObjects()"
6772
+ ></co-step-tile>
6773
+ </div>
6774
+
6775
+ <div class="prepare-starting-image-side-panel-prompt">
6776
+ <co-ai-prompt
6777
+ [showModeToggle]="false"
6778
+ [(showEmptyInputError)]="showInputError"
6779
+ [(customPrompt)]="customPrompt">
6780
+ </co-ai-prompt>
6781
+ </div>
6782
+ </div>
6783
+
6784
+ <div class="prepare-starting-image-side-panel-buttons">
6785
+ <co-button
6786
+ [iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
6787
+ [label]="'INPHOTO_RESTART' | localize"
6788
+ (onClick)="handleCancelClick()"
6789
+ ></co-button>
6790
+ <co-button
6791
+ class="generate-button"
6792
+ [disabled]="!customPrompt.trim()"
6793
+ [iconData]="iconService.getIcon(icons.SparklesRegularFull)"
6794
+ [label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
6795
+ (onClick)="handleGenerateClicked()"
6796
+ ></co-button>
6797
+ </div>
6798
+ </div>
6799
+ </co-side-panel>
6800
+ </div>
6801
+ </div>
6802
+
6803
+ <!--
6804
+ Not sure how to handle this better, we got two types of loaders
6805
+ One needs to show 3d related texts, One needs to some AI generating texts.
6806
+ -->
6807
+ <co-process-loader
6808
+ [showLoader]="showAILoader"
6809
+ [loadingTexts]="loadingAIgenerationTexts"
6810
+ ></co-process-loader>
6811
+ <co-process-loader
6812
+ [showLoader]="showLoader"
6813
+ [loadingTexts]="loadingTexts"
6814
+ ></co-process-loader>
6813
6815
  `, isInline: true, dependencies: [{ kind: "component", type: EditCanvasComponent, selector: "co-edit-canvas", inputs: ["image", "segmentationInPainting", "inpaintMode", "eraserMode", "dragMode", "brushSize", "drawingDisabled", "segmentationObjects"], outputs: ["onSegmentationPointClick", "imageState"] }, { kind: "component", type: ImageHistoryComponent, selector: "co-image-history", outputs: ["setImageAsBackground", "editIn3D", "removeObjects"] }, { kind: "component", type: CanvasToolBarComponent, selector: "co-canvas-tool-bar", inputs: ["canvasInpaintMode", "canvasEraseMode", "canvasDragMode", "brushSize", "title", "dragBoundary", "minBrushSize", "maxBrushSize", "brushSizeStep", "zoomPercent", "minZoomPercent", "maxZoomPercent", "canZoomIn", "canZoomOut"], outputs: ["changeEraseMode", "changeDragMode", "changeBrushSize", "changeZoomIn", "changeZoomOut", "changeZoomInput"] }, { kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: ProcessLoaderComponent, selector: "co-process-loader", inputs: ["showLoader", "loadingTexts"] }, { kind: "component", type: StepTileComponent, selector: "co-step-tile", inputs: ["tileIcon", "tileImage", "title", "description", "showNewBanner", "numberedStep", "buttonText", "buttonIcon"], outputs: ["onClick", "onButtonClick"] }, { kind: "component", type: SidePanelComponent, selector: "co-side-panel", inputs: ["header", "description", "headerIcon", "headerClass"], outputs: ["onRestartClick"] }, { kind: "component", type: AiPromptComponent, selector: "co-ai-prompt", inputs: ["showModeToggle", "customPrompt", "promptMode", "showEmptyInputError"], outputs: ["promptModeChange", "customPromptChange", "showEmptyInputErrorChange"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
6814
6816
  }
6815
6817
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PrepareStartingImageComponent, decorators: [{
6816
6818
  type: Component,
6817
6819
  args: [{
6818
6820
  selector: 'co-prepare-starting-image',
6819
- template: `
6820
- <div class="prepare-starting-image-container">
6821
-
6822
- <div class="prepare-image-canvas">
6823
- <div class="prepare-image-canvas-area">
6824
- @if (image) {
6825
- <co-canvas-tool-bar
6826
- dragBoundary=".prepare-starting-image-container"
6827
- [canvasInpaintMode]="false"
6828
- [canvasEraseMode]="canvasErase"
6829
- [canvasDragMode]="dragMode"
6830
- [brushSize]="brushSize"
6831
- [title]="'INPHOTO_MARK_FOR_INSTRUCTIONS'"
6832
- [zoomPercent]="editCanvas.zoomPercent"
6833
- [minZoomPercent]="editCanvas.minZoomPercent"
6834
- [maxZoomPercent]="editCanvas.maxZoomPercent"
6835
- [canZoomIn]="editCanvas.canZoomIn"
6836
- [canZoomOut]="editCanvas.canZoomOut"
6837
- (changeEraseMode)="toggleEraseMode($event)"
6838
- (changeDragMode)="toggleDragMode($event)"
6839
- (changeBrushSize)="handleChangeBrushSize($event)"
6840
- (changeZoomIn)="editCanvas.zoomIn()"
6841
- (changeZoomOut)="editCanvas.zoomOut()"
6842
- (changeZoomInput)="editCanvas.onZoomInput($event)"
6843
- ></co-canvas-tool-bar>
6844
-
6845
- <co-edit-canvas
6846
- #editCanvas
6847
- [inpaintMode]="false"
6848
- [eraserMode]="canvasErase"
6849
- [dragMode]="dragMode"
6850
- [brushSize]="brushSize"
6851
- [image]="image"
6852
- (imageState)="handleUpdateCanvasImage($event)">
6853
- </co-edit-canvas>
6854
- }
6855
- </div>
6856
-
6857
- <div class="prepare-image-bottom">
6858
- <co-image-history
6859
- (setImageAsBackground)="handleSetImageFromHistory($event)"
6860
- (editIn3D)="handleClearAllObjectsAndStart3D($event)"
6861
- (removeObjects)="handleSelectToClearObjects($event)"
6862
- ></co-image-history>
6863
- </div>
6864
- </div>
6865
-
6866
- <div class="prepare-starting-image-dialog">
6867
- <co-side-panel
6868
- [headerClass]="'prepare-starting-dialog-header'"
6869
- [header]="'INPHOTO_EDIT_IMAGE'"
6870
- [description]="'INPHOTO_EDIT_IMAGE_INFO'">
6871
-
6872
- <div class="prepare-starting-image-side-panel">
6873
- <div class="prepare-starting-image-tiles-container">
6874
- <div class="prepare-starting-image-tiles">
6875
- <co-step-tile
6876
- [title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
6877
- [tileIcon]="icons.AngleRightSharpSolid"
6878
- [tileImage]="'how-do-want-to-edit-the-image-01.jpg'"
6879
- (onClick)="handleContinueToAI(redesignMode.style)"
6880
- ></co-step-tile>
6881
- <co-step-tile
6882
- [title]="'INPHOTO_REFERATION_IMAGE'"
6883
- [tileIcon]="icons.AngleRightSharpSolid"
6884
- [tileImage]="'how-do-want-to-edit-the-image-02.jpg'"
6885
- (onClick)="handleContinueToAI(redesignMode.referenceImage)"
6886
- ></co-step-tile>
6887
- <co-step-tile
6888
- [title]="'INPHOTO_IMAGE_ADD_MODELS_FROM_CATALOG'"
6889
- [tileIcon]="icons.AngleRightSharpSolid"
6890
- [tileImage]="'how-do-want-to-edit-the-image-03.jpg'"
6891
- (onClick)="handleClearAllObjectsAndStart3D()"
6892
- ></co-step-tile>
6893
- <co-step-tile
6894
- [title]="'INPHOTO_DELETE_OBJECTS'"
6895
- [tileIcon]="icons.AngleRightSharpSolid"
6896
- [tileImage]="'how-do-want-to-edit-the-image-04.jpg'"
6897
- (onClick)="handleSelectToClearObjects()"
6898
- ></co-step-tile>
6899
- </div>
6900
-
6901
- <div class="prepare-starting-image-side-panel-prompt">
6902
- <co-ai-prompt
6903
- [showModeToggle]="false"
6904
- [(showEmptyInputError)]="showInputError"
6905
- [(customPrompt)]="customPrompt">
6906
- </co-ai-prompt>
6907
- </div>
6908
- </div>
6909
-
6910
- <div class="prepare-starting-image-side-panel-buttons">
6911
- <co-button
6912
- [iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
6913
- [label]="'INPHOTO_RESTART' | localize"
6914
- (onClick)="handleCancelClick()"
6915
- ></co-button>
6916
- <co-button
6917
- class="generate-button"
6918
- [iconData]="iconService.getIcon(icons.SparklesRegularFull)"
6919
- [label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
6920
- (onClick)="handleGenerateClicked()"
6921
- ></co-button>
6922
- </div>
6923
- </div>
6924
- </co-side-panel>
6925
- </div>
6926
- </div>
6927
-
6928
- <!--
6929
- Not sure how to handle this better, we got two types of loaders
6930
- One needs to show 3d related texts, One needs to some AI generating texts.
6931
- -->
6932
- <co-process-loader
6933
- [showLoader]="showAILoader"
6934
- [loadingTexts]="loadingAIgenerationTexts"
6935
- ></co-process-loader>
6936
- <co-process-loader
6937
- [showLoader]="showLoader"
6938
- [loadingTexts]="loadingTexts"
6939
- ></co-process-loader>
6821
+ template: `
6822
+ <div class="prepare-starting-image-container">
6823
+
6824
+ <div class="prepare-image-canvas">
6825
+ <div class="prepare-image-canvas-area">
6826
+ @if (image) {
6827
+ <co-canvas-tool-bar
6828
+ dragBoundary=".prepare-starting-image-container"
6829
+ [canvasInpaintMode]="false"
6830
+ [canvasEraseMode]="canvasErase"
6831
+ [canvasDragMode]="dragMode"
6832
+ [brushSize]="brushSize"
6833
+ [title]="'INPHOTO_MARK_FOR_INSTRUCTIONS'"
6834
+ [zoomPercent]="editCanvas.zoomPercent"
6835
+ [minZoomPercent]="editCanvas.minZoomPercent"
6836
+ [maxZoomPercent]="editCanvas.maxZoomPercent"
6837
+ [canZoomIn]="editCanvas.canZoomIn"
6838
+ [canZoomOut]="editCanvas.canZoomOut"
6839
+ (changeEraseMode)="toggleEraseMode($event)"
6840
+ (changeDragMode)="toggleDragMode($event)"
6841
+ (changeBrushSize)="handleChangeBrushSize($event)"
6842
+ (changeZoomIn)="editCanvas.zoomIn()"
6843
+ (changeZoomOut)="editCanvas.zoomOut()"
6844
+ (changeZoomInput)="editCanvas.onZoomInput($event)"
6845
+ ></co-canvas-tool-bar>
6846
+
6847
+ <co-edit-canvas
6848
+ #editCanvas
6849
+ [inpaintMode]="false"
6850
+ [eraserMode]="canvasErase"
6851
+ [dragMode]="dragMode"
6852
+ [brushSize]="brushSize"
6853
+ [image]="image"
6854
+ (imageState)="handleUpdateCanvasImage($event)">
6855
+ </co-edit-canvas>
6856
+ }
6857
+ </div>
6858
+
6859
+ <div class="prepare-image-bottom">
6860
+ <co-image-history
6861
+ (setImageAsBackground)="handleSetImageFromHistory($event)"
6862
+ (editIn3D)="handleClearAllObjectsAndStart3D($event)"
6863
+ (removeObjects)="handleSelectToClearObjects($event)"
6864
+ ></co-image-history>
6865
+ </div>
6866
+ </div>
6867
+
6868
+ <div class="prepare-starting-image-dialog">
6869
+ <co-side-panel
6870
+ [headerClass]="'prepare-starting-dialog-header'"
6871
+ [header]="'INPHOTO_EDIT_IMAGE'"
6872
+ [description]="'INPHOTO_EDIT_IMAGE_INFO'">
6873
+
6874
+ <div class="prepare-starting-image-side-panel">
6875
+ <div class="prepare-starting-image-tiles-container">
6876
+ <div class="prepare-starting-image-tiles">
6877
+ <co-step-tile
6878
+ [title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
6879
+ [tileIcon]="icons.AngleRightSharpSolid"
6880
+ [tileImage]="'how-do-want-to-edit-the-image-01.jpg'"
6881
+ (onClick)="handleContinueToAI(redesignMode.style)"
6882
+ ></co-step-tile>
6883
+ <co-step-tile
6884
+ [title]="'INPHOTO_REFERATION_IMAGE'"
6885
+ [tileIcon]="icons.AngleRightSharpSolid"
6886
+ [tileImage]="'how-do-want-to-edit-the-image-02.jpg'"
6887
+ (onClick)="handleContinueToAI(redesignMode.referenceImage)"
6888
+ ></co-step-tile>
6889
+ <co-step-tile
6890
+ [title]="'INPHOTO_IMAGE_ADD_MODELS_FROM_CATALOG'"
6891
+ [tileIcon]="icons.AngleRightSharpSolid"
6892
+ [tileImage]="'how-do-want-to-edit-the-image-03.jpg'"
6893
+ (onClick)="handleClearAllObjectsAndStart3D()"
6894
+ ></co-step-tile>
6895
+ <co-step-tile
6896
+ [title]="'INPHOTO_DELETE_OBJECTS'"
6897
+ [tileIcon]="icons.AngleRightSharpSolid"
6898
+ [tileImage]="'how-do-want-to-edit-the-image-04.jpg'"
6899
+ (onClick)="handleSelectToClearObjects()"
6900
+ ></co-step-tile>
6901
+ </div>
6902
+
6903
+ <div class="prepare-starting-image-side-panel-prompt">
6904
+ <co-ai-prompt
6905
+ [showModeToggle]="false"
6906
+ [(showEmptyInputError)]="showInputError"
6907
+ [(customPrompt)]="customPrompt">
6908
+ </co-ai-prompt>
6909
+ </div>
6910
+ </div>
6911
+
6912
+ <div class="prepare-starting-image-side-panel-buttons">
6913
+ <co-button
6914
+ [iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
6915
+ [label]="'INPHOTO_RESTART' | localize"
6916
+ (onClick)="handleCancelClick()"
6917
+ ></co-button>
6918
+ <co-button
6919
+ class="generate-button"
6920
+ [disabled]="!customPrompt.trim()"
6921
+ [iconData]="iconService.getIcon(icons.SparklesRegularFull)"
6922
+ [label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
6923
+ (onClick)="handleGenerateClicked()"
6924
+ ></co-button>
6925
+ </div>
6926
+ </div>
6927
+ </co-side-panel>
6928
+ </div>
6929
+ </div>
6930
+
6931
+ <!--
6932
+ Not sure how to handle this better, we got two types of loaders
6933
+ One needs to show 3d related texts, One needs to some AI generating texts.
6934
+ -->
6935
+ <co-process-loader
6936
+ [showLoader]="showAILoader"
6937
+ [loadingTexts]="loadingAIgenerationTexts"
6938
+ ></co-process-loader>
6939
+ <co-process-loader
6940
+ [showLoader]="showLoader"
6941
+ [loadingTexts]="loadingTexts"
6942
+ ></co-process-loader>
6940
6943
  `,
6941
6944
  encapsulation: ViewEncapsulation.None,
6942
6945
  standalone: false
@@ -10125,6 +10128,7 @@ class SegmentInpaintComponent {
10125
10128
  _loaderService;
10126
10129
  _errorService;
10127
10130
  _dataService;
10131
+ _eventService;
10128
10132
  icons = Icon;
10129
10133
  SegmentationType = SegmentationType;
10130
10134
  showClass() {
@@ -10137,7 +10141,6 @@ class SegmentInpaintComponent {
10137
10141
  return this._image;
10138
10142
  }
10139
10143
  backToEditMenuClick = new EventEmitter();
10140
- preparedImage = new EventEmitter();
10141
10144
  segmentationInPaintingData;
10142
10145
  canvasInPaint = true;
10143
10146
  inpaintClick = false;
@@ -10158,12 +10161,13 @@ class SegmentInpaintComponent {
10158
10161
  _image;
10159
10162
  _inpaintImageState = '';
10160
10163
  _subs = [];
10161
- constructor(iconService, _connectorService, _loaderService, _errorService, _dataService) {
10164
+ constructor(iconService, _connectorService, _loaderService, _errorService, _dataService, _eventService) {
10162
10165
  this.iconService = iconService;
10163
10166
  this._connectorService = _connectorService;
10164
10167
  this._loaderService = _loaderService;
10165
10168
  this._errorService = _errorService;
10166
10169
  this._dataService = _dataService;
10170
+ this._eventService = _eventService;
10167
10171
  this._subs.push(this._errorService.errorAdded.subscribe(() => this._handleError()));
10168
10172
  }
10169
10173
  ngOnDestroy() {
@@ -10241,10 +10245,19 @@ class SegmentInpaintComponent {
10241
10245
  this._connectorService.segmentInpaint(image, this.segmentJobId).then((response) => {
10242
10246
  const image = ImageUtils.validateImage(response.image);
10243
10247
  this._dataService.addGeneratedImage(image);
10244
- this.preparedImage.emit(image);
10245
- this.segmentationInPaintingData = undefined;
10248
+ this._eventService.onGeneratedImageReceived.next();
10249
+ this.showLoader = false;
10250
+ this.handleSetImageFromHistory(image);
10246
10251
  });
10247
10252
  }
10253
+ handleSetImageFromHistory(image) {
10254
+ this.image = image;
10255
+ this._resetSegmentation();
10256
+ }
10257
+ handleEditIn3DFromHistory(image) {
10258
+ this.showLoader = true;
10259
+ this._connectorService.uploadRoomImage(image, true);
10260
+ }
10248
10261
  handleImageStateChange(image) {
10249
10262
  this._inpaintImageState = image;
10250
10263
  }
@@ -10259,223 +10272,250 @@ class SegmentInpaintComponent {
10259
10272
  this.segmentMode = undefined;
10260
10273
  }
10261
10274
  }
10275
+ _resetSegmentation() {
10276
+ this.segmentMode = undefined;
10277
+ this.segmentJobId = undefined;
10278
+ this.segmentationInPaintingData = undefined;
10279
+ this.segmentationObjects = [];
10280
+ this.inpaintClick = false;
10281
+ this._inpaintImageState = '';
10282
+ this._eventService.clearMarkedCanvas.next();
10283
+ }
10262
10284
  _handleLoader(showLoader, loadingText, showProgress) {
10263
10285
  this._loaderService.clearLoaderProgress.emit();
10264
10286
  this._loaderService.showLoader.set(showLoader);
10265
10287
  this._loaderService.loadingText.set(loadingText);
10266
10288
  }
10267
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, deps: [{ token: InphotoIconCacheService }, { token: InPhotoConnectorService }, { token: LoaderService }, { token: ErrorService }, { token: InphotoDataService }], target: i0.ɵɵFactoryTarget.Component });
10268
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SegmentInpaintComponent, isStandalone: false, selector: "co-segment-inpaint", inputs: { image: "image" }, outputs: { backToEditMenuClick: "backToEditMenuClick", preparedImage: "preparedImage" }, host: { properties: { "class.co-segment-inpaint": "this.showClass" } }, ngImport: i0, template: `
10269
- <div class="segment-inpaint-container">
10270
- <co-canvas-tool-bar
10271
- dragBoundary=".photo-editor-dialog"
10272
- [canvasInpaintMode]="canvasInPaint"
10273
- [canvasEraseMode]="canvasErase"
10274
- [canvasDragMode]="dragMode"
10275
- [title]="'INPHOTO_INPAINT_MODE'"
10276
- [brushSize]="brushSize"
10277
- [zoomPercent]="editCanvas.zoomPercent"
10278
- [minZoomPercent]="editCanvas.minZoomPercent"
10279
- [maxZoomPercent]="editCanvas.maxZoomPercent"
10280
- [canZoomIn]="editCanvas.canZoomIn"
10281
- [canZoomOut]="editCanvas.canZoomOut"
10282
- (changeEraseMode)="toggleEraseMode($event)"
10283
- (changeDragMode)="toggleDragMode($event)"
10284
- (changeBrushSize)="handleChangeBrushSize($event)"
10285
- (changeZoomIn)="editCanvas.zoomIn()"
10286
- (changeZoomOut)="editCanvas.zoomOut()"
10287
- (changeZoomInput)="editCanvas.onZoomInput($event)"
10288
- ></co-canvas-tool-bar>
10289
-
10290
- <div class="inpaint-container">
10291
- <div class="inpaint-canvas-container">
10292
- <!-- Canvas component -->
10293
- <co-edit-canvas
10294
- #editCanvas
10295
- [class.canvas-disabled]="!segmentMode"
10296
- [drawingDisabled]="!segmentMode"
10297
- [image]="image"
10298
- [inpaintMode]="inpaintClick"
10299
- [eraserMode]="canvasErase"
10300
- [dragMode]="dragMode"
10301
- [brushSize]="brushSize"
10302
- [segmentationInPainting]="segmentationInPaintingData"
10303
- [segmentationObjects]="segmentationObjects"
10304
- (onSegmentationPointClick)="handleSegmentationPointClick($event)"
10305
- (imageState)="handleImageStateChange($event)"
10306
- ></co-edit-canvas>
10307
- </div>
10308
-
10309
- <div class="inpaint-info">
10310
- <div class="inpaint-info-dialog-container">
10311
- <co-side-panel
10312
- [headerClass]="'inpaint-info-dialog-header'"
10313
- [header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
10314
- [description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
10315
- <div class="inpaint-info-dialog-tile-group">
10316
- <co-step-tile
10317
- [class.tile-active]="segmentMode === SegmentationType.Click"
10318
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
10319
- [title]="'INPHOTO_INPAINT_OPTION_ONE'"
10320
- [tileIcon]="icons.AngleRightSharpSolid"
10321
- [tileImage]="'inphoto-make-selection.jpg'"
10322
- (onClick)="handleSegmentationClick()"
10323
- ></co-step-tile>
10324
- <co-step-tile
10325
- [class.tile-active]="segmentMode === SegmentationType.Manual"
10326
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
10327
- [title]="'INPHOTO_INPAINT_OPTION_TWO'"
10328
- [tileIcon]="icons.AngleRightSharpSolid"
10329
- [tileImage]="'inphoto-make-selection.jpg'"
10330
- (onClick)="handleSegmentationMask()"
10331
- ></co-step-tile>
10332
- <co-step-tile
10333
- [class.tile-active]="segmentMode === SegmentationType.Yolo"
10334
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
10335
- [title]="'INPHOTO_INPAINT_OPTION_THREE'"
10336
- [tileIcon]="icons.AngleRightSharpSolid"
10337
- [tileImage]="'inphoto-make-selection.jpg'"
10338
- (onClick)="handleSegmentationObject()"
10339
- ></co-step-tile>
10340
- </div>
10341
- <div class="button-container">
10342
- <co-button
10343
- class="restart-button"
10344
- [iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
10345
- [label]="'INPHOTO_BACK_EDIT_MENU' | localize"
10346
- (onClick)="handleBackToEditMenu()"
10347
- ></co-button>
10348
- <co-button
10349
- class="clear-objects-button"
10350
- [iconData]="iconService.getIcon(icons.TrashCanLight)"
10351
- [label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
10352
- (onClick)="processInpainted()"
10353
- ></co-button>
10354
- </div>
10355
- </co-side-panel>
10356
- </div>
10357
- </div>
10358
- </div>
10359
- </div>
10360
- <co-process-loader
10361
- [showLoader]="showLoader"
10362
- [loadingTexts]="loadingTexts"
10363
- ></co-process-loader>
10364
- `, isInline: true, dependencies: [{ kind: "component", type: EditCanvasComponent, selector: "co-edit-canvas", inputs: ["image", "segmentationInPainting", "inpaintMode", "eraserMode", "dragMode", "brushSize", "drawingDisabled", "segmentationObjects"], outputs: ["onSegmentationPointClick", "imageState"] }, { kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: ProcessLoaderComponent, selector: "co-process-loader", inputs: ["showLoader", "loadingTexts"] }, { kind: "component", type: CanvasToolBarComponent, selector: "co-canvas-tool-bar", inputs: ["canvasInpaintMode", "canvasEraseMode", "canvasDragMode", "brushSize", "title", "dragBoundary", "minBrushSize", "maxBrushSize", "brushSizeStep", "zoomPercent", "minZoomPercent", "maxZoomPercent", "canZoomIn", "canZoomOut"], outputs: ["changeEraseMode", "changeDragMode", "changeBrushSize", "changeZoomIn", "changeZoomOut", "changeZoomInput"] }, { kind: "component", type: StepTileComponent, selector: "co-step-tile", inputs: ["tileIcon", "tileImage", "title", "description", "showNewBanner", "numberedStep", "buttonText", "buttonIcon"], outputs: ["onClick", "onButtonClick"] }, { kind: "component", type: SidePanelComponent, selector: "co-side-panel", inputs: ["header", "description", "headerIcon", "headerClass"], outputs: ["onRestartClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
10289
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, deps: [{ token: InphotoIconCacheService }, { token: InPhotoConnectorService }, { token: LoaderService }, { token: ErrorService }, { token: InphotoDataService }, { token: InphotoEventService }], target: i0.ɵɵFactoryTarget.Component });
10290
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SegmentInpaintComponent, isStandalone: false, selector: "co-segment-inpaint", inputs: { image: "image" }, outputs: { backToEditMenuClick: "backToEditMenuClick" }, host: { properties: { "class.co-segment-inpaint": "this.showClass" } }, ngImport: i0, template: `
10291
+ <div class="segment-inpaint-container">
10292
+ <co-canvas-tool-bar
10293
+ dragBoundary=".photo-editor-dialog"
10294
+ [canvasInpaintMode]="canvasInPaint"
10295
+ [canvasEraseMode]="canvasErase"
10296
+ [canvasDragMode]="dragMode"
10297
+ [title]="'INPHOTO_INPAINT_MODE'"
10298
+ [brushSize]="brushSize"
10299
+ [zoomPercent]="editCanvas.zoomPercent"
10300
+ [minZoomPercent]="editCanvas.minZoomPercent"
10301
+ [maxZoomPercent]="editCanvas.maxZoomPercent"
10302
+ [canZoomIn]="editCanvas.canZoomIn"
10303
+ [canZoomOut]="editCanvas.canZoomOut"
10304
+ (changeEraseMode)="toggleEraseMode($event)"
10305
+ (changeDragMode)="toggleDragMode($event)"
10306
+ (changeBrushSize)="handleChangeBrushSize($event)"
10307
+ (changeZoomIn)="editCanvas.zoomIn()"
10308
+ (changeZoomOut)="editCanvas.zoomOut()"
10309
+ (changeZoomInput)="editCanvas.onZoomInput($event)"
10310
+ ></co-canvas-tool-bar>
10311
+
10312
+ <div class="inpaint-container">
10313
+ <div class="inpaint-canvas-container">
10314
+ <div class="inpaint-canvas-area">
10315
+ <!-- Canvas component -->
10316
+ <co-edit-canvas
10317
+ #editCanvas
10318
+ [class.canvas-disabled]="!segmentMode"
10319
+ [drawingDisabled]="!segmentMode"
10320
+ [image]="image"
10321
+ [inpaintMode]="inpaintClick"
10322
+ [eraserMode]="canvasErase"
10323
+ [dragMode]="dragMode"
10324
+ [brushSize]="brushSize"
10325
+ [segmentationInPainting]="segmentationInPaintingData"
10326
+ [segmentationObjects]="segmentationObjects"
10327
+ (onSegmentationPointClick)="handleSegmentationPointClick($event)"
10328
+ (imageState)="handleImageStateChange($event)"
10329
+ ></co-edit-canvas>
10330
+ </div>
10331
+
10332
+ <div class="inpaint-bottom">
10333
+ <co-image-history
10334
+ (setImageAsBackground)="handleSetImageFromHistory($event)"
10335
+ (editIn3D)="handleEditIn3DFromHistory($event)"
10336
+ (removeObjects)="handleSetImageFromHistory($event)"
10337
+ ></co-image-history>
10338
+ </div>
10339
+ </div>
10340
+
10341
+ <div class="inpaint-info">
10342
+ <div class="inpaint-info-dialog-container">
10343
+ <co-side-panel
10344
+ [headerClass]="'inpaint-info-dialog-header'"
10345
+ [header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
10346
+ [description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
10347
+ <div class="inpaint-info-dialog-tile-group">
10348
+ <co-step-tile
10349
+ [class.tile-active]="segmentMode === SegmentationType.Click"
10350
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
10351
+ [title]="'INPHOTO_INPAINT_OPTION_ONE'"
10352
+ [tileIcon]="icons.AngleRightSharpSolid"
10353
+ [tileImage]="'inphoto-make-selection.jpg'"
10354
+ (onClick)="handleSegmentationClick()"
10355
+ ></co-step-tile>
10356
+ <co-step-tile
10357
+ [class.tile-active]="segmentMode === SegmentationType.Manual"
10358
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
10359
+ [title]="'INPHOTO_INPAINT_OPTION_TWO'"
10360
+ [tileIcon]="icons.AngleRightSharpSolid"
10361
+ [tileImage]="'inphoto-make-selection.jpg'"
10362
+ (onClick)="handleSegmentationMask()"
10363
+ ></co-step-tile>
10364
+ <co-step-tile
10365
+ [class.tile-active]="segmentMode === SegmentationType.Yolo"
10366
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
10367
+ [title]="'INPHOTO_INPAINT_OPTION_THREE'"
10368
+ [tileIcon]="icons.AngleRightSharpSolid"
10369
+ [tileImage]="'inphoto-make-selection.jpg'"
10370
+ (onClick)="handleSegmentationObject()"
10371
+ ></co-step-tile>
10372
+ </div>
10373
+ <div class="button-container">
10374
+ <co-button
10375
+ class="restart-button"
10376
+ [iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
10377
+ [label]="'INPHOTO_BACK_EDIT_MENU' | localize"
10378
+ (onClick)="handleBackToEditMenu()"
10379
+ ></co-button>
10380
+ <co-button
10381
+ class="clear-objects-button"
10382
+ [iconData]="iconService.getIcon(icons.TrashCanLight)"
10383
+ [label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
10384
+ (onClick)="processInpainted()"
10385
+ ></co-button>
10386
+ </div>
10387
+ </co-side-panel>
10388
+ </div>
10389
+ </div>
10390
+ </div>
10391
+ </div>
10392
+ <co-process-loader
10393
+ [showLoader]="showLoader"
10394
+ [loadingTexts]="loadingTexts"
10395
+ ></co-process-loader>
10396
+ `, isInline: true, dependencies: [{ kind: "component", type: EditCanvasComponent, selector: "co-edit-canvas", inputs: ["image", "segmentationInPainting", "inpaintMode", "eraserMode", "dragMode", "brushSize", "drawingDisabled", "segmentationObjects"], outputs: ["onSegmentationPointClick", "imageState"] }, { kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: ProcessLoaderComponent, selector: "co-process-loader", inputs: ["showLoader", "loadingTexts"] }, { kind: "component", type: CanvasToolBarComponent, selector: "co-canvas-tool-bar", inputs: ["canvasInpaintMode", "canvasEraseMode", "canvasDragMode", "brushSize", "title", "dragBoundary", "minBrushSize", "maxBrushSize", "brushSizeStep", "zoomPercent", "minZoomPercent", "maxZoomPercent", "canZoomIn", "canZoomOut"], outputs: ["changeEraseMode", "changeDragMode", "changeBrushSize", "changeZoomIn", "changeZoomOut", "changeZoomInput"] }, { kind: "component", type: StepTileComponent, selector: "co-step-tile", inputs: ["tileIcon", "tileImage", "title", "description", "showNewBanner", "numberedStep", "buttonText", "buttonIcon"], outputs: ["onClick", "onButtonClick"] }, { kind: "component", type: SidePanelComponent, selector: "co-side-panel", inputs: ["header", "description", "headerIcon", "headerClass"], outputs: ["onRestartClick"] }, { kind: "component", type: ImageHistoryComponent, selector: "co-image-history", outputs: ["setImageAsBackground", "editIn3D", "removeObjects"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
10365
10397
  }
10366
10398
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, decorators: [{
10367
10399
  type: Component,
10368
10400
  args: [{
10369
10401
  selector: 'co-segment-inpaint',
10370
- template: `
10371
- <div class="segment-inpaint-container">
10372
- <co-canvas-tool-bar
10373
- dragBoundary=".photo-editor-dialog"
10374
- [canvasInpaintMode]="canvasInPaint"
10375
- [canvasEraseMode]="canvasErase"
10376
- [canvasDragMode]="dragMode"
10377
- [title]="'INPHOTO_INPAINT_MODE'"
10378
- [brushSize]="brushSize"
10379
- [zoomPercent]="editCanvas.zoomPercent"
10380
- [minZoomPercent]="editCanvas.minZoomPercent"
10381
- [maxZoomPercent]="editCanvas.maxZoomPercent"
10382
- [canZoomIn]="editCanvas.canZoomIn"
10383
- [canZoomOut]="editCanvas.canZoomOut"
10384
- (changeEraseMode)="toggleEraseMode($event)"
10385
- (changeDragMode)="toggleDragMode($event)"
10386
- (changeBrushSize)="handleChangeBrushSize($event)"
10387
- (changeZoomIn)="editCanvas.zoomIn()"
10388
- (changeZoomOut)="editCanvas.zoomOut()"
10389
- (changeZoomInput)="editCanvas.onZoomInput($event)"
10390
- ></co-canvas-tool-bar>
10391
-
10392
- <div class="inpaint-container">
10393
- <div class="inpaint-canvas-container">
10394
- <!-- Canvas component -->
10395
- <co-edit-canvas
10396
- #editCanvas
10397
- [class.canvas-disabled]="!segmentMode"
10398
- [drawingDisabled]="!segmentMode"
10399
- [image]="image"
10400
- [inpaintMode]="inpaintClick"
10401
- [eraserMode]="canvasErase"
10402
- [dragMode]="dragMode"
10403
- [brushSize]="brushSize"
10404
- [segmentationInPainting]="segmentationInPaintingData"
10405
- [segmentationObjects]="segmentationObjects"
10406
- (onSegmentationPointClick)="handleSegmentationPointClick($event)"
10407
- (imageState)="handleImageStateChange($event)"
10408
- ></co-edit-canvas>
10409
- </div>
10410
-
10411
- <div class="inpaint-info">
10412
- <div class="inpaint-info-dialog-container">
10413
- <co-side-panel
10414
- [headerClass]="'inpaint-info-dialog-header'"
10415
- [header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
10416
- [description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
10417
- <div class="inpaint-info-dialog-tile-group">
10418
- <co-step-tile
10419
- [class.tile-active]="segmentMode === SegmentationType.Click"
10420
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
10421
- [title]="'INPHOTO_INPAINT_OPTION_ONE'"
10422
- [tileIcon]="icons.AngleRightSharpSolid"
10423
- [tileImage]="'inphoto-make-selection.jpg'"
10424
- (onClick)="handleSegmentationClick()"
10425
- ></co-step-tile>
10426
- <co-step-tile
10427
- [class.tile-active]="segmentMode === SegmentationType.Manual"
10428
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
10429
- [title]="'INPHOTO_INPAINT_OPTION_TWO'"
10430
- [tileIcon]="icons.AngleRightSharpSolid"
10431
- [tileImage]="'inphoto-make-selection.jpg'"
10432
- (onClick)="handleSegmentationMask()"
10433
- ></co-step-tile>
10434
- <co-step-tile
10435
- [class.tile-active]="segmentMode === SegmentationType.Yolo"
10436
- [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
10437
- [title]="'INPHOTO_INPAINT_OPTION_THREE'"
10438
- [tileIcon]="icons.AngleRightSharpSolid"
10439
- [tileImage]="'inphoto-make-selection.jpg'"
10440
- (onClick)="handleSegmentationObject()"
10441
- ></co-step-tile>
10442
- </div>
10443
- <div class="button-container">
10444
- <co-button
10445
- class="restart-button"
10446
- [iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
10447
- [label]="'INPHOTO_BACK_EDIT_MENU' | localize"
10448
- (onClick)="handleBackToEditMenu()"
10449
- ></co-button>
10450
- <co-button
10451
- class="clear-objects-button"
10452
- [iconData]="iconService.getIcon(icons.TrashCanLight)"
10453
- [label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
10454
- (onClick)="processInpainted()"
10455
- ></co-button>
10456
- </div>
10457
- </co-side-panel>
10458
- </div>
10459
- </div>
10460
- </div>
10461
- </div>
10462
- <co-process-loader
10463
- [showLoader]="showLoader"
10464
- [loadingTexts]="loadingTexts"
10465
- ></co-process-loader>
10402
+ template: `
10403
+ <div class="segment-inpaint-container">
10404
+ <co-canvas-tool-bar
10405
+ dragBoundary=".photo-editor-dialog"
10406
+ [canvasInpaintMode]="canvasInPaint"
10407
+ [canvasEraseMode]="canvasErase"
10408
+ [canvasDragMode]="dragMode"
10409
+ [title]="'INPHOTO_INPAINT_MODE'"
10410
+ [brushSize]="brushSize"
10411
+ [zoomPercent]="editCanvas.zoomPercent"
10412
+ [minZoomPercent]="editCanvas.minZoomPercent"
10413
+ [maxZoomPercent]="editCanvas.maxZoomPercent"
10414
+ [canZoomIn]="editCanvas.canZoomIn"
10415
+ [canZoomOut]="editCanvas.canZoomOut"
10416
+ (changeEraseMode)="toggleEraseMode($event)"
10417
+ (changeDragMode)="toggleDragMode($event)"
10418
+ (changeBrushSize)="handleChangeBrushSize($event)"
10419
+ (changeZoomIn)="editCanvas.zoomIn()"
10420
+ (changeZoomOut)="editCanvas.zoomOut()"
10421
+ (changeZoomInput)="editCanvas.onZoomInput($event)"
10422
+ ></co-canvas-tool-bar>
10423
+
10424
+ <div class="inpaint-container">
10425
+ <div class="inpaint-canvas-container">
10426
+ <div class="inpaint-canvas-area">
10427
+ <!-- Canvas component -->
10428
+ <co-edit-canvas
10429
+ #editCanvas
10430
+ [class.canvas-disabled]="!segmentMode"
10431
+ [drawingDisabled]="!segmentMode"
10432
+ [image]="image"
10433
+ [inpaintMode]="inpaintClick"
10434
+ [eraserMode]="canvasErase"
10435
+ [dragMode]="dragMode"
10436
+ [brushSize]="brushSize"
10437
+ [segmentationInPainting]="segmentationInPaintingData"
10438
+ [segmentationObjects]="segmentationObjects"
10439
+ (onSegmentationPointClick)="handleSegmentationPointClick($event)"
10440
+ (imageState)="handleImageStateChange($event)"
10441
+ ></co-edit-canvas>
10442
+ </div>
10443
+
10444
+ <div class="inpaint-bottom">
10445
+ <co-image-history
10446
+ (setImageAsBackground)="handleSetImageFromHistory($event)"
10447
+ (editIn3D)="handleEditIn3DFromHistory($event)"
10448
+ (removeObjects)="handleSetImageFromHistory($event)"
10449
+ ></co-image-history>
10450
+ </div>
10451
+ </div>
10452
+
10453
+ <div class="inpaint-info">
10454
+ <div class="inpaint-info-dialog-container">
10455
+ <co-side-panel
10456
+ [headerClass]="'inpaint-info-dialog-header'"
10457
+ [header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
10458
+ [description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
10459
+ <div class="inpaint-info-dialog-tile-group">
10460
+ <co-step-tile
10461
+ [class.tile-active]="segmentMode === SegmentationType.Click"
10462
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
10463
+ [title]="'INPHOTO_INPAINT_OPTION_ONE'"
10464
+ [tileIcon]="icons.AngleRightSharpSolid"
10465
+ [tileImage]="'inphoto-make-selection.jpg'"
10466
+ (onClick)="handleSegmentationClick()"
10467
+ ></co-step-tile>
10468
+ <co-step-tile
10469
+ [class.tile-active]="segmentMode === SegmentationType.Manual"
10470
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
10471
+ [title]="'INPHOTO_INPAINT_OPTION_TWO'"
10472
+ [tileIcon]="icons.AngleRightSharpSolid"
10473
+ [tileImage]="'inphoto-make-selection.jpg'"
10474
+ (onClick)="handleSegmentationMask()"
10475
+ ></co-step-tile>
10476
+ <co-step-tile
10477
+ [class.tile-active]="segmentMode === SegmentationType.Yolo"
10478
+ [class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
10479
+ [title]="'INPHOTO_INPAINT_OPTION_THREE'"
10480
+ [tileIcon]="icons.AngleRightSharpSolid"
10481
+ [tileImage]="'inphoto-make-selection.jpg'"
10482
+ (onClick)="handleSegmentationObject()"
10483
+ ></co-step-tile>
10484
+ </div>
10485
+ <div class="button-container">
10486
+ <co-button
10487
+ class="restart-button"
10488
+ [iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
10489
+ [label]="'INPHOTO_BACK_EDIT_MENU' | localize"
10490
+ (onClick)="handleBackToEditMenu()"
10491
+ ></co-button>
10492
+ <co-button
10493
+ class="clear-objects-button"
10494
+ [iconData]="iconService.getIcon(icons.TrashCanLight)"
10495
+ [label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
10496
+ (onClick)="processInpainted()"
10497
+ ></co-button>
10498
+ </div>
10499
+ </co-side-panel>
10500
+ </div>
10501
+ </div>
10502
+ </div>
10503
+ </div>
10504
+ <co-process-loader
10505
+ [showLoader]="showLoader"
10506
+ [loadingTexts]="loadingTexts"
10507
+ ></co-process-loader>
10466
10508
  `,
10467
10509
  standalone: false,
10468
10510
  encapsulation: ViewEncapsulation.None
10469
10511
  }]
10470
- }], ctorParameters: () => [{ type: InphotoIconCacheService }, { type: InPhotoConnectorService }, { type: LoaderService }, { type: ErrorService }, { type: InphotoDataService }], propDecorators: { showClass: [{
10512
+ }], ctorParameters: () => [{ type: InphotoIconCacheService }, { type: InPhotoConnectorService }, { type: LoaderService }, { type: ErrorService }, { type: InphotoDataService }, { type: InphotoEventService }], propDecorators: { showClass: [{
10471
10513
  type: HostBinding,
10472
10514
  args: ['class.co-segment-inpaint']
10473
10515
  }], image: [{
10474
10516
  type: Input
10475
10517
  }], backToEditMenuClick: [{
10476
10518
  type: Output
10477
- }], preparedImage: [{
10478
- type: Output
10479
10519
  }] } });
10480
10520
 
10481
10521
  class SideBarMenuComponent {
@@ -10709,130 +10749,128 @@ class InPhotoComponent {
10709
10749
  this.closeReadyToOpen();
10710
10750
  }
10711
10751
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InPhotoComponent, deps: [{ token: AppInitializerService }, { token: InphotoEventService }, { token: i0.ChangeDetectorRef }, { token: InphotoDataService }], target: i0.ɵɵFactoryTarget.Component });
10712
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InPhotoComponent, isStandalone: false, selector: "co-inphoto", inputs: { settings: "settings", image: "image", debug: "debug", useMockRoomData: "useMockRoomData" }, host: { properties: { "class.co-inphoto": "this.showClass" } }, ngImport: i0, template: `
10713
- <div class="co-inphoto-container">
10714
- <div class="co-inphoto-menu">
10715
- <co-side-bar-menu
10716
- [disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
10717
- (optionClicked)="handleMenuChange($event)"
10718
- ></co-side-bar-menu>
10719
- </div>
10720
-
10721
- <div class="co-inphoto-body">
10722
- @if (showImageUpload) {
10723
- <co-upload-starting-image
10724
- (cancelClick)="handleCancelClick()"
10725
- (uploadedImage)="handleImageUpload($event)"
10726
- ></co-upload-starting-image>
10727
- }
10728
-
10729
- @if (showImagePrepare) {
10730
- <co-prepare-starting-image
10731
- [image]="uploadedImage"
10732
- (imageReady)="handleSegmentOutput($event)"
10733
- (startSegmentation)="handleSegmentationJob($event)"
10734
- (continueToAI)="handleAiDecoration($event)"
10735
- (cancelClick)="handleCancelClick()"
10736
- ></co-prepare-starting-image>
10737
- }
10738
-
10739
- @if (showImageInpaint) {
10740
- <co-segment-inpaint
10741
- [image]="segmentImage"
10742
- (preparedImage)="handleImageUpload($event)"
10743
- (backToEditMenuClick)="handleImageUpload($event)"
10744
- >
10745
- </co-segment-inpaint>
10746
- }
10747
-
10748
- @if (show3D) {
10749
- <co-inphoto-threed-scene
10750
- [debug]="debug"
10751
- [room]="roomData"
10752
- (closeClick)="handleCancelClick()"
10753
- (openCatalog)="handleOpenCatalog($event)"
10754
- (startAiDecoration)="handleAiDecoration($event)"
10755
- (startSegmentation)="handleSegmentationJob($event)"
10756
- ></co-inphoto-threed-scene>
10757
- }
10758
- <co-inphoto-catalog></co-inphoto-catalog>
10759
- @if (showImageAiDecoration) {
10760
- <co-photo-editor
10761
- [mode]="aiDecorationMode"
10762
- [image]="aiDecorationImage"
10763
- (resetButtonClicked)="startPoint()"
10764
- (backToEditMenuClick)="handleImageUpload($event)"
10765
- (startSegmentation)="handleSegmentationJob($event)"
10766
- ></co-photo-editor>
10767
- }
10768
- </div>
10769
- <co-error-dialog></co-error-dialog>
10770
- </div>
10771
- `, isInline: true, dependencies: [{ kind: "component", type: UploadStartingImageComponent, selector: "co-upload-starting-image", outputs: ["cancelClick", "uploadedImage"] }, { kind: "component", type: ErrorDialogComponent, selector: "co-error-dialog" }, { kind: "component", type: PrepareStartingImageComponent, selector: "co-prepare-starting-image", inputs: ["image"], outputs: ["cancelClick", "startSegmentation", "imageReady", "continueToAI"] }, { kind: "component", type: InphotoThreedSceneComponent, selector: "co-inphoto-threed-scene", inputs: ["room", "debug"], outputs: ["startAiDecoration", "startSegmentation", "openCatalog", "closeClick"] }, { kind: "component", type: PhotoEditorComponent, selector: "co-photo-editor", inputs: ["mode", "image"], outputs: ["resetButtonClicked", "backToEditMenuClick", "startSegmentation"] }, { kind: "component", type: SegmentInpaintComponent, selector: "co-segment-inpaint", inputs: ["image"], outputs: ["backToEditMenuClick", "preparedImage"] }, { kind: "component", type: SideBarMenuComponent, selector: "co-side-bar-menu", inputs: ["disabledOptionIds"], outputs: ["optionClicked"] }, { kind: "component", type: InphotoCatalogComponent, selector: "co-inphoto-catalog" }], encapsulation: i0.ViewEncapsulation.None });
10752
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InPhotoComponent, isStandalone: false, selector: "co-inphoto", inputs: { settings: "settings", image: "image", debug: "debug", useMockRoomData: "useMockRoomData" }, host: { properties: { "class.co-inphoto": "this.showClass" } }, ngImport: i0, template: `
10753
+ <div class="co-inphoto-container">
10754
+ <div class="co-inphoto-menu">
10755
+ <co-side-bar-menu
10756
+ [disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
10757
+ (optionClicked)="handleMenuChange($event)"
10758
+ ></co-side-bar-menu>
10759
+ </div>
10760
+
10761
+ <div class="co-inphoto-body">
10762
+ @if (showImageUpload) {
10763
+ <co-upload-starting-image
10764
+ (cancelClick)="handleCancelClick()"
10765
+ (uploadedImage)="handleImageUpload($event)"
10766
+ ></co-upload-starting-image>
10767
+ }
10768
+
10769
+ @if (showImagePrepare) {
10770
+ <co-prepare-starting-image
10771
+ [image]="uploadedImage"
10772
+ (imageReady)="handleSegmentOutput($event)"
10773
+ (startSegmentation)="handleSegmentationJob($event)"
10774
+ (continueToAI)="handleAiDecoration($event)"
10775
+ (cancelClick)="handleCancelClick()"
10776
+ ></co-prepare-starting-image>
10777
+ }
10778
+
10779
+ @if (showImageInpaint) {
10780
+ <co-segment-inpaint
10781
+ [image]="segmentImage"
10782
+ (backToEditMenuClick)="handleImageUpload($event)"
10783
+ >
10784
+ </co-segment-inpaint>
10785
+ }
10786
+
10787
+ @if (show3D) {
10788
+ <co-inphoto-threed-scene
10789
+ [debug]="debug"
10790
+ [room]="roomData"
10791
+ (closeClick)="handleCancelClick()"
10792
+ (openCatalog)="handleOpenCatalog($event)"
10793
+ (startAiDecoration)="handleAiDecoration($event)"
10794
+ (startSegmentation)="handleSegmentationJob($event)"
10795
+ ></co-inphoto-threed-scene>
10796
+ }
10797
+ <co-inphoto-catalog></co-inphoto-catalog>
10798
+ @if (showImageAiDecoration) {
10799
+ <co-photo-editor
10800
+ [mode]="aiDecorationMode"
10801
+ [image]="aiDecorationImage"
10802
+ (resetButtonClicked)="startPoint()"
10803
+ (backToEditMenuClick)="handleImageUpload($event)"
10804
+ (startSegmentation)="handleSegmentationJob($event)"
10805
+ ></co-photo-editor>
10806
+ }
10807
+ </div>
10808
+ <co-error-dialog></co-error-dialog>
10809
+ </div>
10810
+ `, isInline: true, dependencies: [{ kind: "component", type: UploadStartingImageComponent, selector: "co-upload-starting-image", outputs: ["cancelClick", "uploadedImage"] }, { kind: "component", type: ErrorDialogComponent, selector: "co-error-dialog" }, { kind: "component", type: PrepareStartingImageComponent, selector: "co-prepare-starting-image", inputs: ["image"], outputs: ["cancelClick", "startSegmentation", "imageReady", "continueToAI"] }, { kind: "component", type: InphotoThreedSceneComponent, selector: "co-inphoto-threed-scene", inputs: ["room", "debug"], outputs: ["startAiDecoration", "startSegmentation", "openCatalog", "closeClick"] }, { kind: "component", type: PhotoEditorComponent, selector: "co-photo-editor", inputs: ["mode", "image"], outputs: ["resetButtonClicked", "backToEditMenuClick", "startSegmentation"] }, { kind: "component", type: SegmentInpaintComponent, selector: "co-segment-inpaint", inputs: ["image"], outputs: ["backToEditMenuClick"] }, { kind: "component", type: SideBarMenuComponent, selector: "co-side-bar-menu", inputs: ["disabledOptionIds"], outputs: ["optionClicked"] }, { kind: "component", type: InphotoCatalogComponent, selector: "co-inphoto-catalog" }], encapsulation: i0.ViewEncapsulation.None });
10772
10811
  }
10773
10812
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InPhotoComponent, decorators: [{
10774
10813
  type: Component,
10775
10814
  args: [{
10776
10815
  selector: 'co-inphoto',
10777
- template: `
10778
- <div class="co-inphoto-container">
10779
- <div class="co-inphoto-menu">
10780
- <co-side-bar-menu
10781
- [disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
10782
- (optionClicked)="handleMenuChange($event)"
10783
- ></co-side-bar-menu>
10784
- </div>
10785
-
10786
- <div class="co-inphoto-body">
10787
- @if (showImageUpload) {
10788
- <co-upload-starting-image
10789
- (cancelClick)="handleCancelClick()"
10790
- (uploadedImage)="handleImageUpload($event)"
10791
- ></co-upload-starting-image>
10792
- }
10793
-
10794
- @if (showImagePrepare) {
10795
- <co-prepare-starting-image
10796
- [image]="uploadedImage"
10797
- (imageReady)="handleSegmentOutput($event)"
10798
- (startSegmentation)="handleSegmentationJob($event)"
10799
- (continueToAI)="handleAiDecoration($event)"
10800
- (cancelClick)="handleCancelClick()"
10801
- ></co-prepare-starting-image>
10802
- }
10803
-
10804
- @if (showImageInpaint) {
10805
- <co-segment-inpaint
10806
- [image]="segmentImage"
10807
- (preparedImage)="handleImageUpload($event)"
10808
- (backToEditMenuClick)="handleImageUpload($event)"
10809
- >
10810
- </co-segment-inpaint>
10811
- }
10812
-
10813
- @if (show3D) {
10814
- <co-inphoto-threed-scene
10815
- [debug]="debug"
10816
- [room]="roomData"
10817
- (closeClick)="handleCancelClick()"
10818
- (openCatalog)="handleOpenCatalog($event)"
10819
- (startAiDecoration)="handleAiDecoration($event)"
10820
- (startSegmentation)="handleSegmentationJob($event)"
10821
- ></co-inphoto-threed-scene>
10822
- }
10823
- <co-inphoto-catalog></co-inphoto-catalog>
10824
- @if (showImageAiDecoration) {
10825
- <co-photo-editor
10826
- [mode]="aiDecorationMode"
10827
- [image]="aiDecorationImage"
10828
- (resetButtonClicked)="startPoint()"
10829
- (backToEditMenuClick)="handleImageUpload($event)"
10830
- (startSegmentation)="handleSegmentationJob($event)"
10831
- ></co-photo-editor>
10832
- }
10833
- </div>
10834
- <co-error-dialog></co-error-dialog>
10835
- </div>
10816
+ template: `
10817
+ <div class="co-inphoto-container">
10818
+ <div class="co-inphoto-menu">
10819
+ <co-side-bar-menu
10820
+ [disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
10821
+ (optionClicked)="handleMenuChange($event)"
10822
+ ></co-side-bar-menu>
10823
+ </div>
10824
+
10825
+ <div class="co-inphoto-body">
10826
+ @if (showImageUpload) {
10827
+ <co-upload-starting-image
10828
+ (cancelClick)="handleCancelClick()"
10829
+ (uploadedImage)="handleImageUpload($event)"
10830
+ ></co-upload-starting-image>
10831
+ }
10832
+
10833
+ @if (showImagePrepare) {
10834
+ <co-prepare-starting-image
10835
+ [image]="uploadedImage"
10836
+ (imageReady)="handleSegmentOutput($event)"
10837
+ (startSegmentation)="handleSegmentationJob($event)"
10838
+ (continueToAI)="handleAiDecoration($event)"
10839
+ (cancelClick)="handleCancelClick()"
10840
+ ></co-prepare-starting-image>
10841
+ }
10842
+
10843
+ @if (showImageInpaint) {
10844
+ <co-segment-inpaint
10845
+ [image]="segmentImage"
10846
+ (backToEditMenuClick)="handleImageUpload($event)"
10847
+ >
10848
+ </co-segment-inpaint>
10849
+ }
10850
+
10851
+ @if (show3D) {
10852
+ <co-inphoto-threed-scene
10853
+ [debug]="debug"
10854
+ [room]="roomData"
10855
+ (closeClick)="handleCancelClick()"
10856
+ (openCatalog)="handleOpenCatalog($event)"
10857
+ (startAiDecoration)="handleAiDecoration($event)"
10858
+ (startSegmentation)="handleSegmentationJob($event)"
10859
+ ></co-inphoto-threed-scene>
10860
+ }
10861
+ <co-inphoto-catalog></co-inphoto-catalog>
10862
+ @if (showImageAiDecoration) {
10863
+ <co-photo-editor
10864
+ [mode]="aiDecorationMode"
10865
+ [image]="aiDecorationImage"
10866
+ (resetButtonClicked)="startPoint()"
10867
+ (backToEditMenuClick)="handleImageUpload($event)"
10868
+ (startSegmentation)="handleSegmentationJob($event)"
10869
+ ></co-photo-editor>
10870
+ }
10871
+ </div>
10872
+ <co-error-dialog></co-error-dialog>
10873
+ </div>
10836
10874
  `,
10837
10875
  encapsulation: ViewEncapsulation.None,
10838
10876
  standalone: false
@@ -10860,7 +10898,8 @@ class SegmentInpaintModule {
10860
10898
  CanvasToolBarModule,
10861
10899
  StepTileModule,
10862
10900
  HeaderModule,
10863
- SidePanelModule], exports: [SegmentInpaintComponent] });
10901
+ SidePanelModule,
10902
+ ImageHistoryModule], exports: [SegmentInpaintComponent] });
10864
10903
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintModule, imports: [EditCanvasModule,
10865
10904
  IconModule,
10866
10905
  PipeModule,
@@ -10869,7 +10908,8 @@ class SegmentInpaintModule {
10869
10908
  CanvasToolBarModule,
10870
10909
  StepTileModule,
10871
10910
  HeaderModule,
10872
- SidePanelModule] });
10911
+ SidePanelModule,
10912
+ ImageHistoryModule] });
10873
10913
  }
10874
10914
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintModule, decorators: [{
10875
10915
  type: NgModule,
@@ -10883,7 +10923,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
10883
10923
  CanvasToolBarModule,
10884
10924
  StepTileModule,
10885
10925
  HeaderModule,
10886
- SidePanelModule
10926
+ SidePanelModule,
10927
+ ImageHistoryModule
10887
10928
  ],
10888
10929
  declarations: [
10889
10930
  SegmentInpaintComponent