@colijnit/inphoto 301.1.0 → 301.1.2
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 +7191 -6297
- 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 +518 -342
- package/lib/component/ai-prompt/style/_layout.scss +12 -1
- package/lib/component/ai-prompt/style/_material-definition.scss +1 -3
- package/lib/component/ai-prompt/style/_theme.scss +1 -6
- package/lib/component/canvas-tool-bar/style/_layout.scss +49 -4
- package/lib/component/canvas-tool-bar/style/_material-definition.scss +4 -1
- package/lib/component/canvas-tool-bar/style/_theme.scss +3 -22
- package/lib/component/catalog/style/_layout.scss +68 -68
- package/lib/component/catalog/style/_material-definition.scss +4 -0
- package/lib/component/catalog/style/_theme.scss +6 -6
- package/lib/component/edit-canvas/style/_layout.scss +2 -1
- package/lib/component/edit-canvas/style/_material-definition.scss +0 -2
- package/lib/component/edit-canvas/style/_theme.scss +1 -2
- 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 +3 -1
- 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 +8 -2
- package/lib/component/image-enhancer/style/_material-definition.scss +4 -1
- package/lib/component/image-enhancer/style/_theme.scss +2 -5
- package/lib/component/image-enhancer-style/style/_layout.scss +113 -30
- package/lib/component/image-enhancer-style/style/_material-definition.scss +28 -2
- package/lib/component/image-enhancer-style/style/_theme.scss +72 -10
- package/lib/component/image-enhancer-upload/style/_layout.scss +8 -3
- package/lib/component/image-enhancer-upload/style/_material-definition.scss +4 -4
- package/lib/component/image-enhancer-upload/style/_theme.scss +2 -4
- package/lib/component/image-history/style/_layout.scss +2 -4
- package/lib/component/image-history/style/_material-definition.scss +0 -2
- package/lib/component/image-history/style/_theme.scss +0 -5
- package/lib/component/image-history-tile/style/_layout.scss +2 -2
- package/lib/component/image-history-tile/style/_material-definition.scss +2 -0
- 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 +2 -1
- package/lib/component/image-overlay/style/_material-definition.scss +3 -0
- package/lib/component/image-overlay/style/_theme.scss +1 -1
- 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 +24 -24
- package/lib/component/image-tile/style/_material-definition.scss +18 -17
- package/lib/component/image-tile/style/_theme.scss +9 -9
- package/lib/component/image-upload/style/_layout.scss +4 -0
- package/lib/component/image-upload/style/_material-definition.scss +35 -35
- package/lib/component/image-upload/style/_theme.scss +0 -4
- package/lib/component/marker/style/_layout.scss +0 -1
- package/lib/component/marker/style/_material-definition.scss +12 -12
- package/lib/component/marker/style/_theme.scss +1 -0
- package/lib/component/marker/style/material.scss +3 -3
- package/lib/component/photo-editor/style/_layout.scss +34 -3
- package/lib/component/photo-editor/style/_material-definition.scss +6 -0
- package/lib/component/photo-editor/style/_theme.scss +15 -0
- package/lib/component/prepare-starting-image/style/_layout.scss +59 -0
- package/lib/component/prepare-starting-image/style/_material-definition.scss +7 -1
- package/lib/component/prepare-starting-image/style/_theme.scss +9 -1
- package/lib/component/process-loader/style/_layout.scss +6 -6
- package/lib/component/process-loader/style/_material-definition.scss +20 -2
- package/lib/component/process-loader/style/_theme.scss +31 -31
- 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 +12 -2
- package/lib/component/scene-context-menu/style/_material-definition.scss +9 -4
- package/lib/component/scene-context-menu/style/_theme.scss +9 -4
- package/lib/component/segment-inpaint/style/_layout.scss +23 -1
- package/lib/component/segment-inpaint/style/_material-definition.scss +9 -1
- package/lib/component/segment-inpaint/style/_theme.scss +44 -1
- package/lib/component/side-bar-menu/style/_layout.scss +5 -1
- package/lib/component/side-bar-menu/style/_material-definition.scss +1 -0
- package/lib/component/side-bar-menu/style/_theme.scss +32 -32
- package/lib/component/side-panel/style/_layout.scss +4 -1
- package/lib/component/side-panel/style/_material-definition.scss +5 -4
- package/lib/component/side-panel/style/_theme.scss +0 -3
- package/lib/component/step-tile/style/_layout.scss +21 -5
- package/lib/component/step-tile/style/_material-definition.scss +4 -4
- package/lib/component/step-tile/style/_theme.scss +1 -11
- package/lib/component/threedscene/style/_layout.scss +15 -5
- package/lib/component/threedscene/style/_material-definition.scss +5 -1
- package/lib/component/threedscene/style/_theme.scss +38 -0
- 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 -4
- 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';
|
|
@@ -20,21 +19,22 @@ import { ConfigurationResultObject, ConfiguringService, ConfiguratorEventService
|
|
|
20
19
|
import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
|
|
21
20
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
22
21
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
23
|
-
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
24
22
|
import * as i2 from '@colijnit/corecomponents_v12';
|
|
25
23
|
import * as i4 from '@angular/forms';
|
|
26
24
|
import * as i7 from '@angular/cdk/drag-drop';
|
|
27
25
|
import * as i4$1 from '@angular/common';
|
|
28
26
|
import * as i5 from '@colijnit/utilities';
|
|
27
|
+
import { Font } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
28
|
+
import { RenderConnectorService, RenderService, RenderEventService } from '@colijnit/render';
|
|
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>;
|
|
@@ -259,8 +295,8 @@ declare class InphotoSettingsService {
|
|
|
259
295
|
private _dictionary;
|
|
260
296
|
private _connectorAdapterService;
|
|
261
297
|
readonly languageCodeToDictionary: Map<string, string>;
|
|
262
|
-
get languageCode():
|
|
263
|
-
set languageCode(value:
|
|
298
|
+
get languageCode(): string;
|
|
299
|
+
set languageCode(value: string);
|
|
264
300
|
set settings(value: Settings);
|
|
265
301
|
get settings(): Settings;
|
|
266
302
|
settingsInitialized: BehaviorSubject<boolean>;
|
|
@@ -309,7 +345,7 @@ declare class InPhotoConnectorService {
|
|
|
309
345
|
uploadRoomImage(image: string, skipInpainting?: boolean): Promise<SceneBuildObject>;
|
|
310
346
|
processDecorateImage(canvasImage: string, style: EnhanceStyle): Promise<DecorateResponse>;
|
|
311
347
|
processEmptyRoom(canvasImage: string): Promise<CreatedImageResponse>;
|
|
312
|
-
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle): Promise<CreatedImageResponse>;
|
|
348
|
+
processMultiProductPlacement(canvasImage: string, productImages: string[], colorProducts: any[], customPrompt: string, customPromptMode: PromptStyle, aspect_ratio: AspectRatio, image_size: RenderSize): Promise<CreatedImageResponse>;
|
|
313
349
|
uploadSegmentationImage(image: string): Promise<JobIdResponse>;
|
|
314
350
|
handleSegmentationClick(jobId: string, point: SegmentationPoint): Promise<SegmentationResponse>;
|
|
315
351
|
segmentInpaint(image: string, jobId?: string): Promise<CreatedImageResponse>;
|
|
@@ -317,6 +353,7 @@ declare class InPhotoConnectorService {
|
|
|
317
353
|
getDecorationStyles(showLoader?: boolean): Promise<string[]>;
|
|
318
354
|
getRoomTypes(showLoader?: boolean): Promise<string[]>;
|
|
319
355
|
getObjectBasedSegmentation(image: string, showLoader?: boolean): Promise<SegmentationObject[]>;
|
|
356
|
+
inPhotoGenerate(image: string, prompt: string): Promise<CreatedImageResponse>;
|
|
320
357
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoConnectorService, never>;
|
|
321
358
|
static ɵprov: i0.ɵɵInjectableDeclaration<InPhotoConnectorService>;
|
|
322
359
|
}
|
|
@@ -324,6 +361,7 @@ declare class InPhotoConnectorService {
|
|
|
324
361
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
325
362
|
declare enum Icon {
|
|
326
363
|
AngleDownSolidFull = "angle_down_solid_full",
|
|
364
|
+
AngleRightSharpSolid = "angle_right_sharp_solid",
|
|
327
365
|
AngleUpSolidFull = "angle_up_solid_full",
|
|
328
366
|
ArrowDownSolidFull = "arrow_down_solid_full",
|
|
329
367
|
ArrowLeftSolidFull = "arrow_left_solid_full",
|
|
@@ -333,6 +371,7 @@ declare enum Icon {
|
|
|
333
371
|
ArrowUpRightAndArrowDownLeftFromCenterSolidFull = "arrow_up_right_and_arrow_down_left_from_center_solid_full",
|
|
334
372
|
ArrowUpToBracketDuotoneRegular = "arrow_up_to_bracket_duotone_regular",
|
|
335
373
|
BrushSolidFull = "brush_solid_full",
|
|
374
|
+
CameraSolidRegular = "camera_solid_regular",
|
|
336
375
|
CaretDownSolidFull = "caret_down_solid_full",
|
|
337
376
|
CaretUpSolidFull = "caret_up_solid_full",
|
|
338
377
|
CheckSolidFull = "check_solid_full",
|
|
@@ -345,6 +384,7 @@ declare enum Icon {
|
|
|
345
384
|
DrawSquareRegular = "draw_square_regular",
|
|
346
385
|
EraserRegular = "eraser_regular",
|
|
347
386
|
EraserSolidFull = "eraser_solid_full",
|
|
387
|
+
ExpandRegularFull = "expand_regular_full",
|
|
348
388
|
FileVectorLight = "file_vector_light",
|
|
349
389
|
FillSolidFull = "fill_solid_full",
|
|
350
390
|
GripDotsVerticalSolid = "grip_dots_vertical_solid",
|
|
@@ -395,187 +435,11 @@ declare class InphotoIconCacheService {
|
|
|
395
435
|
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoIconCacheService>;
|
|
396
436
|
}
|
|
397
437
|
|
|
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
438
|
declare class InphotoCatalogComponent implements OnInit, OnDestroy {
|
|
574
439
|
iconService: InphotoIconCacheService;
|
|
575
440
|
settingService: InphotoSettingsService;
|
|
576
441
|
appEventService: InphotoEventService;
|
|
577
442
|
connectorService: InPhotoConnectorService;
|
|
578
|
-
modelConfigurationService: ModelConfigurationService;
|
|
579
443
|
private _catalogService;
|
|
580
444
|
private _changeDetection;
|
|
581
445
|
readonly icons: typeof Icon;
|
|
@@ -595,16 +459,18 @@ declare class InphotoCatalogComponent implements OnInit, OnDestroy {
|
|
|
595
459
|
catalogInfo: ExternalCatalogStartupInfo;
|
|
596
460
|
externalCatalogName: string;
|
|
597
461
|
private _source;
|
|
598
|
-
|
|
462
|
+
private _is2D;
|
|
463
|
+
constructor(iconService: InphotoIconCacheService, settingService: InphotoSettingsService, appEventService: InphotoEventService, connectorService: InPhotoConnectorService, _catalogService: CatalogService, _changeDetection: ChangeDetectorRef);
|
|
599
464
|
ngOnInit(): Promise<void>;
|
|
600
465
|
ngOnDestroy(): void;
|
|
601
466
|
handleToggleShowOwnCollection(): void;
|
|
602
467
|
handleArticleClick(event: any): void;
|
|
603
468
|
handleExternalArticleClick(data: ExternalSourceArticleClickInterface, catalogInfo?: ExternalCatalogStartupInfo): void;
|
|
604
469
|
resetOpenCatalogs(): void;
|
|
605
|
-
handleShowCatalog(): void;
|
|
470
|
+
handleShowCatalog(is2D?: boolean): void;
|
|
606
471
|
handleCloseDialog(): void;
|
|
607
472
|
handleExternalSourceClick(source?: ExternalSourceViewmodel): Promise<void>;
|
|
473
|
+
handleCatalogsLoaded(loaded: boolean): void;
|
|
608
474
|
private _buildExternalCatalogRequest;
|
|
609
475
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoCatalogComponent, never>;
|
|
610
476
|
static ɵcmp: i0.ɵɵComponentDeclaration<InphotoCatalogComponent, "co-inphoto-catalog", never, {}, {}, never, never, false, never>;
|
|
@@ -651,6 +517,14 @@ declare class ImageData {
|
|
|
651
517
|
maskData: MaskStroke[];
|
|
652
518
|
}
|
|
653
519
|
|
|
520
|
+
declare class StyleEditorSelection {
|
|
521
|
+
roomType: string;
|
|
522
|
+
mode: string;
|
|
523
|
+
decorationStyle: string;
|
|
524
|
+
aspectRatio: AspectRatio;
|
|
525
|
+
renderSize: RenderSize;
|
|
526
|
+
}
|
|
527
|
+
|
|
654
528
|
declare class InphotoDataService {
|
|
655
529
|
private _appEventService;
|
|
656
530
|
/**
|
|
@@ -666,6 +540,7 @@ declare class InphotoDataService {
|
|
|
666
540
|
get progressingData(): ImageData[];
|
|
667
541
|
set activeCanvasColor(value: ColorPalette);
|
|
668
542
|
get activeCanvasColor(): ColorPalette;
|
|
543
|
+
styleEditorSelection: StyleEditorSelection;
|
|
669
544
|
private _canvasHasMask;
|
|
670
545
|
private _generatedImages;
|
|
671
546
|
private _processingData;
|
|
@@ -706,6 +581,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
706
581
|
get dragMode(): boolean;
|
|
707
582
|
set brushSize(value: number);
|
|
708
583
|
get brushSize(): number;
|
|
584
|
+
drawingDisabled: boolean;
|
|
709
585
|
set segmentationObjects(value: SegmentationObject[]);
|
|
710
586
|
get segmentationObjects(): SegmentationObject[];
|
|
711
587
|
onSegmentationPointClick: EventEmitter<SegmentationPoint>;
|
|
@@ -753,6 +629,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
753
629
|
changeCanvasCursor(icon: Icon): void;
|
|
754
630
|
startDrawing(event: MouseEvent): void;
|
|
755
631
|
draw(event: MouseEvent): void;
|
|
632
|
+
handleMouseLeave(): void;
|
|
756
633
|
stopDrawing(): void;
|
|
757
634
|
onWheel(event: WheelEvent): void;
|
|
758
635
|
zoomIn(): void;
|
|
@@ -779,6 +656,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
779
656
|
private _updateHoveredObject;
|
|
780
657
|
private _findSegmentationObjectAtPoint;
|
|
781
658
|
private _isPointInPolygon;
|
|
659
|
+
private _clearHoveredObject;
|
|
782
660
|
private _drawHoveredSegmentationObject;
|
|
783
661
|
private _applyHoveredObjectAsMask;
|
|
784
662
|
private _fillContours;
|
|
@@ -787,7 +665,7 @@ declare class EditCanvasComponent implements AfterViewInit {
|
|
|
787
665
|
private _setPlainCursor;
|
|
788
666
|
private _colorToString;
|
|
789
667
|
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>;
|
|
668
|
+
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
669
|
}
|
|
792
670
|
|
|
793
671
|
declare class EditCanvasModule {
|
|
@@ -895,15 +773,22 @@ declare class DecorationStyle {
|
|
|
895
773
|
constructor(label: string, description: string);
|
|
896
774
|
}
|
|
897
775
|
|
|
776
|
+
declare class AiImageStyleOption {
|
|
777
|
+
label: string;
|
|
778
|
+
value: string;
|
|
779
|
+
image: string;
|
|
780
|
+
constructor(label: string, value: string, image: string);
|
|
781
|
+
}
|
|
782
|
+
|
|
898
783
|
declare class ImageEnhancerStyleComponent implements OnInit {
|
|
899
784
|
connectorService: InPhotoConnectorService;
|
|
900
785
|
iconCacheService: InphotoIconCacheService;
|
|
901
786
|
private _changeDetection;
|
|
902
787
|
private _eventService;
|
|
788
|
+
private _dataService;
|
|
903
789
|
readonly icons: typeof Icon;
|
|
904
790
|
get showClass(): boolean;
|
|
905
791
|
canvasImage: string;
|
|
906
|
-
showInstructionTexts: boolean;
|
|
907
792
|
showResetButton: boolean;
|
|
908
793
|
generateStarted: EventEmitter<void>;
|
|
909
794
|
imageGenerated: EventEmitter<string>;
|
|
@@ -913,27 +798,32 @@ declare class ImageEnhancerStyleComponent implements OnInit {
|
|
|
913
798
|
showInputError: boolean;
|
|
914
799
|
loaded: boolean;
|
|
915
800
|
styleEnhancePrompt: EnhanceStyle;
|
|
916
|
-
selectedRoomStyle:
|
|
917
|
-
roomStyleCollection:
|
|
801
|
+
selectedRoomStyle: AiImageStyleOption;
|
|
802
|
+
roomStyleCollection: AiImageStyleOption[];
|
|
918
803
|
selectedMode: DecorationStyle;
|
|
919
804
|
modeCollection: DecorationStyle[];
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
805
|
+
aspectRatioModel: AspectRatio;
|
|
806
|
+
renderSizeModel: RenderSize;
|
|
807
|
+
decorationStyleCollection: AiImageStyleOption[];
|
|
808
|
+
selectedDecorationStyle: AiImageStyleOption;
|
|
809
|
+
constructor(connectorService: InPhotoConnectorService, iconCacheService: InphotoIconCacheService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _dataService: InphotoDataService);
|
|
923
810
|
ngOnInit(): Promise<void>;
|
|
924
|
-
|
|
811
|
+
handleRoomTypeChange(value: AiImageStyleOption): void;
|
|
925
812
|
handleChangeMode(event: DecorationStyle): void;
|
|
926
|
-
|
|
813
|
+
handleSelectionChange(): void;
|
|
927
814
|
handleGenerateClicked(): void;
|
|
928
815
|
handleStyleSelection(event: EnhanceStyle): void;
|
|
929
816
|
handleBackClicked(): void;
|
|
817
|
+
handleDecorationStyleChange(value: AiImageStyleOption): void;
|
|
818
|
+
private _restoreSelection;
|
|
930
819
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerStyleComponent, never>;
|
|
931
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEnhancerStyleComponent, "co-image-enhancer-style", never, { "canvasImage": { "alias": "canvasImage"; "required": false; }; "
|
|
820
|
+
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>;
|
|
932
821
|
}
|
|
933
822
|
|
|
934
823
|
declare class AiPromptComponent {
|
|
935
824
|
private _changeDetection;
|
|
936
825
|
showClass(): boolean;
|
|
826
|
+
showModeToggle: boolean;
|
|
937
827
|
customPrompt: string;
|
|
938
828
|
set promptMode(value: PromptStyle);
|
|
939
829
|
get promptMode(): PromptStyle;
|
|
@@ -941,14 +831,16 @@ declare class AiPromptComponent {
|
|
|
941
831
|
get showEmptyInputError(): boolean;
|
|
942
832
|
promptModeChange: EventEmitter<PromptStyle>;
|
|
943
833
|
customPromptChange: EventEmitter<string>;
|
|
834
|
+
showEmptyInputErrorChange: EventEmitter<boolean>;
|
|
944
835
|
toggleModel: boolean;
|
|
945
836
|
private _promptMode;
|
|
946
837
|
private _emptyInputError;
|
|
947
838
|
constructor(_changeDetection: ChangeDetectorRef);
|
|
948
839
|
handleUpdateModel(): void;
|
|
949
840
|
handlePromptChange(value: string): void;
|
|
841
|
+
private _clearEmptyInputError;
|
|
950
842
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiPromptComponent, never>;
|
|
951
|
-
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>;
|
|
843
|
+
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>;
|
|
952
844
|
}
|
|
953
845
|
|
|
954
846
|
declare class AiPromptModule {
|
|
@@ -957,9 +849,42 @@ declare class AiPromptModule {
|
|
|
957
849
|
static ɵinj: i0.ɵɵInjectorDeclaration<AiPromptModule>;
|
|
958
850
|
}
|
|
959
851
|
|
|
852
|
+
declare class LabelValue {
|
|
853
|
+
label: string;
|
|
854
|
+
value: string;
|
|
855
|
+
constructor(label: string, value: string);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
declare class ImageOutputSettingsComponent {
|
|
859
|
+
iconCacheService: InphotoIconCacheService;
|
|
860
|
+
readonly icons: typeof Icon;
|
|
861
|
+
get showClass(): boolean;
|
|
862
|
+
selectedRatio: LabelValue;
|
|
863
|
+
selectedSize: LabelValue;
|
|
864
|
+
set aspectRatio(value: AspectRatio);
|
|
865
|
+
get aspectRatio(): AspectRatio;
|
|
866
|
+
set renderSize(value: RenderSize);
|
|
867
|
+
get renderSize(): RenderSize;
|
|
868
|
+
aspectRatioChange: EventEmitter<AspectRatio>;
|
|
869
|
+
renderSizeChange: EventEmitter<RenderSize>;
|
|
870
|
+
listOfRatios: LabelValue[];
|
|
871
|
+
listOfSizes: LabelValue[];
|
|
872
|
+
constructor(iconCacheService: InphotoIconCacheService);
|
|
873
|
+
handleRatioChange(event: LabelValue): void;
|
|
874
|
+
handleSizeChange(event: LabelValue): void;
|
|
875
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOutputSettingsComponent, never>;
|
|
876
|
+
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>;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare class ImageOutputSettingsModule {
|
|
880
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageOutputSettingsModule, never>;
|
|
881
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageOutputSettingsModule, [typeof ImageOutputSettingsComponent], [typeof i2.IconModule, typeof i2.ListOfValuesModule, typeof PipeModule], [typeof ImageOutputSettingsComponent]>;
|
|
882
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ImageOutputSettingsModule>;
|
|
883
|
+
}
|
|
884
|
+
|
|
960
885
|
declare class ImageEnhancerStyleModule {
|
|
961
886
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerStyleModule, never>;
|
|
962
|
-
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]>;
|
|
887
|
+
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]>;
|
|
963
888
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerStyleModule>;
|
|
964
889
|
}
|
|
965
890
|
|
|
@@ -980,10 +905,13 @@ declare class ImageEnhancerUploadComponent {
|
|
|
980
905
|
backButtonClicked: EventEmitter<void>;
|
|
981
906
|
changeMarkerColor: EventEmitter<MaskImageColorInterface>;
|
|
982
907
|
showClass(): boolean;
|
|
983
|
-
|
|
908
|
+
get uploadedImages(): ImageData[];
|
|
909
|
+
get disableGenerateButton(): boolean;
|
|
984
910
|
customPrompt: string;
|
|
985
911
|
customPromptMode: PromptStyle;
|
|
986
912
|
showInputError: boolean;
|
|
913
|
+
aspectRatioModel: AspectRatio;
|
|
914
|
+
renderSizeModel: RenderSize;
|
|
987
915
|
constructor(dataService: InphotoDataService, iconCacheService: InphotoIconCacheService, _connectorService: InPhotoConnectorService);
|
|
988
916
|
handleImageUpload(event: File[]): void;
|
|
989
917
|
handleGenerateClicked(): void;
|
|
@@ -991,6 +919,7 @@ declare class ImageEnhancerUploadComponent {
|
|
|
991
919
|
handleBackClicked(): void;
|
|
992
920
|
handleDeleteImage(image: ImageData): void;
|
|
993
921
|
handleDeleteMask(data: ImageData): void;
|
|
922
|
+
getColorsUsedByOtherImages(image: ImageData): ColorPalette[];
|
|
994
923
|
handleChangeMarkerColor(color: ColorPalette, data: ImageData): void;
|
|
995
924
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerUploadComponent, never>;
|
|
996
925
|
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>;
|
|
@@ -1007,6 +936,7 @@ declare class ImageTileComponent {
|
|
|
1007
936
|
get activeItem(): boolean;
|
|
1008
937
|
set data(value: ImageData);
|
|
1009
938
|
get data(): ImageData;
|
|
939
|
+
usedColors: ColorPalette[];
|
|
1010
940
|
changeMarkerColor: EventEmitter<ColorPalette>;
|
|
1011
941
|
deleteImage: EventEmitter<ImageData>;
|
|
1012
942
|
deleteMask: EventEmitter<ImageData>;
|
|
@@ -1016,6 +946,7 @@ declare class ImageTileComponent {
|
|
|
1016
946
|
private _selectedColor;
|
|
1017
947
|
private _data;
|
|
1018
948
|
constructor(iconCacheService: InphotoIconCacheService, _dataService: InphotoDataService);
|
|
949
|
+
isUsedColor(color: ColorPalette): boolean;
|
|
1019
950
|
setMarkerColor(color: ColorPalette): void;
|
|
1020
951
|
handleContinueCurrentMask(): void;
|
|
1021
952
|
showColorPalette(): void;
|
|
@@ -1023,7 +954,7 @@ declare class ImageTileComponent {
|
|
|
1023
954
|
removeMask(): void;
|
|
1024
955
|
private _handleSetData;
|
|
1025
956
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageTileComponent, never>;
|
|
1026
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageTileComponent, "co-image-
|
|
957
|
+
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>;
|
|
1027
958
|
}
|
|
1028
959
|
|
|
1029
960
|
declare class ColorPaletteOptionComponent {
|
|
@@ -1034,12 +965,13 @@ declare class ColorPaletteOptionComponent {
|
|
|
1034
965
|
colorOption: ColorPalette;
|
|
1035
966
|
set selected(value: boolean);
|
|
1036
967
|
get selected(): boolean;
|
|
968
|
+
disabled: boolean;
|
|
1037
969
|
changeMarkerColor: EventEmitter<ColorPalette>;
|
|
1038
970
|
private _selected;
|
|
1039
971
|
constructor(iconCacheService: InphotoIconCacheService);
|
|
1040
972
|
setMarkerColor(color: ColorPalette): void;
|
|
1041
973
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPaletteOptionComponent, never>;
|
|
1042
|
-
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>;
|
|
974
|
+
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>;
|
|
1043
975
|
}
|
|
1044
976
|
|
|
1045
977
|
declare class ImageTileModule {
|
|
@@ -1050,7 +982,7 @@ declare class ImageTileModule {
|
|
|
1050
982
|
|
|
1051
983
|
declare class ImageEnhancerUploadModule {
|
|
1052
984
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEnhancerUploadModule, never>;
|
|
1053
|
-
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]>;
|
|
985
|
+
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]>;
|
|
1054
986
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageEnhancerUploadModule>;
|
|
1055
987
|
}
|
|
1056
988
|
|
|
@@ -1079,6 +1011,7 @@ declare class ImageHistoryComponent implements OnInit, AfterViewInit, OnDestroy
|
|
|
1079
1011
|
canScrollRight: boolean;
|
|
1080
1012
|
private _subs;
|
|
1081
1013
|
private _tilesObserver;
|
|
1014
|
+
private _observedTilesRow;
|
|
1082
1015
|
constructor(dataService: InphotoDataService, iconService: InphotoIconCacheService, _eventService: InphotoEventService);
|
|
1083
1016
|
ngOnInit(): void;
|
|
1084
1017
|
ngAfterViewInit(): void;
|
|
@@ -1162,20 +1095,28 @@ declare class ImageHistoryModule {
|
|
|
1162
1095
|
static ɵinj: i0.ɵɵInjectorDeclaration<ImageHistoryModule>;
|
|
1163
1096
|
}
|
|
1164
1097
|
|
|
1098
|
+
declare enum RedesignMode {
|
|
1099
|
+
style = 0,
|
|
1100
|
+
referenceImage = 1
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1165
1103
|
declare class PhotoEditorComponent implements OnDestroy {
|
|
1166
1104
|
iconService: InphotoIconCacheService;
|
|
1167
1105
|
dataService: InphotoDataService;
|
|
1168
1106
|
private _connectorService;
|
|
1169
1107
|
private _changeDetection;
|
|
1170
1108
|
private _eventService;
|
|
1109
|
+
private _errorService;
|
|
1171
1110
|
readonly icons: typeof Icon;
|
|
1172
1111
|
readonly FileTypes: typeof FileTypes;
|
|
1112
|
+
readonly redesignMode: typeof RedesignMode;
|
|
1173
1113
|
showClass(): boolean;
|
|
1114
|
+
mode: RedesignMode;
|
|
1174
1115
|
set image(value: string);
|
|
1175
1116
|
get image(): string;
|
|
1176
1117
|
get canvasImage(): string;
|
|
1177
1118
|
resetButtonClicked: EventEmitter<void>;
|
|
1178
|
-
|
|
1119
|
+
backToEditMenuClick: EventEmitter<string>;
|
|
1179
1120
|
startSegmentation: EventEmitter<string>;
|
|
1180
1121
|
showLoader: boolean;
|
|
1181
1122
|
loadingTexts: string[];
|
|
@@ -1187,26 +1128,27 @@ declare class PhotoEditorComponent implements OnDestroy {
|
|
|
1187
1128
|
private _image;
|
|
1188
1129
|
private _canvasImage;
|
|
1189
1130
|
private _subs;
|
|
1190
|
-
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService);
|
|
1131
|
+
constructor(iconService: InphotoIconCacheService, dataService: InphotoDataService, _connectorService: InPhotoConnectorService, _changeDetection: ChangeDetectorRef, _eventService: InphotoEventService, _errorService: ErrorService);
|
|
1191
1132
|
ngOnDestroy(): void;
|
|
1192
1133
|
toggleEraseMode(state: boolean): void;
|
|
1193
1134
|
toggleDragMode(value: boolean): void;
|
|
1194
1135
|
handleChangeBrushSize(size: number): void;
|
|
1195
1136
|
handleGenerateStarted(): void;
|
|
1196
1137
|
handleImageGenerated(image: string): void;
|
|
1138
|
+
handleBackClicked(): void;
|
|
1139
|
+
handleResetClicked(): void;
|
|
1197
1140
|
handleSetImageFromHistory(event: string): void;
|
|
1198
1141
|
handleEditIn3DFromHistory(image: string): void;
|
|
1199
1142
|
handleRemoveObjectsFromHistory(image: string): void;
|
|
1200
|
-
handleBackButtonClicked(): void;
|
|
1201
1143
|
handleImageUpload(event: File[]): void;
|
|
1202
1144
|
handleChangeMarkerColor(data: MaskImageColorInterface): void;
|
|
1203
1145
|
handleUpdateCanvasImage(image: string): void;
|
|
1204
1146
|
private _handleSetLoader;
|
|
1205
1147
|
private _handleImageResponse;
|
|
1206
1148
|
private _addToHistory;
|
|
1207
|
-
private
|
|
1149
|
+
private _handleError;
|
|
1208
1150
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorComponent, never>;
|
|
1209
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PhotoEditorComponent, "co-photo-editor", never, { "image": { "alias": "image"; "required": false; }; }, { "resetButtonClicked": "resetButtonClicked"; "
|
|
1151
|
+
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>;
|
|
1210
1152
|
}
|
|
1211
1153
|
|
|
1212
1154
|
declare class ProcessLoaderComponent implements OnDestroy {
|
|
@@ -1295,37 +1237,37 @@ declare class CanvasToolBarModule {
|
|
|
1295
1237
|
static ɵinj: i0.ɵɵInjectorDeclaration<CanvasToolBarModule>;
|
|
1296
1238
|
}
|
|
1297
1239
|
|
|
1298
|
-
declare class
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1240
|
+
declare class SidePanelComponent {
|
|
1241
|
+
iconService: InphotoIconCacheService;
|
|
1242
|
+
readonly icons: typeof Icon;
|
|
1243
|
+
showClass(): boolean;
|
|
1244
|
+
header: string;
|
|
1245
|
+
description: string;
|
|
1246
|
+
headerIcon: Icon;
|
|
1247
|
+
headerClass: string;
|
|
1248
|
+
onRestartClick: EventEmitter<void>;
|
|
1249
|
+
constructor(iconService: InphotoIconCacheService);
|
|
1250
|
+
cancel(): void;
|
|
1251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelComponent, never>;
|
|
1252
|
+
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>;
|
|
1302
1253
|
}
|
|
1303
1254
|
|
|
1304
|
-
declare class
|
|
1255
|
+
declare class HeaderComponent {
|
|
1305
1256
|
iconService: InphotoIconCacheService;
|
|
1306
|
-
private _connectorService;
|
|
1307
|
-
private _appEventService;
|
|
1308
1257
|
readonly icons: typeof Icon;
|
|
1309
1258
|
showClass(): boolean;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
handleClearAllObjects(): void;
|
|
1323
|
-
handleClearAllObjectsAndStart3D(): void;
|
|
1324
|
-
handleSelectToClearObjects(): void;
|
|
1325
|
-
handleContinueToAI(): void;
|
|
1326
|
-
private _handleRoomReceived;
|
|
1327
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1328
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PrepareStartingImageComponent, "co-prepare-starting-image", never, { "image": { "alias": "image"; "required": false; }; }, { "cancelClick": "cancelClick"; "processedRoom": "processedRoom"; "startSegmentation": "startSegmentation"; "imageReady": "imageReady"; "continueToAI": "continueToAI"; }, never, never, false, never>;
|
|
1259
|
+
headerIcon: Icon;
|
|
1260
|
+
header: string;
|
|
1261
|
+
description: string;
|
|
1262
|
+
constructor(iconService: InphotoIconCacheService);
|
|
1263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
1264
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "co-header", never, { "headerIcon": { "alias": "headerIcon"; "required": false; }; "header": { "alias": "header"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, never, false, never>;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
declare class HeaderModule {
|
|
1268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderModule, never>;
|
|
1269
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HeaderModule, [typeof HeaderComponent], [typeof i2.IconModule, typeof PipeModule], [typeof HeaderComponent]>;
|
|
1270
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HeaderModule>;
|
|
1329
1271
|
}
|
|
1330
1272
|
|
|
1331
1273
|
declare class StepTileComponent {
|
|
@@ -1355,79 +1297,297 @@ declare class StepTileModule {
|
|
|
1355
1297
|
static ɵinj: i0.ɵɵInjectorDeclaration<StepTileModule>;
|
|
1356
1298
|
}
|
|
1357
1299
|
|
|
1358
|
-
declare class
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
headerIcon: Icon;
|
|
1363
|
-
header: string;
|
|
1364
|
-
description: string;
|
|
1365
|
-
constructor(iconService: InphotoIconCacheService);
|
|
1366
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
1367
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "co-header", never, { "headerIcon": { "alias": "headerIcon"; "required": false; }; "header": { "alias": "header"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, never, false, never>;
|
|
1300
|
+
declare class SidePanelModule {
|
|
1301
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidePanelModule, never>;
|
|
1302
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SidePanelModule, [typeof SidePanelComponent], [typeof i2.ButtonModule, typeof HeaderModule, typeof PipeModule, typeof ProcessLoaderModule, typeof StepTileModule], [typeof SidePanelComponent]>;
|
|
1303
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SidePanelModule>;
|
|
1368
1304
|
}
|
|
1369
1305
|
|
|
1370
|
-
declare class
|
|
1371
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1372
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
1373
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
1306
|
+
declare class PhotoEditorModule {
|
|
1307
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhotoEditorModule, never>;
|
|
1308
|
+
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]>;
|
|
1309
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PhotoEditorModule>;
|
|
1374
1310
|
}
|
|
1375
1311
|
|
|
1376
|
-
|
|
1312
|
+
interface AiRedesignInterface {
|
|
1313
|
+
image: string;
|
|
1314
|
+
mode: RedesignMode;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
declare class PrepareStartingImageComponent implements OnDestroy {
|
|
1377
1318
|
iconService: InphotoIconCacheService;
|
|
1319
|
+
private _connectorService;
|
|
1320
|
+
private _dataService;
|
|
1321
|
+
private _errorService;
|
|
1322
|
+
private _changeDetection;
|
|
1378
1323
|
readonly icons: typeof Icon;
|
|
1324
|
+
readonly redesignMode: typeof RedesignMode;
|
|
1379
1325
|
showClass(): boolean;
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1326
|
+
image: string;
|
|
1327
|
+
cancelClick: EventEmitter<void>;
|
|
1328
|
+
startSegmentation: EventEmitter<string>;
|
|
1329
|
+
imageReady: EventEmitter<string>;
|
|
1330
|
+
continueToAI: EventEmitter<AiRedesignInterface>;
|
|
1331
|
+
customPrompt: string;
|
|
1332
|
+
disableSelectObjectsButton: boolean;
|
|
1333
|
+
showLoader: boolean;
|
|
1334
|
+
loadingTexts: string[];
|
|
1335
|
+
showInputError: boolean;
|
|
1336
|
+
showAILoader: boolean;
|
|
1337
|
+
loadingAIgenerationTexts: string[];
|
|
1338
|
+
private _subs;
|
|
1339
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _dataService: InphotoDataService, _errorService: ErrorService, _changeDetection: ChangeDetectorRef);
|
|
1340
|
+
ngOnDestroy(): void;
|
|
1341
|
+
handleCancelClick(): void;
|
|
1342
|
+
handleGenerateClicked(): void;
|
|
1343
|
+
handleClearAllObjectsAndStart3D(): void;
|
|
1344
|
+
handleSelectToClearObjects(): void;
|
|
1345
|
+
handleContinueToAI(mode: RedesignMode): void;
|
|
1346
|
+
private _handleError;
|
|
1347
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageComponent, never>;
|
|
1348
|
+
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>;
|
|
1395
1349
|
}
|
|
1396
1350
|
|
|
1397
1351
|
declare class PrepareStartingImageModule {
|
|
1398
1352
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrepareStartingImageModule, never>;
|
|
1399
|
-
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]>;
|
|
1353
|
+
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 AiPromptModule], [typeof PrepareStartingImageComponent]>;
|
|
1400
1354
|
static ɵinj: i0.ɵɵInjectorDeclaration<PrepareStartingImageModule>;
|
|
1401
1355
|
}
|
|
1402
1356
|
|
|
1403
|
-
declare class
|
|
1357
|
+
declare class InphotoItemService implements OnDestroy {
|
|
1358
|
+
set selectedObject(value: ArticleConfiguration | undefined);
|
|
1359
|
+
get selectedObject(): ArticleConfiguration | undefined;
|
|
1360
|
+
set floorPlane(plane: Mesh);
|
|
1361
|
+
get floorPlane(): Mesh;
|
|
1362
|
+
set wallPlanes(planes: Mesh[]);
|
|
1363
|
+
get wallPlanes(): Mesh[];
|
|
1364
|
+
set floorItems(items: ArticleConfiguration[]);
|
|
1365
|
+
get floorItems(): ArticleConfiguration[];
|
|
1366
|
+
set floorBounds(value: Box3);
|
|
1367
|
+
get floorBounds(): Box3;
|
|
1368
|
+
set imageItems(items: ArticleConfiguration[]);
|
|
1369
|
+
get imageItems(): ArticleConfiguration[];
|
|
1370
|
+
private _selectedObject;
|
|
1371
|
+
private _floorItems;
|
|
1372
|
+
private _imageItems;
|
|
1373
|
+
private _floorPlane;
|
|
1374
|
+
private _wallPlanes;
|
|
1375
|
+
private _floorBounds;
|
|
1376
|
+
ngOnDestroy(): void;
|
|
1377
|
+
clear(): void;
|
|
1378
|
+
addFloorItem(item: ArticleConfiguration): void;
|
|
1379
|
+
removeFloorItem(item: ArticleConfiguration): void;
|
|
1380
|
+
addImageItem(item: ArticleConfiguration): void;
|
|
1381
|
+
removeImageItem(item: ArticleConfiguration): void;
|
|
1382
|
+
getFloorCenter(): Vector3;
|
|
1383
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoItemService, never>;
|
|
1384
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoItemService>;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
declare class InphotoSceneService implements OnDestroy {
|
|
1388
|
+
private _objectsService;
|
|
1389
|
+
set needsRender(render: boolean);
|
|
1390
|
+
get needsRender(): boolean;
|
|
1391
|
+
set sceneHasImage(value: boolean);
|
|
1392
|
+
get sceneHasImage(): boolean;
|
|
1393
|
+
container: ElementRef<HTMLDivElement>;
|
|
1394
|
+
scene: Scene;
|
|
1395
|
+
camera: PerspectiveCamera;
|
|
1396
|
+
renderer: WebGLRenderer;
|
|
1397
|
+
imageWidth: number;
|
|
1398
|
+
imageHeight: number;
|
|
1399
|
+
private _sceneHasImage;
|
|
1400
|
+
private _placementMarker;
|
|
1401
|
+
private _needsRender;
|
|
1402
|
+
constructor(_objectsService: InphotoItemService);
|
|
1403
|
+
ngOnDestroy(): void;
|
|
1404
|
+
init(element: ElementRef<HTMLDivElement>): void;
|
|
1405
|
+
resize(width: number, height: number): void;
|
|
1406
|
+
getSceneAsImage(overlayCanvas?: HTMLCanvasElement): string;
|
|
1407
|
+
addObjectToScene(result: ArticleConfiguration): void;
|
|
1408
|
+
placeObject(object: Object3D): void;
|
|
1409
|
+
getObjectByUUID(uuid: string): Object3D | undefined;
|
|
1410
|
+
removeObject(object: Object3D): void;
|
|
1411
|
+
addFloorToScene(floorMesh: Mesh): void;
|
|
1412
|
+
addWallsToScene(wallMeshes: Mesh[]): void;
|
|
1413
|
+
setPlacementMarker(marker: Object3D | null): void;
|
|
1414
|
+
private _prepLights;
|
|
1415
|
+
private _animate;
|
|
1416
|
+
private _render;
|
|
1417
|
+
private _animateMarker;
|
|
1418
|
+
private _onResize;
|
|
1419
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoSceneService, never>;
|
|
1420
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoSceneService>;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
declare class InphotoFontService {
|
|
1424
|
+
hudFont: Font;
|
|
1425
|
+
monospaceFont: Font;
|
|
1426
|
+
constructor();
|
|
1427
|
+
private _loadFont;
|
|
1428
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoFontService, never>;
|
|
1429
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoFontService>;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
declare class InphotoHudService implements OnDestroy {
|
|
1433
|
+
private _appEventService;
|
|
1434
|
+
private _sceneService;
|
|
1435
|
+
private _fontService;
|
|
1436
|
+
private _selectedItem;
|
|
1437
|
+
private _rotationHelper;
|
|
1438
|
+
private _subs;
|
|
1439
|
+
private _mouseover;
|
|
1440
|
+
private _rotating;
|
|
1441
|
+
constructor(_appEventService: InphotoEventService, _sceneService: InphotoSceneService, _fontService: InphotoFontService);
|
|
1442
|
+
ngOnDestroy(): void;
|
|
1443
|
+
update(force?: boolean): void;
|
|
1444
|
+
getRotationSnapperArea(): Object3D | null;
|
|
1445
|
+
getSelectedCenter(): Vector3 | null;
|
|
1446
|
+
setMouseOver(on: boolean): void;
|
|
1447
|
+
setRotating(on: boolean): void;
|
|
1448
|
+
private _applySceneUpdates;
|
|
1449
|
+
private _unselectItem;
|
|
1450
|
+
private _selectItem;
|
|
1451
|
+
private _resetSelectedItem;
|
|
1452
|
+
private _createRotationHelper;
|
|
1453
|
+
private _setColor;
|
|
1454
|
+
private _addToScene;
|
|
1455
|
+
private _removeRotationHelper;
|
|
1456
|
+
private _removeFromScene;
|
|
1457
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoHudService, never>;
|
|
1458
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoHudService>;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
declare enum InteractionMode {
|
|
1462
|
+
Move = "move",
|
|
1463
|
+
Rotate = "rotate"
|
|
1464
|
+
}
|
|
1465
|
+
declare class InphotoInteractionService implements OnDestroy {
|
|
1466
|
+
objectsService: InphotoItemService;
|
|
1467
|
+
private _sceneService;
|
|
1468
|
+
private _appEventService;
|
|
1469
|
+
private _hudService;
|
|
1470
|
+
mouse: Vector2;
|
|
1471
|
+
raycaster: Raycaster;
|
|
1472
|
+
lastMousePosition: Vector2;
|
|
1473
|
+
isDragging: boolean;
|
|
1474
|
+
dragOffset: Vector3;
|
|
1475
|
+
mode: InteractionMode;
|
|
1476
|
+
rotationSensitivity: number;
|
|
1477
|
+
isPlacing: boolean;
|
|
1478
|
+
placementLocked: boolean;
|
|
1479
|
+
private _camera;
|
|
1480
|
+
private _scene;
|
|
1481
|
+
private _renderer;
|
|
1482
|
+
private _placementMarker;
|
|
1483
|
+
private _placementPosition;
|
|
1484
|
+
private _placementNormal;
|
|
1485
|
+
constructor(objectsService: InphotoItemService, _sceneService: InphotoSceneService, _appEventService: InphotoEventService, _hudService: InphotoHudService);
|
|
1486
|
+
ngOnDestroy(): void;
|
|
1487
|
+
init(scene: Scene, camera: PerspectiveCamera, renderer: WebGLRenderer): void;
|
|
1488
|
+
setMode(mode: InteractionMode): void;
|
|
1489
|
+
onMouseUp(event: MouseEvent): void;
|
|
1490
|
+
onMouseDown(event: MouseEvent): void;
|
|
1491
|
+
handlePointerDown(event: MouseEvent): void;
|
|
1492
|
+
onMouseMove(event: MouseEvent): void;
|
|
1493
|
+
startPlacement(): void;
|
|
1494
|
+
endPlacement(): {
|
|
1495
|
+
position: Vector3;
|
|
1496
|
+
normal: Vector3;
|
|
1497
|
+
};
|
|
1498
|
+
private _clearPlacementMarker;
|
|
1499
|
+
private _floorHitFromEvent;
|
|
1500
|
+
private _moveMarkerTo;
|
|
1501
|
+
private _rotateByDrag;
|
|
1502
|
+
private _applyYRotation;
|
|
1503
|
+
updateMousePosition(event: MouseEvent): void;
|
|
1504
|
+
handleFurnitureHit(furniture: ArticleConfiguration): void;
|
|
1505
|
+
handlePlacement(object: Object3D, targetPosition?: Vector3, targetNormal?: Vector3): Object3D;
|
|
1506
|
+
makeItStick(yRotation: number): void;
|
|
1507
|
+
private _bindObjectToFloorBounds;
|
|
1508
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoInteractionService, never>;
|
|
1509
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InphotoInteractionService>;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
declare class Image2DPlacementComponent implements AfterViewInit {
|
|
1513
|
+
private _interactionService;
|
|
1514
|
+
showClass(): boolean;
|
|
1515
|
+
canvas: ElementRef<HTMLCanvasElement>;
|
|
1516
|
+
set items(value: ArticleConfiguration[]);
|
|
1517
|
+
get items(): ArticleConfiguration[];
|
|
1518
|
+
set width(value: number);
|
|
1519
|
+
get width(): number;
|
|
1520
|
+
set height(value: number);
|
|
1521
|
+
get height(): number;
|
|
1522
|
+
imageSelected: EventEmitter<ArticleConfiguration>;
|
|
1523
|
+
imageDeselected: EventEmitter<void>;
|
|
1524
|
+
private _items;
|
|
1525
|
+
private _width;
|
|
1526
|
+
private _height;
|
|
1527
|
+
private _ctx;
|
|
1528
|
+
private _canvasReady;
|
|
1529
|
+
private _imageCache;
|
|
1530
|
+
private _loadedImageSourceByUuid;
|
|
1531
|
+
private _selectedItem;
|
|
1532
|
+
private _dragging;
|
|
1533
|
+
private _dragOffsetX;
|
|
1534
|
+
private _dragOffsetY;
|
|
1535
|
+
constructor(_interactionService: InphotoInteractionService);
|
|
1536
|
+
ngAfterViewInit(): void;
|
|
1537
|
+
getCanvasElement(): HTMLCanvasElement;
|
|
1538
|
+
refresh(): void;
|
|
1539
|
+
onMouseDown(event: MouseEvent): void;
|
|
1540
|
+
onMouseMove(event: MouseEvent): void;
|
|
1541
|
+
onMouseUp(): void;
|
|
1542
|
+
private _syncImageCache;
|
|
1543
|
+
private _loadImageForItem;
|
|
1544
|
+
private _applyDefaultScale;
|
|
1545
|
+
private _applyCanvasSize;
|
|
1546
|
+
private _hitTest;
|
|
1547
|
+
private _getBounds;
|
|
1548
|
+
private _isInsideBounds;
|
|
1549
|
+
private _uuidOf;
|
|
1550
|
+
private _transformOf;
|
|
1551
|
+
private _getCanvasCoords;
|
|
1552
|
+
private _setCursor;
|
|
1553
|
+
private _render;
|
|
1554
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Image2DPlacementComponent, never>;
|
|
1555
|
+
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>;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
declare class InphotoThreedSceneComponent implements AfterViewInit, OnDestroy {
|
|
1404
1559
|
iconService: InphotoIconCacheService;
|
|
1560
|
+
objectsService: InphotoItemService;
|
|
1405
1561
|
private _interactionService;
|
|
1406
1562
|
private _sceneService;
|
|
1407
|
-
private _objectsService;
|
|
1408
1563
|
private _appEventService;
|
|
1409
1564
|
private _settingsService;
|
|
1410
1565
|
private _configuringService;
|
|
1411
1566
|
private _configuratorEventService;
|
|
1412
1567
|
private _cdk;
|
|
1568
|
+
private _renderConnectorService;
|
|
1569
|
+
private _renderService;
|
|
1570
|
+
private _renderEventService;
|
|
1571
|
+
private _errorService;
|
|
1413
1572
|
private _inphotoHudService;
|
|
1414
1573
|
readonly icons: typeof Icon;
|
|
1574
|
+
readonly RedesignMode: typeof RedesignMode;
|
|
1415
1575
|
showClass(): boolean;
|
|
1416
1576
|
container: ElementRef<HTMLDivElement>;
|
|
1417
1577
|
sceneContainer: ElementRef<HTMLDivElement>;
|
|
1578
|
+
imageOverlayComponent: Image2DPlacementComponent;
|
|
1418
1579
|
set room(value: SceneBuildObject);
|
|
1419
1580
|
get room(): SceneBuildObject;
|
|
1420
1581
|
debug: boolean;
|
|
1421
|
-
startAiDecoration: EventEmitter<
|
|
1582
|
+
startAiDecoration: EventEmitter<AiRedesignInterface>;
|
|
1422
1583
|
startSegmentation: EventEmitter<string>;
|
|
1423
|
-
openCatalog: EventEmitter<
|
|
1584
|
+
openCatalog: EventEmitter<boolean>;
|
|
1424
1585
|
closeClick: EventEmitter<void>;
|
|
1425
1586
|
configuratorSettings: any;
|
|
1426
1587
|
configuratorSku: string;
|
|
1427
1588
|
configuratorInstanceId: string;
|
|
1428
1589
|
firstBuild: boolean;
|
|
1429
1590
|
loadConfigurator: boolean;
|
|
1430
|
-
showConfiguratorSideBar: boolean;
|
|
1431
1591
|
showWallOptions: boolean;
|
|
1432
1592
|
wallMarkers: {
|
|
1433
1593
|
x: number;
|
|
@@ -1442,26 +1602,38 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1442
1602
|
uuid: string;
|
|
1443
1603
|
}[];
|
|
1444
1604
|
selectedFloorUuid: string | null;
|
|
1605
|
+
show2DImageOverlay: boolean;
|
|
1606
|
+
overlayWidth: number;
|
|
1607
|
+
overlayHeight: number;
|
|
1608
|
+
overlayLeft: number;
|
|
1609
|
+
overlayTop: number;
|
|
1610
|
+
showRenderLoader: boolean;
|
|
1611
|
+
loadingTexts: string[];
|
|
1612
|
+
private readonly _copyOffset2D;
|
|
1445
1613
|
private _room;
|
|
1446
1614
|
private _sceneReady;
|
|
1447
1615
|
private _currentArticleConfiguration;
|
|
1448
|
-
private _userActionNeeded;
|
|
1449
1616
|
private _subs;
|
|
1450
|
-
|
|
1617
|
+
private _pendingImageArticleConfiguration;
|
|
1618
|
+
private _pendingImageIsReconfigure;
|
|
1619
|
+
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);
|
|
1451
1620
|
ngAfterViewInit(): void;
|
|
1621
|
+
ngOnDestroy(): void;
|
|
1452
1622
|
init(): void;
|
|
1453
1623
|
set currentArticleConfiguration(value: ArticleConfiguration);
|
|
1454
1624
|
get currentArticleConfiguration(): ArticleConfiguration;
|
|
1455
1625
|
handleCancelClick(): void;
|
|
1456
|
-
handleOpenCatalog(): void;
|
|
1626
|
+
handleOpenCatalog(is2D?: boolean): void;
|
|
1457
1627
|
setBackgroundImage(url: string): void;
|
|
1458
1628
|
handleConfigureObjectClick(articleConfiguration: ArticleConfiguration): void;
|
|
1459
1629
|
handleObjectScaleClick(articleConfiguration: ArticleConfiguration): void;
|
|
1630
|
+
handleCopyObject(articleConfiguration: ArticleConfiguration): void;
|
|
1460
1631
|
handleDeleteObject(articleConfiguration: ArticleConfiguration): void;
|
|
1461
1632
|
showConfiguratorChange(show: boolean): void;
|
|
1462
1633
|
handleChangeObjectScale(scale: Vector3): void;
|
|
1463
|
-
|
|
1464
|
-
|
|
1634
|
+
handle2DImageSelected(articleConfiguration: ArticleConfiguration): void;
|
|
1635
|
+
handle2DImageDeselected(): void;
|
|
1636
|
+
handleThreedToAi(mode: RedesignMode): void;
|
|
1465
1637
|
handleSegmentationClick(): void;
|
|
1466
1638
|
handleShowWallOptions(): void;
|
|
1467
1639
|
handleShowFloorOptions(): void;
|
|
@@ -1471,12 +1643,27 @@ declare class InphotoThreedSceneComponent implements AfterViewInit {
|
|
|
1471
1643
|
private _getMarkersForMeshType;
|
|
1472
1644
|
private _getMeshesByType;
|
|
1473
1645
|
private _worldPositionToContainerPixel;
|
|
1646
|
+
private _updateOverlayCanvasRect;
|
|
1647
|
+
private _getOverlayCanvasForMerge;
|
|
1474
1648
|
private _addArticleToScene;
|
|
1475
1649
|
private _prepareSettings;
|
|
1476
1650
|
private _handleFirstBuild;
|
|
1477
1651
|
private _handleBuildResult;
|
|
1652
|
+
private _handleReconfigure2DImage;
|
|
1478
1653
|
private _continueConfiguration;
|
|
1654
|
+
private _copy3DObject;
|
|
1655
|
+
private _copy2DImage;
|
|
1656
|
+
private _copyArticleConfiguration;
|
|
1657
|
+
private _cloneUserData;
|
|
1658
|
+
private _selectObject;
|
|
1659
|
+
private _setConfiguratorArticle;
|
|
1660
|
+
private _handleArticleNotFound;
|
|
1479
1661
|
private _resetConfigurator;
|
|
1662
|
+
private _handleCreateRender;
|
|
1663
|
+
private _handleRenderFailed;
|
|
1664
|
+
private _handleRenderResult;
|
|
1665
|
+
private _createNewPlacement2D;
|
|
1666
|
+
private _createStubFromPlacement;
|
|
1480
1667
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedSceneComponent, never>;
|
|
1481
1668
|
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>;
|
|
1482
1669
|
}
|
|
@@ -1491,11 +1678,15 @@ declare class SceneContextMenuComponent implements OnDestroy {
|
|
|
1491
1678
|
copyObject: EventEmitter<ArticleConfiguration>;
|
|
1492
1679
|
scaleObject: EventEmitter<ArticleConfiguration>;
|
|
1493
1680
|
deleteObject: EventEmitter<ArticleConfiguration>;
|
|
1681
|
+
updateObjectScale: EventEmitter<Vector3>;
|
|
1494
1682
|
activeItem: 'move' | 'rotate' | null;
|
|
1683
|
+
isSelected2D: boolean;
|
|
1684
|
+
showScaleDialog: boolean;
|
|
1495
1685
|
articleName: string;
|
|
1496
1686
|
showContextMenu: boolean;
|
|
1497
1687
|
private _subs;
|
|
1498
1688
|
private _articleConfiguration;
|
|
1689
|
+
get articleConfiguration(): ArticleConfiguration;
|
|
1499
1690
|
constructor(iconService: InphotoIconCacheService, _appEventService: InphotoEventService, _interactionService: InphotoInteractionService);
|
|
1500
1691
|
ngOnDestroy(): void;
|
|
1501
1692
|
handleMovementClick(): void;
|
|
@@ -1507,19 +1698,16 @@ declare class SceneContextMenuComponent implements OnDestroy {
|
|
|
1507
1698
|
setArticleConfiguration(article: ArticleConfiguration): void;
|
|
1508
1699
|
closeMenu(): void;
|
|
1509
1700
|
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuComponent, never>;
|
|
1510
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SceneContextMenuComponent, "co-scene-context-menu", never, {}, { "configureObject": "configureObject"; "copyObject": "copyObject"; "scaleObject": "scaleObject"; "deleteObject": "deleteObject"; }, never, never, false, never>;
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
declare class SceneContextMenuModule {
|
|
1514
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuModule, never>;
|
|
1515
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SceneContextMenuModule, [typeof SceneContextMenuComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule], [typeof SceneContextMenuComponent]>;
|
|
1516
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SceneContextMenuModule>;
|
|
1701
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SceneContextMenuComponent, "co-scene-context-menu", never, {}, { "configureObject": "configureObject"; "copyObject": "copyObject"; "scaleObject": "scaleObject"; "deleteObject": "deleteObject"; "updateObjectScale": "updateObjectScale"; }, never, never, false, never>;
|
|
1517
1702
|
}
|
|
1518
1703
|
|
|
1519
|
-
declare class
|
|
1704
|
+
declare class ScaleDialogComponent implements OnDestroy {
|
|
1520
1705
|
iconService: InphotoIconCacheService;
|
|
1521
1706
|
private _eventService;
|
|
1522
1707
|
readonly icons: typeof Icon;
|
|
1708
|
+
readonly minScale: number;
|
|
1709
|
+
readonly maxScale: number;
|
|
1710
|
+
readonly scaleStep: number;
|
|
1523
1711
|
showClass(): boolean;
|
|
1524
1712
|
set item(value: ArticleConfiguration);
|
|
1525
1713
|
get item(): ArticleConfiguration;
|
|
@@ -1537,14 +1725,21 @@ declare class ConfigurationSideBarMenuComponent implements OnDestroy {
|
|
|
1537
1725
|
onScaleSingleAxis(event: Event): void;
|
|
1538
1726
|
handleCloseClick(): void;
|
|
1539
1727
|
private _setProperties;
|
|
1540
|
-
|
|
1541
|
-
static
|
|
1728
|
+
private _round;
|
|
1729
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScaleDialogComponent, never>;
|
|
1730
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScaleDialogComponent, "co-scale-dialog", never, { "item": { "alias": "item"; "required": false; }; }, { "updateObjectScale": "updateObjectScale"; "closeClick": "closeClick"; }, never, never, false, never>;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
declare class ScaleDialogModule {
|
|
1734
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScaleDialogModule, never>;
|
|
1735
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ScaleDialogModule, [typeof ScaleDialogComponent], [typeof i4.FormsModule, typeof PipeModule, typeof i2.IconModule, typeof i2.ButtonModule], [typeof ScaleDialogComponent]>;
|
|
1736
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ScaleDialogModule>;
|
|
1542
1737
|
}
|
|
1543
1738
|
|
|
1544
|
-
declare class
|
|
1545
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1546
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
1547
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
1739
|
+
declare class SceneContextMenuModule {
|
|
1740
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SceneContextMenuModule, never>;
|
|
1741
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SceneContextMenuModule, [typeof SceneContextMenuComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ScaleDialogModule], [typeof SceneContextMenuComponent]>;
|
|
1742
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SceneContextMenuModule>;
|
|
1548
1743
|
}
|
|
1549
1744
|
|
|
1550
1745
|
declare class MarkerComponent {
|
|
@@ -1566,9 +1761,15 @@ declare class MarkerModule {
|
|
|
1566
1761
|
static ɵinj: i0.ɵɵInjectorDeclaration<MarkerModule>;
|
|
1567
1762
|
}
|
|
1568
1763
|
|
|
1764
|
+
declare class Image2DPlacementModule {
|
|
1765
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Image2DPlacementModule, never>;
|
|
1766
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<Image2DPlacementModule, [typeof Image2DPlacementComponent], never, [typeof Image2DPlacementComponent]>;
|
|
1767
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<Image2DPlacementModule>;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1569
1770
|
declare class InphotoThreedsceneModule {
|
|
1570
1771
|
static ɵfac: i0.ɵɵFactoryDeclaration<InphotoThreedsceneModule, never>;
|
|
1571
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InphotoThreedsceneModule, [typeof InphotoThreedSceneComponent], [typeof ImageUploadModule, typeof i2.ButtonModule, typeof PipeModule, typeof InphotoCatalogModule, typeof i2.IconModule, typeof i6.ConfiguratorModule, typeof SceneContextMenuModule, typeof
|
|
1772
|
+
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]>;
|
|
1572
1773
|
static ɵinj: i0.ɵɵInjectorDeclaration<InphotoThreedsceneModule>;
|
|
1573
1774
|
}
|
|
1574
1775
|
|
|
@@ -1626,13 +1827,16 @@ declare class AppInitializerService {
|
|
|
1626
1827
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppInitializerService>;
|
|
1627
1828
|
}
|
|
1628
1829
|
|
|
1629
|
-
declare class InPhotoComponent {
|
|
1830
|
+
declare class InPhotoComponent implements OnDestroy {
|
|
1630
1831
|
appInitializerService: AppInitializerService;
|
|
1631
1832
|
appEventService: InphotoEventService;
|
|
1632
1833
|
private _cdk;
|
|
1633
1834
|
private _dataService;
|
|
1835
|
+
readonly catalogMenuOptionIds: number[];
|
|
1836
|
+
readonly noMenuOptionIds: number[];
|
|
1634
1837
|
showClass(): boolean;
|
|
1635
1838
|
set settings(input: any);
|
|
1839
|
+
set image(value: string);
|
|
1636
1840
|
debug: boolean;
|
|
1637
1841
|
set useMockRoomData(value: boolean);
|
|
1638
1842
|
showImageUpload: boolean;
|
|
@@ -1645,31 +1849,34 @@ declare class InPhotoComponent {
|
|
|
1645
1849
|
uploadedImage: string;
|
|
1646
1850
|
preparedImage: string;
|
|
1647
1851
|
aiDecorationImage: string;
|
|
1852
|
+
aiDecorationMode: RedesignMode;
|
|
1648
1853
|
roomData: SceneBuildObject;
|
|
1649
1854
|
segmentImage: string;
|
|
1855
|
+
private _subs;
|
|
1650
1856
|
constructor(appInitializerService: AppInitializerService, appEventService: InphotoEventService, _cdk: ChangeDetectorRef, _dataService: InphotoDataService);
|
|
1857
|
+
ngOnDestroy(): void;
|
|
1651
1858
|
private _createMockSceneBuildObject;
|
|
1652
1859
|
handleCancelClick(): void;
|
|
1653
1860
|
startPoint(): void;
|
|
1654
1861
|
handleImageUpload(image: string): void;
|
|
1655
|
-
handleProcessedRoom(roomData: SceneBuildObject): void;
|
|
1656
1862
|
handleStart3D(data: SceneBuildObject): void;
|
|
1657
1863
|
handleSegmentationJob(image: string): void;
|
|
1658
1864
|
handleSegmentOutput(image: string): void;
|
|
1659
1865
|
handleCancelSegmentClick(): void;
|
|
1660
1866
|
handleMenuChange(event: any): void;
|
|
1661
|
-
handleAiDecoration(
|
|
1867
|
+
handleAiDecoration(data: AiRedesignInterface): void;
|
|
1662
1868
|
handleCancelCompleteClick(): void;
|
|
1663
1869
|
closeReadyToOpen(): void;
|
|
1664
|
-
handleOpenCatalog(): void;
|
|
1870
|
+
handleOpenCatalog(is2D?: boolean): void;
|
|
1665
1871
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoComponent, never>;
|
|
1666
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InPhotoComponent, "co-inphoto", never, { "settings": { "alias": "settings"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "useMockRoomData": { "alias": "useMockRoomData"; "required": false; }; }, {}, never, never, false, never>;
|
|
1872
|
+
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>;
|
|
1667
1873
|
}
|
|
1668
1874
|
|
|
1669
1875
|
declare enum SegmentationType {
|
|
1670
1876
|
Yolo = "yolo",
|
|
1671
1877
|
Click = "click",
|
|
1672
|
-
Manual = "manual"
|
|
1878
|
+
Manual = "manual",
|
|
1879
|
+
Auto = "auto"
|
|
1673
1880
|
}
|
|
1674
1881
|
|
|
1675
1882
|
interface SegmentationJob {
|
|
@@ -1678,16 +1885,18 @@ interface SegmentationJob {
|
|
|
1678
1885
|
segmentationType: SegmentationType;
|
|
1679
1886
|
}
|
|
1680
1887
|
|
|
1681
|
-
declare class SegmentInpaintComponent {
|
|
1888
|
+
declare class SegmentInpaintComponent implements OnDestroy {
|
|
1682
1889
|
iconService: InphotoIconCacheService;
|
|
1683
1890
|
private _connectorService;
|
|
1684
1891
|
private _loaderService;
|
|
1892
|
+
private _errorService;
|
|
1893
|
+
private _dataService;
|
|
1685
1894
|
readonly icons: typeof Icon;
|
|
1686
1895
|
readonly SegmentationType: typeof SegmentationType;
|
|
1687
1896
|
showClass(): boolean;
|
|
1688
1897
|
set image(value: string);
|
|
1689
1898
|
get image(): string;
|
|
1690
|
-
|
|
1899
|
+
backToEditMenuClick: EventEmitter<string>;
|
|
1691
1900
|
preparedImage: EventEmitter<string>;
|
|
1692
1901
|
segmentationInPaintingData: any;
|
|
1693
1902
|
canvasInPaint: boolean;
|
|
@@ -1703,20 +1912,23 @@ declare class SegmentInpaintComponent {
|
|
|
1703
1912
|
segmentationObjects: SegmentationObject[];
|
|
1704
1913
|
private _image;
|
|
1705
1914
|
private _inpaintImageState;
|
|
1706
|
-
|
|
1915
|
+
private _subs;
|
|
1916
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService);
|
|
1917
|
+
ngOnDestroy(): void;
|
|
1707
1918
|
handleSegmentationClick(): void;
|
|
1708
1919
|
handleSegmentationMask(): void;
|
|
1709
1920
|
handleSegmentationObject(): void;
|
|
1710
|
-
|
|
1921
|
+
handleBackToEditMenu(): void;
|
|
1711
1922
|
toggleEraseMode(erase: boolean): void;
|
|
1712
1923
|
toggleDragMode(value: boolean): void;
|
|
1713
1924
|
handleSegmentationPointClick(event: SegmentationPoint): void;
|
|
1714
1925
|
processInpainted(): void;
|
|
1715
1926
|
handleImageStateChange(image: string): void;
|
|
1716
1927
|
handleChangeBrushSize(size: number): void;
|
|
1928
|
+
private _handleError;
|
|
1717
1929
|
private _handleLoader;
|
|
1718
1930
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1719
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "
|
|
1931
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; "preparedImage": "preparedImage"; }, never, never, false, never>;
|
|
1720
1932
|
}
|
|
1721
1933
|
|
|
1722
1934
|
declare class SegmentInpaintModule {
|
|
@@ -1725,43 +1937,6 @@ declare class SegmentInpaintModule {
|
|
|
1725
1937
|
static ɵinj: i0.ɵɵInjectorDeclaration<SegmentInpaintModule>;
|
|
1726
1938
|
}
|
|
1727
1939
|
|
|
1728
|
-
declare class ImageProcessCompleteComponent {
|
|
1729
|
-
iconService: InphotoIconCacheService;
|
|
1730
|
-
private _connectorService;
|
|
1731
|
-
private _appEventService;
|
|
1732
|
-
private _dataService;
|
|
1733
|
-
readonly icons: typeof Icon;
|
|
1734
|
-
showClass(): boolean;
|
|
1735
|
-
set image(value: string);
|
|
1736
|
-
get image(): string;
|
|
1737
|
-
handleStart3D: EventEmitter<SceneBuildObject>;
|
|
1738
|
-
handleAiDecorationClicked: EventEmitter<string>;
|
|
1739
|
-
startSegmentation: EventEmitter<string>;
|
|
1740
|
-
cancelClick: EventEmitter<void>;
|
|
1741
|
-
showLoader: boolean;
|
|
1742
|
-
loadingTexts: string[];
|
|
1743
|
-
private _image;
|
|
1744
|
-
private _subs;
|
|
1745
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _appEventService: InphotoEventService, _dataService: InphotoDataService);
|
|
1746
|
-
handleSetImage(): void;
|
|
1747
|
-
handle3DClick(): void;
|
|
1748
|
-
handleAiClick(): void;
|
|
1749
|
-
handleContinueSegmentationClick(): void;
|
|
1750
|
-
handleEditIn3DFromHistory(image: string): void;
|
|
1751
|
-
handleRemoveObjectsFromHistory(image: string): void;
|
|
1752
|
-
handleCancelClick(): void;
|
|
1753
|
-
private _handleRoomReceived;
|
|
1754
|
-
private _startRoomGeneration;
|
|
1755
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteComponent, never>;
|
|
1756
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageProcessCompleteComponent, "co-image-process-complete", never, { "image": { "alias": "image"; "required": false; }; }, { "handleStart3D": "handleStart3D"; "handleAiDecorationClicked": "handleAiDecorationClicked"; "startSegmentation": "startSegmentation"; "cancelClick": "cancelClick"; }, never, never, false, never>;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
declare class ImageProcessCompleteModule {
|
|
1760
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageProcessCompleteModule, never>;
|
|
1761
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageProcessCompleteModule, [typeof ImageProcessCompleteComponent], [typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof ImageHistoryModule], [typeof ImageProcessCompleteComponent]>;
|
|
1762
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ImageProcessCompleteModule>;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
1940
|
interface SideBarMenuOption {
|
|
1766
1941
|
id: number;
|
|
1767
1942
|
labelKey: string;
|
|
@@ -1772,13 +1947,14 @@ declare class SideBarMenuComponent {
|
|
|
1772
1947
|
iconService: InphotoIconCacheService;
|
|
1773
1948
|
readonly icons: typeof Icon;
|
|
1774
1949
|
showClass(): boolean;
|
|
1950
|
+
set disabledOptionIds(value: number[]);
|
|
1775
1951
|
optionClicked: EventEmitter<SideBarMenuOption>;
|
|
1776
1952
|
options: SideBarMenuOption[];
|
|
1777
1953
|
activeId: number;
|
|
1778
1954
|
constructor(iconService: InphotoIconCacheService);
|
|
1779
1955
|
select(option: SideBarMenuOption): void;
|
|
1780
1956
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideBarMenuComponent, never>;
|
|
1781
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarMenuComponent, "co-side-bar-menu", never, {}, { "optionClicked": "optionClicked"; }, never, never, false, never>;
|
|
1957
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarMenuComponent, "co-side-bar-menu", never, { "disabledOptionIds": { "alias": "disabledOptionIds"; "required": false; }; }, { "optionClicked": "optionClicked"; }, never, never, false, never>;
|
|
1782
1958
|
}
|
|
1783
1959
|
|
|
1784
1960
|
declare class SideBarMenuModule {
|
|
@@ -1789,7 +1965,7 @@ declare class SideBarMenuModule {
|
|
|
1789
1965
|
|
|
1790
1966
|
declare class InPhotoModule {
|
|
1791
1967
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPhotoModule, never>;
|
|
1792
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InPhotoModule, [typeof InPhotoComponent], [typeof UploadStartingImageModule, typeof ErrorDialogModule, typeof ProcessLoaderModule, typeof PrepareStartingImageModule, typeof InphotoThreedsceneModule, typeof PhotoEditorModule, typeof EditCanvasModule, typeof SegmentInpaintModule, typeof
|
|
1968
|
+
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]>;
|
|
1793
1969
|
static ɵinj: i0.ɵɵInjectorDeclaration<InPhotoModule>;
|
|
1794
1970
|
}
|
|
1795
1971
|
|