@colijnit/inphoto 300.1.8 → 300.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/01-bohemian.jpg +0 -0
- package/assets/02-mid-century-modern.jpg +0 -0
- package/assets/03-rustic-farmhouse.jpg +0 -0
- package/assets/04-coastal-nautical.jpg +0 -0
- package/assets/05-art-deco.jpg +0 -0
- package/assets/06-eclectic.jpg +0 -0
- package/assets/07-japanese-zen.jpg +0 -0
- package/assets/08-modern.jpg +0 -0
- package/assets/09-contemporary.jpg +0 -0
- package/assets/10-minimalist.jpg +0 -0
- package/assets/11-scandinavian.jpg +0 -0
- package/assets/12-industrial.jpg +0 -0
- package/assets/13-traditional.jpg +0 -0
- package/assets/14-transitional.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-01.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-02.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-03.jpg +0 -0
- package/assets/how-do-want-to-edit-the-image-04.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-01.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-02.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-03.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-04.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-05.jpg +0 -0
- package/assets/how-to-redesign-with-catalog-06.jpg +0 -0
- package/assets/room-01-living-room.jpg +0 -0
- package/assets/room-02-kitchen.jpg +0 -0
- package/assets/room-03-dining-room.jpg +0 -0
- package/assets/room-04-bathroom.jpg +0 -0
- package/assets/room-05-bedroom.jpg +0 -0
- package/assets/room-06-kids-room.jpg +0 -0
- package/assets/room-07-home-office.jpg +0 -0
- package/assets/room-08-home-bar.jpg +0 -0
- package/fesm2022/colijnit-inphoto.mjs +7227 -5920
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/icons/angle_right_sharp_solid.svg +1 -0
- package/icons/camera_solid_regular.svg +1 -0
- package/icons/expand_regular_full.svg +1 -0
- package/index.d.ts +604 -377
- package/lib/component/ai-prompt/style/_layout.scss +87 -76
- package/lib/component/ai-prompt/style/_material-definition.scss +36 -38
- package/lib/component/ai-prompt/style/_theme.scss +73 -78
- package/lib/component/canvas-tool-bar/style/_layout.scss +116 -63
- package/lib/component/canvas-tool-bar/style/_material-definition.scss +43 -37
- package/lib/component/canvas-tool-bar/style/_theme.scss +119 -108
- package/lib/component/catalog/style/_layout.scss +68 -68
- package/lib/component/catalog/style/_material-definition.scss +26 -22
- package/lib/component/catalog/style/_theme.scss +43 -43
- package/lib/component/edit-canvas/style/_layout.scss +90 -85
- package/lib/component/edit-canvas/style/_material-definition.scss +19 -25
- package/lib/component/edit-canvas/style/_theme.scss +24 -61
- package/lib/component/error-dialog/style/_layout.scss +36 -36
- package/lib/component/error-dialog/style/_material-definition.scss +12 -12
- package/lib/component/error-dialog/style/_theme.scss +17 -17
- package/lib/component/header/style/_layout.scss +20 -20
- package/lib/component/header/style/_material-definition.scss +10 -8
- package/lib/component/header/style/_theme.scss +4 -1
- package/lib/component/image-2d-placement/style/_layout.scss +13 -0
- package/lib/component/image-2d-placement/style/_material-definition.scss +7 -0
- package/lib/component/image-2d-placement/style/_theme.scss +8 -0
- package/lib/component/image-enhancer/style/_layout.scss +43 -37
- package/lib/component/image-enhancer/style/_material-definition.scss +16 -13
- package/lib/component/image-enhancer/style/_theme.scss +42 -45
- package/lib/component/image-enhancer-style/style/_layout.scss +148 -65
- package/lib/component/image-enhancer-style/style/_material-definition.scss +42 -16
- package/lib/component/image-enhancer-style/style/_theme.scss +182 -120
- package/lib/component/image-enhancer-upload/style/_layout.scss +53 -48
- package/lib/component/image-enhancer-upload/style/_material-definition.scss +14 -14
- package/lib/component/image-enhancer-upload/style/_theme.scss +64 -66
- package/lib/component/image-history/style/_layout.scss +55 -57
- package/lib/component/image-history/style/_material-definition.scss +18 -20
- package/lib/component/image-history/style/_theme.scss +20 -25
- package/lib/component/image-history-tile/style/_layout.scss +53 -53
- package/lib/component/image-history-tile/style/_material-definition.scss +17 -15
- package/lib/component/image-history-tile/style/_theme.scss +32 -32
- package/lib/component/image-output-settings/style/_layout.scss +38 -0
- package/lib/component/image-output-settings/style/_material-definition.scss +8 -0
- package/lib/component/image-output-settings/style/_theme.scss +15 -0
- package/lib/component/image-overlay/style/_layout.scss +85 -84
- package/lib/component/image-overlay/style/_material-definition.scss +24 -21
- package/lib/component/image-overlay/style/_theme.scss +40 -40
- package/lib/component/image-overlay/style/material.scss +3 -3
- package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +19 -15
- package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +10 -9
- package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +19 -15
- package/lib/component/image-tile/style/_layout.scss +102 -102
- package/lib/component/image-tile/style/_material-definition.scss +19 -18
- package/lib/component/image-tile/style/_theme.scss +58 -58
- package/lib/component/image-upload/style/_layout.scss +97 -93
- package/lib/component/image-upload/style/_material-definition.scss +35 -35
- package/lib/component/image-upload/style/_theme.scss +99 -103
- package/lib/component/marker/style/_layout.scss +29 -30
- package/lib/component/marker/style/_material-definition.scss +12 -12
- package/lib/component/marker/style/_theme.scss +31 -30
- package/lib/component/marker/style/material.scss +3 -3
- package/lib/component/photo-editor/style/_layout.scss +77 -38
- package/lib/component/photo-editor/style/_material-definition.scss +17 -8
- package/lib/component/photo-editor/style/_theme.scss +15 -0
- package/lib/component/prepare-starting-image/style/_layout.scss +97 -34
- package/lib/component/prepare-starting-image/style/_material-definition.scss +19 -11
- package/lib/component/prepare-starting-image/style/_theme.scss +14 -3
- package/lib/component/process-loader/style/_layout.scss +75 -74
- package/lib/component/process-loader/style/_material-definition.scss +41 -24
- package/lib/component/process-loader/style/_theme.scss +128 -128
- package/lib/component/scale-dialog/style/_layout.scss +25 -0
- package/lib/component/scale-dialog/style/_material-definition.scss +8 -0
- package/lib/component/scale-dialog/style/_theme.scss +26 -0
- package/lib/component/scale-dialog/style/material.scss +3 -0
- package/lib/component/scene-context-menu/style/_layout.scss +69 -59
- package/lib/component/scene-context-menu/style/_material-definition.scss +32 -27
- package/lib/component/scene-context-menu/style/_theme.scss +62 -57
- package/lib/component/segment-inpaint/style/_layout.scss +96 -51
- package/lib/component/segment-inpaint/style/_material-definition.scss +23 -11
- package/lib/component/segment-inpaint/style/_theme.scss +79 -29
- package/lib/component/side-bar-menu/style/_layout.scss +30 -26
- package/lib/component/side-bar-menu/style/_material-definition.scss +13 -12
- package/lib/component/side-bar-menu/style/_theme.scss +32 -32
- package/lib/component/side-panel/style/_layout.scss +48 -45
- package/lib/component/side-panel/style/_material-definition.scss +17 -16
- package/lib/component/side-panel/style/_theme.scss +36 -39
- package/lib/component/step-tile/style/_layout.scss +66 -50
- package/lib/component/step-tile/style/_material-definition.scss +20 -20
- package/lib/component/step-tile/style/_theme.scss +68 -78
- package/lib/component/threedscene/style/_layout.scss +67 -57
- package/lib/component/threedscene/style/_material-definition.scss +16 -12
- package/lib/component/threedscene/style/_theme.scss +55 -17
- package/lib/component/upload-starting-image/style/_layout.scss +58 -58
- package/lib/component/upload-starting-image/style/_material-definition.scss +18 -18
- package/lib/component/upload-starting-image/style/_theme.scss +39 -39
- package/lib/style/_mixin.scss +2 -7
- package/lib/style/_variables.scss +7 -13
- package/package.json +13 -6
- package/lib/component/configuration-side-bar-menu/style/_layout.scss +0 -33
- package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +0 -10
- package/lib/component/configuration-side-bar-menu/style/_theme.scss +0 -58
- package/lib/component/image-process-complete/style/_layout.scss +0 -42
- package/lib/component/image-process-complete/style/_material-definition.scss +0 -13
- package/lib/component/image-process-complete/style/_theme.scss +0 -24
- /package/lib/component/{configuration-side-bar-menu → image-2d-placement}/style/material.scss +0 -0
- /package/lib/component/{image-process-complete → image-output-settings}/style/material.scss +0 -0
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { WritableSignal, EventEmitter, OnDestroy,
|
|
2
|
+
import { WritableSignal, EventEmitter, OnDestroy, OnInit, ChangeDetectorRef, PipeTransform, AfterViewInit, ElementRef } from '@angular/core';
|
|
3
3
|
import { Subject, BehaviorSubject, Subscription } from 'rxjs';
|
|
4
|
-
import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
|
|
5
4
|
import { GetArticlesForCatalogRequest } from '@colijnit/transactionapi/build/model/get-articles-for-catalog';
|
|
6
5
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
7
6
|
import { Vector3, Mesh, Box3, Scene, PerspectiveCamera, WebGLRenderer, Object3D, Vector2, Raycaster } from 'three';
|
|
@@ -18,23 +17,24 @@ import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/ext
|
|
|
18
17
|
import * as i6 from '@colijnit/configurator';
|
|
19
18
|
import { ConfigurationResultObject, ConfiguringService, ConfiguratorEventService } from '@colijnit/configurator';
|
|
20
19
|
import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
|
|
20
|
+
import { RenderSettingsService, RenderConnectorService, RenderService, RenderEventService } from '@colijnit/render';
|
|
21
21
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
22
22
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
23
|
-
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
24
23
|
import * as i2 from '@colijnit/corecomponents_v12';
|
|
25
|
-
import * as
|
|
24
|
+
import * as i4 from '@angular/forms';
|
|
26
25
|
import * as i7 from '@angular/cdk/drag-drop';
|
|
27
|
-
import * as i4 from '@angular/common';
|
|
26
|
+
import * as i4$1 from '@angular/common';
|
|
28
27
|
import * as i5 from '@colijnit/utilities';
|
|
28
|
+
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
29
29
|
|
|
30
30
|
declare class InphotoDictionaryService {
|
|
31
|
-
get language():
|
|
32
|
-
set language(value:
|
|
31
|
+
get language(): string;
|
|
32
|
+
set language(value: string);
|
|
33
33
|
private _dictionaryPromise;
|
|
34
34
|
private _dictionaries;
|
|
35
35
|
private _language;
|
|
36
36
|
private readonly _placeholder;
|
|
37
|
-
setDictionary(language:
|
|
37
|
+
setDictionary(language: string): Promise<void>;
|
|
38
38
|
/**
|
|
39
39
|
* Returns the localized text for the given dictionary key.
|
|
40
40
|
* @param {string} key
|
|
@@ -56,6 +56,7 @@ declare class SettingOptions {
|
|
|
56
56
|
showAsConfigured: boolean;
|
|
57
57
|
development: boolean;
|
|
58
58
|
inlineAnswers: boolean;
|
|
59
|
+
showAddArticleButton: boolean;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
declare class Settings extends Options {
|
|
@@ -105,6 +106,13 @@ declare class SceneBuildObject {
|
|
|
105
106
|
constructor(image?: string, floor?: ImageRoomResponse);
|
|
106
107
|
}
|
|
107
108
|
|
|
109
|
+
declare class Image2DPlacement {
|
|
110
|
+
uuid: string;
|
|
111
|
+
position: Vector3;
|
|
112
|
+
scale: Vector3;
|
|
113
|
+
scaleInitialized: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
108
116
|
declare class ArticleConfiguration {
|
|
109
117
|
sku: string;
|
|
110
118
|
instanceId: string;
|
|
@@ -112,6 +120,9 @@ declare class ArticleConfiguration {
|
|
|
112
120
|
externalSourceSchema: string;
|
|
113
121
|
externalSourceUrl: string;
|
|
114
122
|
configurationResult: ConfigurationResultObject;
|
|
123
|
+
is2D: boolean;
|
|
124
|
+
imageSource: string;
|
|
125
|
+
placement2D: Image2DPlacement;
|
|
115
126
|
}
|
|
116
127
|
|
|
117
128
|
declare class InphotoEventService {
|
|
@@ -133,9 +144,30 @@ declare enum PromptStyle {
|
|
|
133
144
|
replace = "replace"
|
|
134
145
|
}
|
|
135
146
|
|
|
147
|
+
declare enum RenderSize {
|
|
148
|
+
ONE_K = "1K",
|
|
149
|
+
TWO_K = "2K",
|
|
150
|
+
FOUR_K = "4K"
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare enum AspectRatio {
|
|
154
|
+
RATIO_1_1 = "1:1",
|
|
155
|
+
RATIO_2_3 = "2:3",
|
|
156
|
+
RATIO_3_2 = "3:2",
|
|
157
|
+
RATIO_3_4 = "3:4",
|
|
158
|
+
RATIO_4_3 = "4:3",
|
|
159
|
+
RATIO_4_5 = "4:5",
|
|
160
|
+
RATIO_5_4 = "5:4",
|
|
161
|
+
RATIO_9_16 = "9:16",
|
|
162
|
+
RATIO_16_9 = "16:9",
|
|
163
|
+
RATIO_21_9 = "21:9"
|
|
164
|
+
}
|
|
165
|
+
|
|
136
166
|
declare class Prompt {
|
|
137
167
|
prompt: string;
|
|
138
168
|
promptStyle: PromptStyle;
|
|
169
|
+
aspect_ratio: AspectRatio;
|
|
170
|
+
image_size: RenderSize;
|
|
139
171
|
}
|
|
140
172
|
|
|
141
173
|
declare class EnhanceStyle extends Prompt {
|
|
@@ -162,6 +194,7 @@ declare class LoaderService {
|
|
|
162
194
|
|
|
163
195
|
declare class ErrorService implements OnDestroy {
|
|
164
196
|
private _loaderService;
|
|
197
|
+
readonly errorAdded: Subject<void>;
|
|
165
198
|
showErrorDialog: WritableSignal<boolean>;
|
|
166
199
|
get errors(): string[];
|
|
167
200
|
set errors(value: string[]);
|
|
@@ -179,11 +212,11 @@ declare class JobIdResponse {
|
|
|
179
212
|
|
|
180
213
|
declare class DecorateResponse {
|
|
181
214
|
image: string;
|
|
182
|
-
public: string;
|
|
183
215
|
}
|
|
184
216
|
|
|
185
217
|
declare class CreatedImageResponse {
|
|
186
218
|
image: string;
|
|
219
|
+
image_size: RenderSize;
|
|
187
220
|
}
|
|
188
221
|
|
|
189
222
|
declare class SegmentationResponse {
|
|
@@ -239,7 +272,7 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
239
272
|
uploadRoomImage(image: string, skipInpainting: boolean): Promise<SceneBuildObject>;
|
|
240
273
|
processDecorateImage(canvasImage: string, style: EnhanceStyle): Promise<DecorateResponse>;
|
|
241
274
|
processEmptyRoom(canvasImage: string): Promise<CreatedImageResponse>;
|
|
242
|
-
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
275
|
+
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle, aspect_ratio: AspectRatio, image_size: RenderSize): Promise<CreatedImageResponse>;
|
|
243
276
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
244
277
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
245
278
|
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
@@ -247,9 +280,12 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
247
280
|
getDecorationModes(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
248
281
|
getDecorationStyles(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
249
282
|
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
283
|
+
inPhotoGenerate(image: string, prompt: string): Promise<DataServiceResponseData>;
|
|
250
284
|
private _handleRoomData;
|
|
251
285
|
private _processRoom;
|
|
252
286
|
private _getJobStatus;
|
|
287
|
+
private _request;
|
|
288
|
+
private _getResponseError;
|
|
253
289
|
private _loadRoom;
|
|
254
290
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoConnectorAdapterService, never>;
|
|
255
291
|
static ɵprov: i0.ɵɵInjectableDeclaration<InPhotoConnectorAdapterService>;
|
|
@@ -258,16 +294,17 @@ declare class InPhotoConnectorAdapterService implements OnDestroy {
|
|
|
258
294
|
declare class InphotoSettingsService {
|
|
259
295
|
private _dictionary;
|
|
260
296
|
private _connectorAdapterService;
|
|
297
|
+
private _renderSettingsService;
|
|
261
298
|
readonly languageCodeToDictionary: Map<string, string>;
|
|
262
|
-
get languageCode():
|
|
263
|
-
set languageCode(value:
|
|
299
|
+
get languageCode(): string;
|
|
300
|
+
set languageCode(value: string);
|
|
264
301
|
set settings(value: Settings);
|
|
265
302
|
get settings(): Settings;
|
|
266
303
|
settingsInitialized: BehaviorSubject<boolean>;
|
|
267
304
|
settingsLoaded: BehaviorSubject<boolean>;
|
|
268
305
|
private _languageCode;
|
|
269
306
|
private _settings;
|
|
270
|
-
constructor(_dictionary: InphotoDictionaryService, _connectorAdapterService: InPhotoConnectorAdapterService);
|
|
307
|
+
constructor(_dictionary: InphotoDictionaryService, _connectorAdapterService: InPhotoConnectorAdapterService, _renderSettingsService: RenderSettingsService);
|
|
271
308
|
createSettingsFromObject(obj: any): void;
|
|
272
309
|
initialize(options?: Settings): Promise<void>;
|
|
273
310
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoSettingsService, never>;
|
|
@@ -309,7 +346,7 @@ declare class InPhotoConnectorService {
|
|
|
309
346
|
uploadRoomImage(image: string, skipInpainting?: boolean): Promise<SceneBuildObject>;
|
|
310
347
|
processDecorateImage(canvasImage: string, style: EnhanceStyle): Promise<DecorateResponse>;
|
|
311
348
|
processEmptyRoom(canvasImage: string): Promise<CreatedImageResponse>;
|
|
312
|
-
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
349
|
+
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle, aspect_ratio: AspectRatio, image_size: RenderSize): Promise<CreatedImageResponse>;
|
|
313
350
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
314
351
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
315
352
|
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
@@ -317,6 +354,7 @@ declare class InPhotoConnectorService {
|
|
|
317
354
|
getDecorationStyles(showLoader?: boolean): Promise<string[]>;
|
|
318
355
|
getRoomTypes(showLoader?: boolean): Promise<string[]>;
|
|
319
356
|
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<SegmentationObject[]>;
|
|
357
|
+
inPhotoGenerate(image: string, prompt: string): Promise<CreatedImageResponse>;
|
|
320
358
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoConnectorService, never>;
|
|
321
359
|
static ɵprov: i0.ɵɵInjectableDeclaration<InPhotoConnectorService>;
|
|
322
360
|
}
|
|
@@ -324,6 +362,7 @@ declare class InPhotoConnectorService {
|
|
|
324
362
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
325
363
|
declare enum Icon {
|
|
326
364
|
AngleDownSolidFull = "angle_down_solid_full",
|
|
365
|
+
AngleRightSharpSolid = "angle_right_sharp_solid",
|
|
327
366
|
AngleUpSolidFull = "angle_up_solid_full",
|
|
328
367
|
ArrowDownSolidFull = "arrow_down_solid_full",
|
|
329
368
|
ArrowLeftSolidFull = "arrow_left_solid_full",
|
|
@@ -333,6 +372,7 @@ declare enum Icon {
|
|
|
333
372
|
ArrowUpRightAndArrowDownLeftFromCenterSolidFull = "arrow_up_right_and_arrow_down_left_from_center_solid_full",
|
|
334
373
|
ArrowUpToBracketDuotoneRegular = "arrow_up_to_bracket_duotone_regular",
|
|
335
374
|
BrushSolidFull = "brush_solid_full",
|
|
375
|
+
CameraSolidRegular = "camera_solid_regular",
|
|
336
376
|
CaretDownSolidFull = "caret_down_solid_full",
|
|
337
377
|
CaretUpSolidFull = "caret_up_solid_full",
|
|
338
378
|
CheckSolidFull = "check_solid_full",
|
|
@@ -345,6 +385,7 @@ declare enum Icon {
|
|
|
345
385
|
DrawSquareRegular = "draw_square_regular",
|
|
346
386
|
EraserRegular = "eraser_regular",
|
|
347
387
|
EraserSolidFull = "eraser_solid_full",
|
|
388
|
+
ExpandRegularFull = "expand_regular_full",
|
|
348
389
|
FileVectorLight = "file_vector_light",
|
|
349
390
|
FillSolidFull = "fill_solid_full",
|
|
350
391
|
GripDotsVerticalSolid = "grip_dots_vertical_solid",
|
|
@@ -395,187 +436,11 @@ declare class InphotoIconCacheService {
|
|
|
395
436
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoIconCacheService>;
|
|
396
437
|
}
|
|
397
438
|
|
|
398
|
-
declare class InphotoItemService implements OnDestroy {
|
|
399
|
-
set selectedObject(value: ArticleConfiguration | undefined);
|
|
400
|
-
get selectedObject(): ArticleConfiguration | undefined;
|
|
401
|
-
set floorPlane(plane: Mesh);
|
|
402
|
-
get floorPlane(): Mesh;
|
|
403
|
-
set wallPlanes(planes: Mesh[]);
|
|
404
|
-
get wallPlanes(): Mesh[];
|
|
405
|
-
set floorItems(items: ArticleConfiguration[]);
|
|
406
|
-
get floorItems(): ArticleConfiguration[];
|
|
407
|
-
set floorBounds(value: Box3);
|
|
408
|
-
get floorBounds(): Box3;
|
|
409
|
-
private _selectedObject;
|
|
410
|
-
private _floorItems;
|
|
411
|
-
private _floorPlane;
|
|
412
|
-
private _wallPlanes;
|
|
413
|
-
private _floorBounds;
|
|
414
|
-
ngOnDestroy(): void;
|
|
415
|
-
addFloorItem(item: ArticleConfiguration): void;
|
|
416
|
-
removeFloorItem(item: ArticleConfiguration): void;
|
|
417
|
-
getFloorCenter(): Vector3;
|
|
418
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoItemService, never>;
|
|
419
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoItemService>;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
declare class InphotoSceneService implements OnDestroy {
|
|
423
|
-
private _objectsService;
|
|
424
|
-
set needsRender(render: boolean);
|
|
425
|
-
get needsRender(): boolean;
|
|
426
|
-
set sceneHasImage(value: boolean);
|
|
427
|
-
get sceneHasImage(): boolean;
|
|
428
|
-
container: ElementRef<HTMLDivElement>;
|
|
429
|
-
scene: Scene;
|
|
430
|
-
camera: PerspectiveCamera;
|
|
431
|
-
renderer: WebGLRenderer;
|
|
432
|
-
imageWidth: number;
|
|
433
|
-
imageHeight: number;
|
|
434
|
-
private _sceneHasImage;
|
|
435
|
-
private _placementMarker;
|
|
436
|
-
private _needsRender;
|
|
437
|
-
constructor(_objectsService: InphotoItemService);
|
|
438
|
-
ngOnDestroy(): void;
|
|
439
|
-
init(element: ElementRef<HTMLDivElement>): void;
|
|
440
|
-
resize(width: number, height: number): void;
|
|
441
|
-
getSceneAsImage(): string;
|
|
442
|
-
addObjectToScene(result: ArticleConfiguration): void;
|
|
443
|
-
placeObject(object: Object3D): void;
|
|
444
|
-
getObjectByUUID(uuid: string): Object3D | undefined;
|
|
445
|
-
removeObject(object: Object3D): void;
|
|
446
|
-
addFloorToScene(floorMesh: Mesh): void;
|
|
447
|
-
addWallsToScene(wallMeshes: Mesh[]): void;
|
|
448
|
-
setPlacementMarker(marker: Object3D | null): void;
|
|
449
|
-
private _prepLights;
|
|
450
|
-
private _animate;
|
|
451
|
-
private _render;
|
|
452
|
-
private _animateMarker;
|
|
453
|
-
private _onResize;
|
|
454
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoSceneService, never>;
|
|
455
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSceneService>;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
declare class InphotoFontService {
|
|
459
|
-
hudFont: Font;
|
|
460
|
-
monospaceFont: Font;
|
|
461
|
-
constructor();
|
|
462
|
-
private _loadFont;
|
|
463
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoFontService, never>;
|
|
464
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoFontService>;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
declare class InphotoHudService implements OnDestroy {
|
|
468
|
-
private _appEventService;
|
|
469
|
-
private _sceneService;
|
|
470
|
-
private _fontService;
|
|
471
|
-
private _selectedItem;
|
|
472
|
-
private _rotationHelper;
|
|
473
|
-
private _subs;
|
|
474
|
-
private _mouseover;
|
|
475
|
-
private _rotating;
|
|
476
|
-
constructor(_appEventService: InphotoEventService, _sceneService: InphotoSceneService, _fontService: InphotoFontService);
|
|
477
|
-
ngOnDestroy(): void;
|
|
478
|
-
update(force?: boolean): void;
|
|
479
|
-
getRotationSnapperArea(): Object3D | null;
|
|
480
|
-
getSelectedCenter(): Vector3 | null;
|
|
481
|
-
setMouseOver(on: boolean): void;
|
|
482
|
-
setRotating(on: boolean): void;
|
|
483
|
-
private _applySceneUpdates;
|
|
484
|
-
private _unselectItem;
|
|
485
|
-
private _selectItem;
|
|
486
|
-
private _resetSelectedItem;
|
|
487
|
-
private _createRotationHelper;
|
|
488
|
-
private _setColor;
|
|
489
|
-
private _addToScene;
|
|
490
|
-
private _removeRotationHelper;
|
|
491
|
-
private _removeFromScene;
|
|
492
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoHudService, never>;
|
|
493
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoHudService>;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
declare enum InteractionMode {
|
|
497
|
-
Move = "move",
|
|
498
|
-
Rotate = "rotate"
|
|
499
|
-
}
|
|
500
|
-
declare class InphotoInteractionService implements OnDestroy {
|
|
501
|
-
objectsService: InphotoItemService;
|
|
502
|
-
private _sceneService;
|
|
503
|
-
private _appEventService;
|
|
504
|
-
private _hudService;
|
|
505
|
-
mouse: Vector2;
|
|
506
|
-
raycaster: Raycaster;
|
|
507
|
-
lastMousePosition: Vector2;
|
|
508
|
-
isDragging: boolean;
|
|
509
|
-
dragOffset: Vector3;
|
|
510
|
-
mode: InteractionMode;
|
|
511
|
-
rotationSensitivity: number;
|
|
512
|
-
isPlacing: boolean;
|
|
513
|
-
placementLocked: boolean;
|
|
514
|
-
private _camera;
|
|
515
|
-
private _scene;
|
|
516
|
-
private _renderer;
|
|
517
|
-
private _placementMarker;
|
|
518
|
-
private _placementPosition;
|
|
519
|
-
private _placementNormal;
|
|
520
|
-
constructor(objectsService: InphotoItemService, _sceneService: InphotoSceneService, _appEventService: InphotoEventService, _hudService: InphotoHudService);
|
|
521
|
-
ngOnDestroy(): void;
|
|
522
|
-
init(scene: Scene, camera: PerspectiveCamera, renderer: WebGLRenderer): void;
|
|
523
|
-
setMode(mode: InteractionMode): void;
|
|
524
|
-
onMouseUp(event: MouseEvent): void;
|
|
525
|
-
onMouseDown(event: MouseEvent): void;
|
|
526
|
-
onMouseMove(event: MouseEvent): void;
|
|
527
|
-
startPlacement(): void;
|
|
528
|
-
endPlacement(): {
|
|
529
|
-
position: Vector3;
|
|
530
|
-
normal: Vector3;
|
|
531
|
-
};
|
|
532
|
-
private _clearPlacementMarker;
|
|
533
|
-
private _floorHitFromEvent;
|
|
534
|
-
private _moveMarkerTo;
|
|
535
|
-
private _rotateByDrag;
|
|
536
|
-
private _applyYRotation;
|
|
537
|
-
updateMousePosition(event: MouseEvent): void;
|
|
538
|
-
handleFurnitureHit(furniture: ArticleConfiguration): void;
|
|
539
|
-
handlePlacement(object: Object3D, targetPosition?: Vector3, targetNormal?: Vector3): Object3D;
|
|
540
|
-
makeItStick(yRotation: number): void;
|
|
541
|
-
private _bindObjectToFloorBounds;
|
|
542
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoInteractionService, never>;
|
|
543
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoInteractionService>;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
declare class ModelConfigurationService implements OnDestroy {
|
|
547
|
-
private _connectorService;
|
|
548
|
-
private _sceneService;
|
|
549
|
-
private _settingsService;
|
|
550
|
-
private _configuringService;
|
|
551
|
-
private _objectsService;
|
|
552
|
-
private _interactionService;
|
|
553
|
-
private _loaderService;
|
|
554
|
-
private _configuratorEventService;
|
|
555
|
-
set loadConfigurator(value: boolean);
|
|
556
|
-
get loadConfigurator(): boolean;
|
|
557
|
-
set currentArticleConfiguration(value: ArticleConfiguration);
|
|
558
|
-
get currentArticleConfiguration(): ArticleConfiguration;
|
|
559
|
-
configuratorSettings: any;
|
|
560
|
-
configuratorSku: string;
|
|
561
|
-
configuratorInstanceId: string;
|
|
562
|
-
firstBuild: boolean;
|
|
563
|
-
private _loadConfigurator;
|
|
564
|
-
private _currentArticleConfiguration;
|
|
565
|
-
private _subs;
|
|
566
|
-
constructor(_connectorService: InPhotoConnectorService, _sceneService: InphotoSceneService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _objectsService: InphotoItemService, _interactionService: InphotoInteractionService, _loaderService: LoaderService, _configuratorEventService: ConfiguratorEventService);
|
|
567
|
-
ngOnDestroy(): void;
|
|
568
|
-
rotateObject(rotationDegrees: number): void;
|
|
569
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ModelConfigurationService, never>;
|
|
570
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ModelConfigurationService>;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
439
|
declare class InphotoCatalogComponent implements OnInit, OnDestroy {
|
|
574
440
|
iconService: InphotoIconCacheService;
|
|
575
441
|
settingService: InphotoSettingsService;
|
|
576
442
|
appEventService: InphotoEventService;
|
|
577
443
|
connectorService: InPhotoConnectorService;
|
|
578
|
-
modelConfigurationService: ModelConfigurationService;
|
|
579
444
|
private _catalogService;
|
|
580
445
|
private _changeDetection;
|
|
581
446
|
readonly icons: typeof Icon;
|
|
@@ -595,16 +460,18 @@ declare class InphotoCatalogComponent implements OnInit, OnDestroy {
|
|
|
595
460
|
catalogInfo: ExternalCatalogStartupInfo;
|
|
596
461
|
externalCatalogName: string;
|
|
597
462
|
private _source;
|
|
598
|
-
|
|
463
|
+
private _is2D;
|
|
464
|
+
constructor(iconService: InphotoIconCacheService, settingService: InphotoSettingsService, appEventService: InphotoEventService, connectorService: InPhotoConnectorService, _catalogService: CatalogService, _changeDetection: ChangeDetectorRef);
|
|
599
465
|
ngOnInit(): Promise<void>;
|
|
600
466
|
ngOnDestroy(): void;
|
|
601
467
|
handleToggleShowOwnCollection(): void;
|
|
602
468
|
handleArticleClick(event: any): void;
|
|
603
469
|
handleExternalArticleClick(data: ExternalSourceArticleClickInterface, catalogInfo?: ExternalCatalogStartupInfo): void;
|
|
604
470
|
resetOpenCatalogs(): void;
|
|
605
|
-
handleShowCatalog(): void;
|
|
471
|
+
handleShowCatalog(is2D?: boolean): void;
|
|
606
472
|
handleCloseDialog(): void;
|
|
607
473
|
handleExternalSourceClick(source?: ExternalSourceViewmodel): Promise<void>;
|
|
474
|
+
handleCatalogsLoaded(loaded: boolean): void;
|
|
608
475
|
private _buildExternalCatalogRequest;
|
|
609
476
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoCatalogComponent, never>;
|
|
610
477
|
static ɵcmp: i0.ɵɵComponentDeclaration<InphotoCatalogComponent, "co-inphoto-catalog", never, {}, {}, never, never, false, never>;
|
|
@@ -651,6 +518,14 @@ declare class ImageData {
|
|
|
651
518
|
maskData: MaskStroke[];
|
|
652
519
|
}
|
|
653
520
|
|
|
521
|
+
declare class StyleEditorSelection {
|
|
522
|
+
roomType: string;
|
|
523
|
+
mode: string;
|
|
524
|
+
decorationStyle: string;
|
|
525
|
+
aspectRatio: AspectRatio;
|
|
526
|
+
renderSize: RenderSize;
|
|
527
|
+
}
|
|
528
|
+
|
|
654
529
|
declare class InphotoDataService {
|
|
655
530
|
private _appEventService;
|
|
656
531
|
/**
|
|
@@ -666,6 +541,7 @@ declare class InphotoDataService {
|
|
|
666
541
|
get progressingData(): ImageData[];
|
|
667
542
|
set activeCanvasColor(value: ColorPalette);
|
|
668
543
|
get activeCanvasColor(): ColorPalette;
|
|
544
|
+
styleEditorSelection: StyleEditorSelection;
|
|
669
545
|
private _canvasHasMask;
|
|
670
546
|
private _generatedImages;
|
|
671
547
|
private _processingData;
|
|
@@ -695,6 +571,8 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
695
571
|
private _appEventService;
|
|
696
572
|
readonly icons: typeof Icon;
|
|
697
573
|
showClass(): boolean;
|
|
574
|
+
fitToContainerClass(): boolean;
|
|
575
|
+
onResize(): void;
|
|
698
576
|
canvas: ElementRef<HTMLCanvasElement>;
|
|
699
577
|
canvasContainer: ElementRef<HTMLDivElement>;
|
|
700
578
|
set image(value: string);
|
|
@@ -706,6 +584,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
706
584
|
get dragMode(): boolean;
|
|
707
585
|
set brushSize(value: number);
|
|
708
586
|
get brushSize(): number;
|
|
587
|
+
drawingDisabled: boolean;
|
|
709
588
|
set segmentationObjects(value: SegmentationObject[]);
|
|
710
589
|
get segmentationObjects(): SegmentationObject[];
|
|
711
590
|
onSegmentationPointClick: EventEmitter<SegmentationPoint>;
|
|
@@ -723,6 +602,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
723
602
|
hoveredObjectLabel: string | null;
|
|
724
603
|
hoveredLabelX: number;
|
|
725
604
|
hoveredLabelY: number;
|
|
605
|
+
fitToContainer: boolean;
|
|
726
606
|
private _backgroundImage;
|
|
727
607
|
private _maskLayers;
|
|
728
608
|
private _currentStroke;
|
|
@@ -753,6 +633,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
753
633
|
changeCanvasCursor(icon: Icon): void;
|
|
754
634
|
startDrawing(event: MouseEvent): void;
|
|
755
635
|
draw(event: MouseEvent): void;
|
|
636
|
+
handleMouseLeave(): void;
|
|
756
637
|
stopDrawing(): void;
|
|
757
638
|
onWheel(event: WheelEvent): void;
|
|
758
639
|
zoomIn(): void;
|
|
@@ -779,6 +660,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
779
660
|
private _updateHoveredObject;
|
|
780
661
|
private _findSegmentationObjectAtPoint;
|
|
781
662
|
private _isPointInPolygon;
|
|
663
|
+
private _clearHoveredObject;
|
|
782
664
|
private _drawHoveredSegmentationObject;
|
|
783
665
|
private _applyHoveredObjectAsMask;
|
|
784
666
|
private _fillContours;
|
|
@@ -787,12 +669,12 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
787
669
|
private _setPlainCursor;
|
|
788
670
|
private _colorToString;
|
|
789
671
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditCanvasComponent, never>;
|
|
790
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditCanvasComponent, "co-edit-canvas", never, { "image": { "alias": "image"; "required": false; }; "segmentationInPainting": { "alias": "segmentationInPainting"; "required": false; }; "inpaintMode": { "alias": "inpaintMode"; "required": false; }; "eraserMode": { "alias": "eraserMode"; "required": false; }; "dragMode": { "alias": "dragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "segmentationObjects": { "alias": "segmentationObjects"; "required": false; }; }, { "onSegmentationPointClick": "onSegmentationPointClick"; "imageState": "imageState"; }, never, never, false, never>;
|
|
672
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditCanvasComponent, "co-edit-canvas", never, { "image": { "alias": "image"; "required": false; }; "segmentationInPainting": { "alias": "segmentationInPainting"; "required": false; }; "inpaintMode": { "alias": "inpaintMode"; "required": false; }; "eraserMode": { "alias": "eraserMode"; "required": false; }; "dragMode": { "alias": "dragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "drawingDisabled": { "alias": "drawingDisabled"; "required": false; }; "segmentationObjects": { "alias": "segmentationObjects"; "required": false; }; }, { "onSegmentationPointClick": "onSegmentationPointClick"; "imageState": "imageState"; }, never, never, false, never>;
|
|
791
673
|
}
|
|
792
674
|
|
|
793
675
|
declare class EditCanvasModule {
|
|
794
676
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditCanvasModule, never>;
|
|
795
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EditCanvasModule, [typeof EditCanvasComponent], [typeof i2
|
|
677
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditCanvasModule, [typeof EditCanvasComponent], [typeof i2.IconModule], [typeof EditCanvasComponent]>;
|
|
796
678
|
static ɵinj: i0.ɵɵInjectorDeclaration<EditCanvasModule>;
|
|
797
679
|
}
|
|
798
680
|
|
|
@@ -818,18 +700,15 @@ interface MaskImageColorInterface {
|
|
|
818
700
|
color: ColorPalette;
|
|
819
701
|
}
|
|
820
702
|
|
|
821
|
-
declare class PromptWithImages extends Prompt {
|
|
822
|
-
imageData: ImageData[];
|
|
823
|
-
}
|
|
824
|
-
|
|
825
703
|
declare class ImageEnhancer {
|
|
826
704
|
iconService: InphotoIconCacheService;
|
|
827
705
|
dataService: InphotoDataService;
|
|
828
706
|
private _appEventService;
|
|
829
707
|
readonly icons: typeof Icon;
|
|
830
708
|
showClass(): boolean;
|
|
831
|
-
|
|
832
|
-
|
|
709
|
+
canvasImage: string;
|
|
710
|
+
generateStarted: EventEmitter<void>;
|
|
711
|
+
imageGenerated: EventEmitter<string>;
|
|
833
712
|
backButtonClicked: EventEmitter<void>;
|
|
834
713
|
changeMarkerColor: EventEmitter<MaskImageColorInterface>;
|
|
835
714
|
prompt: string;
|
|
@@ -838,14 +717,14 @@ declare class ImageEnhancer {
|
|
|
838
717
|
collapsed: boolean;
|
|
839
718
|
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _appEventService: InphotoEventService);
|
|
840
719
|
setTab(index: number): void;
|
|
841
|
-
|
|
842
|
-
|
|
720
|
+
handleGenerateStarted(): void;
|
|
721
|
+
handleImageGenerated(image: string): void;
|
|
843
722
|
handleBackClicked(): void;
|
|
844
723
|
handleChangeMarkerColor(data: MaskImageColorInterface): void;
|
|
845
724
|
closeDialog(): void;
|
|
846
725
|
openDialog(): void;
|
|
847
726
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancer, never>;
|
|
848
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancer, "co-image-enhancer", never, {}, { "
|
|
727
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancer, "co-image-enhancer", never, { "canvasImage": { "alias": "canvasImage"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
|
|
849
728
|
}
|
|
850
729
|
|
|
851
730
|
declare enum FileTypes {
|
|
@@ -898,39 +777,57 @@ declare class DecorationStyle {
|
|
|
898
777
|
constructor(label: string, description: string);
|
|
899
778
|
}
|
|
900
779
|
|
|
780
|
+
declare class AiImageStyleOption {
|
|
781
|
+
label: string;
|
|
782
|
+
value: string;
|
|
783
|
+
image: string;
|
|
784
|
+
constructor(label: string, value: string, image: string);
|
|
785
|
+
}
|
|
786
|
+
|
|
901
787
|
declare class ImageEnhancerStyleComponent implements OnInit {
|
|
902
788
|
connectorService: InPhotoConnectorService;
|
|
903
789
|
iconCacheService: InphotoIconCacheService;
|
|
904
790
|
private _changeDetection;
|
|
791
|
+
private _eventService;
|
|
792
|
+
private _dataService;
|
|
905
793
|
readonly icons: typeof Icon;
|
|
906
794
|
get showClass(): boolean;
|
|
907
|
-
|
|
795
|
+
canvasImage: string;
|
|
796
|
+
showResetButton: boolean;
|
|
797
|
+
generateStarted: EventEmitter<void>;
|
|
798
|
+
imageGenerated: EventEmitter<string>;
|
|
908
799
|
backButtonClicked: EventEmitter<void>;
|
|
909
800
|
customPrompt: string;
|
|
910
801
|
customPromptMode: PromptStyle;
|
|
911
802
|
showInputError: boolean;
|
|
912
803
|
loaded: boolean;
|
|
913
804
|
styleEnhancePrompt: EnhanceStyle;
|
|
914
|
-
selectedRoomStyle:
|
|
915
|
-
roomStyleCollection:
|
|
805
|
+
selectedRoomStyle: AiImageStyleOption;
|
|
806
|
+
roomStyleCollection: AiImageStyleOption[];
|
|
916
807
|
selectedMode: DecorationStyle;
|
|
917
808
|
modeCollection: DecorationStyle[];
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
809
|
+
aspectRatioModel: AspectRatio;
|
|
810
|
+
renderSizeModel: RenderSize;
|
|
811
|
+
decorationStyleCollection: AiImageStyleOption[];
|
|
812
|
+
selectedDecorationStyle: AiImageStyleOption;
|
|
813
|
+
constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _dataService: InphotoDataService);
|
|
921
814
|
ngOnInit(): Promise<void>;
|
|
922
|
-
|
|
815
|
+
handleRoomTypeChange(value: AiImageStyleOption): void;
|
|
923
816
|
handleChangeMode(event: DecorationStyle): void;
|
|
924
|
-
|
|
817
|
+
handleSelectionChange(): void;
|
|
925
818
|
handleGenerateClicked(): void;
|
|
819
|
+
handleStyleSelection(event: EnhanceStyle): void;
|
|
926
820
|
handleBackClicked(): void;
|
|
821
|
+
handleDecorationStyleChange(value: AiImageStyleOption): void;
|
|
822
|
+
private _restoreSelection;
|
|
927
823
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerStyleComponent, never>;
|
|
928
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerStyleComponent, "co-image-enhancer-style", never, {}, { "
|
|
824
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerStyleComponent, "co-image-enhancer-style", never, { "canvasImage": { "alias": "canvasImage"; "required": false; }; "showResetButton": { "alias": "showResetButton"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; }, never, never, false, never>;
|
|
929
825
|
}
|
|
930
826
|
|
|
931
827
|
declare class AiPromptComponent {
|
|
932
828
|
private _changeDetection;
|
|
933
829
|
showClass(): boolean;
|
|
830
|
+
showModeToggle: boolean;
|
|
934
831
|
customPrompt: string;
|
|
935
832
|
set promptMode(value: PromptStyle);
|
|
936
833
|
get promptMode(): PromptStyle;
|
|
@@ -938,51 +835,98 @@ declare class AiPromptComponent {
|
|
|
938
835
|
get showEmptyInputError(): boolean;
|
|
939
836
|
promptModeChange: EventEmitter<PromptStyle>;
|
|
940
837
|
customPromptChange: EventEmitter<string>;
|
|
838
|
+
showEmptyInputErrorChange: EventEmitter<boolean>;
|
|
941
839
|
toggleModel: boolean;
|
|
942
840
|
private _promptMode;
|
|
943
841
|
private _emptyInputError;
|
|
944
842
|
constructor(_changeDetection: ChangeDetectorRef);
|
|
945
843
|
handleUpdateModel(): void;
|
|
946
844
|
handlePromptChange(value: string): void;
|
|
845
|
+
private _clearEmptyInputError;
|
|
947
846
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiPromptComponent, never>;
|
|
948
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AiPromptComponent, "co-ai-prompt", never, { "customPrompt": { "alias": "customPrompt"; "required": false; }; "promptMode": { "alias": "promptMode"; "required": false; }; "showEmptyInputError": { "alias": "showEmptyInputError"; "required": false; }; }, { "promptModeChange": "promptModeChange"; "customPromptChange": "customPromptChange"; }, never, never, false, never>;
|
|
847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AiPromptComponent, "co-ai-prompt", never, { "showModeToggle": { "alias": "showModeToggle"; "required": false; }; "customPrompt": { "alias": "customPrompt"; "required": false; }; "promptMode": { "alias": "promptMode"; "required": false; }; "showEmptyInputError": { "alias": "showEmptyInputError"; "required": false; }; }, { "promptModeChange": "promptModeChange"; "customPromptChange": "customPromptChange"; "showEmptyInputErrorChange": "showEmptyInputErrorChange"; }, never, never, false, never>;
|
|
949
848
|
}
|
|
950
849
|
|
|
951
850
|
declare class AiPromptModule {
|
|
952
851
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiPromptModule, never>;
|
|
953
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AiPromptModule, [typeof AiPromptComponent], [typeof i2.InputTextareaModule, typeof PipeModule, typeof
|
|
852
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AiPromptModule, [typeof AiPromptComponent], [typeof i2.InputTextareaModule, typeof PipeModule, typeof i4.FormsModule], [typeof AiPromptComponent]>;
|
|
954
853
|
static ɵinj: i0.ɵɵInjectorDeclaration<AiPromptModule>;
|
|
955
854
|
}
|
|
956
855
|
|
|
856
|
+
declare class LabelValue {
|
|
857
|
+
label: string;
|
|
858
|
+
value: string;
|
|
859
|
+
constructor(label: string, value: string);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
declare class ImageOutputSettingsComponent {
|
|
863
|
+
iconCacheService: InphotoIconCacheService;
|
|
864
|
+
readonly icons: typeof Icon;
|
|
865
|
+
get showClass(): boolean;
|
|
866
|
+
selectedRatio: LabelValue;
|
|
867
|
+
selectedSize: LabelValue;
|
|
868
|
+
set aspectRatio(value: AspectRatio);
|
|
869
|
+
get aspectRatio(): AspectRatio;
|
|
870
|
+
set renderSize(value: RenderSize);
|
|
871
|
+
get renderSize(): RenderSize;
|
|
872
|
+
aspectRatioChange: EventEmitter<AspectRatio>;
|
|
873
|
+
renderSizeChange: EventEmitter<RenderSize>;
|
|
874
|
+
listOfRatios: LabelValue[];
|
|
875
|
+
listOfSizes: LabelValue[];
|
|
876
|
+
constructor(iconCacheService: InphotoIconCacheService);
|
|
877
|
+
handleRatioChange(event: LabelValue): void;
|
|
878
|
+
handleSizeChange(event: LabelValue): void;
|
|
879
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOutputSettingsComponent, never>;
|
|
880
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageOutputSettingsComponent, "co-image-output-settings", never, { "aspectRatio": { "alias": "aspectRatio"; "required": false; }; "renderSize": { "alias": "renderSize"; "required": false; }; }, { "aspectRatioChange": "aspectRatioChange"; "renderSizeChange": "renderSizeChange"; }, never, never, false, never>;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
declare class ImageOutputSettingsModule {
|
|
884
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOutputSettingsModule, never>;
|
|
885
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageOutputSettingsModule, [typeof ImageOutputSettingsComponent], [typeof i2.IconModule, typeof i2.ListOfValuesModule, typeof PipeModule], [typeof ImageOutputSettingsComponent]>;
|
|
886
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ImageOutputSettingsModule>;
|
|
887
|
+
}
|
|
888
|
+
|
|
957
889
|
declare class ImageEnhancerStyleModule {
|
|
958
890
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerStyleModule, never>;
|
|
959
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageEnhancerStyleModule, [typeof ImageEnhancerStyleComponent], [typeof i2.ListOfValuesModule, typeof PipeModule, typeof i2.InputCheckboxModule, typeof i2.InputTextareaModule, typeof i2.IconModule, typeof AiPromptModule, typeof i2.ButtonModule], [typeof ImageEnhancerStyleComponent]>;
|
|
891
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageEnhancerStyleModule, [typeof ImageEnhancerStyleComponent], [typeof i2.ListOfValuesModule, typeof PipeModule, typeof i2.InputCheckboxModule, typeof i2.InputTextareaModule, typeof i2.IconModule, typeof AiPromptModule, typeof i2.ButtonModule, typeof ImageOutputSettingsModule, typeof i2.CustomListOfValuesModule], [typeof ImageEnhancerStyleComponent]>;
|
|
960
892
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerStyleModule>;
|
|
961
893
|
}
|
|
962
894
|
|
|
895
|
+
declare class PromptWithImages extends Prompt {
|
|
896
|
+
imageData: ImageData[];
|
|
897
|
+
}
|
|
898
|
+
|
|
963
899
|
declare class ImageEnhancerUploadComponent {
|
|
964
900
|
dataService: InphotoDataService;
|
|
965
901
|
iconCacheService: InphotoIconCacheService;
|
|
902
|
+
private _connectorService;
|
|
966
903
|
readonly FileTypes: typeof FileTypes;
|
|
967
904
|
readonly icons: typeof Icon;
|
|
968
905
|
multiUpload: boolean;
|
|
969
|
-
|
|
906
|
+
canvasImage: string;
|
|
907
|
+
generateStarted: EventEmitter<void>;
|
|
908
|
+
imageGenerated: EventEmitter<string>;
|
|
970
909
|
backButtonClicked: EventEmitter<void>;
|
|
971
910
|
changeMarkerColor: EventEmitter<MaskImageColorInterface>;
|
|
972
911
|
showClass(): boolean;
|
|
973
|
-
|
|
912
|
+
get uploadedImages(): ImageData[];
|
|
913
|
+
get disableGenerateButton(): boolean;
|
|
974
914
|
customPrompt: string;
|
|
975
915
|
customPromptMode: PromptStyle;
|
|
976
916
|
showInputError: boolean;
|
|
977
|
-
|
|
917
|
+
aspectRatioModel: AspectRatio;
|
|
918
|
+
renderSizeModel: RenderSize;
|
|
919
|
+
constructor(dataService: InphotoDataService, iconCacheService: InphotoIconCacheService, _connectorService: InPhotoConnectorService);
|
|
978
920
|
handleImageUpload(event: File[]): void;
|
|
979
921
|
handleGenerateClicked(): void;
|
|
922
|
+
handleCreatePromptWithImages(event: PromptWithImages): void;
|
|
980
923
|
handleBackClicked(): void;
|
|
981
924
|
handleDeleteImage(image: ImageData): void;
|
|
982
925
|
handleDeleteMask(data: ImageData): void;
|
|
926
|
+
getColorsUsedByOtherImages(image: ImageData): ColorPalette[];
|
|
983
927
|
handleChangeMarkerColor(color: ColorPalette, data: ImageData): void;
|
|
984
928
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerUploadComponent, never>;
|
|
985
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerUploadComponent, "co-image-enhancer-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; }, { "
|
|
929
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerUploadComponent, "co-image-enhancer-upload", never, { "multiUpload": { "alias": "multiUpload"; "required": false; }; "canvasImage": { "alias": "canvasImage"; "required": false; }; }, { "generateStarted": "generateStarted"; "imageGenerated": "imageGenerated"; "backButtonClicked": "backButtonClicked"; "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
|
|
986
930
|
}
|
|
987
931
|
|
|
988
932
|
declare class ImageTileComponent {
|
|
@@ -996,6 +940,7 @@ declare class ImageTileComponent {
|
|
|
996
940
|
get activeItem(): boolean;
|
|
997
941
|
set data(value: ImageData);
|
|
998
942
|
get data(): ImageData;
|
|
943
|
+
usedColors: ColorPalette[];
|
|
999
944
|
changeMarkerColor: EventEmitter<ColorPalette>;
|
|
1000
945
|
deleteImage: EventEmitter<ImageData>;
|
|
1001
946
|
deleteMask: EventEmitter<ImageData>;
|
|
@@ -1005,6 +950,7 @@ declare class ImageTileComponent {
|
|
|
1005
950
|
private _selectedColor;
|
|
1006
951
|
private _data;
|
|
1007
952
|
constructor(iconCacheService: InphotoIconCacheService, _dataService: InphotoDataService);
|
|
953
|
+
isUsedColor(color: ColorPalette): boolean;
|
|
1008
954
|
setMarkerColor(color: ColorPalette): void;
|
|
1009
955
|
handleContinueCurrentMask(): void;
|
|
1010
956
|
showColorPalette(): void;
|
|
@@ -1012,7 +958,7 @@ declare class ImageTileComponent {
|
|
|
1012
958
|
removeMask(): void;
|
|
1013
959
|
private _handleSetData;
|
|
1014
960
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageTileComponent, never>;
|
|
1015
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageTileComponent, "co-image-
|
|
961
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageTileComponent, "co-image-tile", never, { "index": { "alias": "index"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "data": { "alias": "data"; "required": false; }; "usedColors": { "alias": "usedColors"; "required": false; }; }, { "changeMarkerColor": "changeMarkerColor"; "deleteImage": "deleteImage"; "deleteMask": "deleteMask"; }, never, never, false, never>;
|
|
1016
962
|
}
|
|
1017
963
|
|
|
1018
964
|
declare class ColorPaletteOptionComponent {
|
|
@@ -1023,12 +969,13 @@ declare class ColorPaletteOptionComponent {
|
|
|
1023
969
|
colorOption: ColorPalette;
|
|
1024
970
|
set selected(value: boolean);
|
|
1025
971
|
get selected(): boolean;
|
|
972
|
+
disabled: boolean;
|
|
1026
973
|
changeMarkerColor: EventEmitter<ColorPalette>;
|
|
1027
974
|
private _selected;
|
|
1028
975
|
constructor(iconCacheService: InphotoIconCacheService);
|
|
1029
976
|
setMarkerColor(color: ColorPalette): void;
|
|
1030
977
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteOptionComponent, never>;
|
|
1031
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteOptionComponent, "co-color-palette-option", never, { "colorOption": { "alias": "colorOption"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
|
|
978
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPaletteOptionComponent, "co-color-palette-option", never, { "colorOption": { "alias": "colorOption"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "changeMarkerColor": "changeMarkerColor"; }, never, never, false, never>;
|
|
1032
979
|
}
|
|
1033
980
|
|
|
1034
981
|
declare class ImageTileModule {
|
|
@@ -1039,7 +986,7 @@ declare class ImageTileModule {
|
|
|
1039
986
|
|
|
1040
987
|
declare class ImageEnhancerUploadModule {
|
|
1041
988
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerUploadModule, never>;
|
|
1042
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageEnhancerUploadModule, [typeof ImageEnhancerUploadComponent], [typeof ImageUploadModule, typeof i2.InputCheckboxModule, typeof i2.InputTextareaModule, typeof PipeModule, typeof ImageTileModule, typeof i2.IconModule, typeof AiPromptModule, typeof i2.ButtonModule], [typeof ImageEnhancerUploadComponent]>;
|
|
989
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageEnhancerUploadModule, [typeof ImageEnhancerUploadComponent], [typeof ImageUploadModule, typeof i2.InputCheckboxModule, typeof i2.InputTextareaModule, typeof PipeModule, typeof ImageTileModule, typeof i2.IconModule, typeof AiPromptModule, typeof i2.ButtonModule, typeof ImageOutputSettingsModule], [typeof ImageEnhancerUploadComponent]>;
|
|
1043
990
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerUploadModule>;
|
|
1044
991
|
}
|
|
1045
992
|
|
|
@@ -1068,6 +1015,7 @@ declare class ImageHistoryComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
1068
1015
|
canScrollRight: boolean;
|
|
1069
1016
|
private _subs;
|
|
1070
1017
|
private _tilesObserver;
|
|
1018
|
+
private _observedTilesRow;
|
|
1071
1019
|
constructor(dataService: InphotoDataService, iconService: InphotoIconCacheService, _eventService: InphotoEventService);
|
|
1072
1020
|
ngOnInit(): void;
|
|
1073
1021
|
ngAfterViewInit(): void;
|
|
@@ -1151,19 +1099,28 @@ declare class ImageHistoryModule {
|
|
|
1151
1099
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryModule>;
|
|
1152
1100
|
}
|
|
1153
1101
|
|
|
1102
|
+
declare enum RedesignMode {
|
|
1103
|
+
style = 0,
|
|
1104
|
+
referenceImage = 1
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1154
1107
|
declare class PhotoEditorComponent implements OnDestroy {
|
|
1155
1108
|
iconService: InphotoIconCacheService;
|
|
1156
1109
|
dataService: InphotoDataService;
|
|
1157
1110
|
private _connectorService;
|
|
1158
1111
|
private _changeDetection;
|
|
1159
1112
|
private _eventService;
|
|
1113
|
+
private _errorService;
|
|
1160
1114
|
readonly icons: typeof Icon;
|
|
1161
1115
|
readonly FileTypes: typeof FileTypes;
|
|
1116
|
+
readonly redesignMode: typeof RedesignMode;
|
|
1162
1117
|
showClass(): boolean;
|
|
1118
|
+
mode: RedesignMode;
|
|
1163
1119
|
set image(value: string);
|
|
1164
1120
|
get image(): string;
|
|
1121
|
+
get canvasImage(): string;
|
|
1165
1122
|
resetButtonClicked: EventEmitter<void>;
|
|
1166
|
-
|
|
1123
|
+
backToEditMenuClick: EventEmitter<string>;
|
|
1167
1124
|
startSegmentation: EventEmitter<string>;
|
|
1168
1125
|
showLoader: boolean;
|
|
1169
1126
|
loadingTexts: string[];
|
|
@@ -1175,26 +1132,27 @@ declare class PhotoEditorComponent implements OnDestroy {
|
|
|
1175
1132
|
private _image;
|
|
1176
1133
|
private _canvasImage;
|
|
1177
1134
|
private _subs;
|
|
1178
|
-
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
|
|
1135
|
+
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _errorService: ErrorService);
|
|
1179
1136
|
ngOnDestroy(): void;
|
|
1180
1137
|
toggleEraseMode(state: boolean): void;
|
|
1181
1138
|
toggleDragMode(value: boolean): void;
|
|
1182
1139
|
handleChangeBrushSize(size: number): void;
|
|
1183
|
-
|
|
1184
|
-
|
|
1140
|
+
handleGenerateStarted(): void;
|
|
1141
|
+
handleImageGenerated(image: string): void;
|
|
1142
|
+
handleBackClicked(): void;
|
|
1143
|
+
handleResetClicked(): void;
|
|
1185
1144
|
handleSetImageFromHistory(event: string): void;
|
|
1186
1145
|
handleEditIn3DFromHistory(image: string): void;
|
|
1187
1146
|
handleRemoveObjectsFromHistory(image: string): void;
|
|
1188
|
-
handleBackButtonClicked(): void;
|
|
1189
1147
|
handleImageUpload(event: File[]): void;
|
|
1190
1148
|
handleChangeMarkerColor(data: MaskImageColorInterface): void;
|
|
1191
1149
|
handleUpdateCanvasImage(image: string): void;
|
|
1192
1150
|
private _handleSetLoader;
|
|
1193
1151
|
private _handleImageResponse;
|
|
1194
1152
|
private _addToHistory;
|
|
1195
|
-
private
|
|
1153
|
+
private _handleError;
|
|
1196
1154
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorComponent, never>;
|
|
1197
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoEditorComponent, "co-photo-editor", never, { "image": { "alias": "image"; "required": false; }; }, { "resetButtonClicked": "resetButtonClicked"; "
|
|
1155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoEditorComponent, "co-photo-editor", never, { "mode": { "alias": "mode"; "required": false; }; "image": { "alias": "image"; "required": false; }; }, { "resetButtonClicked": "resetButtonClicked"; "backToEditMenuClick": "backToEditMenuClick"; "startSegmentation": "startSegmentation"; }, never, never, false, never>;
|
|
1198
1156
|
}
|
|
1199
1157
|
|
|
1200
1158
|
declare class ProcessLoaderComponent implements OnDestroy {
|
|
@@ -1226,7 +1184,7 @@ declare class ProcessLoaderComponent implements OnDestroy {
|
|
|
1226
1184
|
|
|
1227
1185
|
declare class ProcessLoaderModule {
|
|
1228
1186
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProcessLoaderModule, never>;
|
|
1229
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ProcessLoaderModule, [typeof ProcessLoaderComponent], [typeof i2.LoaderModule, typeof PipeModule, typeof i4.DecimalPipe, typeof i5.UtilitiesPipesModule, typeof i2.IconModule], [typeof ProcessLoaderComponent]>;
|
|
1187
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProcessLoaderModule, [typeof ProcessLoaderComponent], [typeof i2.LoaderModule, typeof PipeModule, typeof i4$1.DecimalPipe, typeof i5.UtilitiesPipesModule, typeof i2.IconModule], [typeof ProcessLoaderComponent]>;
|
|
1230
1188
|
static ɵinj: i0.ɵɵInjectorDeclaration<ProcessLoaderModule>;
|
|
1231
1189
|
}
|
|
1232
1190
|
|
|
@@ -1252,6 +1210,14 @@ declare class CanvasToolBarComponent {
|
|
|
1252
1210
|
changeEraseMode: EventEmitter<boolean>;
|
|
1253
1211
|
changeDragMode: EventEmitter<boolean>;
|
|
1254
1212
|
changeBrushSize: EventEmitter<number>;
|
|
1213
|
+
changeZoomIn: EventEmitter<void>;
|
|
1214
|
+
changeZoomOut: EventEmitter<void>;
|
|
1215
|
+
changeZoomInput: EventEmitter<Event>;
|
|
1216
|
+
zoomPercent: number;
|
|
1217
|
+
minZoomPercent: number;
|
|
1218
|
+
maxZoomPercent: number;
|
|
1219
|
+
canZoomIn: boolean;
|
|
1220
|
+
canZoomOut: boolean;
|
|
1255
1221
|
showBrushSize: boolean;
|
|
1256
1222
|
private _canvasInpaintMode;
|
|
1257
1223
|
private _canvasEraseMode;
|
|
@@ -1262,82 +1228,40 @@ declare class CanvasToolBarComponent {
|
|
|
1262
1228
|
selectEraser(): void;
|
|
1263
1229
|
toggleDragMode(): void;
|
|
1264
1230
|
onBrushSizeChange(event: Event): void;
|
|
1231
|
+
zoomIn(): void;
|
|
1232
|
+
zoomOut(): void;
|
|
1233
|
+
onZoomInput(event: Event): void;
|
|
1265
1234
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolBarComponent, never>;
|
|
1266
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CanvasToolBarComponent, "co-canvas-tool-bar", never, { "canvasInpaintMode": { "alias": "canvasInpaintMode"; "required": false; }; "canvasEraseMode": { "alias": "canvasEraseMode"; "required": false; }; "canvasDragMode": { "alias": "canvasDragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "minBrushSize": { "alias": "minBrushSize"; "required": false; }; "maxBrushSize": { "alias": "maxBrushSize"; "required": false; }; "brushSizeStep": { "alias": "brushSizeStep"; "required": false; }; }, { "changeEraseMode": "changeEraseMode"; "changeDragMode": "changeDragMode"; "changeBrushSize": "changeBrushSize"; }, never, never, false, never>;
|
|
1235
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CanvasToolBarComponent, "co-canvas-tool-bar", never, { "canvasInpaintMode": { "alias": "canvasInpaintMode"; "required": false; }; "canvasEraseMode": { "alias": "canvasEraseMode"; "required": false; }; "canvasDragMode": { "alias": "canvasDragMode"; "required": false; }; "brushSize": { "alias": "brushSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "dragBoundary": { "alias": "dragBoundary"; "required": false; }; "minBrushSize": { "alias": "minBrushSize"; "required": false; }; "maxBrushSize": { "alias": "maxBrushSize"; "required": false; }; "brushSizeStep": { "alias": "brushSizeStep"; "required": false; }; "zoomPercent": { "alias": "zoomPercent"; "required": false; }; "minZoomPercent": { "alias": "minZoomPercent"; "required": false; }; "maxZoomPercent": { "alias": "maxZoomPercent"; "required": false; }; "canZoomIn": { "alias": "canZoomIn"; "required": false; }; "canZoomOut": { "alias": "canZoomOut"; "required": false; }; }, { "changeEraseMode": "changeEraseMode"; "changeDragMode": "changeDragMode"; "changeBrushSize": "changeBrushSize"; "changeZoomIn": "changeZoomIn"; "changeZoomOut": "changeZoomOut"; "changeZoomInput": "changeZoomInput"; }, never, never, false, never>;
|
|
1267
1236
|
}
|
|
1268
1237
|
|
|
1269
1238
|
declare class CanvasToolBarModule {
|
|
1270
1239
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasToolBarModule, never>;
|
|
1271
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasToolBarModule, [typeof CanvasToolBarComponent], [typeof i2.ButtonModule, typeof i2.IconModule, typeof PipeModule, typeof i7.CdkDrag, typeof i7.CdkDragHandle], [typeof CanvasToolBarComponent]>;
|
|
1240
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasToolBarModule, [typeof CanvasToolBarComponent], [typeof i2.ButtonModule, typeof i2.IconModule, typeof i2.InputTextModule, typeof PipeModule, typeof i7.CdkDrag, typeof i7.CdkDragHandle, typeof i4.FormsModule], [typeof CanvasToolBarComponent]>;
|
|
1272
1241
|
static ɵinj: i0.ɵɵInjectorDeclaration<CanvasToolBarModule>;
|
|
1273
1242
|
}
|
|
1274
1243
|
|
|
1275
|
-
declare class
|
|
1276
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorModule, never>;
|
|
1277
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PhotoEditorModule, [typeof PhotoEditorComponent], [typeof EditCanvasModule, typeof PipeModule, typeof ImageUploadModule, typeof i2.ButtonModule, typeof ImageEnhancerModule, typeof ImageHistoryModule, typeof ProcessLoaderModule, typeof i2.IconModule, typeof CanvasToolBarModule, typeof i7.DragDropModule], [typeof PhotoEditorComponent]>;
|
|
1278
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
declare class PrepareStartingImageComponent {
|
|
1244
|
+
declare class SidePanelComponent {
|
|
1282
1245
|
iconService: InphotoIconCacheService;
|
|
1283
|
-
private _connectorService;
|
|
1284
|
-
private _appEventService;
|
|
1285
1246
|
readonly icons: typeof Icon;
|
|
1286
1247
|
showClass(): boolean;
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
private _subs;
|
|
1297
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService);
|
|
1298
|
-
handleCancelClick(): void;
|
|
1299
|
-
handleClearAllObjects(): void;
|
|
1300
|
-
handleClearAllObjectsAndStart3D(): void;
|
|
1301
|
-
handleSelectToClearObjects(): void;
|
|
1302
|
-
handleContinueToAI(): void;
|
|
1303
|
-
private _handleRoomReceived;
|
|
1304
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1305
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PrepareStartingImageComponent, "co-prepare-starting-image", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "processedRoom": "processedRoom"; "startSegmentation": "startSegmentation"; "imageReady": "imageReady"; "continueToAI": "continueToAI"; }, never, never, false, never>;
|
|
1248
|
+
header: string;
|
|
1249
|
+
description: string;
|
|
1250
|
+
headerIcon: Icon;
|
|
1251
|
+
headerClass: string;
|
|
1252
|
+
onRestartClick: EventEmitter<void>;
|
|
1253
|
+
constructor(iconService: InphotoIconCacheService);
|
|
1254
|
+
cancel(): void;
|
|
1255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelComponent, never>;
|
|
1256
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidePanelComponent, "co-side-panel", never, { "header": { "alias": "header"; "required": false; }; "description": { "alias": "description"; "required": false; }; "headerIcon": { "alias": "headerIcon"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; }, { "onRestartClick": "onRestartClick"; }, never, ["*"], false, never>;
|
|
1306
1257
|
}
|
|
1307
1258
|
|
|
1308
|
-
declare class
|
|
1259
|
+
declare class HeaderComponent {
|
|
1309
1260
|
iconService: InphotoIconCacheService;
|
|
1310
1261
|
readonly icons: typeof Icon;
|
|
1311
1262
|
showClass(): boolean;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
title: string;
|
|
1315
|
-
description: string;
|
|
1316
|
-
showNewBanner: boolean;
|
|
1317
|
-
numberedStep: string;
|
|
1318
|
-
buttonText: string;
|
|
1319
|
-
buttonIcon: Icon;
|
|
1320
|
-
onClick: EventEmitter<void>;
|
|
1321
|
-
onButtonClick: EventEmitter<void>;
|
|
1322
|
-
constructor(iconService: InphotoIconCacheService);
|
|
1323
|
-
handleClick(): void;
|
|
1324
|
-
handleButtonClick(): void;
|
|
1325
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StepTileComponent, never>;
|
|
1326
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepTileComponent, "co-step-tile", never, { "tileIcon": { "alias": "tileIcon"; "required": false; }; "tileImage": { "alias": "tileImage"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "showNewBanner": { "alias": "showNewBanner"; "required": false; }; "numberedStep": { "alias": "numberedStep"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; }, { "onClick": "onClick"; "onButtonClick": "onButtonClick"; }, never, never, false, never>;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
declare class StepTileModule {
|
|
1330
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StepTileModule, never>;
|
|
1331
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StepTileModule, [typeof StepTileComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule], [typeof StepTileComponent]>;
|
|
1332
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StepTileModule>;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
declare class HeaderComponent {
|
|
1336
|
-
iconService: InphotoIconCacheService;
|
|
1337
|
-
readonly icons: typeof Icon;
|
|
1338
|
-
showClass(): boolean;
|
|
1339
|
-
headerIcon: Icon;
|
|
1340
|
-
header: string;
|
|
1263
|
+
headerIcon: Icon;
|
|
1264
|
+
header: string;
|
|
1341
1265
|
description: string;
|
|
1342
1266
|
constructor(iconService: InphotoIconCacheService);
|
|
1343
1267
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
@@ -1350,19 +1274,31 @@ declare class HeaderModule {
|
|
|
1350
1274
|
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
|
|
1351
1275
|
}
|
|
1352
1276
|
|
|
1353
|
-
declare class
|
|
1277
|
+
declare class StepTileComponent {
|
|
1354
1278
|
iconService: InphotoIconCacheService;
|
|
1355
1279
|
readonly icons: typeof Icon;
|
|
1356
1280
|
showClass(): boolean;
|
|
1357
|
-
|
|
1281
|
+
tileIcon: Icon;
|
|
1282
|
+
tileImage: string;
|
|
1283
|
+
title: string;
|
|
1358
1284
|
description: string;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1285
|
+
showNewBanner: boolean;
|
|
1286
|
+
numberedStep: string;
|
|
1287
|
+
buttonText: string;
|
|
1288
|
+
buttonIcon: Icon;
|
|
1289
|
+
onClick: EventEmitter<void>;
|
|
1290
|
+
onButtonClick: EventEmitter<void>;
|
|
1362
1291
|
constructor(iconService: InphotoIconCacheService);
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
static
|
|
1292
|
+
handleClick(): void;
|
|
1293
|
+
handleButtonClick(): void;
|
|
1294
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepTileComponent, never>;
|
|
1295
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepTileComponent, "co-step-tile", never, { "tileIcon": { "alias": "tileIcon"; "required": false; }; "tileImage": { "alias": "tileImage"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "showNewBanner": { "alias": "showNewBanner"; "required": false; }; "numberedStep": { "alias": "numberedStep"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; }, { "onClick": "onClick"; "onButtonClick": "onButtonClick"; }, never, never, false, never>;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
declare class StepTileModule {
|
|
1299
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepTileModule, never>;
|
|
1300
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StepTileModule, [typeof StepTileComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule], [typeof StepTileComponent]>;
|
|
1301
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StepTileModule>;
|
|
1366
1302
|
}
|
|
1367
1303
|
|
|
1368
1304
|
declare class SidePanelModule {
|
|
@@ -1371,40 +1307,307 @@ declare class SidePanelModule {
|
|
|
1371
1307
|
static ɵinj: i0.ɵɵInjectorDeclaration<SidePanelModule>;
|
|
1372
1308
|
}
|
|
1373
1309
|
|
|
1310
|
+
declare class PhotoEditorModule {
|
|
1311
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorModule, never>;
|
|
1312
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PhotoEditorModule, [typeof PhotoEditorComponent], [typeof EditCanvasModule, typeof PipeModule, typeof ImageUploadModule, typeof i2.ButtonModule, typeof ImageEnhancerModule, typeof ImageHistoryModule, typeof ProcessLoaderModule, typeof i2.IconModule, typeof CanvasToolBarModule, typeof i7.DragDropModule, typeof SidePanelModule, typeof ImageEnhancerStyleModule, typeof ImageEnhancerUploadModule], [typeof PhotoEditorComponent]>;
|
|
1313
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
interface AiRedesignInterface {
|
|
1317
|
+
image: string;
|
|
1318
|
+
mode: RedesignMode;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
declare class PrepareStartingImageComponent implements OnDestroy {
|
|
1322
|
+
iconService: InphotoIconCacheService;
|
|
1323
|
+
private _connectorService;
|
|
1324
|
+
private _dataService;
|
|
1325
|
+
private _errorService;
|
|
1326
|
+
private _eventService;
|
|
1327
|
+
private _changeDetection;
|
|
1328
|
+
readonly icons: typeof Icon;
|
|
1329
|
+
readonly redesignMode: typeof RedesignMode;
|
|
1330
|
+
showClass(): boolean;
|
|
1331
|
+
set image(value: string);
|
|
1332
|
+
get image(): string;
|
|
1333
|
+
get canvasImage(): string;
|
|
1334
|
+
cancelClick: EventEmitter<void>;
|
|
1335
|
+
startSegmentation: EventEmitter<string>;
|
|
1336
|
+
imageReady: EventEmitter<string>;
|
|
1337
|
+
continueToAI: EventEmitter<AiRedesignInterface>;
|
|
1338
|
+
customPrompt: string;
|
|
1339
|
+
disableSelectObjectsButton: boolean;
|
|
1340
|
+
showLoader: boolean;
|
|
1341
|
+
loadingTexts: string[];
|
|
1342
|
+
showInputError: boolean;
|
|
1343
|
+
showAILoader: boolean;
|
|
1344
|
+
loadingAIgenerationTexts: string[];
|
|
1345
|
+
canvasErase: boolean;
|
|
1346
|
+
dragMode: boolean;
|
|
1347
|
+
brushSize: number;
|
|
1348
|
+
private _image;
|
|
1349
|
+
private _canvasImage;
|
|
1350
|
+
private _subs;
|
|
1351
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _dataService: InphotoDataService, _errorService: ErrorService, _eventService: InphotoEventService, _changeDetection: ChangeDetectorRef);
|
|
1352
|
+
ngOnDestroy(): void;
|
|
1353
|
+
handleCancelClick(): void;
|
|
1354
|
+
toggleEraseMode(state: boolean): void;
|
|
1355
|
+
toggleDragMode(value: boolean): void;
|
|
1356
|
+
handleChangeBrushSize(size: number): void;
|
|
1357
|
+
handleUpdateCanvasImage(image: string): void;
|
|
1358
|
+
handleSetImageFromHistory(image: string): void;
|
|
1359
|
+
handleGenerateClicked(): void;
|
|
1360
|
+
handleClearAllObjectsAndStart3D(image?: string): void;
|
|
1361
|
+
handleSelectToClearObjects(image?: string): void;
|
|
1362
|
+
handleContinueToAI(mode: RedesignMode): void;
|
|
1363
|
+
private _addStartingImageToHistory;
|
|
1364
|
+
private _addToHistory;
|
|
1365
|
+
private _handleError;
|
|
1366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1367
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PrepareStartingImageComponent, "co-prepare-starting-image", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "startSegmentation": "startSegmentation"; "imageReady": "imageReady"; "continueToAI": "continueToAI"; }, never, never, false, never>;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1374
1370
|
declare class PrepareStartingImageModule {
|
|
1375
1371
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageModule, never>;
|
|
1376
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PrepareStartingImageModule, [typeof PrepareStartingImageComponent], [typeof EditCanvasModule, typeof i2.ButtonModule, typeof PipeModule, typeof i2.IconModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule], [typeof PrepareStartingImageComponent]>;
|
|
1372
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrepareStartingImageModule, [typeof PrepareStartingImageComponent], [typeof EditCanvasModule, typeof ImageHistoryModule, typeof CanvasToolBarModule, typeof i7.DragDropModule, typeof i2.ButtonModule, typeof PipeModule, typeof i2.IconModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof AiPromptModule], [typeof PrepareStartingImageComponent]>;
|
|
1377
1373
|
static ɵinj: i0.ɵɵInjectorDeclaration<PrepareStartingImageModule>;
|
|
1378
1374
|
}
|
|
1379
1375
|
|
|
1380
|
-
declare class
|
|
1376
|
+
declare class InphotoItemService implements OnDestroy {
|
|
1377
|
+
set selectedObject(value: ArticleConfiguration | undefined);
|
|
1378
|
+
get selectedObject(): ArticleConfiguration | undefined;
|
|
1379
|
+
set floorPlane(plane: Mesh);
|
|
1380
|
+
get floorPlane(): Mesh;
|
|
1381
|
+
set wallPlanes(planes: Mesh[]);
|
|
1382
|
+
get wallPlanes(): Mesh[];
|
|
1383
|
+
set floorItems(items: ArticleConfiguration[]);
|
|
1384
|
+
get floorItems(): ArticleConfiguration[];
|
|
1385
|
+
set floorBounds(value: Box3);
|
|
1386
|
+
get floorBounds(): Box3;
|
|
1387
|
+
set imageItems(items: ArticleConfiguration[]);
|
|
1388
|
+
get imageItems(): ArticleConfiguration[];
|
|
1389
|
+
private _selectedObject;
|
|
1390
|
+
private _floorItems;
|
|
1391
|
+
private _imageItems;
|
|
1392
|
+
private _floorPlane;
|
|
1393
|
+
private _wallPlanes;
|
|
1394
|
+
private _floorBounds;
|
|
1395
|
+
ngOnDestroy(): void;
|
|
1396
|
+
clear(): void;
|
|
1397
|
+
addFloorItem(item: ArticleConfiguration): void;
|
|
1398
|
+
removeFloorItem(item: ArticleConfiguration): void;
|
|
1399
|
+
addImageItem(item: ArticleConfiguration): void;
|
|
1400
|
+
removeImageItem(item: ArticleConfiguration): void;
|
|
1401
|
+
getFloorCenter(): Vector3;
|
|
1402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoItemService, never>;
|
|
1403
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoItemService>;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
declare class InphotoSceneService implements OnDestroy {
|
|
1407
|
+
private _objectsService;
|
|
1408
|
+
set needsRender(render: boolean);
|
|
1409
|
+
get needsRender(): boolean;
|
|
1410
|
+
set sceneHasImage(value: boolean);
|
|
1411
|
+
get sceneHasImage(): boolean;
|
|
1412
|
+
container: ElementRef<HTMLDivElement>;
|
|
1413
|
+
scene: Scene;
|
|
1414
|
+
camera: PerspectiveCamera;
|
|
1415
|
+
renderer: WebGLRenderer;
|
|
1416
|
+
imageWidth: number;
|
|
1417
|
+
imageHeight: number;
|
|
1418
|
+
private _sceneHasImage;
|
|
1419
|
+
private _placementMarker;
|
|
1420
|
+
private _needsRender;
|
|
1421
|
+
constructor(_objectsService: InphotoItemService);
|
|
1422
|
+
ngOnDestroy(): void;
|
|
1423
|
+
init(element: ElementRef<HTMLDivElement>): void;
|
|
1424
|
+
resize(width: number, height: number): void;
|
|
1425
|
+
getSceneAsImage(overlayCanvas?: HTMLCanvasElement): string;
|
|
1426
|
+
addObjectToScene(result: ArticleConfiguration): void;
|
|
1427
|
+
placeObject(object: Object3D): void;
|
|
1428
|
+
getObjectByUUID(uuid: string): Object3D | undefined;
|
|
1429
|
+
removeObject(object: Object3D): void;
|
|
1430
|
+
addFloorToScene(floorMesh: Mesh): void;
|
|
1431
|
+
addWallsToScene(wallMeshes: Mesh[]): void;
|
|
1432
|
+
setPlacementMarker(marker: Object3D | null): void;
|
|
1433
|
+
private _prepLights;
|
|
1434
|
+
private _animate;
|
|
1435
|
+
private _render;
|
|
1436
|
+
private _animateMarker;
|
|
1437
|
+
private _onResize;
|
|
1438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoSceneService, never>;
|
|
1439
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSceneService>;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
declare class InphotoFontService {
|
|
1443
|
+
hudFont: Font;
|
|
1444
|
+
monospaceFont: Font;
|
|
1445
|
+
constructor();
|
|
1446
|
+
private _loadFont;
|
|
1447
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoFontService, never>;
|
|
1448
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoFontService>;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
declare class InphotoHudService implements OnDestroy {
|
|
1452
|
+
private _appEventService;
|
|
1453
|
+
private _sceneService;
|
|
1454
|
+
private _fontService;
|
|
1455
|
+
private _selectedItem;
|
|
1456
|
+
private _rotationHelper;
|
|
1457
|
+
private _subs;
|
|
1458
|
+
private _mouseover;
|
|
1459
|
+
private _rotating;
|
|
1460
|
+
constructor(_appEventService: InphotoEventService, _sceneService: InphotoSceneService, _fontService: InphotoFontService);
|
|
1461
|
+
ngOnDestroy(): void;
|
|
1462
|
+
update(force?: boolean): void;
|
|
1463
|
+
getRotationSnapperArea(): Object3D | null;
|
|
1464
|
+
getSelectedCenter(): Vector3 | null;
|
|
1465
|
+
setMouseOver(on: boolean): void;
|
|
1466
|
+
setRotating(on: boolean): void;
|
|
1467
|
+
private _applySceneUpdates;
|
|
1468
|
+
private _unselectItem;
|
|
1469
|
+
private _selectItem;
|
|
1470
|
+
private _resetSelectedItem;
|
|
1471
|
+
private _createRotationHelper;
|
|
1472
|
+
private _setColor;
|
|
1473
|
+
private _addToScene;
|
|
1474
|
+
private _removeRotationHelper;
|
|
1475
|
+
private _removeFromScene;
|
|
1476
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoHudService, never>;
|
|
1477
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoHudService>;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
declare enum InteractionMode {
|
|
1481
|
+
Move = "move",
|
|
1482
|
+
Rotate = "rotate"
|
|
1483
|
+
}
|
|
1484
|
+
declare class InphotoInteractionService implements OnDestroy {
|
|
1485
|
+
objectsService: InphotoItemService;
|
|
1486
|
+
private _sceneService;
|
|
1487
|
+
private _appEventService;
|
|
1488
|
+
private _hudService;
|
|
1489
|
+
mouse: Vector2;
|
|
1490
|
+
raycaster: Raycaster;
|
|
1491
|
+
lastMousePosition: Vector2;
|
|
1492
|
+
isDragging: boolean;
|
|
1493
|
+
dragOffset: Vector3;
|
|
1494
|
+
mode: InteractionMode;
|
|
1495
|
+
rotationSensitivity: number;
|
|
1496
|
+
isPlacing: boolean;
|
|
1497
|
+
placementLocked: boolean;
|
|
1498
|
+
private _camera;
|
|
1499
|
+
private _scene;
|
|
1500
|
+
private _renderer;
|
|
1501
|
+
private _placementMarker;
|
|
1502
|
+
private _placementPosition;
|
|
1503
|
+
private _placementNormal;
|
|
1504
|
+
constructor(objectsService: InphotoItemService, _sceneService: InphotoSceneService, _appEventService: InphotoEventService, _hudService: InphotoHudService);
|
|
1505
|
+
ngOnDestroy(): void;
|
|
1506
|
+
init(scene: Scene, camera: PerspectiveCamera, renderer: WebGLRenderer): void;
|
|
1507
|
+
setMode(mode: InteractionMode): void;
|
|
1508
|
+
onMouseUp(event: MouseEvent): void;
|
|
1509
|
+
onMouseDown(event: MouseEvent): void;
|
|
1510
|
+
handlePointerDown(event: MouseEvent): void;
|
|
1511
|
+
onMouseMove(event: MouseEvent): void;
|
|
1512
|
+
startPlacement(): void;
|
|
1513
|
+
endPlacement(): {
|
|
1514
|
+
position: Vector3;
|
|
1515
|
+
normal: Vector3;
|
|
1516
|
+
};
|
|
1517
|
+
private _clearPlacementMarker;
|
|
1518
|
+
private _floorHitFromEvent;
|
|
1519
|
+
private _moveMarkerTo;
|
|
1520
|
+
private _rotateByDrag;
|
|
1521
|
+
private _applyYRotation;
|
|
1522
|
+
updateMousePosition(event: MouseEvent): void;
|
|
1523
|
+
handleFurnitureHit(furniture: ArticleConfiguration): void;
|
|
1524
|
+
handlePlacement(object: Object3D, targetPosition?: Vector3, targetNormal?: Vector3): Object3D;
|
|
1525
|
+
makeItStick(yRotation: number): void;
|
|
1526
|
+
private _bindObjectToFloorBounds;
|
|
1527
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoInteractionService, never>;
|
|
1528
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoInteractionService>;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
declare class Image2DPlacementComponent implements AfterViewInit {
|
|
1532
|
+
private _interactionService;
|
|
1533
|
+
showClass(): boolean;
|
|
1534
|
+
canvas: ElementRef<HTMLCanvasElement>;
|
|
1535
|
+
set items(value: ArticleConfiguration[]);
|
|
1536
|
+
get items(): ArticleConfiguration[];
|
|
1537
|
+
set width(value: number);
|
|
1538
|
+
get width(): number;
|
|
1539
|
+
set height(value: number);
|
|
1540
|
+
get height(): number;
|
|
1541
|
+
imageSelected: EventEmitter<ArticleConfiguration>;
|
|
1542
|
+
imageDeselected: EventEmitter<void>;
|
|
1543
|
+
private _items;
|
|
1544
|
+
private _width;
|
|
1545
|
+
private _height;
|
|
1546
|
+
private _ctx;
|
|
1547
|
+
private _canvasReady;
|
|
1548
|
+
private _imageCache;
|
|
1549
|
+
private _loadedImageSourceByUuid;
|
|
1550
|
+
private _selectedItem;
|
|
1551
|
+
private _dragging;
|
|
1552
|
+
private _dragOffsetX;
|
|
1553
|
+
private _dragOffsetY;
|
|
1554
|
+
constructor(_interactionService: InphotoInteractionService);
|
|
1555
|
+
ngAfterViewInit(): void;
|
|
1556
|
+
getCanvasElement(): HTMLCanvasElement;
|
|
1557
|
+
refresh(): void;
|
|
1558
|
+
onMouseDown(event: MouseEvent): void;
|
|
1559
|
+
onMouseMove(event: MouseEvent): void;
|
|
1560
|
+
onMouseUp(): void;
|
|
1561
|
+
private _syncImageCache;
|
|
1562
|
+
private _loadImageForItem;
|
|
1563
|
+
private _applyDefaultScale;
|
|
1564
|
+
private _applyCanvasSize;
|
|
1565
|
+
private _hitTest;
|
|
1566
|
+
private _getBounds;
|
|
1567
|
+
private _isInsideBounds;
|
|
1568
|
+
private _uuidOf;
|
|
1569
|
+
private _transformOf;
|
|
1570
|
+
private _getCanvasCoords;
|
|
1571
|
+
private _setCursor;
|
|
1572
|
+
private _render;
|
|
1573
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Image2DPlacementComponent, never>;
|
|
1574
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Image2DPlacementComponent, "co-image-2d-placement", never, { "items": { "alias": "items"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, { "imageSelected": "imageSelected"; "imageDeselected": "imageDeselected"; }, never, never, false, never>;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
1381
1578
|
iconService: InphotoIconCacheService;
|
|
1579
|
+
objectsService: InphotoItemService;
|
|
1382
1580
|
private _interactionService;
|
|
1383
1581
|
private _sceneService;
|
|
1384
|
-
private _objectsService;
|
|
1385
1582
|
private _appEventService;
|
|
1386
1583
|
private _settingsService;
|
|
1387
1584
|
private _configuringService;
|
|
1388
1585
|
private _configuratorEventService;
|
|
1389
1586
|
private _cdk;
|
|
1587
|
+
private _renderConnectorService;
|
|
1588
|
+
private _renderService;
|
|
1589
|
+
private _renderEventService;
|
|
1590
|
+
private _errorService;
|
|
1390
1591
|
private _inphotoHudService;
|
|
1391
1592
|
readonly icons: typeof Icon;
|
|
1593
|
+
readonly RedesignMode: typeof RedesignMode;
|
|
1392
1594
|
showClass(): boolean;
|
|
1595
|
+
onResize(): void;
|
|
1393
1596
|
container: ElementRef<HTMLDivElement>;
|
|
1394
1597
|
sceneContainer: ElementRef<HTMLDivElement>;
|
|
1598
|
+
imageOverlayComponent: Image2DPlacementComponent;
|
|
1395
1599
|
set room(value: SceneBuildObject);
|
|
1396
1600
|
get room(): SceneBuildObject;
|
|
1397
1601
|
debug: boolean;
|
|
1398
|
-
startAiDecoration: EventEmitter<
|
|
1602
|
+
startAiDecoration: EventEmitter<AiRedesignInterface>;
|
|
1399
1603
|
startSegmentation: EventEmitter<string>;
|
|
1400
|
-
openCatalog: EventEmitter<
|
|
1604
|
+
openCatalog: EventEmitter<boolean>;
|
|
1401
1605
|
closeClick: EventEmitter<void>;
|
|
1402
1606
|
configuratorSettings: any;
|
|
1403
1607
|
configuratorSku: string;
|
|
1404
1608
|
configuratorInstanceId: string;
|
|
1405
1609
|
firstBuild: boolean;
|
|
1406
1610
|
loadConfigurator: boolean;
|
|
1407
|
-
showConfiguratorSideBar: boolean;
|
|
1408
1611
|
showWallOptions: boolean;
|
|
1409
1612
|
wallMarkers: {
|
|
1410
1613
|
x: number;
|
|
@@ -1419,26 +1622,39 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1419
1622
|
uuid: string;
|
|
1420
1623
|
}[];
|
|
1421
1624
|
selectedFloorUuid: string | null;
|
|
1625
|
+
show2DImageOverlay: boolean;
|
|
1626
|
+
overlayWidth: number;
|
|
1627
|
+
overlayHeight: number;
|
|
1628
|
+
overlayLeft: number;
|
|
1629
|
+
overlayTop: number;
|
|
1630
|
+
showRenderLoader: boolean;
|
|
1631
|
+
loadingTexts: string[];
|
|
1632
|
+
private readonly _copyOffset2D;
|
|
1422
1633
|
private _room;
|
|
1423
1634
|
private _sceneReady;
|
|
1424
1635
|
private _currentArticleConfiguration;
|
|
1425
|
-
private _userActionNeeded;
|
|
1426
1636
|
private _subs;
|
|
1427
|
-
|
|
1637
|
+
private _pendingImageArticleConfiguration;
|
|
1638
|
+
private _pendingImageIsReconfigure;
|
|
1639
|
+
private _backgroundSize;
|
|
1640
|
+
constructor(iconService: InphotoIconCacheService, objectsService: InphotoItemService, _interactionService: InphotoInteractionService, _sceneService: InphotoSceneService, _appEventService: InphotoEventService, _settingsService: InphotoSettingsService, _configuringService: ConfiguringService, _configuratorEventService: ConfiguratorEventService, _cdk: ChangeDetectorRef, _renderConnectorService: RenderConnectorService, _renderService: RenderService, _renderEventService: RenderEventService, _errorService: ErrorService, _inphotoHudService: InphotoHudService);
|
|
1428
1641
|
ngAfterViewInit(): void;
|
|
1642
|
+
ngOnDestroy(): void;
|
|
1429
1643
|
init(): void;
|
|
1430
1644
|
set currentArticleConfiguration(value: ArticleConfiguration);
|
|
1431
1645
|
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1432
1646
|
handleCancelClick(): void;
|
|
1433
|
-
handleOpenCatalog(): void;
|
|
1647
|
+
handleOpenCatalog(is2D?: boolean): void;
|
|
1434
1648
|
setBackgroundImage(url: string): void;
|
|
1435
1649
|
handleConfigureObjectClick(articleConfiguration: ArticleConfiguration): void;
|
|
1436
1650
|
handleObjectScaleClick(articleConfiguration: ArticleConfiguration): void;
|
|
1651
|
+
handleCopyObject(articleConfiguration: ArticleConfiguration): void;
|
|
1437
1652
|
handleDeleteObject(articleConfiguration: ArticleConfiguration): void;
|
|
1438
1653
|
showConfiguratorChange(show: boolean): void;
|
|
1439
1654
|
handleChangeObjectScale(scale: Vector3): void;
|
|
1440
|
-
|
|
1441
|
-
|
|
1655
|
+
handle2DImageSelected(articleConfiguration: ArticleConfiguration): void;
|
|
1656
|
+
handle2DImageDeselected(): void;
|
|
1657
|
+
handleThreedToAi(mode: RedesignMode): void;
|
|
1442
1658
|
handleSegmentationClick(): void;
|
|
1443
1659
|
handleShowWallOptions(): void;
|
|
1444
1660
|
handleShowFloorOptions(): void;
|
|
@@ -1448,12 +1664,29 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1448
1664
|
private _getMarkersForMeshType;
|
|
1449
1665
|
private _getMeshesByType;
|
|
1450
1666
|
private _worldPositionToContainerPixel;
|
|
1667
|
+
private _applyBackgroundSize;
|
|
1668
|
+
private _getViewportFittedSize;
|
|
1669
|
+
private _updateOverlayCanvasRect;
|
|
1670
|
+
private _getOverlayCanvasForMerge;
|
|
1451
1671
|
private _addArticleToScene;
|
|
1452
1672
|
private _prepareSettings;
|
|
1453
1673
|
private _handleFirstBuild;
|
|
1454
1674
|
private _handleBuildResult;
|
|
1675
|
+
private _handleReconfigure2DImage;
|
|
1455
1676
|
private _continueConfiguration;
|
|
1677
|
+
private _copy3DObject;
|
|
1678
|
+
private _copy2DImage;
|
|
1679
|
+
private _copyArticleConfiguration;
|
|
1680
|
+
private _cloneUserData;
|
|
1681
|
+
private _selectObject;
|
|
1682
|
+
private _setConfiguratorArticle;
|
|
1683
|
+
private _handleArticleNotFound;
|
|
1456
1684
|
private _resetConfigurator;
|
|
1685
|
+
private _handleCreateRender;
|
|
1686
|
+
private _handleRenderFailed;
|
|
1687
|
+
private _handleRenderResult;
|
|
1688
|
+
private _createNewPlacement2D;
|
|
1689
|
+
private _createStubFromPlacement;
|
|
1457
1690
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedSceneComponent, never>;
|
|
1458
1691
|
static ɵcmp: i0.ɵɵComponentDeclaration<InphotoThreedSceneComponent, "co-inphoto-threed-scene", never, { "room": { "alias": "room"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "startAiDecoration": "startAiDecoration"; "startSegmentation": "startSegmentation"; "openCatalog": "openCatalog"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
1459
1692
|
}
|
|
@@ -1468,11 +1701,15 @@ declare class SceneContextMenuComponent implements OnDestroy {
|
|
|
1468
1701
|
copyObject: EventEmitter<ArticleConfiguration>;
|
|
1469
1702
|
scaleObject: EventEmitter<ArticleConfiguration>;
|
|
1470
1703
|
deleteObject: EventEmitter<ArticleConfiguration>;
|
|
1704
|
+
updateObjectScale: EventEmitter<Vector3>;
|
|
1471
1705
|
activeItem: 'move' | 'rotate' | null;
|
|
1706
|
+
isSelected2D: boolean;
|
|
1707
|
+
showScaleDialog: boolean;
|
|
1472
1708
|
articleName: string;
|
|
1473
1709
|
showContextMenu: boolean;
|
|
1474
1710
|
private _subs;
|
|
1475
1711
|
private _articleConfiguration;
|
|
1712
|
+
get articleConfiguration(): ArticleConfiguration;
|
|
1476
1713
|
constructor(iconService: InphotoIconCacheService, _appEventService: InphotoEventService, _interactionService: InphotoInteractionService);
|
|
1477
1714
|
ngOnDestroy(): void;
|
|
1478
1715
|
handleMovementClick(): void;
|
|
@@ -1484,19 +1721,16 @@ declare class SceneContextMenuComponent implements OnDestroy {
|
|
|
1484
1721
|
setArticleConfiguration(article: ArticleConfiguration): void;
|
|
1485
1722
|
closeMenu(): void;
|
|
1486
1723
|
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuComponent, never>;
|
|
1487
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SceneContextMenuComponent, "co-scene-context-menu", never, {}, { "configureObject": "configureObject"; "copyObject": "copyObject"; "scaleObject": "scaleObject"; "deleteObject": "deleteObject"; }, never, never, false, never>;
|
|
1724
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SceneContextMenuComponent, "co-scene-context-menu", never, {}, { "configureObject": "configureObject"; "copyObject": "copyObject"; "scaleObject": "scaleObject"; "deleteObject": "deleteObject"; "updateObjectScale": "updateObjectScale"; }, never, never, false, never>;
|
|
1488
1725
|
}
|
|
1489
1726
|
|
|
1490
|
-
declare class
|
|
1491
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuModule, never>;
|
|
1492
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SceneContextMenuModule, [typeof SceneContextMenuComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule], [typeof SceneContextMenuComponent]>;
|
|
1493
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SceneContextMenuModule>;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
declare class ConfigurationSideBarMenuComponent implements OnDestroy {
|
|
1727
|
+
declare class ScaleDialogComponent implements OnDestroy {
|
|
1497
1728
|
iconService: InphotoIconCacheService;
|
|
1498
1729
|
private _eventService;
|
|
1499
1730
|
readonly icons: typeof Icon;
|
|
1731
|
+
readonly minScale: number;
|
|
1732
|
+
readonly maxScale: number;
|
|
1733
|
+
readonly scaleStep: number;
|
|
1500
1734
|
showClass(): boolean;
|
|
1501
1735
|
set item(value: ArticleConfiguration);
|
|
1502
1736
|
get item(): ArticleConfiguration;
|
|
@@ -1514,14 +1748,21 @@ declare class ConfigurationSideBarMenuComponent implements OnDestroy {
|
|
|
1514
1748
|
onScaleSingleAxis(event: Event): void;
|
|
1515
1749
|
handleCloseClick(): void;
|
|
1516
1750
|
private _setProperties;
|
|
1517
|
-
|
|
1518
|
-
static
|
|
1751
|
+
private _round;
|
|
1752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScaleDialogComponent, never>;
|
|
1753
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScaleDialogComponent, "co-scale-dialog", never, { "item": { "alias": "item"; "required": false; }; }, { "updateObjectScale": "updateObjectScale"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
1519
1754
|
}
|
|
1520
1755
|
|
|
1521
|
-
declare class
|
|
1522
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1523
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
1524
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
1756
|
+
declare class ScaleDialogModule {
|
|
1757
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScaleDialogModule, never>;
|
|
1758
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScaleDialogModule, [typeof ScaleDialogComponent], [typeof i4.FormsModule, typeof PipeModule, typeof i2.IconModule, typeof i2.ButtonModule], [typeof ScaleDialogComponent]>;
|
|
1759
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScaleDialogModule>;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1762
|
+
declare class SceneContextMenuModule {
|
|
1763
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuModule, never>;
|
|
1764
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SceneContextMenuModule, [typeof SceneContextMenuComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ScaleDialogModule], [typeof SceneContextMenuComponent]>;
|
|
1765
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SceneContextMenuModule>;
|
|
1525
1766
|
}
|
|
1526
1767
|
|
|
1527
1768
|
declare class MarkerComponent {
|
|
@@ -1543,9 +1784,15 @@ declare class MarkerModule {
|
|
|
1543
1784
|
static ɵinj: i0.ɵɵInjectorDeclaration<MarkerModule>;
|
|
1544
1785
|
}
|
|
1545
1786
|
|
|
1787
|
+
declare class Image2DPlacementModule {
|
|
1788
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Image2DPlacementModule, never>;
|
|
1789
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<Image2DPlacementModule, [typeof Image2DPlacementComponent], never, [typeof Image2DPlacementComponent]>;
|
|
1790
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<Image2DPlacementModule>;
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1546
1793
|
declare class InphotoThreedsceneModule {
|
|
1547
1794
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedsceneModule, never>;
|
|
1548
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InphotoThreedsceneModule, [typeof InphotoThreedSceneComponent], [typeof ImageUploadModule, typeof i2.ButtonModule, typeof PipeModule, typeof InphotoCatalogModule, typeof i2.IconModule, typeof i6.ConfiguratorModule, typeof SceneContextMenuModule, typeof
|
|
1795
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InphotoThreedsceneModule, [typeof InphotoThreedSceneComponent], [typeof ImageUploadModule, typeof i2.ButtonModule, typeof PipeModule, typeof InphotoCatalogModule, typeof i2.IconModule, typeof i6.ConfiguratorModule, typeof SceneContextMenuModule, typeof SidePanelModule, typeof StepTileModule, typeof ProcessLoaderModule, typeof MarkerModule, typeof AiPromptModule, typeof Image2DPlacementModule], [typeof InphotoThreedSceneComponent]>;
|
|
1549
1796
|
static ɵinj: i0.ɵɵInjectorDeclaration<InphotoThreedsceneModule>;
|
|
1550
1797
|
}
|
|
1551
1798
|
|
|
@@ -1603,13 +1850,16 @@ declare class AppInitializerService {
|
|
|
1603
1850
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppInitializerService>;
|
|
1604
1851
|
}
|
|
1605
1852
|
|
|
1606
|
-
declare class InPhotoComponent {
|
|
1853
|
+
declare class InPhotoComponent implements OnDestroy {
|
|
1607
1854
|
appInitializerService: AppInitializerService;
|
|
1608
1855
|
appEventService: InphotoEventService;
|
|
1609
1856
|
private _cdk;
|
|
1610
1857
|
private _dataService;
|
|
1858
|
+
readonly catalogMenuOptionIds: number[];
|
|
1859
|
+
readonly noMenuOptionIds: number[];
|
|
1611
1860
|
showClass(): boolean;
|
|
1612
1861
|
set settings(input: any);
|
|
1862
|
+
set image(value: string);
|
|
1613
1863
|
debug: boolean;
|
|
1614
1864
|
set useMockRoomData(value: boolean);
|
|
1615
1865
|
showImageUpload: boolean;
|
|
@@ -1622,31 +1872,34 @@ declare class InPhotoComponent {
|
|
|
1622
1872
|
uploadedImage: string;
|
|
1623
1873
|
preparedImage: string;
|
|
1624
1874
|
aiDecorationImage: string;
|
|
1875
|
+
aiDecorationMode: RedesignMode;
|
|
1625
1876
|
roomData: SceneBuildObject;
|
|
1626
1877
|
segmentImage: string;
|
|
1878
|
+
private _subs;
|
|
1627
1879
|
constructor(appInitializerService: AppInitializerService, appEventService: InphotoEventService, _cdk: ChangeDetectorRef, _dataService: InphotoDataService);
|
|
1880
|
+
ngOnDestroy(): void;
|
|
1628
1881
|
private _createMockSceneBuildObject;
|
|
1629
1882
|
handleCancelClick(): void;
|
|
1630
1883
|
startPoint(): void;
|
|
1631
1884
|
handleImageUpload(image: string): void;
|
|
1632
|
-
handleProcessedRoom(roomData: SceneBuildObject): void;
|
|
1633
1885
|
handleStart3D(data: SceneBuildObject): void;
|
|
1634
1886
|
handleSegmentationJob(image: string): void;
|
|
1635
1887
|
handleSegmentOutput(image: string): void;
|
|
1636
1888
|
handleCancelSegmentClick(): void;
|
|
1637
1889
|
handleMenuChange(event: any): void;
|
|
1638
|
-
handleAiDecoration(
|
|
1890
|
+
handleAiDecoration(data: AiRedesignInterface): void;
|
|
1639
1891
|
handleCancelCompleteClick(): void;
|
|
1640
1892
|
closeReadyToOpen(): void;
|
|
1641
|
-
handleOpenCatalog(): void;
|
|
1893
|
+
handleOpenCatalog(is2D?: boolean): void;
|
|
1642
1894
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
|
|
1643
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1895
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "image": { "alias": "image"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1644
1896
|
}
|
|
1645
1897
|
|
|
1646
1898
|
declare enum SegmentationType {
|
|
1647
1899
|
Yolo = "yolo",
|
|
1648
1900
|
Click = "click",
|
|
1649
|
-
Manual = "manual"
|
|
1901
|
+
Manual = "manual",
|
|
1902
|
+
Auto = "auto"
|
|
1650
1903
|
}
|
|
1651
1904
|
|
|
1652
1905
|
interface SegmentationJob {
|
|
@@ -1655,17 +1908,19 @@ interface SegmentationJob {
|
|
|
1655
1908
|
segmentationType: SegmentationType;
|
|
1656
1909
|
}
|
|
1657
1910
|
|
|
1658
|
-
declare class SegmentInpaintComponent {
|
|
1911
|
+
declare class SegmentInpaintComponent implements OnDestroy {
|
|
1659
1912
|
iconService: InphotoIconCacheService;
|
|
1660
1913
|
private _connectorService;
|
|
1661
1914
|
private _loaderService;
|
|
1915
|
+
private _errorService;
|
|
1916
|
+
private _dataService;
|
|
1917
|
+
private _eventService;
|
|
1662
1918
|
readonly icons: typeof Icon;
|
|
1663
1919
|
readonly SegmentationType: typeof SegmentationType;
|
|
1664
1920
|
showClass(): boolean;
|
|
1665
1921
|
set image(value: string);
|
|
1666
1922
|
get image(): string;
|
|
1667
|
-
|
|
1668
|
-
preparedImage: EventEmitter<string>;
|
|
1923
|
+
backToEditMenuClick: EventEmitter<string>;
|
|
1669
1924
|
segmentationInPaintingData: any;
|
|
1670
1925
|
canvasInPaint: boolean;
|
|
1671
1926
|
inpaintClick: boolean;
|
|
@@ -1678,67 +1933,38 @@ declare class SegmentInpaintComponent {
|
|
|
1678
1933
|
segmentMode: SegmentationType;
|
|
1679
1934
|
brushSize: number;
|
|
1680
1935
|
segmentationObjects: SegmentationObject[];
|
|
1936
|
+
clearButtonDisabled: boolean;
|
|
1681
1937
|
private _image;
|
|
1682
1938
|
private _inpaintImageState;
|
|
1683
|
-
|
|
1939
|
+
private _subs;
|
|
1940
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService, _eventService: InphotoEventService);
|
|
1941
|
+
ngOnDestroy(): void;
|
|
1684
1942
|
handleSegmentationClick(): void;
|
|
1685
1943
|
handleSegmentationMask(): void;
|
|
1686
1944
|
handleSegmentationObject(): void;
|
|
1687
|
-
|
|
1945
|
+
handleBackToEditMenu(): void;
|
|
1688
1946
|
toggleEraseMode(erase: boolean): void;
|
|
1689
1947
|
toggleDragMode(value: boolean): void;
|
|
1690
1948
|
handleSegmentationPointClick(event: SegmentationPoint): void;
|
|
1691
1949
|
processInpainted(): void;
|
|
1950
|
+
handleSetImageFromHistory(image: string): void;
|
|
1951
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1692
1952
|
handleImageStateChange(image: string): void;
|
|
1693
1953
|
handleChangeBrushSize(size: number): void;
|
|
1954
|
+
handleAutoSegmentation(): void;
|
|
1955
|
+
private _handleError;
|
|
1956
|
+
private _resetSegmentation;
|
|
1694
1957
|
private _handleLoader;
|
|
1695
1958
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1696
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "
|
|
1959
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; }, never, never, false, never>;
|
|
1697
1960
|
}
|
|
1698
1961
|
|
|
1699
1962
|
declare class SegmentInpaintModule {
|
|
1700
1963
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintModule, never>;
|
|
1701
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SegmentInpaintModule, [typeof SegmentInpaintComponent], [typeof EditCanvasModule, typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof CanvasToolBarModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule], [typeof SegmentInpaintComponent]>;
|
|
1964
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SegmentInpaintModule, [typeof SegmentInpaintComponent], [typeof EditCanvasModule, typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof CanvasToolBarModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof ImageHistoryModule], [typeof SegmentInpaintComponent]>;
|
|
1702
1965
|
static ɵinj: i0.ɵɵInjectorDeclaration<SegmentInpaintModule>;
|
|
1703
1966
|
}
|
|
1704
1967
|
|
|
1705
|
-
declare class ImageProcessCompleteComponent {
|
|
1706
|
-
iconService: InphotoIconCacheService;
|
|
1707
|
-
private _connectorService;
|
|
1708
|
-
private _appEventService;
|
|
1709
|
-
private _dataService;
|
|
1710
|
-
readonly icons: typeof Icon;
|
|
1711
|
-
showClass(): boolean;
|
|
1712
|
-
set image(value: string);
|
|
1713
|
-
get image(): string;
|
|
1714
|
-
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1715
|
-
handleAiDecorationClicked: EventEmitter<string>;
|
|
1716
|
-
startSegmentation: EventEmitter<string>;
|
|
1717
|
-
cancelClick: EventEmitter<void>;
|
|
1718
|
-
showLoader: boolean;
|
|
1719
|
-
loadingTexts: string[];
|
|
1720
|
-
private _image;
|
|
1721
|
-
private _subs;
|
|
1722
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService, _dataService: InphotoDataService);
|
|
1723
|
-
handleSetImage(): void;
|
|
1724
|
-
handle3DClick(): void;
|
|
1725
|
-
handleAiClick(): void;
|
|
1726
|
-
handleContinueSegmentationClick(): void;
|
|
1727
|
-
handleEditIn3DFromHistory(image: string): void;
|
|
1728
|
-
handleRemoveObjectsFromHistory(image: string): void;
|
|
1729
|
-
handleCancelClick(): void;
|
|
1730
|
-
private _handleRoomReceived;
|
|
1731
|
-
private _startRoomGeneration;
|
|
1732
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteComponent, never>;
|
|
1733
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageProcessCompleteComponent, "co-image-process-complete", never, { "image": { "alias": "image"; "required": false; }; }, { "handleStart3D": "handleStart3D"; "handleAiDecorationClicked": "handleAiDecorationClicked"; "startSegmentation": "startSegmentation"; "cancelClick": "cancelClick"; }, never, never, false, never>;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
declare class ImageProcessCompleteModule {
|
|
1737
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteModule, never>;
|
|
1738
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageProcessCompleteModule, [typeof ImageProcessCompleteComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof ImageHistoryModule], [typeof ImageProcessCompleteComponent]>;
|
|
1739
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ImageProcessCompleteModule>;
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
1968
|
interface SideBarMenuOption {
|
|
1743
1969
|
id: number;
|
|
1744
1970
|
labelKey: string;
|
|
@@ -1749,13 +1975,14 @@ declare class SideBarMenuComponent {
|
|
|
1749
1975
|
iconService: InphotoIconCacheService;
|
|
1750
1976
|
readonly icons: typeof Icon;
|
|
1751
1977
|
showClass(): boolean;
|
|
1978
|
+
set disabledOptionIds(value: number[]);
|
|
1752
1979
|
optionClicked: EventEmitter<SideBarMenuOption>;
|
|
1753
1980
|
options: SideBarMenuOption[];
|
|
1754
1981
|
activeId: number;
|
|
1755
1982
|
constructor(iconService: InphotoIconCacheService);
|
|
1756
1983
|
select(option: SideBarMenuOption): void;
|
|
1757
1984
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideBarMenuComponent, never>;
|
|
1758
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarMenuComponent, "co-side-bar-menu", never, {}, { "optionClicked": "optionClicked"; }, never, never, false, never>;
|
|
1985
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarMenuComponent, "co-side-bar-menu", never, { "disabledOptionIds": { "alias": "disabledOptionIds"; "required": false; }; }, { "optionClicked": "optionClicked"; }, never, never, false, never>;
|
|
1759
1986
|
}
|
|
1760
1987
|
|
|
1761
1988
|
declare class SideBarMenuModule {
|
|
@@ -1766,8 +1993,8 @@ declare class SideBarMenuModule {
|
|
|
1766
1993
|
|
|
1767
1994
|
declare class InPhotoModule {
|
|
1768
1995
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoModule, never>;
|
|
1769
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InPhotoModule, [typeof InPhotoComponent], [typeof UploadStartingImageModule, typeof ErrorDialogModule, typeof ProcessLoaderModule, typeof PrepareStartingImageModule, typeof InphotoThreedsceneModule, typeof PhotoEditorModule, typeof EditCanvasModule, typeof SegmentInpaintModule, typeof
|
|
1996
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InPhotoModule, [typeof InPhotoComponent], [typeof UploadStartingImageModule, typeof ErrorDialogModule, typeof ProcessLoaderModule, typeof PrepareStartingImageModule, typeof InphotoThreedsceneModule, typeof PhotoEditorModule, typeof EditCanvasModule, typeof SegmentInpaintModule, typeof SideBarMenuModule, typeof InphotoCatalogModule], [typeof InPhotoComponent]>;
|
|
1770
1997
|
static ɵinj: i0.ɵɵInjectorDeclaration<InPhotoModule>;
|
|
1771
1998
|
}
|
|
1772
1999
|
|
|
1773
|
-
export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, UploadStartingImageComponent, UploadStartingImageModule };
|
|
2000
|
+
export { EditCanvasComponent, EditCanvasModule, ErrorDialogComponent, ErrorDialogModule, ImageEnhancer, ImageEnhancerModule, ImageEnhancerStyleComponent, ImageEnhancerStyleModule, ImageEnhancerUploadComponent, ImageEnhancerUploadModule, ImageHistoryComponent, ImageHistoryModule, ImageHistoryTileComponent, ImageHistoryTileModule, ImageUpload, ImageUploadModule, InPhotoComponent, InPhotoConnectorService, InPhotoModule, InphotoCatalogComponent, InphotoCatalogModule, InphotoSettingsService, InphotoThreedSceneComponent, InphotoThreedsceneModule, PhotoEditorComponent, PhotoEditorModule, PrepareStartingImageComponent, PrepareStartingImageModule, ProcessLoaderComponent, ProcessLoaderModule, UploadStartingImageComponent, UploadStartingImageModule };
|