@colijnit/inphoto 301.1.3 → 301.1.4

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/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;
@@ -1935,7 +1935,7 @@ declare class SegmentInpaintComponent implements OnDestroy {
1935
1935
  private _image;
1936
1936
  private _inpaintImageState;
1937
1937
  private _subs;
1938
- constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService);
1938
+ constructor(iconService: InphotoIconCacheService, _connectorService: InPhotoConnectorService, _loaderService: LoaderService, _errorService: ErrorService, _dataService: InphotoDataService, _eventService: InphotoEventService);
1939
1939
  ngOnDestroy(): void;
1940
1940
  handleSegmentationClick(): void;
1941
1941
  handleSegmentationMask(): void;
@@ -1945,17 +1945,20 @@ declare class SegmentInpaintComponent implements OnDestroy {
1945
1945
  toggleDragMode(value: boolean): void;
1946
1946
  handleSegmentationPointClick(event: SegmentationPoint): void;
1947
1947
  processInpainted(): void;
1948
+ handleSetImageFromHistory(image: string): void;
1949
+ handleEditIn3DFromHistory(image: string): void;
1948
1950
  handleImageStateChange(image: string): void;
1949
1951
  handleChangeBrushSize(size: number): void;
1950
1952
  private _handleError;
1953
+ private _resetSegmentation;
1951
1954
  private _handleLoader;
1952
1955
  static ɵfac: i0.ɵɵFactoryDeclaration<SegmentInpaintComponent, never>;
1953
- static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; "preparedImage": "preparedImage"; }, never, never, false, never>;
1956
+ static ɵcmp: i0.ɵɵComponentDeclaration<SegmentInpaintComponent, "co-segment-inpaint", never, { "image": { "alias": "image"; "required": false; }; }, { "backToEditMenuClick": "backToEditMenuClick"; }, never, never, false, never>;
1954
1957
  }
1955
1958
 
1956
1959
  declare class SegmentInpaintModule {
1957
1960
  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]>;
1961
+ 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
1962
  static ɵinj: i0.ɵɵInjectorDeclaration<SegmentInpaintModule>;
1960
1963
  }
1961
1964
 
