@colijnit/inphoto 301.1.3 → 301.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/colijnit-inphoto.mjs +618 -541
- package/fesm2022/colijnit-inphoto.mjs.map +1 -1
- package/index.d.ts +9 -4
- package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +19 -19
- package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +10 -10
- package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +19 -19
- package/lib/component/segment-inpaint/style/_layout.scss +21 -0
- package/lib/component/segment-inpaint/style/_material-definition.scss +4 -1
- package/lib/component/segment-inpaint/style/_theme.scss +7 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1913,13 +1913,13 @@ declare class SegmentInpaintComponent implements OnDestroy {
|
|
|
1913
1913
|
private _loaderService;
|
|
1914
1914
|
private _errorService;
|
|
1915
1915
|
private _dataService;
|
|
1916
|
+
private _eventService;
|
|
1916
1917
|
readonly icons: typeof Icon;
|
|
1917
1918
|
readonly SegmentationType: typeof SegmentationType;
|
|
1918
1919
|
showClass(): boolean;
|
|
1919
1920
|
set image(value: string);
|
|
1920
1921
|
get image(): string;
|
|
1921
1922
|
backToEditMenuClick: EventEmitter<string>;
|
|
1922
|
-
preparedImage: EventEmitter<string>;
|
|
1923
1923
|
segmentationInPaintingData: any;
|
|
1924
1924
|
canvasInPaint: boolean;
|
|
1925
1925
|
inpaintClick: boolean;
|
|
@@ -1932,10 +1932,11 @@ declare class SegmentInpaintComponent implements OnDestroy {
|
|
|
1932
1932
|
segmentMode: SegmentationType;
|
|
1933
1933
|
brushSize: number;
|
|
1934
1934
|
segmentationObjects: SegmentationObject[];
|
|
1935
|
+
clearButtonDisabled: boolean;
|
|
1935
1936
|
private _image;
|
|
1936
1937
|
private _inpaintImageState;
|
|
1937
1938
|
private _subs;
|
|
1938
|
-
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService);
|
|
1939
|
+
constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService, _eventService: InphotoEventService);
|
|
1939
1940
|
ngOnDestroy(): void;
|
|
1940
1941
|
handleSegmentationClick(): void;
|
|
1941
1942
|
handleSegmentationMask(): void;
|
|
@@ -1945,17 +1946,21 @@ declare class SegmentInpaintComponent implements OnDestroy {
|
|
|
1945
1946
|
toggleDragMode(value: boolean): void;
|
|
1946
1947
|
handleSegmentationPointClick(event: SegmentationPoint): void;
|
|
1947
1948
|
processInpainted(): void;
|
|
1949
|
+
handleSetImageFromHistory(image: string): void;
|
|
1950
|
+
handleEditIn3DFromHistory(image: string): void;
|
|
1948
1951
|
handleImageStateChange(image: string): void;
|
|
1949
1952
|
handleChangeBrushSize(size: number): void;
|
|
1953
|
+
handleAutoSegmentation(): void;
|
|
1950
1954
|
private _handleError;
|
|
1955
|
+
private _resetSegmentation;
|
|
1951
1956
|
private _handleLoader;
|
|
1952
1957
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
|
|
1953
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick";
|
|
1958
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; }, never, never, false, never>;
|
|
1954
1959
|
}
|
|
1955
1960
|
|
|
1956
1961
|
declare class SegmentInpaintModule {
|
|
1957
1962
|
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintModule, never>;
|
|
1958
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SegmentInpaintModule, [typeof SegmentInpaintComponent], [typeof EditCanvasModule, typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof CanvasToolBarModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule], [typeof SegmentInpaintComponent]>;
|
|
1963
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SegmentInpaintModule, [typeof SegmentInpaintComponent], [typeof EditCanvasModule, typeof i2.IconModule, typeof PipeModule, typeof i2.ButtonModule, typeof ProcessLoaderModule, typeof CanvasToolBarModule, typeof StepTileModule, typeof HeaderModule, typeof SidePanelModule, typeof ImageHistoryModule], [typeof SegmentInpaintComponent]>;
|
|
1959
1964
|
static ɵinj: i0.ɵɵInjectorDeclaration<SegmentInpaintModule>;
|
|
1960
1965
|
}
|
|
1961
1966
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use '../../../../../style' as cfg;
|
|
2
|
-
|
|
3
|
-
@include cfg.export-module('co-color-palette-option-layout') {
|
|
4
|
-
.color-palette-option {
|
|
5
|
-
width: var(--co-inphoto-color-palette-option-size);
|
|
6
|
-
height: var(--co-inphoto-color-palette-option-size);
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
padding: var(--co-inphoto-color-palette-option-padding);
|
|
9
|
-
|
|
10
|
-
.color-palette-option-circle {
|
|
11
|
-
height: var(--co-inphoto-color-palette-option-full-size);
|
|
12
|
-
width: var(--co-inphoto-color-palette-option-full-size);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.color-palette-option-disabled {
|
|
16
|
-
cursor: not-allowed;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@use '../../../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-color-palette-option-layout') {
|
|
4
|
+
.color-palette-option {
|
|
5
|
+
width: var(--co-inphoto-color-palette-option-size);
|
|
6
|
+
height: var(--co-inphoto-color-palette-option-size);
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
padding: var(--co-inphoto-color-palette-option-padding);
|
|
9
|
+
|
|
10
|
+
.color-palette-option-circle {
|
|
11
|
+
height: var(--co-inphoto-color-palette-option-full-size);
|
|
12
|
+
width: var(--co-inphoto-color-palette-option-full-size);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.color-palette-option-disabled {
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.color-palette-option {
|
|
2
|
-
--co-inphoto-color-palette-option-font-size-text: var(--co-inphoto-font-size-text);
|
|
3
|
-
--co-inphoto-color-palette-option-font-family: var(--co-inphoto-font-family);
|
|
4
|
-
--co-inphoto-color-palette-option-size: 25px;
|
|
5
|
-
--co-inphoto-color-palette-option-full-size: 100%;
|
|
6
|
-
--co-inphoto-color-palette-option-padding: 2px;
|
|
7
|
-
--co-inphoto-color-palette-option-border: 2px solid;
|
|
8
|
-
--co-inphoto-color-palette-option-radius: 50%;
|
|
9
|
-
--co-inphoto-color-palette-option-disabled-opacity: 0.25;
|
|
10
|
-
}
|
|
1
|
+
.color-palette-option {
|
|
2
|
+
--co-inphoto-color-palette-option-font-size-text: var(--co-inphoto-font-size-text);
|
|
3
|
+
--co-inphoto-color-palette-option-font-family: var(--co-inphoto-font-family);
|
|
4
|
+
--co-inphoto-color-palette-option-size: 25px;
|
|
5
|
+
--co-inphoto-color-palette-option-full-size: 100%;
|
|
6
|
+
--co-inphoto-color-palette-option-padding: 2px;
|
|
7
|
+
--co-inphoto-color-palette-option-border: 2px solid;
|
|
8
|
+
--co-inphoto-color-palette-option-radius: 50%;
|
|
9
|
+
--co-inphoto-color-palette-option-disabled-opacity: 0.25;
|
|
10
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use '../../../../../style' as cfg;
|
|
2
|
-
|
|
3
|
-
@include cfg.export-module('co-color-palette-option-theme') {
|
|
4
|
-
.color-palette-option {
|
|
5
|
-
font-family: var(--co-inphoto-color-palette-option-font-family);
|
|
6
|
-
font-size: var(--co-inphoto-color-palette-option-font-size-text);
|
|
7
|
-
border: var(--co-inphoto-color-palette-option-border);
|
|
8
|
-
border-radius: var(--co-inphoto-color-palette-option-radius);
|
|
9
|
-
|
|
10
|
-
.color-palette-option-circle {
|
|
11
|
-
border-radius: var(--co-inphoto-color-palette-option-radius);
|
|
12
|
-
@include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.color-palette-option-disabled {
|
|
16
|
-
opacity: var(--co-inphoto-color-palette-option-disabled-opacity);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@use '../../../../../style' as cfg;
|
|
2
|
+
|
|
3
|
+
@include cfg.export-module('co-color-palette-option-theme') {
|
|
4
|
+
.color-palette-option {
|
|
5
|
+
font-family: var(--co-inphoto-color-palette-option-font-family);
|
|
6
|
+
font-size: var(--co-inphoto-color-palette-option-font-size-text);
|
|
7
|
+
border: var(--co-inphoto-color-palette-option-border);
|
|
8
|
+
border-radius: var(--co-inphoto-color-palette-option-radius);
|
|
9
|
+
|
|
10
|
+
.color-palette-option-circle {
|
|
11
|
+
border-radius: var(--co-inphoto-color-palette-option-radius);
|
|
12
|
+
@include cfg.default-icon(var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-size-small), var(--co-inphoto-icon-color-light));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.color-palette-option-disabled {
|
|
16
|
+
opacity: var(--co-inphoto-color-palette-option-disabled-opacity);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -16,7 +16,22 @@
|
|
|
16
16
|
.inpaint-canvas-container {
|
|
17
17
|
width: var(--co-inphoto-left-container-width);
|
|
18
18
|
height: var(--co-inphoto-segment-inpaint-canvas-height);
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-rows: var(--co-inphoto-segment-inpaint-canvas-rows);
|
|
19
21
|
overflow: hidden;
|
|
22
|
+
|
|
23
|
+
.inpaint-canvas-area {
|
|
24
|
+
position: var(--co-inphoto-segment-inpaint-position-relative);
|
|
25
|
+
min-height: var(--co-inphoto-segment-inpaint-zero);
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.inpaint-bottom {
|
|
30
|
+
padding: var(--co-inphoto-segment-inpaint-bottom-padding);
|
|
31
|
+
margin: var(--co-inphoto-segment-inpaint-bottom-margin);
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
20
35
|
}
|
|
21
36
|
|
|
22
37
|
.inpaint-info {
|
|
@@ -31,13 +46,19 @@
|
|
|
31
46
|
|
|
32
47
|
.button-container {
|
|
33
48
|
display: block;
|
|
49
|
+
margin: 0;
|
|
34
50
|
|
|
35
51
|
.image-container {
|
|
36
52
|
--co-inphoto-step-tile-image-size: var(--co-inphoto-segment-inpaint-tile-image-size);
|
|
53
|
+
display: block;
|
|
54
|
+
margin: 0 auto;
|
|
37
55
|
}
|
|
38
56
|
|
|
39
57
|
.button-container-text-container {
|
|
58
|
+
width: 80%;
|
|
59
|
+
margin: 0 auto;
|
|
40
60
|
--co-inphoto-step-tile-button-container-padding: var(--co-inphoto-segment-inpaint-tile-container-padding);
|
|
61
|
+
--co-inphoto-step-tile-next-icon-size: 25px;
|
|
41
62
|
}
|
|
42
63
|
}
|
|
43
64
|
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
--co-inphoto-segment-inpaint-zero: 0;
|
|
6
6
|
--co-inphoto-segment-inpaint-position-relative: relative;
|
|
7
7
|
--co-inphoto-segment-inpaint-canvas-height: 100vh;
|
|
8
|
+
--co-inphoto-segment-inpaint-canvas-rows: minmax(0, 1fr) auto; /* canvas takes what the history row leaves */
|
|
9
|
+
--co-inphoto-segment-inpaint-bottom-padding: 10px;
|
|
10
|
+
--co-inphoto-segment-inpaint-bottom-margin: 2px 20px 10px;
|
|
8
11
|
--co-inphoto-segment-inpaint-tile-group-gap: 16px;
|
|
9
12
|
--co-inphoto-segment-inpaint-tile-group-flex: 1;
|
|
10
|
-
--co-inphoto-segment-inpaint-tile-image-size:
|
|
13
|
+
--co-inphoto-segment-inpaint-tile-image-size: 80%;
|
|
11
14
|
--co-inphoto-segment-inpaint-tile-container-padding: 5px;
|
|
12
15
|
--co-inphoto-segment-inpaint-tile-active-border: 1px solid var(--co-inphoto-accent-color);
|
|
13
16
|
--co-inphoto-segment-inpaint-tile-disabled-opacity: 0.5;
|
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
font-size: var(--co-inphoto-segment-inpaint-font-size-text);
|
|
7
7
|
|
|
8
8
|
.inpaint-container {
|
|
9
|
+
.inpaint-canvas-container {
|
|
10
|
+
background: var(--co-inphoto-background-white);
|
|
11
|
+
.inpaint-bottom {
|
|
12
|
+
box-shadow: var(--co-inphoto-container-box-shadow);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
.inpaint-info {
|
|
10
17
|
.inpaint-info-dialog-tile-group {
|
|
11
18
|
.co-step-tile {
|