@colijnit/inphoto 301.1.4 → 301.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/colijnit-inphoto.mjs +1102 -1066
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +19 -19
- package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +10 -10
- package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +19 -19
- package/lib/component/segment-inpaint/style/_layout.scss +96 -90
- package/lib/component/segment-inpaint/style/_material-definition.scss +23 -23
- package/package.json +1 -1
|
@@ -3959,164 +3959,164 @@ class ImageTileComponent {
|
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
3961
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageTileComponent, deps: [{ token: InphotoIconCacheService }, { token: InphotoDataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3962
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ImageTileComponent, isStandalone: false, selector: "co-image-tile", inputs: { index: "index", activeItem: "activeItem", data: "data", usedColors: "usedColors" }, outputs: { changeMarkerColor: "changeMarkerColor", deleteImage: "deleteImage", deleteMask: "deleteMask" }, host: { properties: { "class.co-image-tile": "this.showClass" } }, ngImport: i0, template: `
|
|
3963
|
-
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
3964
|
-
<div class="image-tile-top">
|
|
3965
|
-
@if (index) {
|
|
3966
|
-
<div class="image-tile-index" [textContent]="index"></div>
|
|
3967
|
-
}
|
|
3968
|
-
<div class="image-tile-remove">
|
|
3969
|
-
<co-button
|
|
3970
|
-
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
3971
|
-
(onClick)="removeImage()">
|
|
3972
|
-
</co-button>
|
|
3973
|
-
</div>
|
|
3974
|
-
|
|
3975
|
-
<div class="image-tile-container">
|
|
3976
|
-
@if (data.image) {
|
|
3977
|
-
<img [src]="data.image" alt="uploaded-image">
|
|
3978
|
-
} @else {
|
|
3979
|
-
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
3980
|
-
</div>
|
|
3981
|
-
}
|
|
3982
|
-
</div>
|
|
3983
|
-
</div>
|
|
3984
|
-
|
|
3985
|
-
<div class="image-tile-bottom">
|
|
3986
|
-
<co-button
|
|
3987
|
-
class="brush-icon"
|
|
3988
|
-
[class.hide-brush-button]="!hideColors"
|
|
3989
|
-
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
3990
|
-
(onClick)="showColorPalette()">
|
|
3991
|
-
</co-button>
|
|
3992
|
-
|
|
3993
|
-
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
3994
|
-
<div
|
|
3995
|
-
class="color-palette"
|
|
3996
|
-
[class.color-palette-disabled]="hasSelectedColor"
|
|
3997
|
-
[class.color-palette-hidden]="hideColors">
|
|
3998
|
-
<co-color-palette-option
|
|
3999
|
-
[colorOption]="color.BLUE"
|
|
4000
|
-
[selected]="data.maskColor === color.BLUE"
|
|
4001
|
-
[disabled]="isUsedColor(color.BLUE)"
|
|
4002
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4003
|
-
></co-color-palette-option>
|
|
4004
|
-
<co-color-palette-option
|
|
4005
|
-
[colorOption]="color.GREEN"
|
|
4006
|
-
[selected]="data.maskColor === color.GREEN"
|
|
4007
|
-
[disabled]="isUsedColor(color.GREEN)"
|
|
4008
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4009
|
-
></co-color-palette-option>
|
|
4010
|
-
<co-color-palette-option
|
|
4011
|
-
[colorOption]="color.YELLOW"
|
|
4012
|
-
[selected]="data.maskColor === color.YELLOW"
|
|
4013
|
-
[disabled]="isUsedColor(color.YELLOW)"
|
|
4014
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4015
|
-
></co-color-palette-option>
|
|
4016
|
-
<co-color-palette-option
|
|
4017
|
-
[colorOption]="color.PURPLE"
|
|
4018
|
-
[selected]="data.maskColor === color.PURPLE"
|
|
4019
|
-
[disabled]="isUsedColor(color.PURPLE)"
|
|
4020
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4021
|
-
></co-color-palette-option>
|
|
4022
|
-
<co-color-palette-option
|
|
4023
|
-
[colorOption]="color.TEAL"
|
|
4024
|
-
[selected]="data.maskColor === color.TEAL"
|
|
4025
|
-
[disabled]="isUsedColor(color.TEAL)"
|
|
4026
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4027
|
-
></co-color-palette-option>
|
|
4028
|
-
</div>
|
|
4029
|
-
</div>
|
|
4030
|
-
<co-button
|
|
4031
|
-
class="delete-icon"
|
|
4032
|
-
[class.hide-delete-button]="hideColors"
|
|
4033
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4034
|
-
(onClick)="removeMask()">
|
|
4035
|
-
</co-button>
|
|
4036
|
-
</div>
|
|
4037
|
-
</div>
|
|
3962
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ImageTileComponent, isStandalone: false, selector: "co-image-tile", inputs: { index: "index", activeItem: "activeItem", data: "data", usedColors: "usedColors" }, outputs: { changeMarkerColor: "changeMarkerColor", deleteImage: "deleteImage", deleteMask: "deleteMask" }, host: { properties: { "class.co-image-tile": "this.showClass" } }, ngImport: i0, template: `
|
|
3963
|
+
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
3964
|
+
<div class="image-tile-top">
|
|
3965
|
+
@if (index) {
|
|
3966
|
+
<div class="image-tile-index" [textContent]="index"></div>
|
|
3967
|
+
}
|
|
3968
|
+
<div class="image-tile-remove">
|
|
3969
|
+
<co-button
|
|
3970
|
+
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
3971
|
+
(onClick)="removeImage()">
|
|
3972
|
+
</co-button>
|
|
3973
|
+
</div>
|
|
3974
|
+
|
|
3975
|
+
<div class="image-tile-container">
|
|
3976
|
+
@if (data.image) {
|
|
3977
|
+
<img [src]="data.image" alt="uploaded-image">
|
|
3978
|
+
} @else {
|
|
3979
|
+
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
3980
|
+
</div>
|
|
3981
|
+
}
|
|
3982
|
+
</div>
|
|
3983
|
+
</div>
|
|
3984
|
+
|
|
3985
|
+
<div class="image-tile-bottom">
|
|
3986
|
+
<co-button
|
|
3987
|
+
class="brush-icon"
|
|
3988
|
+
[class.hide-brush-button]="!hideColors"
|
|
3989
|
+
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
3990
|
+
(onClick)="showColorPalette()">
|
|
3991
|
+
</co-button>
|
|
3992
|
+
|
|
3993
|
+
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
3994
|
+
<div
|
|
3995
|
+
class="color-palette"
|
|
3996
|
+
[class.color-palette-disabled]="hasSelectedColor"
|
|
3997
|
+
[class.color-palette-hidden]="hideColors">
|
|
3998
|
+
<co-color-palette-option
|
|
3999
|
+
[colorOption]="color.BLUE"
|
|
4000
|
+
[selected]="data.maskColor === color.BLUE"
|
|
4001
|
+
[disabled]="isUsedColor(color.BLUE)"
|
|
4002
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4003
|
+
></co-color-palette-option>
|
|
4004
|
+
<co-color-palette-option
|
|
4005
|
+
[colorOption]="color.GREEN"
|
|
4006
|
+
[selected]="data.maskColor === color.GREEN"
|
|
4007
|
+
[disabled]="isUsedColor(color.GREEN)"
|
|
4008
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4009
|
+
></co-color-palette-option>
|
|
4010
|
+
<co-color-palette-option
|
|
4011
|
+
[colorOption]="color.YELLOW"
|
|
4012
|
+
[selected]="data.maskColor === color.YELLOW"
|
|
4013
|
+
[disabled]="isUsedColor(color.YELLOW)"
|
|
4014
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4015
|
+
></co-color-palette-option>
|
|
4016
|
+
<co-color-palette-option
|
|
4017
|
+
[colorOption]="color.PURPLE"
|
|
4018
|
+
[selected]="data.maskColor === color.PURPLE"
|
|
4019
|
+
[disabled]="isUsedColor(color.PURPLE)"
|
|
4020
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4021
|
+
></co-color-palette-option>
|
|
4022
|
+
<co-color-palette-option
|
|
4023
|
+
[colorOption]="color.TEAL"
|
|
4024
|
+
[selected]="data.maskColor === color.TEAL"
|
|
4025
|
+
[disabled]="isUsedColor(color.TEAL)"
|
|
4026
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4027
|
+
></co-color-palette-option>
|
|
4028
|
+
</div>
|
|
4029
|
+
</div>
|
|
4030
|
+
<co-button
|
|
4031
|
+
class="delete-icon"
|
|
4032
|
+
[class.hide-delete-button]="hideColors"
|
|
4033
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4034
|
+
(onClick)="removeMask()">
|
|
4035
|
+
</co-button>
|
|
4036
|
+
</div>
|
|
4037
|
+
</div>
|
|
4038
4038
|
`, isInline: true, dependencies: [{ kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: ColorPaletteOptionComponent, selector: "co-color-palette-option", inputs: ["colorOption", "selected", "disabled"], outputs: ["changeMarkerColor"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
4039
4039
|
}
|
|
4040
4040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageTileComponent, decorators: [{
|
|
4041
4041
|
type: Component,
|
|
4042
4042
|
args: [{
|
|
4043
4043
|
selector: 'co-image-tile',
|
|
4044
|
-
template: `
|
|
4045
|
-
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
4046
|
-
<div class="image-tile-top">
|
|
4047
|
-
@if (index) {
|
|
4048
|
-
<div class="image-tile-index" [textContent]="index"></div>
|
|
4049
|
-
}
|
|
4050
|
-
<div class="image-tile-remove">
|
|
4051
|
-
<co-button
|
|
4052
|
-
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
4053
|
-
(onClick)="removeImage()">
|
|
4054
|
-
</co-button>
|
|
4055
|
-
</div>
|
|
4056
|
-
|
|
4057
|
-
<div class="image-tile-container">
|
|
4058
|
-
@if (data.image) {
|
|
4059
|
-
<img [src]="data.image" alt="uploaded-image">
|
|
4060
|
-
} @else {
|
|
4061
|
-
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
4062
|
-
</div>
|
|
4063
|
-
}
|
|
4064
|
-
</div>
|
|
4065
|
-
</div>
|
|
4066
|
-
|
|
4067
|
-
<div class="image-tile-bottom">
|
|
4068
|
-
<co-button
|
|
4069
|
-
class="brush-icon"
|
|
4070
|
-
[class.hide-brush-button]="!hideColors"
|
|
4071
|
-
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
4072
|
-
(onClick)="showColorPalette()">
|
|
4073
|
-
</co-button>
|
|
4074
|
-
|
|
4075
|
-
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
4076
|
-
<div
|
|
4077
|
-
class="color-palette"
|
|
4078
|
-
[class.color-palette-disabled]="hasSelectedColor"
|
|
4079
|
-
[class.color-palette-hidden]="hideColors">
|
|
4080
|
-
<co-color-palette-option
|
|
4081
|
-
[colorOption]="color.BLUE"
|
|
4082
|
-
[selected]="data.maskColor === color.BLUE"
|
|
4083
|
-
[disabled]="isUsedColor(color.BLUE)"
|
|
4084
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4085
|
-
></co-color-palette-option>
|
|
4086
|
-
<co-color-palette-option
|
|
4087
|
-
[colorOption]="color.GREEN"
|
|
4088
|
-
[selected]="data.maskColor === color.GREEN"
|
|
4089
|
-
[disabled]="isUsedColor(color.GREEN)"
|
|
4090
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4091
|
-
></co-color-palette-option>
|
|
4092
|
-
<co-color-palette-option
|
|
4093
|
-
[colorOption]="color.YELLOW"
|
|
4094
|
-
[selected]="data.maskColor === color.YELLOW"
|
|
4095
|
-
[disabled]="isUsedColor(color.YELLOW)"
|
|
4096
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4097
|
-
></co-color-palette-option>
|
|
4098
|
-
<co-color-palette-option
|
|
4099
|
-
[colorOption]="color.PURPLE"
|
|
4100
|
-
[selected]="data.maskColor === color.PURPLE"
|
|
4101
|
-
[disabled]="isUsedColor(color.PURPLE)"
|
|
4102
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4103
|
-
></co-color-palette-option>
|
|
4104
|
-
<co-color-palette-option
|
|
4105
|
-
[colorOption]="color.TEAL"
|
|
4106
|
-
[selected]="data.maskColor === color.TEAL"
|
|
4107
|
-
[disabled]="isUsedColor(color.TEAL)"
|
|
4108
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4109
|
-
></co-color-palette-option>
|
|
4110
|
-
</div>
|
|
4111
|
-
</div>
|
|
4112
|
-
<co-button
|
|
4113
|
-
class="delete-icon"
|
|
4114
|
-
[class.hide-delete-button]="hideColors"
|
|
4115
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4116
|
-
(onClick)="removeMask()">
|
|
4117
|
-
</co-button>
|
|
4118
|
-
</div>
|
|
4119
|
-
</div>
|
|
4044
|
+
template: `
|
|
4045
|
+
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
4046
|
+
<div class="image-tile-top">
|
|
4047
|
+
@if (index) {
|
|
4048
|
+
<div class="image-tile-index" [textContent]="index"></div>
|
|
4049
|
+
}
|
|
4050
|
+
<div class="image-tile-remove">
|
|
4051
|
+
<co-button
|
|
4052
|
+
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
4053
|
+
(onClick)="removeImage()">
|
|
4054
|
+
</co-button>
|
|
4055
|
+
</div>
|
|
4056
|
+
|
|
4057
|
+
<div class="image-tile-container">
|
|
4058
|
+
@if (data.image) {
|
|
4059
|
+
<img [src]="data.image" alt="uploaded-image">
|
|
4060
|
+
} @else {
|
|
4061
|
+
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
4062
|
+
</div>
|
|
4063
|
+
}
|
|
4064
|
+
</div>
|
|
4065
|
+
</div>
|
|
4066
|
+
|
|
4067
|
+
<div class="image-tile-bottom">
|
|
4068
|
+
<co-button
|
|
4069
|
+
class="brush-icon"
|
|
4070
|
+
[class.hide-brush-button]="!hideColors"
|
|
4071
|
+
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
4072
|
+
(onClick)="showColorPalette()">
|
|
4073
|
+
</co-button>
|
|
4074
|
+
|
|
4075
|
+
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
4076
|
+
<div
|
|
4077
|
+
class="color-palette"
|
|
4078
|
+
[class.color-palette-disabled]="hasSelectedColor"
|
|
4079
|
+
[class.color-palette-hidden]="hideColors">
|
|
4080
|
+
<co-color-palette-option
|
|
4081
|
+
[colorOption]="color.BLUE"
|
|
4082
|
+
[selected]="data.maskColor === color.BLUE"
|
|
4083
|
+
[disabled]="isUsedColor(color.BLUE)"
|
|
4084
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4085
|
+
></co-color-palette-option>
|
|
4086
|
+
<co-color-palette-option
|
|
4087
|
+
[colorOption]="color.GREEN"
|
|
4088
|
+
[selected]="data.maskColor === color.GREEN"
|
|
4089
|
+
[disabled]="isUsedColor(color.GREEN)"
|
|
4090
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4091
|
+
></co-color-palette-option>
|
|
4092
|
+
<co-color-palette-option
|
|
4093
|
+
[colorOption]="color.YELLOW"
|
|
4094
|
+
[selected]="data.maskColor === color.YELLOW"
|
|
4095
|
+
[disabled]="isUsedColor(color.YELLOW)"
|
|
4096
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4097
|
+
></co-color-palette-option>
|
|
4098
|
+
<co-color-palette-option
|
|
4099
|
+
[colorOption]="color.PURPLE"
|
|
4100
|
+
[selected]="data.maskColor === color.PURPLE"
|
|
4101
|
+
[disabled]="isUsedColor(color.PURPLE)"
|
|
4102
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4103
|
+
></co-color-palette-option>
|
|
4104
|
+
<co-color-palette-option
|
|
4105
|
+
[colorOption]="color.TEAL"
|
|
4106
|
+
[selected]="data.maskColor === color.TEAL"
|
|
4107
|
+
[disabled]="isUsedColor(color.TEAL)"
|
|
4108
|
+
(changeMarkerColor)="setMarkerColor($event)"
|
|
4109
|
+
></co-color-palette-option>
|
|
4110
|
+
</div>
|
|
4111
|
+
</div>
|
|
4112
|
+
<co-button
|
|
4113
|
+
class="delete-icon"
|
|
4114
|
+
[class.hide-delete-button]="hideColors"
|
|
4115
|
+
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4116
|
+
(onClick)="removeMask()">
|
|
4117
|
+
</co-button>
|
|
4118
|
+
</div>
|
|
4119
|
+
</div>
|
|
4120
4120
|
`,
|
|
4121
4121
|
standalone: false,
|
|
4122
4122
|
encapsulation: ViewEncapsulation.None
|
|
@@ -6690,256 +6690,256 @@ class PrepareStartingImageComponent {
|
|
|
6690
6690
|
this._changeDetection.markForCheck();
|
|
6691
6691
|
}
|
|
6692
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 });
|
|
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>
|
|
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>
|
|
6815
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 });
|
|
6816
6816
|
}
|
|
6817
6817
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PrepareStartingImageComponent, decorators: [{
|
|
6818
6818
|
type: Component,
|
|
6819
6819
|
args: [{
|
|
6820
6820
|
selector: 'co-prepare-starting-image',
|
|
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>
|
|
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>
|
|
6943
6943
|
`,
|
|
6944
6944
|
encapsulation: ViewEncapsulation.None,
|
|
6945
6945
|
standalone: false
|
|
@@ -8253,112 +8253,112 @@ class ScaleDialogComponent {
|
|
|
8253
8253
|
return Math.round(value * 100) / 100;
|
|
8254
8254
|
}
|
|
8255
8255
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ScaleDialogComponent, deps: [{ token: InphotoIconCacheService }, { token: InphotoEventService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ScaleDialogComponent, isStandalone: false, selector: "co-scale-dialog", inputs: { item: "item" }, outputs: { updateObjectScale: "updateObjectScale", closeClick: "closeClick" }, host: { properties: { "class.co-scale-dialog": "this.showClass" } }, ngImport: i0, template: `
|
|
8257
|
-
<div class="scale-dialog-container">
|
|
8258
|
-
<div class="scale-dialog-body">
|
|
8259
|
-
<div class="slider-container">
|
|
8260
|
-
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8261
|
-
<input
|
|
8262
|
-
type="range"
|
|
8263
|
-
[min]="minScale"
|
|
8264
|
-
[max]="maxScale"
|
|
8265
|
-
[step]="scaleStep"
|
|
8266
|
-
[(ngModel)]="scaleAll"
|
|
8267
|
-
(input)="onScaleAllChange($event)"/>
|
|
8268
|
-
</div>
|
|
8269
|
-
|
|
8270
|
-
<div class="slider-container">
|
|
8271
|
-
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8272
|
-
<input
|
|
8273
|
-
type="range"
|
|
8274
|
-
[min]="minScale"
|
|
8275
|
-
[max]="maxScale"
|
|
8276
|
-
[step]="scaleStep"
|
|
8277
|
-
[(ngModel)]="scaleX"
|
|
8278
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8279
|
-
</div>
|
|
8280
|
-
|
|
8281
|
-
<div class="slider-container">
|
|
8282
|
-
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8283
|
-
<input
|
|
8284
|
-
type="range"
|
|
8285
|
-
[min]="minScale"
|
|
8286
|
-
[max]="maxScale"
|
|
8287
|
-
[step]="scaleStep"
|
|
8288
|
-
[(ngModel)]="scaleY"
|
|
8289
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8290
|
-
</div>
|
|
8291
|
-
|
|
8292
|
-
@if (!item?.is2D) {
|
|
8293
|
-
<div class="slider-container">
|
|
8294
|
-
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8295
|
-
<input
|
|
8296
|
-
type="range"
|
|
8297
|
-
[min]="minScale"
|
|
8298
|
-
[max]="maxScale"
|
|
8299
|
-
[step]="scaleStep"
|
|
8300
|
-
[(ngModel)]="scaleZ"
|
|
8301
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8302
|
-
</div>
|
|
8303
|
-
}
|
|
8304
|
-
</div>
|
|
8305
|
-
</div>
|
|
8256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ScaleDialogComponent, isStandalone: false, selector: "co-scale-dialog", inputs: { item: "item" }, outputs: { updateObjectScale: "updateObjectScale", closeClick: "closeClick" }, host: { properties: { "class.co-scale-dialog": "this.showClass" } }, ngImport: i0, template: `
|
|
8257
|
+
<div class="scale-dialog-container">
|
|
8258
|
+
<div class="scale-dialog-body">
|
|
8259
|
+
<div class="slider-container">
|
|
8260
|
+
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8261
|
+
<input
|
|
8262
|
+
type="range"
|
|
8263
|
+
[min]="minScale"
|
|
8264
|
+
[max]="maxScale"
|
|
8265
|
+
[step]="scaleStep"
|
|
8266
|
+
[(ngModel)]="scaleAll"
|
|
8267
|
+
(input)="onScaleAllChange($event)"/>
|
|
8268
|
+
</div>
|
|
8269
|
+
|
|
8270
|
+
<div class="slider-container">
|
|
8271
|
+
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8272
|
+
<input
|
|
8273
|
+
type="range"
|
|
8274
|
+
[min]="minScale"
|
|
8275
|
+
[max]="maxScale"
|
|
8276
|
+
[step]="scaleStep"
|
|
8277
|
+
[(ngModel)]="scaleX"
|
|
8278
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8279
|
+
</div>
|
|
8280
|
+
|
|
8281
|
+
<div class="slider-container">
|
|
8282
|
+
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8283
|
+
<input
|
|
8284
|
+
type="range"
|
|
8285
|
+
[min]="minScale"
|
|
8286
|
+
[max]="maxScale"
|
|
8287
|
+
[step]="scaleStep"
|
|
8288
|
+
[(ngModel)]="scaleY"
|
|
8289
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8290
|
+
</div>
|
|
8291
|
+
|
|
8292
|
+
@if (!item?.is2D) {
|
|
8293
|
+
<div class="slider-container">
|
|
8294
|
+
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8295
|
+
<input
|
|
8296
|
+
type="range"
|
|
8297
|
+
[min]="minScale"
|
|
8298
|
+
[max]="maxScale"
|
|
8299
|
+
[step]="scaleStep"
|
|
8300
|
+
[(ngModel)]="scaleZ"
|
|
8301
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8302
|
+
</div>
|
|
8303
|
+
}
|
|
8304
|
+
</div>
|
|
8305
|
+
</div>
|
|
8306
8306
|
`, isInline: true, dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8307
8307
|
}
|
|
8308
8308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ScaleDialogComponent, decorators: [{
|
|
8309
8309
|
type: Component,
|
|
8310
8310
|
args: [{
|
|
8311
8311
|
selector: 'co-scale-dialog',
|
|
8312
|
-
template: `
|
|
8313
|
-
<div class="scale-dialog-container">
|
|
8314
|
-
<div class="scale-dialog-body">
|
|
8315
|
-
<div class="slider-container">
|
|
8316
|
-
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8317
|
-
<input
|
|
8318
|
-
type="range"
|
|
8319
|
-
[min]="minScale"
|
|
8320
|
-
[max]="maxScale"
|
|
8321
|
-
[step]="scaleStep"
|
|
8322
|
-
[(ngModel)]="scaleAll"
|
|
8323
|
-
(input)="onScaleAllChange($event)"/>
|
|
8324
|
-
</div>
|
|
8325
|
-
|
|
8326
|
-
<div class="slider-container">
|
|
8327
|
-
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8328
|
-
<input
|
|
8329
|
-
type="range"
|
|
8330
|
-
[min]="minScale"
|
|
8331
|
-
[max]="maxScale"
|
|
8332
|
-
[step]="scaleStep"
|
|
8333
|
-
[(ngModel)]="scaleX"
|
|
8334
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8335
|
-
</div>
|
|
8336
|
-
|
|
8337
|
-
<div class="slider-container">
|
|
8338
|
-
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8339
|
-
<input
|
|
8340
|
-
type="range"
|
|
8341
|
-
[min]="minScale"
|
|
8342
|
-
[max]="maxScale"
|
|
8343
|
-
[step]="scaleStep"
|
|
8344
|
-
[(ngModel)]="scaleY"
|
|
8345
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8346
|
-
</div>
|
|
8347
|
-
|
|
8348
|
-
@if (!item?.is2D) {
|
|
8349
|
-
<div class="slider-container">
|
|
8350
|
-
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8351
|
-
<input
|
|
8352
|
-
type="range"
|
|
8353
|
-
[min]="minScale"
|
|
8354
|
-
[max]="maxScale"
|
|
8355
|
-
[step]="scaleStep"
|
|
8356
|
-
[(ngModel)]="scaleZ"
|
|
8357
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8358
|
-
</div>
|
|
8359
|
-
}
|
|
8360
|
-
</div>
|
|
8361
|
-
</div>
|
|
8312
|
+
template: `
|
|
8313
|
+
<div class="scale-dialog-container">
|
|
8314
|
+
<div class="scale-dialog-body">
|
|
8315
|
+
<div class="slider-container">
|
|
8316
|
+
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8317
|
+
<input
|
|
8318
|
+
type="range"
|
|
8319
|
+
[min]="minScale"
|
|
8320
|
+
[max]="maxScale"
|
|
8321
|
+
[step]="scaleStep"
|
|
8322
|
+
[(ngModel)]="scaleAll"
|
|
8323
|
+
(input)="onScaleAllChange($event)"/>
|
|
8324
|
+
</div>
|
|
8325
|
+
|
|
8326
|
+
<div class="slider-container">
|
|
8327
|
+
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8328
|
+
<input
|
|
8329
|
+
type="range"
|
|
8330
|
+
[min]="minScale"
|
|
8331
|
+
[max]="maxScale"
|
|
8332
|
+
[step]="scaleStep"
|
|
8333
|
+
[(ngModel)]="scaleX"
|
|
8334
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8335
|
+
</div>
|
|
8336
|
+
|
|
8337
|
+
<div class="slider-container">
|
|
8338
|
+
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8339
|
+
<input
|
|
8340
|
+
type="range"
|
|
8341
|
+
[min]="minScale"
|
|
8342
|
+
[max]="maxScale"
|
|
8343
|
+
[step]="scaleStep"
|
|
8344
|
+
[(ngModel)]="scaleY"
|
|
8345
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8346
|
+
</div>
|
|
8347
|
+
|
|
8348
|
+
@if (!item?.is2D) {
|
|
8349
|
+
<div class="slider-container">
|
|
8350
|
+
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8351
|
+
<input
|
|
8352
|
+
type="range"
|
|
8353
|
+
[min]="minScale"
|
|
8354
|
+
[max]="maxScale"
|
|
8355
|
+
[step]="scaleStep"
|
|
8356
|
+
[(ngModel)]="scaleZ"
|
|
8357
|
+
(input)="onScaleSingleAxis($event)"/>
|
|
8358
|
+
</div>
|
|
8359
|
+
}
|
|
8360
|
+
</div>
|
|
8361
|
+
</div>
|
|
8362
8362
|
`,
|
|
8363
8363
|
standalone: false,
|
|
8364
8364
|
encapsulation: ViewEncapsulation.None
|
|
@@ -9472,254 +9472,254 @@ class InphotoThreedSceneComponent {
|
|
|
9472
9472
|
};
|
|
9473
9473
|
}
|
|
9474
9474
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InphotoThreedSceneComponent, deps: [{ token: InphotoIconCacheService }, { token: InphotoItemService }, { token: InphotoInteractionService }, { token: InphotoSceneService }, { token: InphotoEventService }, { token: InphotoSettingsService }, { token: i7.ConfiguringService }, { token: i7.ConfiguratorEventService }, { token: i0.ChangeDetectorRef }, { token: i8.RenderConnectorService }, { token: i8.RenderService }, { token: i8.RenderEventService }, { token: ErrorService }, { token: InphotoHudService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9475
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InphotoThreedSceneComponent, isStandalone: false, selector: "co-inphoto-threed-scene", inputs: { room: "room", debug: "debug" }, outputs: { startAiDecoration: "startAiDecoration", startSegmentation: "startSegmentation", openCatalog: "openCatalog", closeClick: "closeClick" }, host: { listeners: { "window:resize": "onResize()" }, properties: { "class.co-inphoto-threed-scene": "this.showClass" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "sceneContainer", first: true, predicate: ["sceneContainer"], descendants: true, static: true }, { propertyName: "imageOverlayComponent", first: true, predicate: ["imageOverlay"], descendants: true }], ngImport: i0, template: `
|
|
9476
|
-
<div class="threed-container">
|
|
9477
|
-
<div class="scene-container" #sceneContainer>
|
|
9478
|
-
<div #container class="three-container">
|
|
9479
|
-
@if (showWallOptions) {
|
|
9480
|
-
@for (marker of wallMarkers; track marker.uuid) {
|
|
9481
|
-
<co-marker
|
|
9482
|
-
[label]="'Wall'"
|
|
9483
|
-
[icon]="icons.PaintRollerSharpSolid"
|
|
9484
|
-
[selected]="marker.uuid === selectedWallUuid"
|
|
9485
|
-
[style.left.px]="marker.x"
|
|
9486
|
-
[style.top.px]="marker.y"
|
|
9487
|
-
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9488
|
-
></co-marker>
|
|
9489
|
-
}
|
|
9490
|
-
}
|
|
9491
|
-
@if (showFloorOptions) {
|
|
9492
|
-
@for (marker of floorMarkers; track marker.uuid) {
|
|
9493
|
-
<co-marker
|
|
9494
|
-
[label]="'Floor'"
|
|
9495
|
-
[icon]="icons.LayerGroupSharpSolid"
|
|
9496
|
-
[selected]="marker.uuid === selectedFloorUuid"
|
|
9497
|
-
[style.left.px]="marker.x"
|
|
9498
|
-
[style.top.px]="marker.y"
|
|
9499
|
-
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9500
|
-
></co-marker>
|
|
9501
|
-
}
|
|
9502
|
-
}
|
|
9503
|
-
@if (show2DImageOverlay) {
|
|
9504
|
-
<co-image-2d-placement
|
|
9505
|
-
#imageOverlay
|
|
9506
|
-
[items]="objectsService.imageItems"
|
|
9507
|
-
[width]="overlayWidth"
|
|
9508
|
-
[height]="overlayHeight"
|
|
9509
|
-
[style.left.px]="overlayLeft"
|
|
9510
|
-
[style.top.px]="overlayTop"
|
|
9511
|
-
(imageSelected)="handle2DImageSelected($event)"
|
|
9512
|
-
(imageDeselected)="handle2DImageDeselected()"
|
|
9513
|
-
></co-image-2d-placement>
|
|
9514
|
-
}
|
|
9515
|
-
</div>
|
|
9516
|
-
</div>
|
|
9517
|
-
<div class="threed-sidepanel">
|
|
9518
|
-
<co-side-panel
|
|
9519
|
-
[headerClass]="'image-process-complete-dialog-header'"
|
|
9520
|
-
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9521
|
-
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9522
|
-
(onRestartClick)="handleCancelClick()"
|
|
9523
|
-
>
|
|
9524
|
-
<div class="theed-sidepanel-tile-group">
|
|
9525
|
-
<co-step-tile
|
|
9526
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9527
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9528
|
-
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9529
|
-
(onClick)="handleOpenCatalog()"
|
|
9530
|
-
></co-step-tile>
|
|
9531
|
-
<co-step-tile
|
|
9532
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9533
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9534
|
-
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9535
|
-
(onClick)="handleOpenCatalog(true)"
|
|
9536
|
-
></co-step-tile>
|
|
9537
|
-
<!--co-step-tile
|
|
9538
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9539
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9540
|
-
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9541
|
-
(onClick)="handleShowWallOptions()"
|
|
9542
|
-
></co-step-tile>
|
|
9543
|
-
<co-step-tile
|
|
9544
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9545
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9546
|
-
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9547
|
-
(onClick)="handleShowFloorOptions()"
|
|
9548
|
-
></co-step-tile-->
|
|
9549
|
-
<co-step-tile
|
|
9550
|
-
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9551
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9552
|
-
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9553
|
-
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9554
|
-
></co-step-tile>
|
|
9555
|
-
<co-step-tile
|
|
9556
|
-
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9557
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9558
|
-
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9559
|
-
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9560
|
-
></co-step-tile>
|
|
9561
|
-
</div>
|
|
9562
|
-
<div class="threed-side-panel-buttons">
|
|
9563
|
-
<co-button
|
|
9564
|
-
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9565
|
-
[label]="'INPHOTO_RESTART' | localize"
|
|
9566
|
-
(onClick)="handleCancelClick()"
|
|
9567
|
-
></co-button>
|
|
9568
|
-
</div>
|
|
9569
|
-
</co-side-panel>
|
|
9570
|
-
</div>
|
|
9571
|
-
</div>
|
|
9572
|
-
<co-configurator
|
|
9573
|
-
class="floating"
|
|
9574
|
-
[showErrorMessages]="true"
|
|
9575
|
-
[showLoader]="true"
|
|
9576
|
-
[outputErrorMessages]="true"
|
|
9577
|
-
[settings]="configuratorSettings"
|
|
9578
|
-
[sku]="configuratorSku"
|
|
9579
|
-
[instanceId]="configuratorInstanceId"
|
|
9580
|
-
[show]="loadConfigurator && !firstBuild"
|
|
9581
|
-
(showChange)="showConfiguratorChange($event)"
|
|
9582
|
-
>
|
|
9583
|
-
</co-configurator>
|
|
9584
|
-
<co-scene-context-menu
|
|
9585
|
-
(configureObject)="handleConfigureObjectClick($event)"
|
|
9586
|
-
(copyObject)="handleCopyObject($event)"
|
|
9587
|
-
(scaleObject)="handleObjectScaleClick($event)"
|
|
9588
|
-
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9589
|
-
(deleteObject)="handleDeleteObject($event)"
|
|
9590
|
-
></co-scene-context-menu>
|
|
9591
|
-
|
|
9592
|
-
<co-process-loader
|
|
9593
|
-
[showLoader]="showRenderLoader"
|
|
9594
|
-
[loadingTexts]="loadingTexts"
|
|
9595
|
-
></co-process-loader>
|
|
9475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InphotoThreedSceneComponent, isStandalone: false, selector: "co-inphoto-threed-scene", inputs: { room: "room", debug: "debug" }, outputs: { startAiDecoration: "startAiDecoration", startSegmentation: "startSegmentation", openCatalog: "openCatalog", closeClick: "closeClick" }, host: { listeners: { "window:resize": "onResize()" }, properties: { "class.co-inphoto-threed-scene": "this.showClass" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "sceneContainer", first: true, predicate: ["sceneContainer"], descendants: true, static: true }, { propertyName: "imageOverlayComponent", first: true, predicate: ["imageOverlay"], descendants: true }], ngImport: i0, template: `
|
|
9476
|
+
<div class="threed-container">
|
|
9477
|
+
<div class="scene-container" #sceneContainer>
|
|
9478
|
+
<div #container class="three-container">
|
|
9479
|
+
@if (showWallOptions) {
|
|
9480
|
+
@for (marker of wallMarkers; track marker.uuid) {
|
|
9481
|
+
<co-marker
|
|
9482
|
+
[label]="'Wall'"
|
|
9483
|
+
[icon]="icons.PaintRollerSharpSolid"
|
|
9484
|
+
[selected]="marker.uuid === selectedWallUuid"
|
|
9485
|
+
[style.left.px]="marker.x"
|
|
9486
|
+
[style.top.px]="marker.y"
|
|
9487
|
+
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9488
|
+
></co-marker>
|
|
9489
|
+
}
|
|
9490
|
+
}
|
|
9491
|
+
@if (showFloorOptions) {
|
|
9492
|
+
@for (marker of floorMarkers; track marker.uuid) {
|
|
9493
|
+
<co-marker
|
|
9494
|
+
[label]="'Floor'"
|
|
9495
|
+
[icon]="icons.LayerGroupSharpSolid"
|
|
9496
|
+
[selected]="marker.uuid === selectedFloorUuid"
|
|
9497
|
+
[style.left.px]="marker.x"
|
|
9498
|
+
[style.top.px]="marker.y"
|
|
9499
|
+
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9500
|
+
></co-marker>
|
|
9501
|
+
}
|
|
9502
|
+
}
|
|
9503
|
+
@if (show2DImageOverlay) {
|
|
9504
|
+
<co-image-2d-placement
|
|
9505
|
+
#imageOverlay
|
|
9506
|
+
[items]="objectsService.imageItems"
|
|
9507
|
+
[width]="overlayWidth"
|
|
9508
|
+
[height]="overlayHeight"
|
|
9509
|
+
[style.left.px]="overlayLeft"
|
|
9510
|
+
[style.top.px]="overlayTop"
|
|
9511
|
+
(imageSelected)="handle2DImageSelected($event)"
|
|
9512
|
+
(imageDeselected)="handle2DImageDeselected()"
|
|
9513
|
+
></co-image-2d-placement>
|
|
9514
|
+
}
|
|
9515
|
+
</div>
|
|
9516
|
+
</div>
|
|
9517
|
+
<div class="threed-sidepanel">
|
|
9518
|
+
<co-side-panel
|
|
9519
|
+
[headerClass]="'image-process-complete-dialog-header'"
|
|
9520
|
+
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9521
|
+
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9522
|
+
(onRestartClick)="handleCancelClick()"
|
|
9523
|
+
>
|
|
9524
|
+
<div class="theed-sidepanel-tile-group">
|
|
9525
|
+
<co-step-tile
|
|
9526
|
+
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9527
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9528
|
+
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9529
|
+
(onClick)="handleOpenCatalog()"
|
|
9530
|
+
></co-step-tile>
|
|
9531
|
+
<co-step-tile
|
|
9532
|
+
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9533
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9534
|
+
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9535
|
+
(onClick)="handleOpenCatalog(true)"
|
|
9536
|
+
></co-step-tile>
|
|
9537
|
+
<!--co-step-tile
|
|
9538
|
+
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9539
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9540
|
+
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9541
|
+
(onClick)="handleShowWallOptions()"
|
|
9542
|
+
></co-step-tile>
|
|
9543
|
+
<co-step-tile
|
|
9544
|
+
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9545
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9546
|
+
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9547
|
+
(onClick)="handleShowFloorOptions()"
|
|
9548
|
+
></co-step-tile-->
|
|
9549
|
+
<co-step-tile
|
|
9550
|
+
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9551
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9552
|
+
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9553
|
+
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9554
|
+
></co-step-tile>
|
|
9555
|
+
<co-step-tile
|
|
9556
|
+
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9557
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9558
|
+
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9559
|
+
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9560
|
+
></co-step-tile>
|
|
9561
|
+
</div>
|
|
9562
|
+
<div class="threed-side-panel-buttons">
|
|
9563
|
+
<co-button
|
|
9564
|
+
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9565
|
+
[label]="'INPHOTO_RESTART' | localize"
|
|
9566
|
+
(onClick)="handleCancelClick()"
|
|
9567
|
+
></co-button>
|
|
9568
|
+
</div>
|
|
9569
|
+
</co-side-panel>
|
|
9570
|
+
</div>
|
|
9571
|
+
</div>
|
|
9572
|
+
<co-configurator
|
|
9573
|
+
class="floating"
|
|
9574
|
+
[showErrorMessages]="true"
|
|
9575
|
+
[showLoader]="true"
|
|
9576
|
+
[outputErrorMessages]="true"
|
|
9577
|
+
[settings]="configuratorSettings"
|
|
9578
|
+
[sku]="configuratorSku"
|
|
9579
|
+
[instanceId]="configuratorInstanceId"
|
|
9580
|
+
[show]="loadConfigurator && !firstBuild"
|
|
9581
|
+
(showChange)="showConfiguratorChange($event)"
|
|
9582
|
+
>
|
|
9583
|
+
</co-configurator>
|
|
9584
|
+
<co-scene-context-menu
|
|
9585
|
+
(configureObject)="handleConfigureObjectClick($event)"
|
|
9586
|
+
(copyObject)="handleCopyObject($event)"
|
|
9587
|
+
(scaleObject)="handleObjectScaleClick($event)"
|
|
9588
|
+
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9589
|
+
(deleteObject)="handleDeleteObject($event)"
|
|
9590
|
+
></co-scene-context-menu>
|
|
9591
|
+
|
|
9592
|
+
<co-process-loader
|
|
9593
|
+
[showLoader]="showRenderLoader"
|
|
9594
|
+
[loadingTexts]="loadingTexts"
|
|
9595
|
+
></co-process-loader>
|
|
9596
9596
|
`, isInline: true, dependencies: [{ kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: i7.ConfiguratorComponent, selector: "co-configurator", inputs: ["show", "sku", "instanceId", "settings", "scene", "showLoader", "showProgressBar", "showErrorMessages", "outputErrorMessages", "canCloseConfigurator", "animateSlideout", "showHeaderInformation"], outputs: ["isLoading", "updateProgressBar", "errorMessages", "showChange"] }, { kind: "component", type: SceneContextMenuComponent, selector: "co-scene-context-menu", outputs: ["configureObject", "copyObject", "scaleObject", "deleteObject", "updateObjectScale"] }, { kind: "component", type: SidePanelComponent, selector: "co-side-panel", inputs: ["header", "description", "headerIcon", "headerClass"], outputs: ["onRestartClick"] }, { kind: "component", type: StepTileComponent, selector: "co-step-tile", inputs: ["tileIcon", "tileImage", "title", "description", "showNewBanner", "numberedStep", "buttonText", "buttonIcon"], outputs: ["onClick", "onButtonClick"] }, { kind: "component", type: ProcessLoaderComponent, selector: "co-process-loader", inputs: ["showLoader", "loadingTexts"] }, { kind: "component", type: MarkerComponent, selector: "co-marker", inputs: ["icon", "label", "selected"], outputs: ["onClick"] }, { kind: "component", type: Image2DPlacementComponent, selector: "co-image-2d-placement", inputs: ["items", "width", "height"], outputs: ["imageSelected", "imageDeselected"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
9597
9597
|
}
|
|
9598
9598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InphotoThreedSceneComponent, decorators: [{
|
|
9599
9599
|
type: Component,
|
|
9600
9600
|
args: [{
|
|
9601
9601
|
selector: 'co-inphoto-threed-scene',
|
|
9602
|
-
template: `
|
|
9603
|
-
<div class="threed-container">
|
|
9604
|
-
<div class="scene-container" #sceneContainer>
|
|
9605
|
-
<div #container class="three-container">
|
|
9606
|
-
@if (showWallOptions) {
|
|
9607
|
-
@for (marker of wallMarkers; track marker.uuid) {
|
|
9608
|
-
<co-marker
|
|
9609
|
-
[label]="'Wall'"
|
|
9610
|
-
[icon]="icons.PaintRollerSharpSolid"
|
|
9611
|
-
[selected]="marker.uuid === selectedWallUuid"
|
|
9612
|
-
[style.left.px]="marker.x"
|
|
9613
|
-
[style.top.px]="marker.y"
|
|
9614
|
-
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9615
|
-
></co-marker>
|
|
9616
|
-
}
|
|
9617
|
-
}
|
|
9618
|
-
@if (showFloorOptions) {
|
|
9619
|
-
@for (marker of floorMarkers; track marker.uuid) {
|
|
9620
|
-
<co-marker
|
|
9621
|
-
[label]="'Floor'"
|
|
9622
|
-
[icon]="icons.LayerGroupSharpSolid"
|
|
9623
|
-
[selected]="marker.uuid === selectedFloorUuid"
|
|
9624
|
-
[style.left.px]="marker.x"
|
|
9625
|
-
[style.top.px]="marker.y"
|
|
9626
|
-
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9627
|
-
></co-marker>
|
|
9628
|
-
}
|
|
9629
|
-
}
|
|
9630
|
-
@if (show2DImageOverlay) {
|
|
9631
|
-
<co-image-2d-placement
|
|
9632
|
-
#imageOverlay
|
|
9633
|
-
[items]="objectsService.imageItems"
|
|
9634
|
-
[width]="overlayWidth"
|
|
9635
|
-
[height]="overlayHeight"
|
|
9636
|
-
[style.left.px]="overlayLeft"
|
|
9637
|
-
[style.top.px]="overlayTop"
|
|
9638
|
-
(imageSelected)="handle2DImageSelected($event)"
|
|
9639
|
-
(imageDeselected)="handle2DImageDeselected()"
|
|
9640
|
-
></co-image-2d-placement>
|
|
9641
|
-
}
|
|
9642
|
-
</div>
|
|
9643
|
-
</div>
|
|
9644
|
-
<div class="threed-sidepanel">
|
|
9645
|
-
<co-side-panel
|
|
9646
|
-
[headerClass]="'image-process-complete-dialog-header'"
|
|
9647
|
-
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9648
|
-
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9649
|
-
(onRestartClick)="handleCancelClick()"
|
|
9650
|
-
>
|
|
9651
|
-
<div class="theed-sidepanel-tile-group">
|
|
9652
|
-
<co-step-tile
|
|
9653
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9654
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9655
|
-
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9656
|
-
(onClick)="handleOpenCatalog()"
|
|
9657
|
-
></co-step-tile>
|
|
9658
|
-
<co-step-tile
|
|
9659
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9660
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9661
|
-
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9662
|
-
(onClick)="handleOpenCatalog(true)"
|
|
9663
|
-
></co-step-tile>
|
|
9664
|
-
<!--co-step-tile
|
|
9665
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9666
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9667
|
-
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9668
|
-
(onClick)="handleShowWallOptions()"
|
|
9669
|
-
></co-step-tile>
|
|
9670
|
-
<co-step-tile
|
|
9671
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9672
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9673
|
-
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9674
|
-
(onClick)="handleShowFloorOptions()"
|
|
9675
|
-
></co-step-tile-->
|
|
9676
|
-
<co-step-tile
|
|
9677
|
-
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9678
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9679
|
-
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9680
|
-
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9681
|
-
></co-step-tile>
|
|
9682
|
-
<co-step-tile
|
|
9683
|
-
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9684
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9685
|
-
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9686
|
-
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9687
|
-
></co-step-tile>
|
|
9688
|
-
</div>
|
|
9689
|
-
<div class="threed-side-panel-buttons">
|
|
9690
|
-
<co-button
|
|
9691
|
-
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9692
|
-
[label]="'INPHOTO_RESTART' | localize"
|
|
9693
|
-
(onClick)="handleCancelClick()"
|
|
9694
|
-
></co-button>
|
|
9695
|
-
</div>
|
|
9696
|
-
</co-side-panel>
|
|
9697
|
-
</div>
|
|
9698
|
-
</div>
|
|
9699
|
-
<co-configurator
|
|
9700
|
-
class="floating"
|
|
9701
|
-
[showErrorMessages]="true"
|
|
9702
|
-
[showLoader]="true"
|
|
9703
|
-
[outputErrorMessages]="true"
|
|
9704
|
-
[settings]="configuratorSettings"
|
|
9705
|
-
[sku]="configuratorSku"
|
|
9706
|
-
[instanceId]="configuratorInstanceId"
|
|
9707
|
-
[show]="loadConfigurator && !firstBuild"
|
|
9708
|
-
(showChange)="showConfiguratorChange($event)"
|
|
9709
|
-
>
|
|
9710
|
-
</co-configurator>
|
|
9711
|
-
<co-scene-context-menu
|
|
9712
|
-
(configureObject)="handleConfigureObjectClick($event)"
|
|
9713
|
-
(copyObject)="handleCopyObject($event)"
|
|
9714
|
-
(scaleObject)="handleObjectScaleClick($event)"
|
|
9715
|
-
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9716
|
-
(deleteObject)="handleDeleteObject($event)"
|
|
9717
|
-
></co-scene-context-menu>
|
|
9718
|
-
|
|
9719
|
-
<co-process-loader
|
|
9720
|
-
[showLoader]="showRenderLoader"
|
|
9721
|
-
[loadingTexts]="loadingTexts"
|
|
9722
|
-
></co-process-loader>
|
|
9602
|
+
template: `
|
|
9603
|
+
<div class="threed-container">
|
|
9604
|
+
<div class="scene-container" #sceneContainer>
|
|
9605
|
+
<div #container class="three-container">
|
|
9606
|
+
@if (showWallOptions) {
|
|
9607
|
+
@for (marker of wallMarkers; track marker.uuid) {
|
|
9608
|
+
<co-marker
|
|
9609
|
+
[label]="'Wall'"
|
|
9610
|
+
[icon]="icons.PaintRollerSharpSolid"
|
|
9611
|
+
[selected]="marker.uuid === selectedWallUuid"
|
|
9612
|
+
[style.left.px]="marker.x"
|
|
9613
|
+
[style.top.px]="marker.y"
|
|
9614
|
+
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9615
|
+
></co-marker>
|
|
9616
|
+
}
|
|
9617
|
+
}
|
|
9618
|
+
@if (showFloorOptions) {
|
|
9619
|
+
@for (marker of floorMarkers; track marker.uuid) {
|
|
9620
|
+
<co-marker
|
|
9621
|
+
[label]="'Floor'"
|
|
9622
|
+
[icon]="icons.LayerGroupSharpSolid"
|
|
9623
|
+
[selected]="marker.uuid === selectedFloorUuid"
|
|
9624
|
+
[style.left.px]="marker.x"
|
|
9625
|
+
[style.top.px]="marker.y"
|
|
9626
|
+
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9627
|
+
></co-marker>
|
|
9628
|
+
}
|
|
9629
|
+
}
|
|
9630
|
+
@if (show2DImageOverlay) {
|
|
9631
|
+
<co-image-2d-placement
|
|
9632
|
+
#imageOverlay
|
|
9633
|
+
[items]="objectsService.imageItems"
|
|
9634
|
+
[width]="overlayWidth"
|
|
9635
|
+
[height]="overlayHeight"
|
|
9636
|
+
[style.left.px]="overlayLeft"
|
|
9637
|
+
[style.top.px]="overlayTop"
|
|
9638
|
+
(imageSelected)="handle2DImageSelected($event)"
|
|
9639
|
+
(imageDeselected)="handle2DImageDeselected()"
|
|
9640
|
+
></co-image-2d-placement>
|
|
9641
|
+
}
|
|
9642
|
+
</div>
|
|
9643
|
+
</div>
|
|
9644
|
+
<div class="threed-sidepanel">
|
|
9645
|
+
<co-side-panel
|
|
9646
|
+
[headerClass]="'image-process-complete-dialog-header'"
|
|
9647
|
+
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9648
|
+
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9649
|
+
(onRestartClick)="handleCancelClick()"
|
|
9650
|
+
>
|
|
9651
|
+
<div class="theed-sidepanel-tile-group">
|
|
9652
|
+
<co-step-tile
|
|
9653
|
+
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9654
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9655
|
+
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9656
|
+
(onClick)="handleOpenCatalog()"
|
|
9657
|
+
></co-step-tile>
|
|
9658
|
+
<co-step-tile
|
|
9659
|
+
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9660
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9661
|
+
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9662
|
+
(onClick)="handleOpenCatalog(true)"
|
|
9663
|
+
></co-step-tile>
|
|
9664
|
+
<!--co-step-tile
|
|
9665
|
+
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9666
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9667
|
+
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9668
|
+
(onClick)="handleShowWallOptions()"
|
|
9669
|
+
></co-step-tile>
|
|
9670
|
+
<co-step-tile
|
|
9671
|
+
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9672
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9673
|
+
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9674
|
+
(onClick)="handleShowFloorOptions()"
|
|
9675
|
+
></co-step-tile-->
|
|
9676
|
+
<co-step-tile
|
|
9677
|
+
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9678
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9679
|
+
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9680
|
+
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9681
|
+
></co-step-tile>
|
|
9682
|
+
<co-step-tile
|
|
9683
|
+
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9684
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9685
|
+
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9686
|
+
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9687
|
+
></co-step-tile>
|
|
9688
|
+
</div>
|
|
9689
|
+
<div class="threed-side-panel-buttons">
|
|
9690
|
+
<co-button
|
|
9691
|
+
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9692
|
+
[label]="'INPHOTO_RESTART' | localize"
|
|
9693
|
+
(onClick)="handleCancelClick()"
|
|
9694
|
+
></co-button>
|
|
9695
|
+
</div>
|
|
9696
|
+
</co-side-panel>
|
|
9697
|
+
</div>
|
|
9698
|
+
</div>
|
|
9699
|
+
<co-configurator
|
|
9700
|
+
class="floating"
|
|
9701
|
+
[showErrorMessages]="true"
|
|
9702
|
+
[showLoader]="true"
|
|
9703
|
+
[outputErrorMessages]="true"
|
|
9704
|
+
[settings]="configuratorSettings"
|
|
9705
|
+
[sku]="configuratorSku"
|
|
9706
|
+
[instanceId]="configuratorInstanceId"
|
|
9707
|
+
[show]="loadConfigurator && !firstBuild"
|
|
9708
|
+
(showChange)="showConfiguratorChange($event)"
|
|
9709
|
+
>
|
|
9710
|
+
</co-configurator>
|
|
9711
|
+
<co-scene-context-menu
|
|
9712
|
+
(configureObject)="handleConfigureObjectClick($event)"
|
|
9713
|
+
(copyObject)="handleCopyObject($event)"
|
|
9714
|
+
(scaleObject)="handleObjectScaleClick($event)"
|
|
9715
|
+
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9716
|
+
(deleteObject)="handleDeleteObject($event)"
|
|
9717
|
+
></co-scene-context-menu>
|
|
9718
|
+
|
|
9719
|
+
<co-process-loader
|
|
9720
|
+
[showLoader]="showRenderLoader"
|
|
9721
|
+
[loadingTexts]="loadingTexts"
|
|
9722
|
+
></co-process-loader>
|
|
9723
9723
|
`,
|
|
9724
9724
|
encapsulation: ViewEncapsulation.None,
|
|
9725
9725
|
standalone: false
|
|
@@ -10158,6 +10158,7 @@ class SegmentInpaintComponent {
|
|
|
10158
10158
|
segmentMode;
|
|
10159
10159
|
brushSize = 20;
|
|
10160
10160
|
segmentationObjects = [];
|
|
10161
|
+
clearButtonDisabled = true;
|
|
10161
10162
|
_image;
|
|
10162
10163
|
_inpaintImageState = '';
|
|
10163
10164
|
_subs = [];
|
|
@@ -10187,6 +10188,7 @@ class SegmentInpaintComponent {
|
|
|
10187
10188
|
*
|
|
10188
10189
|
* */
|
|
10189
10190
|
handleSegmentationClick() {
|
|
10191
|
+
this.clearButtonDisabled = false;
|
|
10190
10192
|
this.segmentMode = SegmentationType.Click;
|
|
10191
10193
|
this.showLoader = true;
|
|
10192
10194
|
this._connectorService.uploadSegmentationImage(this.image).then((response) => {
|
|
@@ -10196,9 +10198,11 @@ class SegmentInpaintComponent {
|
|
|
10196
10198
|
});
|
|
10197
10199
|
}
|
|
10198
10200
|
handleSegmentationMask() {
|
|
10201
|
+
this.clearButtonDisabled = false;
|
|
10199
10202
|
this.segmentMode = SegmentationType.Manual;
|
|
10200
10203
|
}
|
|
10201
10204
|
handleSegmentationObject() {
|
|
10205
|
+
this.clearButtonDisabled = false;
|
|
10202
10206
|
this.segmentMode = SegmentationType.Yolo;
|
|
10203
10207
|
this.showLoader = true;
|
|
10204
10208
|
this._connectorService.getObjectBasedSegmentation(this.image).then((response) => {
|
|
@@ -10264,6 +10268,16 @@ class SegmentInpaintComponent {
|
|
|
10264
10268
|
handleChangeBrushSize(size) {
|
|
10265
10269
|
this.brushSize = size;
|
|
10266
10270
|
}
|
|
10271
|
+
handleAutoSegmentation() {
|
|
10272
|
+
this.showLoader = true;
|
|
10273
|
+
this._connectorService.processEmptyRoom(this.image).then((response) => {
|
|
10274
|
+
const image = ImageUtils.validateImage(response.image);
|
|
10275
|
+
this._dataService.addGeneratedImage(image);
|
|
10276
|
+
this._eventService.onGeneratedImageReceived.next();
|
|
10277
|
+
this.showLoader = false;
|
|
10278
|
+
this.handleSetImageFromHistory(image);
|
|
10279
|
+
});
|
|
10280
|
+
}
|
|
10267
10281
|
_handleError() {
|
|
10268
10282
|
this.showLoader = false;
|
|
10269
10283
|
const clickJobMissing = this.segmentMode === SegmentationType.Click && !this.segmentJobId;
|
|
@@ -10287,224 +10301,246 @@ class SegmentInpaintComponent {
|
|
|
10287
10301
|
this._loaderService.loadingText.set(loadingText);
|
|
10288
10302
|
}
|
|
10289
10303
|
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
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
[
|
|
10368
|
-
[
|
|
10369
|
-
[
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
<co-
|
|
10375
|
-
class="
|
|
10376
|
-
[
|
|
10377
|
-
[
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10304
|
+
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: `
|
|
10305
|
+
<div class="segment-inpaint-container">
|
|
10306
|
+
<co-canvas-tool-bar
|
|
10307
|
+
dragBoundary=".photo-editor-dialog"
|
|
10308
|
+
[canvasInpaintMode]="canvasInPaint"
|
|
10309
|
+
[canvasEraseMode]="canvasErase"
|
|
10310
|
+
[canvasDragMode]="dragMode"
|
|
10311
|
+
[title]="'INPHOTO_INPAINT_MODE'"
|
|
10312
|
+
[brushSize]="brushSize"
|
|
10313
|
+
[zoomPercent]="editCanvas.zoomPercent"
|
|
10314
|
+
[minZoomPercent]="editCanvas.minZoomPercent"
|
|
10315
|
+
[maxZoomPercent]="editCanvas.maxZoomPercent"
|
|
10316
|
+
[canZoomIn]="editCanvas.canZoomIn"
|
|
10317
|
+
[canZoomOut]="editCanvas.canZoomOut"
|
|
10318
|
+
(changeEraseMode)="toggleEraseMode($event)"
|
|
10319
|
+
(changeDragMode)="toggleDragMode($event)"
|
|
10320
|
+
(changeBrushSize)="handleChangeBrushSize($event)"
|
|
10321
|
+
(changeZoomIn)="editCanvas.zoomIn()"
|
|
10322
|
+
(changeZoomOut)="editCanvas.zoomOut()"
|
|
10323
|
+
(changeZoomInput)="editCanvas.onZoomInput($event)"
|
|
10324
|
+
></co-canvas-tool-bar>
|
|
10325
|
+
|
|
10326
|
+
<div class="inpaint-container">
|
|
10327
|
+
<div class="inpaint-canvas-container">
|
|
10328
|
+
<div class="inpaint-canvas-area">
|
|
10329
|
+
<!-- Canvas component -->
|
|
10330
|
+
<co-edit-canvas
|
|
10331
|
+
#editCanvas
|
|
10332
|
+
[class.canvas-disabled]="!segmentMode"
|
|
10333
|
+
[drawingDisabled]="!segmentMode"
|
|
10334
|
+
[image]="image"
|
|
10335
|
+
[inpaintMode]="inpaintClick"
|
|
10336
|
+
[eraserMode]="canvasErase"
|
|
10337
|
+
[dragMode]="dragMode"
|
|
10338
|
+
[brushSize]="brushSize"
|
|
10339
|
+
[segmentationInPainting]="segmentationInPaintingData"
|
|
10340
|
+
[segmentationObjects]="segmentationObjects"
|
|
10341
|
+
(onSegmentationPointClick)="handleSegmentationPointClick($event)"
|
|
10342
|
+
(imageState)="handleImageStateChange($event)"
|
|
10343
|
+
></co-edit-canvas>
|
|
10344
|
+
</div>
|
|
10345
|
+
|
|
10346
|
+
<div class="inpaint-bottom">
|
|
10347
|
+
<co-image-history
|
|
10348
|
+
(setImageAsBackground)="handleSetImageFromHistory($event)"
|
|
10349
|
+
(editIn3D)="handleEditIn3DFromHistory($event)"
|
|
10350
|
+
(removeObjects)="handleSetImageFromHistory($event)"
|
|
10351
|
+
></co-image-history>
|
|
10352
|
+
</div>
|
|
10353
|
+
</div>
|
|
10354
|
+
|
|
10355
|
+
<div class="inpaint-info">
|
|
10356
|
+
<div class="inpaint-info-dialog-container">
|
|
10357
|
+
<co-side-panel
|
|
10358
|
+
[headerClass]="'inpaint-info-dialog-header'"
|
|
10359
|
+
[header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
|
|
10360
|
+
[description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
|
|
10361
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10362
|
+
<co-step-tile
|
|
10363
|
+
[class.tile-active]="segmentMode === SegmentationType.Click"
|
|
10364
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
|
|
10365
|
+
[title]="'INPHOTO_INPAINT_OPTION_ONE'"
|
|
10366
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10367
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10368
|
+
(onClick)="handleSegmentationClick()"
|
|
10369
|
+
></co-step-tile>
|
|
10370
|
+
<co-step-tile
|
|
10371
|
+
[class.tile-active]="segmentMode === SegmentationType.Manual"
|
|
10372
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
|
|
10373
|
+
[title]="'INPHOTO_INPAINT_OPTION_TWO'"
|
|
10374
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10375
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10376
|
+
(onClick)="handleSegmentationMask()"
|
|
10377
|
+
></co-step-tile>
|
|
10378
|
+
</div>
|
|
10379
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10380
|
+
<co-step-tile
|
|
10381
|
+
[class.tile-active]="segmentMode === SegmentationType.Yolo"
|
|
10382
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
|
|
10383
|
+
[title]="'INPHOTO_INPAINT_OPTION_THREE'"
|
|
10384
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10385
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10386
|
+
(onClick)="handleSegmentationObject()"
|
|
10387
|
+
></co-step-tile>
|
|
10388
|
+
<co-step-tile
|
|
10389
|
+
[class.tile-active]="segmentMode === SegmentationType.Auto"
|
|
10390
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Auto"
|
|
10391
|
+
[title]="'INPHOTO_INPAINT_OPTION_FOUR'"
|
|
10392
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10393
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10394
|
+
(onClick)="handleAutoSegmentation()"
|
|
10395
|
+
></co-step-tile>
|
|
10396
|
+
</div>
|
|
10397
|
+
<div class="button-container">
|
|
10398
|
+
<co-button
|
|
10399
|
+
class="restart-button"
|
|
10400
|
+
[iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
|
|
10401
|
+
[label]="'INPHOTO_BACK_EDIT_MENU' | localize"
|
|
10402
|
+
(onClick)="handleBackToEditMenu()"
|
|
10403
|
+
></co-button>
|
|
10404
|
+
<co-button
|
|
10405
|
+
class="clear-objects-button"
|
|
10406
|
+
[disabled]="clearButtonDisabled"
|
|
10407
|
+
[iconData]="iconService.getIcon(icons.TrashCanLight)"
|
|
10408
|
+
[label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
|
|
10409
|
+
(onClick)="processInpainted()"
|
|
10410
|
+
></co-button>
|
|
10411
|
+
</div>
|
|
10412
|
+
</co-side-panel>
|
|
10413
|
+
</div>
|
|
10414
|
+
</div>
|
|
10415
|
+
</div>
|
|
10416
|
+
</div>
|
|
10417
|
+
<co-process-loader
|
|
10418
|
+
[showLoader]="showLoader"
|
|
10419
|
+
[loadingTexts]="loadingTexts"
|
|
10420
|
+
></co-process-loader>
|
|
10396
10421
|
`, 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 });
|
|
10397
10422
|
}
|
|
10398
10423
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, decorators: [{
|
|
10399
10424
|
type: Component,
|
|
10400
10425
|
args: [{
|
|
10401
10426
|
selector: 'co-segment-inpaint',
|
|
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
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
[
|
|
10480
|
-
[
|
|
10481
|
-
[
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
<co-
|
|
10487
|
-
class="
|
|
10488
|
-
[
|
|
10489
|
-
[
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10427
|
+
template: `
|
|
10428
|
+
<div class="segment-inpaint-container">
|
|
10429
|
+
<co-canvas-tool-bar
|
|
10430
|
+
dragBoundary=".photo-editor-dialog"
|
|
10431
|
+
[canvasInpaintMode]="canvasInPaint"
|
|
10432
|
+
[canvasEraseMode]="canvasErase"
|
|
10433
|
+
[canvasDragMode]="dragMode"
|
|
10434
|
+
[title]="'INPHOTO_INPAINT_MODE'"
|
|
10435
|
+
[brushSize]="brushSize"
|
|
10436
|
+
[zoomPercent]="editCanvas.zoomPercent"
|
|
10437
|
+
[minZoomPercent]="editCanvas.minZoomPercent"
|
|
10438
|
+
[maxZoomPercent]="editCanvas.maxZoomPercent"
|
|
10439
|
+
[canZoomIn]="editCanvas.canZoomIn"
|
|
10440
|
+
[canZoomOut]="editCanvas.canZoomOut"
|
|
10441
|
+
(changeEraseMode)="toggleEraseMode($event)"
|
|
10442
|
+
(changeDragMode)="toggleDragMode($event)"
|
|
10443
|
+
(changeBrushSize)="handleChangeBrushSize($event)"
|
|
10444
|
+
(changeZoomIn)="editCanvas.zoomIn()"
|
|
10445
|
+
(changeZoomOut)="editCanvas.zoomOut()"
|
|
10446
|
+
(changeZoomInput)="editCanvas.onZoomInput($event)"
|
|
10447
|
+
></co-canvas-tool-bar>
|
|
10448
|
+
|
|
10449
|
+
<div class="inpaint-container">
|
|
10450
|
+
<div class="inpaint-canvas-container">
|
|
10451
|
+
<div class="inpaint-canvas-area">
|
|
10452
|
+
<!-- Canvas component -->
|
|
10453
|
+
<co-edit-canvas
|
|
10454
|
+
#editCanvas
|
|
10455
|
+
[class.canvas-disabled]="!segmentMode"
|
|
10456
|
+
[drawingDisabled]="!segmentMode"
|
|
10457
|
+
[image]="image"
|
|
10458
|
+
[inpaintMode]="inpaintClick"
|
|
10459
|
+
[eraserMode]="canvasErase"
|
|
10460
|
+
[dragMode]="dragMode"
|
|
10461
|
+
[brushSize]="brushSize"
|
|
10462
|
+
[segmentationInPainting]="segmentationInPaintingData"
|
|
10463
|
+
[segmentationObjects]="segmentationObjects"
|
|
10464
|
+
(onSegmentationPointClick)="handleSegmentationPointClick($event)"
|
|
10465
|
+
(imageState)="handleImageStateChange($event)"
|
|
10466
|
+
></co-edit-canvas>
|
|
10467
|
+
</div>
|
|
10468
|
+
|
|
10469
|
+
<div class="inpaint-bottom">
|
|
10470
|
+
<co-image-history
|
|
10471
|
+
(setImageAsBackground)="handleSetImageFromHistory($event)"
|
|
10472
|
+
(editIn3D)="handleEditIn3DFromHistory($event)"
|
|
10473
|
+
(removeObjects)="handleSetImageFromHistory($event)"
|
|
10474
|
+
></co-image-history>
|
|
10475
|
+
</div>
|
|
10476
|
+
</div>
|
|
10477
|
+
|
|
10478
|
+
<div class="inpaint-info">
|
|
10479
|
+
<div class="inpaint-info-dialog-container">
|
|
10480
|
+
<co-side-panel
|
|
10481
|
+
[headerClass]="'inpaint-info-dialog-header'"
|
|
10482
|
+
[header]="'INPHOTO_INPAINT_HOW_IT_WORKS'"
|
|
10483
|
+
[description]="'INPHOTO_INPAINT_HOW_IT_WORKS_INFO'">
|
|
10484
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10485
|
+
<co-step-tile
|
|
10486
|
+
[class.tile-active]="segmentMode === SegmentationType.Click"
|
|
10487
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Click"
|
|
10488
|
+
[title]="'INPHOTO_INPAINT_OPTION_ONE'"
|
|
10489
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10490
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10491
|
+
(onClick)="handleSegmentationClick()"
|
|
10492
|
+
></co-step-tile>
|
|
10493
|
+
<co-step-tile
|
|
10494
|
+
[class.tile-active]="segmentMode === SegmentationType.Manual"
|
|
10495
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Manual"
|
|
10496
|
+
[title]="'INPHOTO_INPAINT_OPTION_TWO'"
|
|
10497
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10498
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10499
|
+
(onClick)="handleSegmentationMask()"
|
|
10500
|
+
></co-step-tile>
|
|
10501
|
+
</div>
|
|
10502
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10503
|
+
<co-step-tile
|
|
10504
|
+
[class.tile-active]="segmentMode === SegmentationType.Yolo"
|
|
10505
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
|
|
10506
|
+
[title]="'INPHOTO_INPAINT_OPTION_THREE'"
|
|
10507
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10508
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10509
|
+
(onClick)="handleSegmentationObject()"
|
|
10510
|
+
></co-step-tile>
|
|
10511
|
+
<co-step-tile
|
|
10512
|
+
[class.tile-active]="segmentMode === SegmentationType.Auto"
|
|
10513
|
+
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Auto"
|
|
10514
|
+
[title]="'INPHOTO_INPAINT_OPTION_FOUR'"
|
|
10515
|
+
[tileIcon]="icons.AngleRightSharpSolid"
|
|
10516
|
+
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10517
|
+
(onClick)="handleAutoSegmentation()"
|
|
10518
|
+
></co-step-tile>
|
|
10519
|
+
</div>
|
|
10520
|
+
<div class="button-container">
|
|
10521
|
+
<co-button
|
|
10522
|
+
class="restart-button"
|
|
10523
|
+
[iconData]="iconService.getIcon(icons.ArrowLeftSolidFull)"
|
|
10524
|
+
[label]="'INPHOTO_BACK_EDIT_MENU' | localize"
|
|
10525
|
+
(onClick)="handleBackToEditMenu()"
|
|
10526
|
+
></co-button>
|
|
10527
|
+
<co-button
|
|
10528
|
+
class="clear-objects-button"
|
|
10529
|
+
[disabled]="clearButtonDisabled"
|
|
10530
|
+
[iconData]="iconService.getIcon(icons.TrashCanLight)"
|
|
10531
|
+
[label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
|
|
10532
|
+
(onClick)="processInpainted()"
|
|
10533
|
+
></co-button>
|
|
10534
|
+
</div>
|
|
10535
|
+
</co-side-panel>
|
|
10536
|
+
</div>
|
|
10537
|
+
</div>
|
|
10538
|
+
</div>
|
|
10539
|
+
</div>
|
|
10540
|
+
<co-process-loader
|
|
10541
|
+
[showLoader]="showLoader"
|
|
10542
|
+
[loadingTexts]="loadingTexts"
|
|
10543
|
+
></co-process-loader>
|
|
10508
10544
|
`,
|
|
10509
10545
|
standalone: false,
|
|
10510
10546
|
encapsulation: ViewEncapsulation.None
|
|
@@ -10749,128 +10785,128 @@ class InPhotoComponent {
|
|
|
10749
10785
|
this.closeReadyToOpen();
|
|
10750
10786
|
}
|
|
10751
10787
|
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 });
|
|
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>
|
|
10788
|
+
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: `
|
|
10789
|
+
<div class="co-inphoto-container">
|
|
10790
|
+
<div class="co-inphoto-menu">
|
|
10791
|
+
<co-side-bar-menu
|
|
10792
|
+
[disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
|
|
10793
|
+
(optionClicked)="handleMenuChange($event)"
|
|
10794
|
+
></co-side-bar-menu>
|
|
10795
|
+
</div>
|
|
10796
|
+
|
|
10797
|
+
<div class="co-inphoto-body">
|
|
10798
|
+
@if (showImageUpload) {
|
|
10799
|
+
<co-upload-starting-image
|
|
10800
|
+
(cancelClick)="handleCancelClick()"
|
|
10801
|
+
(uploadedImage)="handleImageUpload($event)"
|
|
10802
|
+
></co-upload-starting-image>
|
|
10803
|
+
}
|
|
10804
|
+
|
|
10805
|
+
@if (showImagePrepare) {
|
|
10806
|
+
<co-prepare-starting-image
|
|
10807
|
+
[image]="uploadedImage"
|
|
10808
|
+
(imageReady)="handleSegmentOutput($event)"
|
|
10809
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10810
|
+
(continueToAI)="handleAiDecoration($event)"
|
|
10811
|
+
(cancelClick)="handleCancelClick()"
|
|
10812
|
+
></co-prepare-starting-image>
|
|
10813
|
+
}
|
|
10814
|
+
|
|
10815
|
+
@if (showImageInpaint) {
|
|
10816
|
+
<co-segment-inpaint
|
|
10817
|
+
[image]="segmentImage"
|
|
10818
|
+
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10819
|
+
>
|
|
10820
|
+
</co-segment-inpaint>
|
|
10821
|
+
}
|
|
10822
|
+
|
|
10823
|
+
@if (show3D) {
|
|
10824
|
+
<co-inphoto-threed-scene
|
|
10825
|
+
[debug]="debug"
|
|
10826
|
+
[room]="roomData"
|
|
10827
|
+
(closeClick)="handleCancelClick()"
|
|
10828
|
+
(openCatalog)="handleOpenCatalog($event)"
|
|
10829
|
+
(startAiDecoration)="handleAiDecoration($event)"
|
|
10830
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10831
|
+
></co-inphoto-threed-scene>
|
|
10832
|
+
}
|
|
10833
|
+
<co-inphoto-catalog></co-inphoto-catalog>
|
|
10834
|
+
@if (showImageAiDecoration) {
|
|
10835
|
+
<co-photo-editor
|
|
10836
|
+
[mode]="aiDecorationMode"
|
|
10837
|
+
[image]="aiDecorationImage"
|
|
10838
|
+
(resetButtonClicked)="startPoint()"
|
|
10839
|
+
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10840
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10841
|
+
></co-photo-editor>
|
|
10842
|
+
}
|
|
10843
|
+
</div>
|
|
10844
|
+
<co-error-dialog></co-error-dialog>
|
|
10845
|
+
</div>
|
|
10810
10846
|
`, 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 });
|
|
10811
10847
|
}
|
|
10812
10848
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InPhotoComponent, decorators: [{
|
|
10813
10849
|
type: Component,
|
|
10814
10850
|
args: [{
|
|
10815
10851
|
selector: 'co-inphoto',
|
|
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>
|
|
10852
|
+
template: `
|
|
10853
|
+
<div class="co-inphoto-container">
|
|
10854
|
+
<div class="co-inphoto-menu">
|
|
10855
|
+
<co-side-bar-menu
|
|
10856
|
+
[disabledOptionIds]="showImageUpload ? catalogMenuOptionIds : noMenuOptionIds"
|
|
10857
|
+
(optionClicked)="handleMenuChange($event)"
|
|
10858
|
+
></co-side-bar-menu>
|
|
10859
|
+
</div>
|
|
10860
|
+
|
|
10861
|
+
<div class="co-inphoto-body">
|
|
10862
|
+
@if (showImageUpload) {
|
|
10863
|
+
<co-upload-starting-image
|
|
10864
|
+
(cancelClick)="handleCancelClick()"
|
|
10865
|
+
(uploadedImage)="handleImageUpload($event)"
|
|
10866
|
+
></co-upload-starting-image>
|
|
10867
|
+
}
|
|
10868
|
+
|
|
10869
|
+
@if (showImagePrepare) {
|
|
10870
|
+
<co-prepare-starting-image
|
|
10871
|
+
[image]="uploadedImage"
|
|
10872
|
+
(imageReady)="handleSegmentOutput($event)"
|
|
10873
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10874
|
+
(continueToAI)="handleAiDecoration($event)"
|
|
10875
|
+
(cancelClick)="handleCancelClick()"
|
|
10876
|
+
></co-prepare-starting-image>
|
|
10877
|
+
}
|
|
10878
|
+
|
|
10879
|
+
@if (showImageInpaint) {
|
|
10880
|
+
<co-segment-inpaint
|
|
10881
|
+
[image]="segmentImage"
|
|
10882
|
+
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10883
|
+
>
|
|
10884
|
+
</co-segment-inpaint>
|
|
10885
|
+
}
|
|
10886
|
+
|
|
10887
|
+
@if (show3D) {
|
|
10888
|
+
<co-inphoto-threed-scene
|
|
10889
|
+
[debug]="debug"
|
|
10890
|
+
[room]="roomData"
|
|
10891
|
+
(closeClick)="handleCancelClick()"
|
|
10892
|
+
(openCatalog)="handleOpenCatalog($event)"
|
|
10893
|
+
(startAiDecoration)="handleAiDecoration($event)"
|
|
10894
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10895
|
+
></co-inphoto-threed-scene>
|
|
10896
|
+
}
|
|
10897
|
+
<co-inphoto-catalog></co-inphoto-catalog>
|
|
10898
|
+
@if (showImageAiDecoration) {
|
|
10899
|
+
<co-photo-editor
|
|
10900
|
+
[mode]="aiDecorationMode"
|
|
10901
|
+
[image]="aiDecorationImage"
|
|
10902
|
+
(resetButtonClicked)="startPoint()"
|
|
10903
|
+
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10904
|
+
(startSegmentation)="handleSegmentationJob($event)"
|
|
10905
|
+
></co-photo-editor>
|
|
10906
|
+
}
|
|
10907
|
+
</div>
|
|
10908
|
+
<co-error-dialog></co-error-dialog>
|
|
10909
|
+
</div>
|
|
10874
10910
|
`,
|
|
10875
10911
|
encapsulation: ViewEncapsulation.None,
|
|
10876
10912
|
standalone: false
|