@@ -1,75 +1,90 @@
1
- @use '../../../style' as cfg;
2
-
3
- @include cfg.export-module('co-segment-inpaint-layout') {
4
- .co-segment-inpaint {
5
- .segment-inpaint-container {
6
- width: var(--co-inphoto-segment-inpaint-full-size);
7
- height: var(--co-inphoto-segment-inpaint-full-size);
8
- padding: var(--co-inphoto-segment-inpaint-zero);
9
- margin: var(--co-inphoto-segment-inpaint-zero);
10
- position: var(--co-inphoto-segment-inpaint-position-relative);
11
-
12
-
13
- .inpaint-container {
14
- display: flex;
15
-
16
- .inpaint-canvas-container {
17
- width: var(--co-inphoto-left-container-width);
18
- height: var(--co-inphoto-segment-inpaint-canvas-height);
19
- overflow: hidden;
20
- }
21
-
22
- .inpaint-info {
23
- width: var(--co-inphoto-right-container-width);
24
-
25
- .inpaint-info-dialog-tile-group {
26
- display: flex;
27
- gap: var(--co-inphoto-segment-inpaint-tile-group-gap);
28
-
29
- .co-step-tile {
30
- flex: var(--co-inphoto-segment-inpaint-tile-group-flex);
31
-
32
- .button-container {
33
- display: block;
34
-
35
- .image-container {
36
- --co-inphoto-step-tile-image-size: var(--co-inphoto-segment-inpaint-tile-image-size);
37
- }
38
-
39
- .button-container-text-container {
40
- --co-inphoto-step-tile-button-container-padding: var(--co-inphoto-segment-inpaint-tile-container-padding);
41
- }
42
- }
43
-
44
- &.tile-disabled {
45
- pointer-events: none;
46
- cursor: not-allowed;
47
- }
48
- }
49
- }
50
- }
51
-
52
- .button-container {
53
- display: flex;
54
- justify-content: space-between;
55
- gap: var(--co-inphoto-segment-inpaint-button-container-gap);
56
- margin-top: var(--co-inphoto-segment-inpaint-button-container-margin-top);
57
-
58
- .co-button {
59
- flex: 1;
60
- }
61
-
62
- .clear-objects-button {
63
- margin-bottom: var(--co-inphoto-segment-inpaint-clear-button-margin-bottom);
64
- }
65
-
66
- .clear-objects-button, .restart-button {
67
- .label {
68
- margin-left: var(--co-inphoto-segment-inpaint-button-label-margin-left);
69
- }
70
- }
71
- }
72
- }
73
- }
74
- }
75
- }
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-segment-inpaint-layout') {
4
+ .co-segment-inpaint {
5
+ .segment-inpaint-container {
6
+ width: var(--co-inphoto-segment-inpaint-full-size);
7
+ height: var(--co-inphoto-segment-inpaint-full-size);
8
+ padding: var(--co-inphoto-segment-inpaint-zero);
9
+ margin: var(--co-inphoto-segment-inpaint-zero);
10
+ position: var(--co-inphoto-segment-inpaint-position-relative);
11
+
12
+
13
+ .inpaint-container {
14
+ display: flex;
15
+
16
+ .inpaint-canvas-container {
17
+ width: var(--co-inphoto-left-container-width);
18
+ height: var(--co-inphoto-segment-inpaint-canvas-height);
19
+ display: grid;
20
+ grid-template-rows: var(--co-inphoto-segment-inpaint-canvas-rows);
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
+ }
35
+ }
36
+
37
+ .inpaint-info {
38
+ width: var(--co-inphoto-right-container-width);
39
+
40
+ .inpaint-info-dialog-tile-group {
41
+ display: flex;
42
+ gap: var(--co-inphoto-segment-inpaint-tile-group-gap);
43
+
44
+ .co-step-tile {
45
+ flex: var(--co-inphoto-segment-inpaint-tile-group-flex);
46
+
47
+ .button-container {
48
+ display: block;
49
+
50
+ .image-container {
51
+ --co-inphoto-step-tile-image-size: var(--co-inphoto-segment-inpaint-tile-image-size);
52
+ }
53
+
54
+ .button-container-text-container {
55
+ --co-inphoto-step-tile-button-container-padding: var(--co-inphoto-segment-inpaint-tile-container-padding);
56
+ }
57
+ }
58
+
59
+ &.tile-disabled {
60
+ pointer-events: none;
61
+ cursor: not-allowed;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .button-container {
68
+ display: flex;
69
+ justify-content: space-between;
70
+ gap: var(--co-inphoto-segment-inpaint-button-container-gap);
71
+ margin-top: var(--co-inphoto-segment-inpaint-button-container-margin-top);
72
+
73
+ .co-button {
74
+ flex: 1;
75
+ }
76
+
77
+ .clear-objects-button {
78
+ margin-bottom: var(--co-inphoto-segment-inpaint-clear-button-margin-bottom);
79
+ }
80
+
81
+ .clear-objects-button, .restart-button {
82
+ .label {
83
+ margin-left: var(--co-inphoto-segment-inpaint-button-label-margin-left);
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
@@ -1,20 +1,23 @@
1
- .co-segment-inpaint {
2
- --co-inphoto-segment-inpaint-font-size-text: var(--co-inphoto-font-size-text);
3
- --co-inphoto-segment-inpaint-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-segment-inpaint-full-size: 100%;
5
- --co-inphoto-segment-inpaint-zero: 0;
6
- --co-inphoto-segment-inpaint-position-relative: relative;
7
- --co-inphoto-segment-inpaint-canvas-height: 100vh;
8
- --co-inphoto-segment-inpaint-tile-group-gap: 16px;
9
- --co-inphoto-segment-inpaint-tile-group-flex: 1;
10
- --co-inphoto-segment-inpaint-tile-image-size: 100%;
11
- --co-inphoto-segment-inpaint-tile-container-padding: 5px;
12
- --co-inphoto-segment-inpaint-tile-active-border: 1px solid var(--co-inphoto-accent-color);
13
- --co-inphoto-segment-inpaint-tile-disabled-opacity: 0.5;
14
-
15
- --co-inphoto-segment-inpaint-button-container-gap: 16px;
16
- --co-inphoto-segment-inpaint-button-container-margin-top: 20px;
17
- --co-inphoto-segment-inpaint-clear-button-margin-bottom: 30px;
18
- --co-inphoto-segment-inpaint-button-label-margin-left: 15px;
19
- --co-inphoto-segment-inpaint-button-label-font-weight: normal;
20
- }
1
+ .co-segment-inpaint {
2
+ --co-inphoto-segment-inpaint-font-size-text: var(--co-inphoto-font-size-text);
3
+ --co-inphoto-segment-inpaint-font-family: var(--co-inphoto-font-family);
4
+ --co-inphoto-segment-inpaint-full-size: 100%;
5
+ --co-inphoto-segment-inpaint-zero: 0;
6
+ --co-inphoto-segment-inpaint-position-relative: relative;
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;
11
+ --co-inphoto-segment-inpaint-tile-group-gap: 16px;
12
+ --co-inphoto-segment-inpaint-tile-group-flex: 1;
13
+ --co-inphoto-segment-inpaint-tile-image-size: 100%;
14
+ --co-inphoto-segment-inpaint-tile-container-padding: 5px;
15
+ --co-inphoto-segment-inpaint-tile-active-border: 1px solid var(--co-inphoto-accent-color);
16
+ --co-inphoto-segment-inpaint-tile-disabled-opacity: 0.5;
17
+
18
+ --co-inphoto-segment-inpaint-button-container-gap: 16px;
19
+ --co-inphoto-segment-inpaint-button-container-margin-top: 20px;
20
+ --co-inphoto-segment-inpaint-clear-button-margin-bottom: 30px;
21
+ --co-inphoto-segment-inpaint-button-label-margin-left: 15px;
22
+ --co-inphoto-segment-inpaint-button-label-font-weight: normal;
23
+ }
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/inphoto",
3
- "version": "301.1.3",
3
+ "version": "301.1.4",
4
4
  "description": "Colijn IT inphoto module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",