@colijnit/inphoto 301.1.3 → 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 +618 -541
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/index.d.ts +9 -4
- 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 +21 -0
- package/lib/component/segment-inpaint/style/_material-definition.scss +4 -1
- package/lib/component/segment-inpaint/style/_theme.scss +7 -0
- package/package.json +1 -1
|
@@ -3337,6 +3337,7 @@ class ImageEnhancerStyleComponent {
|
|
|
3337
3337
|
new AiImageStyleOption('Eclectic', 'Eclectic', './assets/06-eclectic.jpg'),
|
|
3338
3338
|
new AiImageStyleOption('Japanese / Zen', 'Japanese / Zen', './assets/07-japanese-zen.jpg')
|
|
3339
3339
|
];
|
|
3340
|
+
this.selectedDecorationStyle = this.decorationStyleCollection[0];
|
|
3340
3341
|
// TODO new AiImageStyleOption('Hollywood Regency', 'Hollywood Regency', './assets/') => NO IMAGE
|
|
3341
3342
|
if (modes && modes.length > 0) {
|
|
3342
3343
|
for (const mode of modes) {
|
|
@@ -3958,164 +3959,164 @@ class ImageTileComponent {
|
|
|
3958
3959
|
}
|
|
3959
3960
|
}
|
|
3960
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 });
|
|
3961
|
-
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: `
|
|
3962
|
-
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
3963
|
-
<div class="image-tile-top">
|
|
3964
|
-
@if (index) {
|
|
3965
|
-
<div class="image-tile-index" [textContent]="index"></div>
|
|
3966
|
-
}
|
|
3967
|
-
<div class="image-tile-remove">
|
|
3968
|
-
<co-button
|
|
3969
|
-
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
3970
|
-
(onClick)="removeImage()">
|
|
3971
|
-
</co-button>
|
|
3972
|
-
</div>
|
|
3973
|
-
|
|
3974
|
-
<div class="image-tile-container">
|
|
3975
|
-
@if (data.image) {
|
|
3976
|
-
<img [src]="data.image" alt="uploaded-image">
|
|
3977
|
-
} @else {
|
|
3978
|
-
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
3979
|
-
</div>
|
|
3980
|
-
}
|
|
3981
|
-
</div>
|
|
3982
|
-
</div>
|
|
3983
|
-
|
|
3984
|
-
<div class="image-tile-bottom">
|
|
3985
|
-
<co-button
|
|
3986
|
-
class="brush-icon"
|
|
3987
|
-
[class.hide-brush-button]="!hideColors"
|
|
3988
|
-
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
3989
|
-
(onClick)="showColorPalette()">
|
|
3990
|
-
</co-button>
|
|
3991
|
-
|
|
3992
|
-
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
3993
|
-
<div
|
|
3994
|
-
class="color-palette"
|
|
3995
|
-
[class.color-palette-disabled]="hasSelectedColor"
|
|
3996
|
-
[class.color-palette-hidden]="hideColors">
|
|
3997
|
-
<co-color-palette-option
|
|
3998
|
-
[colorOption]="color.BLUE"
|
|
3999
|
-
[selected]="data.maskColor === color.BLUE"
|
|
4000
|
-
[disabled]="isUsedColor(color.BLUE)"
|
|
4001
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4002
|
-
></co-color-palette-option>
|
|
4003
|
-
<co-color-palette-option
|
|
4004
|
-
[colorOption]="color.GREEN"
|
|
4005
|
-
[selected]="data.maskColor === color.GREEN"
|
|
4006
|
-
[disabled]="isUsedColor(color.GREEN)"
|
|
4007
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4008
|
-
></co-color-palette-option>
|
|
4009
|
-
<co-color-palette-option
|
|
4010
|
-
[colorOption]="color.YELLOW"
|
|
4011
|
-
[selected]="data.maskColor === color.YELLOW"
|
|
4012
|
-
[disabled]="isUsedColor(color.YELLOW)"
|
|
4013
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4014
|
-
></co-color-palette-option>
|
|
4015
|
-
<co-color-palette-option
|
|
4016
|
-
[colorOption]="color.PURPLE"
|
|
4017
|
-
[selected]="data.maskColor === color.PURPLE"
|
|
4018
|
-
[disabled]="isUsedColor(color.PURPLE)"
|
|
4019
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4020
|
-
></co-color-palette-option>
|
|
4021
|
-
<co-color-palette-option
|
|
4022
|
-
[colorOption]="color.TEAL"
|
|
4023
|
-
[selected]="data.maskColor === color.TEAL"
|
|
4024
|
-
[disabled]="isUsedColor(color.TEAL)"
|
|
4025
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4026
|
-
></co-color-palette-option>
|
|
4027
|
-
</div>
|
|
4028
|
-
</div>
|
|
4029
|
-
<co-button
|
|
4030
|
-
class="delete-icon"
|
|
4031
|
-
[class.hide-delete-button]="hideColors"
|
|
4032
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4033
|
-
(onClick)="removeMask()">
|
|
4034
|
-
</co-button>
|
|
4035
|
-
</div>
|
|
4036
|
-
</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>
|
|
4037
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 });
|
|
4038
4039
|
}
|
|
4039
4040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ImageTileComponent, decorators: [{
|
|
4040
4041
|
type: Component,
|
|
4041
4042
|
args: [{
|
|
4042
4043
|
selector: 'co-image-tile',
|
|
4043
|
-
template: `
|
|
4044
|
-
<div class="image-tile" [class.active-item]="activeItem" (click)="handleContinueCurrentMask()">
|
|
4045
|
-
<div class="image-tile-top">
|
|
4046
|
-
@if (index) {
|
|
4047
|
-
<div class="image-tile-index" [textContent]="index"></div>
|
|
4048
|
-
}
|
|
4049
|
-
<div class="image-tile-remove">
|
|
4050
|
-
<co-button
|
|
4051
|
-
[iconData]="iconCacheService.getIcon(icons.CrossSkinny)"
|
|
4052
|
-
(onClick)="removeImage()">
|
|
4053
|
-
</co-button>
|
|
4054
|
-
</div>
|
|
4055
|
-
|
|
4056
|
-
<div class="image-tile-container">
|
|
4057
|
-
@if (data.image) {
|
|
4058
|
-
<img [src]="data.image" alt="uploaded-image">
|
|
4059
|
-
} @else {
|
|
4060
|
-
<div class="mask-no-image-explain" [textContent]="'INPHOTO_MASK_NO_IMAGE' | localize">
|
|
4061
|
-
</div>
|
|
4062
|
-
}
|
|
4063
|
-
</div>
|
|
4064
|
-
</div>
|
|
4065
|
-
|
|
4066
|
-
<div class="image-tile-bottom">
|
|
4067
|
-
<co-button
|
|
4068
|
-
class="brush-icon"
|
|
4069
|
-
[class.hide-brush-button]="!hideColors"
|
|
4070
|
-
[iconData]="iconCacheService.getIcon(icons.PaintbrushRegular)"
|
|
4071
|
-
(onClick)="showColorPalette()">
|
|
4072
|
-
</co-button>
|
|
4073
|
-
|
|
4074
|
-
<div class="color-palette-wrapper" (click)="handleContinueCurrentMask()">
|
|
4075
|
-
<div
|
|
4076
|
-
class="color-palette"
|
|
4077
|
-
[class.color-palette-disabled]="hasSelectedColor"
|
|
4078
|
-
[class.color-palette-hidden]="hideColors">
|
|
4079
|
-
<co-color-palette-option
|
|
4080
|
-
[colorOption]="color.BLUE"
|
|
4081
|
-
[selected]="data.maskColor === color.BLUE"
|
|
4082
|
-
[disabled]="isUsedColor(color.BLUE)"
|
|
4083
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4084
|
-
></co-color-palette-option>
|
|
4085
|
-
<co-color-palette-option
|
|
4086
|
-
[colorOption]="color.GREEN"
|
|
4087
|
-
[selected]="data.maskColor === color.GREEN"
|
|
4088
|
-
[disabled]="isUsedColor(color.GREEN)"
|
|
4089
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4090
|
-
></co-color-palette-option>
|
|
4091
|
-
<co-color-palette-option
|
|
4092
|
-
[colorOption]="color.YELLOW"
|
|
4093
|
-
[selected]="data.maskColor === color.YELLOW"
|
|
4094
|
-
[disabled]="isUsedColor(color.YELLOW)"
|
|
4095
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4096
|
-
></co-color-palette-option>
|
|
4097
|
-
<co-color-palette-option
|
|
4098
|
-
[colorOption]="color.PURPLE"
|
|
4099
|
-
[selected]="data.maskColor === color.PURPLE"
|
|
4100
|
-
[disabled]="isUsedColor(color.PURPLE)"
|
|
4101
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4102
|
-
></co-color-palette-option>
|
|
4103
|
-
<co-color-palette-option
|
|
4104
|
-
[colorOption]="color.TEAL"
|
|
4105
|
-
[selected]="data.maskColor === color.TEAL"
|
|
4106
|
-
[disabled]="isUsedColor(color.TEAL)"
|
|
4107
|
-
(changeMarkerColor)="setMarkerColor($event)"
|
|
4108
|
-
></co-color-palette-option>
|
|
4109
|
-
</div>
|
|
4110
|
-
</div>
|
|
4111
|
-
<co-button
|
|
4112
|
-
class="delete-icon"
|
|
4113
|
-
[class.hide-delete-button]="hideColors"
|
|
4114
|
-
[iconData]="iconCacheService.getIcon(icons.TrashCanLight)"
|
|
4115
|
-
(onClick)="removeMask()">
|
|
4116
|
-
</co-button>
|
|
4117
|
-
</div>
|
|
4118
|
-
</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>
|
|
4119
4120
|
`,
|
|
4120
4121
|
standalone: false,
|
|
4121
4122
|
encapsulation: ViewEncapsulation.None
|
|
@@ -6571,7 +6572,7 @@ class PrepareStartingImageComponent {
|
|
|
6571
6572
|
startSegmentation = new EventEmitter();
|
|
6572
6573
|
imageReady = new EventEmitter();
|
|
6573
6574
|
continueToAI = new EventEmitter();
|
|
6574
|
-
customPrompt;
|
|
6575
|
+
customPrompt = '';
|
|
6575
6576
|
disableSelectObjectsButton = false;
|
|
6576
6577
|
showLoader = false;
|
|
6577
6578
|
// Loading text for getting to 3d
|
|
@@ -6788,6 +6789,7 @@ class PrepareStartingImageComponent {
|
|
|
6788
6789
|
></co-button>
|
|
6789
6790
|
<co-button
|
|
6790
6791
|
class="generate-button"
|
|
6792
|
+
[disabled]="!customPrompt.trim()"
|
|
6791
6793
|
[iconData]="iconService.getIcon(icons.SparklesRegularFull)"
|
|
6792
6794
|
[label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
|
|
6793
6795
|
(onClick)="handleGenerateClicked()"
|
|
@@ -6915,6 +6917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6915
6917
|
></co-button>
|
|
6916
6918
|
<co-button
|
|
6917
6919
|
class="generate-button"
|
|
6920
|
+
[disabled]="!customPrompt.trim()"
|
|
6918
6921
|
[iconData]="iconService.getIcon(icons.SparklesRegularFull)"
|
|
6919
6922
|
[label]="'INPHOTO_GENERATE_YOUR_DESIGN' | localize"
|
|
6920
6923
|
(onClick)="handleGenerateClicked()"
|
|
@@ -8250,112 +8253,112 @@ class ScaleDialogComponent {
|
|
|
8250
8253
|
return Math.round(value * 100) / 100;
|
|
8251
8254
|
}
|
|
8252
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 });
|
|
8253
|
-
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: `
|
|
8254
|
-
<div class="scale-dialog-container">
|
|
8255
|
-
<div class="scale-dialog-body">
|
|
8256
|
-
<div class="slider-container">
|
|
8257
|
-
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8258
|
-
<input
|
|
8259
|
-
type="range"
|
|
8260
|
-
[min]="minScale"
|
|
8261
|
-
[max]="maxScale"
|
|
8262
|
-
[step]="scaleStep"
|
|
8263
|
-
[(ngModel)]="scaleAll"
|
|
8264
|
-
(input)="onScaleAllChange($event)"/>
|
|
8265
|
-
</div>
|
|
8266
|
-
|
|
8267
|
-
<div class="slider-container">
|
|
8268
|
-
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8269
|
-
<input
|
|
8270
|
-
type="range"
|
|
8271
|
-
[min]="minScale"
|
|
8272
|
-
[max]="maxScale"
|
|
8273
|
-
[step]="scaleStep"
|
|
8274
|
-
[(ngModel)]="scaleX"
|
|
8275
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8276
|
-
</div>
|
|
8277
|
-
|
|
8278
|
-
<div class="slider-container">
|
|
8279
|
-
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8280
|
-
<input
|
|
8281
|
-
type="range"
|
|
8282
|
-
[min]="minScale"
|
|
8283
|
-
[max]="maxScale"
|
|
8284
|
-
[step]="scaleStep"
|
|
8285
|
-
[(ngModel)]="scaleY"
|
|
8286
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8287
|
-
</div>
|
|
8288
|
-
|
|
8289
|
-
@if (!item?.is2D) {
|
|
8290
|
-
<div class="slider-container">
|
|
8291
|
-
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8292
|
-
<input
|
|
8293
|
-
type="range"
|
|
8294
|
-
[min]="minScale"
|
|
8295
|
-
[max]="maxScale"
|
|
8296
|
-
[step]="scaleStep"
|
|
8297
|
-
[(ngModel)]="scaleZ"
|
|
8298
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8299
|
-
</div>
|
|
8300
|
-
}
|
|
8301
|
-
</div>
|
|
8302
|
-
</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>
|
|
8303
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 });
|
|
8304
8307
|
}
|
|
8305
8308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ScaleDialogComponent, decorators: [{
|
|
8306
8309
|
type: Component,
|
|
8307
8310
|
args: [{
|
|
8308
8311
|
selector: 'co-scale-dialog',
|
|
8309
|
-
template: `
|
|
8310
|
-
<div class="scale-dialog-container">
|
|
8311
|
-
<div class="scale-dialog-body">
|
|
8312
|
-
<div class="slider-container">
|
|
8313
|
-
<p [textContent]="('INPHOTO_ALL_SCALE' | localize)"></p>
|
|
8314
|
-
<input
|
|
8315
|
-
type="range"
|
|
8316
|
-
[min]="minScale"
|
|
8317
|
-
[max]="maxScale"
|
|
8318
|
-
[step]="scaleStep"
|
|
8319
|
-
[(ngModel)]="scaleAll"
|
|
8320
|
-
(input)="onScaleAllChange($event)"/>
|
|
8321
|
-
</div>
|
|
8322
|
-
|
|
8323
|
-
<div class="slider-container">
|
|
8324
|
-
<p [textContent]="('INPHOTO_SCALE_X' | localize)"></p>
|
|
8325
|
-
<input
|
|
8326
|
-
type="range"
|
|
8327
|
-
[min]="minScale"
|
|
8328
|
-
[max]="maxScale"
|
|
8329
|
-
[step]="scaleStep"
|
|
8330
|
-
[(ngModel)]="scaleX"
|
|
8331
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8332
|
-
</div>
|
|
8333
|
-
|
|
8334
|
-
<div class="slider-container">
|
|
8335
|
-
<p [textContent]="('INPHOTO_SCALE_Y' | localize)"></p>
|
|
8336
|
-
<input
|
|
8337
|
-
type="range"
|
|
8338
|
-
[min]="minScale"
|
|
8339
|
-
[max]="maxScale"
|
|
8340
|
-
[step]="scaleStep"
|
|
8341
|
-
[(ngModel)]="scaleY"
|
|
8342
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8343
|
-
</div>
|
|
8344
|
-
|
|
8345
|
-
@if (!item?.is2D) {
|
|
8346
|
-
<div class="slider-container">
|
|
8347
|
-
<p [textContent]="('INPHOTO_SCALE_Z' | localize)"></p>
|
|
8348
|
-
<input
|
|
8349
|
-
type="range"
|
|
8350
|
-
[min]="minScale"
|
|
8351
|
-
[max]="maxScale"
|
|
8352
|
-
[step]="scaleStep"
|
|
8353
|
-
[(ngModel)]="scaleZ"
|
|
8354
|
-
(input)="onScaleSingleAxis($event)"/>
|
|
8355
|
-
</div>
|
|
8356
|
-
}
|
|
8357
|
-
</div>
|
|
8358
|
-
</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>
|
|
8359
8362
|
`,
|
|
8360
8363
|
standalone: false,
|
|
8361
8364
|
encapsulation: ViewEncapsulation.None
|
|
@@ -9469,254 +9472,254 @@ class InphotoThreedSceneComponent {
|
|
|
9469
9472
|
};
|
|
9470
9473
|
}
|
|
9471
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 });
|
|
9472
|
-
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: `
|
|
9473
|
-
<div class="threed-container">
|
|
9474
|
-
<div class="scene-container" #sceneContainer>
|
|
9475
|
-
<div #container class="three-container">
|
|
9476
|
-
@if (showWallOptions) {
|
|
9477
|
-
@for (marker of wallMarkers; track marker.uuid) {
|
|
9478
|
-
<co-marker
|
|
9479
|
-
[label]="'Wall'"
|
|
9480
|
-
[icon]="icons.PaintRollerSharpSolid"
|
|
9481
|
-
[selected]="marker.uuid === selectedWallUuid"
|
|
9482
|
-
[style.left.px]="marker.x"
|
|
9483
|
-
[style.top.px]="marker.y"
|
|
9484
|
-
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9485
|
-
></co-marker>
|
|
9486
|
-
}
|
|
9487
|
-
}
|
|
9488
|
-
@if (showFloorOptions) {
|
|
9489
|
-
@for (marker of floorMarkers; track marker.uuid) {
|
|
9490
|
-
<co-marker
|
|
9491
|
-
[label]="'Floor'"
|
|
9492
|
-
[icon]="icons.LayerGroupSharpSolid"
|
|
9493
|
-
[selected]="marker.uuid === selectedFloorUuid"
|
|
9494
|
-
[style.left.px]="marker.x"
|
|
9495
|
-
[style.top.px]="marker.y"
|
|
9496
|
-
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9497
|
-
></co-marker>
|
|
9498
|
-
}
|
|
9499
|
-
}
|
|
9500
|
-
@if (show2DImageOverlay) {
|
|
9501
|
-
<co-image-2d-placement
|
|
9502
|
-
#imageOverlay
|
|
9503
|
-
[items]="objectsService.imageItems"
|
|
9504
|
-
[width]="overlayWidth"
|
|
9505
|
-
[height]="overlayHeight"
|
|
9506
|
-
[style.left.px]="overlayLeft"
|
|
9507
|
-
[style.top.px]="overlayTop"
|
|
9508
|
-
(imageSelected)="handle2DImageSelected($event)"
|
|
9509
|
-
(imageDeselected)="handle2DImageDeselected()"
|
|
9510
|
-
></co-image-2d-placement>
|
|
9511
|
-
}
|
|
9512
|
-
</div>
|
|
9513
|
-
</div>
|
|
9514
|
-
<div class="threed-sidepanel">
|
|
9515
|
-
<co-side-panel
|
|
9516
|
-
[headerClass]="'image-process-complete-dialog-header'"
|
|
9517
|
-
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9518
|
-
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9519
|
-
(onRestartClick)="handleCancelClick()"
|
|
9520
|
-
>
|
|
9521
|
-
<div class="theed-sidepanel-tile-group">
|
|
9522
|
-
<co-step-tile
|
|
9523
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9524
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9525
|
-
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9526
|
-
(onClick)="handleOpenCatalog()"
|
|
9527
|
-
></co-step-tile>
|
|
9528
|
-
<co-step-tile
|
|
9529
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9530
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9531
|
-
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9532
|
-
(onClick)="handleOpenCatalog(true)"
|
|
9533
|
-
></co-step-tile>
|
|
9534
|
-
<!--co-step-tile
|
|
9535
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9536
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9537
|
-
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9538
|
-
(onClick)="handleShowWallOptions()"
|
|
9539
|
-
></co-step-tile>
|
|
9540
|
-
<co-step-tile
|
|
9541
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9542
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9543
|
-
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9544
|
-
(onClick)="handleShowFloorOptions()"
|
|
9545
|
-
></co-step-tile-->
|
|
9546
|
-
<co-step-tile
|
|
9547
|
-
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9548
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9549
|
-
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9550
|
-
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9551
|
-
></co-step-tile>
|
|
9552
|
-
<co-step-tile
|
|
9553
|
-
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9554
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9555
|
-
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9556
|
-
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9557
|
-
></co-step-tile>
|
|
9558
|
-
</div>
|
|
9559
|
-
<div class="threed-side-panel-buttons">
|
|
9560
|
-
<co-button
|
|
9561
|
-
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9562
|
-
[label]="'INPHOTO_RESTART' | localize"
|
|
9563
|
-
(onClick)="handleCancelClick()"
|
|
9564
|
-
></co-button>
|
|
9565
|
-
</div>
|
|
9566
|
-
</co-side-panel>
|
|
9567
|
-
</div>
|
|
9568
|
-
</div>
|
|
9569
|
-
<co-configurator
|
|
9570
|
-
class="floating"
|
|
9571
|
-
[showErrorMessages]="true"
|
|
9572
|
-
[showLoader]="true"
|
|
9573
|
-
[outputErrorMessages]="true"
|
|
9574
|
-
[settings]="configuratorSettings"
|
|
9575
|
-
[sku]="configuratorSku"
|
|
9576
|
-
[instanceId]="configuratorInstanceId"
|
|
9577
|
-
[show]="loadConfigurator && !firstBuild"
|
|
9578
|
-
(showChange)="showConfiguratorChange($event)"
|
|
9579
|
-
>
|
|
9580
|
-
</co-configurator>
|
|
9581
|
-
<co-scene-context-menu
|
|
9582
|
-
(configureObject)="handleConfigureObjectClick($event)"
|
|
9583
|
-
(copyObject)="handleCopyObject($event)"
|
|
9584
|
-
(scaleObject)="handleObjectScaleClick($event)"
|
|
9585
|
-
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9586
|
-
(deleteObject)="handleDeleteObject($event)"
|
|
9587
|
-
></co-scene-context-menu>
|
|
9588
|
-
|
|
9589
|
-
<co-process-loader
|
|
9590
|
-
[showLoader]="showRenderLoader"
|
|
9591
|
-
[loadingTexts]="loadingTexts"
|
|
9592
|
-
></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>
|
|
9593
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 });
|
|
9594
9597
|
}
|
|
9595
9598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InphotoThreedSceneComponent, decorators: [{
|
|
9596
9599
|
type: Component,
|
|
9597
9600
|
args: [{
|
|
9598
9601
|
selector: 'co-inphoto-threed-scene',
|
|
9599
|
-
template: `
|
|
9600
|
-
<div class="threed-container">
|
|
9601
|
-
<div class="scene-container" #sceneContainer>
|
|
9602
|
-
<div #container class="three-container">
|
|
9603
|
-
@if (showWallOptions) {
|
|
9604
|
-
@for (marker of wallMarkers; track marker.uuid) {
|
|
9605
|
-
<co-marker
|
|
9606
|
-
[label]="'Wall'"
|
|
9607
|
-
[icon]="icons.PaintRollerSharpSolid"
|
|
9608
|
-
[selected]="marker.uuid === selectedWallUuid"
|
|
9609
|
-
[style.left.px]="marker.x"
|
|
9610
|
-
[style.top.px]="marker.y"
|
|
9611
|
-
(onClick)="handleWallMarkerClick(marker.uuid)"
|
|
9612
|
-
></co-marker>
|
|
9613
|
-
}
|
|
9614
|
-
}
|
|
9615
|
-
@if (showFloorOptions) {
|
|
9616
|
-
@for (marker of floorMarkers; track marker.uuid) {
|
|
9617
|
-
<co-marker
|
|
9618
|
-
[label]="'Floor'"
|
|
9619
|
-
[icon]="icons.LayerGroupSharpSolid"
|
|
9620
|
-
[selected]="marker.uuid === selectedFloorUuid"
|
|
9621
|
-
[style.left.px]="marker.x"
|
|
9622
|
-
[style.top.px]="marker.y"
|
|
9623
|
-
(onClick)="handleFloorMarkerClick(marker.uuid)"
|
|
9624
|
-
></co-marker>
|
|
9625
|
-
}
|
|
9626
|
-
}
|
|
9627
|
-
@if (show2DImageOverlay) {
|
|
9628
|
-
<co-image-2d-placement
|
|
9629
|
-
#imageOverlay
|
|
9630
|
-
[items]="objectsService.imageItems"
|
|
9631
|
-
[width]="overlayWidth"
|
|
9632
|
-
[height]="overlayHeight"
|
|
9633
|
-
[style.left.px]="overlayLeft"
|
|
9634
|
-
[style.top.px]="overlayTop"
|
|
9635
|
-
(imageSelected)="handle2DImageSelected($event)"
|
|
9636
|
-
(imageDeselected)="handle2DImageDeselected()"
|
|
9637
|
-
></co-image-2d-placement>
|
|
9638
|
-
}
|
|
9639
|
-
</div>
|
|
9640
|
-
</div>
|
|
9641
|
-
<div class="threed-sidepanel">
|
|
9642
|
-
<co-side-panel
|
|
9643
|
-
[headerClass]="'image-process-complete-dialog-header'"
|
|
9644
|
-
[header]="'INPHOTO_IMAGE_ROOM_REDESIGN'"
|
|
9645
|
-
[description]="'INPHOTO_IMAGE_ROOM_REDESIGN_INFO'"
|
|
9646
|
-
(onRestartClick)="handleCancelClick()"
|
|
9647
|
-
>
|
|
9648
|
-
<div class="theed-sidepanel-tile-group">
|
|
9649
|
-
<co-step-tile
|
|
9650
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_3D'"
|
|
9651
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9652
|
-
[tileImage]="'how-to-redesign-with-catalog-01.jpg'"
|
|
9653
|
-
(onClick)="handleOpenCatalog()"
|
|
9654
|
-
></co-step-tile>
|
|
9655
|
-
<co-step-tile
|
|
9656
|
-
[title]="'INPHOTO_IMAGE_ADD_MODELS_2D'"
|
|
9657
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9658
|
-
[tileImage]="'how-to-redesign-with-catalog-02.jpg'"
|
|
9659
|
-
(onClick)="handleOpenCatalog(true)"
|
|
9660
|
-
></co-step-tile>
|
|
9661
|
-
<!--co-step-tile
|
|
9662
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_WALL'"
|
|
9663
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9664
|
-
[tileImage]="'how-to-redesign-with-catalog-03.jpg'"
|
|
9665
|
-
(onClick)="handleShowWallOptions()"
|
|
9666
|
-
></co-step-tile>
|
|
9667
|
-
<co-step-tile
|
|
9668
|
-
[title]="'INPHOTO_REDESIGN_CHANGE_FLOOR'"
|
|
9669
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9670
|
-
[tileImage]="'how-to-redesign-with-catalog-04.jpg'"
|
|
9671
|
-
(onClick)="handleShowFloorOptions()"
|
|
9672
|
-
></co-step-tile-->
|
|
9673
|
-
<co-step-tile
|
|
9674
|
-
[title]="'INPHOTO_CHANGE_DECORATION_STYLE'"
|
|
9675
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9676
|
-
[tileImage]="'how-to-redesign-with-catalog-05.jpg'"
|
|
9677
|
-
(onClick)="handleThreedToAi(RedesignMode.style)"
|
|
9678
|
-
></co-step-tile>
|
|
9679
|
-
<co-step-tile
|
|
9680
|
-
[title]="'INPHOTO_REFERATION_IMAGE'"
|
|
9681
|
-
[tileIcon]="icons.AngleRightSharpSolid"
|
|
9682
|
-
[tileImage]="'how-to-redesign-with-catalog-06.jpg'"
|
|
9683
|
-
(onClick)="handleThreedToAi(RedesignMode.referenceImage)"
|
|
9684
|
-
></co-step-tile>
|
|
9685
|
-
</div>
|
|
9686
|
-
<div class="threed-side-panel-buttons">
|
|
9687
|
-
<co-button
|
|
9688
|
-
[iconData]="iconService.getIcon(icons.RotateLeftSharpSolidFull)"
|
|
9689
|
-
[label]="'INPHOTO_RESTART' | localize"
|
|
9690
|
-
(onClick)="handleCancelClick()"
|
|
9691
|
-
></co-button>
|
|
9692
|
-
</div>
|
|
9693
|
-
</co-side-panel>
|
|
9694
|
-
</div>
|
|
9695
|
-
</div>
|
|
9696
|
-
<co-configurator
|
|
9697
|
-
class="floating"
|
|
9698
|
-
[showErrorMessages]="true"
|
|
9699
|
-
[showLoader]="true"
|
|
9700
|
-
[outputErrorMessages]="true"
|
|
9701
|
-
[settings]="configuratorSettings"
|
|
9702
|
-
[sku]="configuratorSku"
|
|
9703
|
-
[instanceId]="configuratorInstanceId"
|
|
9704
|
-
[show]="loadConfigurator && !firstBuild"
|
|
9705
|
-
(showChange)="showConfiguratorChange($event)"
|
|
9706
|
-
>
|
|
9707
|
-
</co-configurator>
|
|
9708
|
-
<co-scene-context-menu
|
|
9709
|
-
(configureObject)="handleConfigureObjectClick($event)"
|
|
9710
|
-
(copyObject)="handleCopyObject($event)"
|
|
9711
|
-
(scaleObject)="handleObjectScaleClick($event)"
|
|
9712
|
-
(updateObjectScale)="handleChangeObjectScale($event)"
|
|
9713
|
-
(deleteObject)="handleDeleteObject($event)"
|
|
9714
|
-
></co-scene-context-menu>
|
|
9715
|
-
|
|
9716
|
-
<co-process-loader
|
|
9717
|
-
[showLoader]="showRenderLoader"
|
|
9718
|
-
[loadingTexts]="loadingTexts"
|
|
9719
|
-
></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>
|
|
9720
9723
|
`,
|
|
9721
9724
|
encapsulation: ViewEncapsulation.None,
|
|
9722
9725
|
standalone: false
|
|
@@ -10125,6 +10128,7 @@ class SegmentInpaintComponent {
|
|
|
10125
10128
|
_loaderService;
|
|
10126
10129
|
_errorService;
|
|
10127
10130
|
_dataService;
|
|
10131
|
+
_eventService;
|
|
10128
10132
|
icons = Icon;
|
|
10129
10133
|
SegmentationType = SegmentationType;
|
|
10130
10134
|
showClass() {
|
|
@@ -10137,7 +10141,6 @@ class SegmentInpaintComponent {
|
|
|
10137
10141
|
return this._image;
|
|
10138
10142
|
}
|
|
10139
10143
|
backToEditMenuClick = new EventEmitter();
|
|
10140
|
-
preparedImage = new EventEmitter();
|
|
10141
10144
|
segmentationInPaintingData;
|
|
10142
10145
|
canvasInPaint = true;
|
|
10143
10146
|
inpaintClick = false;
|
|
@@ -10155,15 +10158,17 @@ class SegmentInpaintComponent {
|
|
|
10155
10158
|
segmentMode;
|
|
10156
10159
|
brushSize = 20;
|
|
10157
10160
|
segmentationObjects = [];
|
|
10161
|
+
clearButtonDisabled = true;
|
|
10158
10162
|
_image;
|
|
10159
10163
|
_inpaintImageState = '';
|
|
10160
10164
|
_subs = [];
|
|
10161
|
-
constructor(iconService, _connectorService, _loaderService, _errorService, _dataService) {
|
|
10165
|
+
constructor(iconService, _connectorService, _loaderService, _errorService, _dataService, _eventService) {
|
|
10162
10166
|
this.iconService = iconService;
|
|
10163
10167
|
this._connectorService = _connectorService;
|
|
10164
10168
|
this._loaderService = _loaderService;
|
|
10165
10169
|
this._errorService = _errorService;
|
|
10166
10170
|
this._dataService = _dataService;
|
|
10171
|
+
this._eventService = _eventService;
|
|
10167
10172
|
this._subs.push(this._errorService.errorAdded.subscribe(() => this._handleError()));
|
|
10168
10173
|
}
|
|
10169
10174
|
ngOnDestroy() {
|
|
@@ -10183,6 +10188,7 @@ class SegmentInpaintComponent {
|
|
|
10183
10188
|
*
|
|
10184
10189
|
* */
|
|
10185
10190
|
handleSegmentationClick() {
|
|
10191
|
+
this.clearButtonDisabled = false;
|
|
10186
10192
|
this.segmentMode = SegmentationType.Click;
|
|
10187
10193
|
this.showLoader = true;
|
|
10188
10194
|
this._connectorService.uploadSegmentationImage(this.image).then((response) => {
|
|
@@ -10192,9 +10198,11 @@ class SegmentInpaintComponent {
|
|
|
10192
10198
|
});
|
|
10193
10199
|
}
|
|
10194
10200
|
handleSegmentationMask() {
|
|
10201
|
+
this.clearButtonDisabled = false;
|
|
10195
10202
|
this.segmentMode = SegmentationType.Manual;
|
|
10196
10203
|
}
|
|
10197
10204
|
handleSegmentationObject() {
|
|
10205
|
+
this.clearButtonDisabled = false;
|
|
10198
10206
|
this.segmentMode = SegmentationType.Yolo;
|
|
10199
10207
|
this.showLoader = true;
|
|
10200
10208
|
this._connectorService.getObjectBasedSegmentation(this.image).then((response) => {
|
|
@@ -10241,16 +10249,35 @@ class SegmentInpaintComponent {
|
|
|
10241
10249
|
this._connectorService.segmentInpaint(image, this.segmentJobId).then((response) => {
|
|
10242
10250
|
const image = ImageUtils.validateImage(response.image);
|
|
10243
10251
|
this._dataService.addGeneratedImage(image);
|
|
10244
|
-
this.
|
|
10245
|
-
this.
|
|
10252
|
+
this._eventService.onGeneratedImageReceived.next();
|
|
10253
|
+
this.showLoader = false;
|
|
10254
|
+
this.handleSetImageFromHistory(image);
|
|
10246
10255
|
});
|
|
10247
10256
|
}
|
|
10257
|
+
handleSetImageFromHistory(image) {
|
|
10258
|
+
this.image = image;
|
|
10259
|
+
this._resetSegmentation();
|
|
10260
|
+
}
|
|
10261
|
+
handleEditIn3DFromHistory(image) {
|
|
10262
|
+
this.showLoader = true;
|
|
10263
|
+
this._connectorService.uploadRoomImage(image, true);
|
|
10264
|
+
}
|
|
10248
10265
|
handleImageStateChange(image) {
|
|
10249
10266
|
this._inpaintImageState = image;
|
|
10250
10267
|
}
|
|
10251
10268
|
handleChangeBrushSize(size) {
|
|
10252
10269
|
this.brushSize = size;
|
|
10253
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
|
+
}
|
|
10254
10281
|
_handleError() {
|
|
10255
10282
|
this.showLoader = false;
|
|
10256
10283
|
const clickJobMissing = this.segmentMode === SegmentationType.Click && !this.segmentJobId;
|
|
@@ -10259,13 +10286,22 @@ class SegmentInpaintComponent {
|
|
|
10259
10286
|
this.segmentMode = undefined;
|
|
10260
10287
|
}
|
|
10261
10288
|
}
|
|
10289
|
+
_resetSegmentation() {
|
|
10290
|
+
this.segmentMode = undefined;
|
|
10291
|
+
this.segmentJobId = undefined;
|
|
10292
|
+
this.segmentationInPaintingData = undefined;
|
|
10293
|
+
this.segmentationObjects = [];
|
|
10294
|
+
this.inpaintClick = false;
|
|
10295
|
+
this._inpaintImageState = '';
|
|
10296
|
+
this._eventService.clearMarkedCanvas.next();
|
|
10297
|
+
}
|
|
10262
10298
|
_handleLoader(showLoader, loadingText, showProgress) {
|
|
10263
10299
|
this._loaderService.clearLoaderProgress.emit();
|
|
10264
10300
|
this._loaderService.showLoader.set(showLoader);
|
|
10265
10301
|
this._loaderService.loadingText.set(loadingText);
|
|
10266
10302
|
}
|
|
10267
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, deps: [{ token: InphotoIconCacheService }, { token: InPhotoConnectorService }, { token: LoaderService }, { token: ErrorService }, { token: InphotoDataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10268
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SegmentInpaintComponent, isStandalone: false, selector: "co-segment-inpaint", inputs: { image: "image" }, outputs: { backToEditMenuClick: "backToEditMenuClick"
|
|
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 });
|
|
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: `
|
|
10269
10305
|
<div class="segment-inpaint-container">
|
|
10270
10306
|
<co-canvas-tool-bar
|
|
10271
10307
|
dragBoundary=".photo-editor-dialog"
|
|
@@ -10289,21 +10325,31 @@ class SegmentInpaintComponent {
|
|
|
10289
10325
|
|
|
10290
10326
|
<div class="inpaint-container">
|
|
10291
10327
|
<div class="inpaint-canvas-container">
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
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>
|
|
10307
10353
|
</div>
|
|
10308
10354
|
|
|
10309
10355
|
<div class="inpaint-info">
|
|
@@ -10329,6 +10375,8 @@ class SegmentInpaintComponent {
|
|
|
10329
10375
|
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10330
10376
|
(onClick)="handleSegmentationMask()"
|
|
10331
10377
|
></co-step-tile>
|
|
10378
|
+
</div>
|
|
10379
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10332
10380
|
<co-step-tile
|
|
10333
10381
|
[class.tile-active]="segmentMode === SegmentationType.Yolo"
|
|
10334
10382
|
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
|
|
@@ -10337,6 +10385,14 @@ class SegmentInpaintComponent {
|
|
|
10337
10385
|
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10338
10386
|
(onClick)="handleSegmentationObject()"
|
|
10339
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>
|
|
10340
10396
|
</div>
|
|
10341
10397
|
<div class="button-container">
|
|
10342
10398
|
<co-button
|
|
@@ -10347,6 +10403,7 @@ class SegmentInpaintComponent {
|
|
|
10347
10403
|
></co-button>
|
|
10348
10404
|
<co-button
|
|
10349
10405
|
class="clear-objects-button"
|
|
10406
|
+
[disabled]="clearButtonDisabled"
|
|
10350
10407
|
[iconData]="iconService.getIcon(icons.TrashCanLight)"
|
|
10351
10408
|
[label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
|
|
10352
10409
|
(onClick)="processInpainted()"
|
|
@@ -10361,7 +10418,7 @@ class SegmentInpaintComponent {
|
|
|
10361
10418
|
[showLoader]="showLoader"
|
|
10362
10419
|
[loadingTexts]="loadingTexts"
|
|
10363
10420
|
></co-process-loader>
|
|
10364
|
-
`, isInline: true, dependencies: [{ kind: "component", type: EditCanvasComponent, selector: "co-edit-canvas", inputs: ["image", "segmentationInPainting", "inpaintMode", "eraserMode", "dragMode", "brushSize", "drawingDisabled", "segmentationObjects"], outputs: ["onSegmentationPointClick", "imageState"] }, { kind: "component", type: i2.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: ProcessLoaderComponent, selector: "co-process-loader", inputs: ["showLoader", "loadingTexts"] }, { kind: "component", type: CanvasToolBarComponent, selector: "co-canvas-tool-bar", inputs: ["canvasInpaintMode", "canvasEraseMode", "canvasDragMode", "brushSize", "title", "dragBoundary", "minBrushSize", "maxBrushSize", "brushSizeStep", "zoomPercent", "minZoomPercent", "maxZoomPercent", "canZoomIn", "canZoomOut"], outputs: ["changeEraseMode", "changeDragMode", "changeBrushSize", "changeZoomIn", "changeZoomOut", "changeZoomInput"] }, { kind: "component", type: StepTileComponent, selector: "co-step-tile", inputs: ["tileIcon", "tileImage", "title", "description", "showNewBanner", "numberedStep", "buttonText", "buttonIcon"], outputs: ["onClick", "onButtonClick"] }, { kind: "component", type: SidePanelComponent, selector: "co-side-panel", inputs: ["header", "description", "headerIcon", "headerClass"], outputs: ["onRestartClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
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 });
|
|
10365
10422
|
}
|
|
10366
10423
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintComponent, decorators: [{
|
|
10367
10424
|
type: Component,
|
|
@@ -10391,21 +10448,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10391
10448
|
|
|
10392
10449
|
<div class="inpaint-container">
|
|
10393
10450
|
<div class="inpaint-canvas-container">
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
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>
|
|
10409
10476
|
</div>
|
|
10410
10477
|
|
|
10411
10478
|
<div class="inpaint-info">
|
|
@@ -10431,6 +10498,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10431
10498
|
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10432
10499
|
(onClick)="handleSegmentationMask()"
|
|
10433
10500
|
></co-step-tile>
|
|
10501
|
+
</div>
|
|
10502
|
+
<div class="inpaint-info-dialog-tile-group">
|
|
10434
10503
|
<co-step-tile
|
|
10435
10504
|
[class.tile-active]="segmentMode === SegmentationType.Yolo"
|
|
10436
10505
|
[class.tile-disabled]="segmentMode && segmentMode !== SegmentationType.Yolo"
|
|
@@ -10439,6 +10508,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10439
10508
|
[tileImage]="'inphoto-make-selection.jpg'"
|
|
10440
10509
|
(onClick)="handleSegmentationObject()"
|
|
10441
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>
|
|
10442
10519
|
</div>
|
|
10443
10520
|
<div class="button-container">
|
|
10444
10521
|
<co-button
|
|
@@ -10449,6 +10526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10449
10526
|
></co-button>
|
|
10450
10527
|
<co-button
|
|
10451
10528
|
class="clear-objects-button"
|
|
10529
|
+
[disabled]="clearButtonDisabled"
|
|
10452
10530
|
[iconData]="iconService.getIcon(icons.TrashCanLight)"
|
|
10453
10531
|
[label]="'INPHOTO_CLEAR_SELECTED_OBJECTS' | localize"
|
|
10454
10532
|
(onClick)="processInpainted()"
|
|
@@ -10467,15 +10545,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10467
10545
|
standalone: false,
|
|
10468
10546
|
encapsulation: ViewEncapsulation.None
|
|
10469
10547
|
}]
|
|
10470
|
-
}], ctorParameters: () => [{ type: InphotoIconCacheService }, { type: InPhotoConnectorService }, { type: LoaderService }, { type: ErrorService }, { type: InphotoDataService }], propDecorators: { showClass: [{
|
|
10548
|
+
}], ctorParameters: () => [{ type: InphotoIconCacheService }, { type: InPhotoConnectorService }, { type: LoaderService }, { type: ErrorService }, { type: InphotoDataService }, { type: InphotoEventService }], propDecorators: { showClass: [{
|
|
10471
10549
|
type: HostBinding,
|
|
10472
10550
|
args: ['class.co-segment-inpaint']
|
|
10473
10551
|
}], image: [{
|
|
10474
10552
|
type: Input
|
|
10475
10553
|
}], backToEditMenuClick: [{
|
|
10476
10554
|
type: Output
|
|
10477
|
-
}], preparedImage: [{
|
|
10478
|
-
type: Output
|
|
10479
10555
|
}] } });
|
|
10480
10556
|
|
|
10481
10557
|
class SideBarMenuComponent {
|
|
@@ -10739,7 +10815,6 @@ class InPhotoComponent {
|
|
|
10739
10815
|
@if (showImageInpaint) {
|
|
10740
10816
|
<co-segment-inpaint
|
|
10741
10817
|
[image]="segmentImage"
|
|
10742
|
-
(preparedImage)="handleImageUpload($event)"
|
|
10743
10818
|
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10744
10819
|
>
|
|
10745
10820
|
</co-segment-inpaint>
|
|
@@ -10768,7 +10843,7 @@ class InPhotoComponent {
|
|
|
10768
10843
|
</div>
|
|
10769
10844
|
<co-error-dialog></co-error-dialog>
|
|
10770
10845
|
</div>
|
|
10771
|
-
`, isInline: true, dependencies: [{ kind: "component", type: UploadStartingImageComponent, selector: "co-upload-starting-image", outputs: ["cancelClick", "uploadedImage"] }, { kind: "component", type: ErrorDialogComponent, selector: "co-error-dialog" }, { kind: "component", type: PrepareStartingImageComponent, selector: "co-prepare-starting-image", inputs: ["image"], outputs: ["cancelClick", "startSegmentation", "imageReady", "continueToAI"] }, { kind: "component", type: InphotoThreedSceneComponent, selector: "co-inphoto-threed-scene", inputs: ["room", "debug"], outputs: ["startAiDecoration", "startSegmentation", "openCatalog", "closeClick"] }, { kind: "component", type: PhotoEditorComponent, selector: "co-photo-editor", inputs: ["mode", "image"], outputs: ["resetButtonClicked", "backToEditMenuClick", "startSegmentation"] }, { kind: "component", type: SegmentInpaintComponent, selector: "co-segment-inpaint", inputs: ["image"], outputs: ["backToEditMenuClick"
|
|
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 });
|
|
10772
10847
|
}
|
|
10773
10848
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InPhotoComponent, decorators: [{
|
|
10774
10849
|
type: Component,
|
|
@@ -10804,7 +10879,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10804
10879
|
@if (showImageInpaint) {
|
|
10805
10880
|
<co-segment-inpaint
|
|
10806
10881
|
[image]="segmentImage"
|
|
10807
|
-
(preparedImage)="handleImageUpload($event)"
|
|
10808
10882
|
(backToEditMenuClick)="handleImageUpload($event)"
|
|
10809
10883
|
>
|
|
10810
10884
|
</co-segment-inpaint>
|
|
@@ -10860,7 +10934,8 @@ class SegmentInpaintModule {
|
|
|
10860
10934
|
CanvasToolBarModule,
|
|
10861
10935
|
StepTileModule,
|
|
10862
10936
|
HeaderModule,
|
|
10863
|
-
SidePanelModule
|
|
10937
|
+
SidePanelModule,
|
|
10938
|
+
ImageHistoryModule], exports: [SegmentInpaintComponent] });
|
|
10864
10939
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintModule, imports: [EditCanvasModule,
|
|
10865
10940
|
IconModule,
|
|
10866
10941
|
PipeModule,
|
|
@@ -10869,7 +10944,8 @@ class SegmentInpaintModule {
|
|
|
10869
10944
|
CanvasToolBarModule,
|
|
10870
10945
|
StepTileModule,
|
|
10871
10946
|
HeaderModule,
|
|
10872
|
-
SidePanelModule
|
|
10947
|
+
SidePanelModule,
|
|
10948
|
+
ImageHistoryModule] });
|
|
10873
10949
|
}
|
|
10874
10950
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SegmentInpaintModule, decorators: [{
|
|
10875
10951
|
type: NgModule,
|
|
@@ -10883,7 +10959,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10883
10959
|
CanvasToolBarModule,
|
|
10884
10960
|
StepTileModule,
|
|
10885
10961
|
HeaderModule,
|
|
10886
|
-
SidePanelModule
|
|
10962
|
+
SidePanelModule,
|
|
10963
|
+
ImageHistoryModule
|
|
10887
10964
|
],
|
|
10888
10965
|
declarations: [
|
|
10889
10966
|
SegmentInpaintComponent
|