@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.
Files changed (139) hide show
  1. package/assets/01-bohemian.jpg +0 -0
  2. package/assets/02-mid-century-modern.jpg +0 -0
  3. package/assets/03-rustic-farmhouse.jpg +0 -0
  4. package/assets/04-coastal-nautical.jpg +0 -0
  5. package/assets/05-art-deco.jpg +0 -0
  6. package/assets/06-eclectic.jpg +0 -0
  7. package/assets/07-japanese-zen.jpg +0 -0
  8. package/assets/08-modern.jpg +0 -0
  9. package/assets/09-contemporary.jpg +0 -0
  10. package/assets/10-minimalist.jpg +0 -0
  11. package/assets/11-scandinavian.jpg +0 -0
  12. package/assets/12-industrial.jpg +0 -0
  13. package/assets/13-traditional.jpg +0 -0
  14. package/assets/14-transitional.jpg +0 -0
  15. package/assets/how-do-want-to-edit-the-image-01.jpg +0 -0
  16. package/assets/how-do-want-to-edit-the-image-02.jpg +0 -0
  17. package/assets/how-do-want-to-edit-the-image-03.jpg +0 -0
  18. package/assets/how-do-want-to-edit-the-image-04.jpg +0 -0
  19. package/assets/how-to-redesign-with-catalog-01.jpg +0 -0
  20. package/assets/how-to-redesign-with-catalog-02.jpg +0 -0
  21. package/assets/how-to-redesign-with-catalog-03.jpg +0 -0
  22. package/assets/how-to-redesign-with-catalog-04.jpg +0 -0
  23. package/assets/how-to-redesign-with-catalog-05.jpg +0 -0
  24. package/assets/how-to-redesign-with-catalog-06.jpg +0 -0
  25. package/assets/room-01-living-room.jpg +0 -0
  26. package/assets/room-02-kitchen.jpg +0 -0
  27. package/assets/room-03-dining-room.jpg +0 -0
  28. package/assets/room-04-bathroom.jpg +0 -0
  29. package/assets/room-05-bedroom.jpg +0 -0
  30. package/assets/room-06-kids-room.jpg +0 -0
  31. package/assets/room-07-home-office.jpg +0 -0
  32. package/assets/room-08-home-bar.jpg +0 -0
  33. package/fesm2022/colijnit-inphoto.mjs +7191 -6297
  34. package/fesm2022/colijnit-inphoto.mjs.map +1 -1
  35. package/icons/angle_right_sharp_solid.svg +1 -0
  36. package/icons/camera_solid_regular.svg +1 -0
  37. package/icons/expand_regular_full.svg +1 -0
  38. package/index.d.ts +518 -342
  39. package/lib/component/ai-prompt/style/_layout.scss +12 -1
  40. package/lib/component/ai-prompt/style/_material-definition.scss +1 -3
  41. package/lib/component/ai-prompt/style/_theme.scss +1 -6
  42. package/lib/component/canvas-tool-bar/style/_layout.scss +49 -4
  43. package/lib/component/canvas-tool-bar/style/_material-definition.scss +4 -1
  44. package/lib/component/canvas-tool-bar/style/_theme.scss +3 -22
  45. package/lib/component/catalog/style/_layout.scss +68 -68
  46. package/lib/component/catalog/style/_material-definition.scss +4 -0
  47. package/lib/component/catalog/style/_theme.scss +6 -6
  48. package/lib/component/edit-canvas/style/_layout.scss +2 -1
  49. package/lib/component/edit-canvas/style/_material-definition.scss +0 -2
  50. package/lib/component/edit-canvas/style/_theme.scss +1 -2
  51. package/lib/component/error-dialog/style/_layout.scss +36 -36
  52. package/lib/component/error-dialog/style/_material-definition.scss +12 -12
  53. package/lib/component/error-dialog/style/_theme.scss +17 -17
  54. package/lib/component/header/style/_layout.scss +20 -20
  55. package/lib/component/header/style/_material-definition.scss +3 -1
  56. package/lib/component/header/style/_theme.scss +4 -1
  57. package/lib/component/image-2d-placement/style/_layout.scss +13 -0
  58. package/lib/component/image-2d-placement/style/_material-definition.scss +7 -0
  59. package/lib/component/image-2d-placement/style/_theme.scss +8 -0
  60. package/lib/component/image-enhancer/style/_layout.scss +8 -2
  61. package/lib/component/image-enhancer/style/_material-definition.scss +4 -1
  62. package/lib/component/image-enhancer/style/_theme.scss +2 -5
  63. package/lib/component/image-enhancer-style/style/_layout.scss +113 -30
  64. package/lib/component/image-enhancer-style/style/_material-definition.scss +28 -2
  65. package/lib/component/image-enhancer-style/style/_theme.scss +72 -10
  66. package/lib/component/image-enhancer-upload/style/_layout.scss +8 -3
  67. package/lib/component/image-enhancer-upload/style/_material-definition.scss +4 -4
  68. package/lib/component/image-enhancer-upload/style/_theme.scss +2 -4
  69. package/lib/component/image-history/style/_layout.scss +2 -4
  70. package/lib/component/image-history/style/_material-definition.scss +0 -2
  71. package/lib/component/image-history/style/_theme.scss +0 -5
  72. package/lib/component/image-history-tile/style/_layout.scss +2 -2
  73. package/lib/component/image-history-tile/style/_material-definition.scss +2 -0
  74. package/lib/component/image-history-tile/style/_theme.scss +32 -32
  75. package/lib/component/image-output-settings/style/_layout.scss +38 -0
  76. package/lib/component/image-output-settings/style/_material-definition.scss +8 -0
  77. package/lib/component/image-output-settings/style/_theme.scss +15 -0
  78. package/lib/component/image-overlay/style/_layout.scss +2 -1
  79. package/lib/component/image-overlay/style/_material-definition.scss +3 -0
  80. package/lib/component/image-overlay/style/_theme.scss +1 -1
  81. package/lib/component/image-overlay/style/material.scss +3 -3
  82. package/lib/component/image-tile/components/color-palette-option/style/_layout.scss +19 -15
  83. package/lib/component/image-tile/components/color-palette-option/style/_material-definition.scss +10 -9
  84. package/lib/component/image-tile/components/color-palette-option/style/_theme.scss +19 -15
  85. package/lib/component/image-tile/style/_layout.scss +24 -24
  86. package/lib/component/image-tile/style/_material-definition.scss +18 -17
  87. package/lib/component/image-tile/style/_theme.scss +9 -9
  88. package/lib/component/image-upload/style/_layout.scss +4 -0
  89. package/lib/component/image-upload/style/_material-definition.scss +35 -35
  90. package/lib/component/image-upload/style/_theme.scss +0 -4
  91. package/lib/component/marker/style/_layout.scss +0 -1
  92. package/lib/component/marker/style/_material-definition.scss +12 -12
  93. package/lib/component/marker/style/_theme.scss +1 -0
  94. package/lib/component/marker/style/material.scss +3 -3
  95. package/lib/component/photo-editor/style/_layout.scss +34 -3
  96. package/lib/component/photo-editor/style/_material-definition.scss +6 -0
  97. package/lib/component/photo-editor/style/_theme.scss +15 -0
  98. package/lib/component/prepare-starting-image/style/_layout.scss +59 -0
  99. package/lib/component/prepare-starting-image/style/_material-definition.scss +7 -1
  100. package/lib/component/prepare-starting-image/style/_theme.scss +9 -1
  101. package/lib/component/process-loader/style/_layout.scss +6 -6
  102. package/lib/component/process-loader/style/_material-definition.scss +20 -2
  103. package/lib/component/process-loader/style/_theme.scss +31 -31
  104. package/lib/component/scale-dialog/style/_layout.scss +25 -0
  105. package/lib/component/scale-dialog/style/_material-definition.scss +8 -0
  106. package/lib/component/scale-dialog/style/_theme.scss +26 -0
  107. package/lib/component/scale-dialog/style/material.scss +3 -0
  108. package/lib/component/scene-context-menu/style/_layout.scss +12 -2
  109. package/lib/component/scene-context-menu/style/_material-definition.scss +9 -4
  110. package/lib/component/scene-context-menu/style/_theme.scss +9 -4
  111. package/lib/component/segment-inpaint/style/_layout.scss +23 -1
  112. package/lib/component/segment-inpaint/style/_material-definition.scss +9 -1
  113. package/lib/component/segment-inpaint/style/_theme.scss +44 -1
  114. package/lib/component/side-bar-menu/style/_layout.scss +5 -1
  115. package/lib/component/side-bar-menu/style/_material-definition.scss +1 -0
  116. package/lib/component/side-bar-menu/style/_theme.scss +32 -32
  117. package/lib/component/side-panel/style/_layout.scss +4 -1
  118. package/lib/component/side-panel/style/_material-definition.scss +5 -4
  119. package/lib/component/side-panel/style/_theme.scss +0 -3
  120. package/lib/component/step-tile/style/_layout.scss +21 -5
  121. package/lib/component/step-tile/style/_material-definition.scss +4 -4
  122. package/lib/component/step-tile/style/_theme.scss +1 -11
  123. package/lib/component/threedscene/style/_layout.scss +15 -5
  124. package/lib/component/threedscene/style/_material-definition.scss +5 -1
  125. package/lib/component/threedscene/style/_theme.scss +38 -0
  126. package/lib/component/upload-starting-image/style/_layout.scss +58 -58
  127. package/lib/component/upload-starting-image/style/_material-definition.scss +18 -18
  128. package/lib/component/upload-starting-image/style/_theme.scss +39 -39
  129. package/lib/style/_mixin.scss +2 -7
  130. package/lib/style/_variables.scss +7 -13
  131. package/package.json +13 -4
  132. package/lib/component/configuration-side-bar-menu/style/_layout.scss +0 -33
  133. package/lib/component/configuration-side-bar-menu/style/_material-definition.scss +0 -10
  134. package/lib/component/configuration-side-bar-menu/style/_theme.scss +0 -58
  135. package/lib/component/image-process-complete/style/_layout.scss +0 -42
  136. package/lib/component/image-process-complete/style/_material-definition.scss +0 -13
  137. package/lib/component/image-process-complete/style/_theme.scss +0 -24
  138. /package/lib/component/{configuration-side-bar-menu → image-2d-placement}/style/material.scss +0 -0
  139. /package/lib/component/{image-process-complete → image-output-settings}/style/material.scss +0 -0
@@ -2,10 +2,7 @@
2
2
 
3
3
  @include cfg.export-module('co-photo-editor-layout') {
4
4
  .co-photo-editor {
5
-
6
-
7
5
  .photo-editor-dialog {
8
-
9
6
  .photo-editor-container {
10
7
  position: var(--co-inphoto-photo-editor-position-relative);
11
8
  width: var(--co-inphoto-photo-editor-full-size);
@@ -17,6 +14,40 @@
17
14
 
18
15
  .photo-editor-canvas {
19
16
  width: var(--co-inphoto-left-container-width);
17
+
18
+
19
+ .photo-editor-bottom {
20
+ padding: var(--co-inphoto-photo-editor-bottom-padding);
21
+ margin: var(--co-inphoto-photo-editor-bottom-margin);
22
+ display: flex;
23
+ align-items: center;
24
+
25
+ .photo-editor-button-container {
26
+ padding: var(--co-inphoto-photo-editor-button-container-padding);
27
+
28
+ .restart-button {
29
+ width: var(--co-inphoto-photo-editor-restart-button-width);
30
+
31
+ @include cfg.action-button(
32
+ var(--co-inphoto-button-background),
33
+ var(--co-inphoto-button-background),
34
+ var(--co-inphoto-button-color),
35
+ var(--co-inphoto-button-font-size),
36
+ var(--co-inphoto-button-icon-size),
37
+ var(--co-inphoto-button-icon-color),
38
+ var(--co-inphoto-button-border),
39
+ var(--co-inphoto-button-radius),
40
+ var(--co-inphoto-button-padding)
41
+ );
42
+
43
+ .label {
44
+ margin-left: var(--co-inphoto-photo-editor-label-margin-left);
45
+ }
46
+ }
47
+ }
48
+ }
49
+
50
+
20
51
  }
21
52
 
22
53
  .photo-editor-panel {
@@ -3,6 +3,12 @@
3
3
  --co-inphoto-photo-editor-font-family: var(--co-inphoto-font-family);
4
4
  --co-inphoto-photo-editor-position-relative: relative;
5
5
  --co-inphoto-photo-editor-full-size: 100%;
6
+ --co-inphoto-photo-editor-bottom-padding: 10px;
7
+ --co-inphoto-photo-editor-bottom-margin: 10px 20px;
6
8
  --co-inphoto-photo-editor-upload-height: 100vh;
7
9
  --co-inphoto-photo-editor-upload-width: 100vw;
10
+ --co-inphoto-photo-editor-button-container-padding: 20px;
11
+ --co-inphoto-photo-editor-restart-button-width: 220px;
12
+ --co-inphoto-photo-editor-label-margin-left: 15px;
13
+ --co-inphoto-photo-editor-label-font-weight: normal;
8
14
  }
@@ -4,6 +4,21 @@
4
4
  .co-photo-editor {
5
5
  font-family: var(--co-inphoto-photo-editor-font-family);
6
6
  font-size: var(--co-inphoto-photo-editor-font-size-text);
7
+
8
+ .photo-editor-canvas {
9
+ .photo-editor-bottom {
10
+ background: var(--co-inphoto-background-white);
11
+ box-shadow: var(--co-inphoto-container-box-shadow);
12
+ }
13
+
14
+ .photo-editor-button-container {
15
+ .restart-button {
16
+ .label {
17
+ font-weight: var(--co-inphoto-photo-editor-label-font-weight);
18
+ }
19
+ }
20
+ }
21
+ }
7
22
  }
8
23
  }
9
24
 
@@ -17,6 +17,7 @@
17
17
 
18
18
  .prepare-image-view-container {
19
19
  max-width: var(--co-inphoto-prepare-starting-image-preview-max-width);
20
+
20
21
  img {
21
22
  display: block;
22
23
  max-width: var(--co-inphoto-prepare-starting-image-preview-max-width);
@@ -25,9 +26,67 @@
25
26
  }
26
27
  }
27
28
 
29
+
28
30
  .prepare-starting-image-dialog {
29
31
  width: var(--co-inphoto-prepare-starting-image-full-width);
30
32
  max-width: var(--co-inphoto-right-container-width);
33
+
34
+ .prepare-starting-image-side-panel {
35
+ .prepare-starting-image-tiles-container {
36
+ .prepare-starting-image-tiles {
37
+ display: grid;
38
+ grid-template-columns: var(--co-inphoto-prepare-starting-image-tiles-columns);
39
+ grid-template-rows: var(--co-inphoto-prepare-starting-image-tiles-rows);
40
+ gap: var(--co-inphoto-prepare-starting-image-gap);
41
+
42
+ .co-step-tile {
43
+
44
+ .button-container {
45
+ flex-direction: column;
46
+ }
47
+ }
48
+ }
49
+
50
+ .prepare-starting-image-side-panel-prompt {
51
+ padding: var(--co-inphoto-prepare-starting-image-side-panel-prompt-padding);
52
+ }
53
+ }
54
+ }
55
+
56
+ .prepare-starting-image-side-panel-buttons {
57
+ display: flex;
58
+ gap: var(--co-inphoto-prepare-starting-image-gap);
59
+
60
+ .co-button {
61
+ flex: var(--co-inphoto-prepare-starting-image-button-flex);
62
+
63
+ @include cfg.action-button(
64
+ var(--co-inphoto-button-background),
65
+ var(--co-inphoto-button-background),
66
+ var(--co-inphoto-button-color),
67
+ var(--co-inphoto-button-font-size),
68
+ var(--co-inphoto-button-icon-size),
69
+ var(--co-inphoto-button-icon-color),
70
+ var(--co-inphoto-button-border),
71
+ var(--co-inphoto-button-radius),
72
+ var(--co-inphoto-button-padding)
73
+ );
74
+ }
75
+
76
+ .generate-button {
77
+ @include cfg.action-button(
78
+ var(--co-inphoto-active-button-background),
79
+ var(--co-inphoto-active-button-background),
80
+ var(--co-inphoto-action-button-color),
81
+ var(--co-inphoto-button-font-size),
82
+ var(--co-inphoto-button-icon-size),
83
+ var(--co-inphoto-action-button-icon-color),
84
+ var(--co-inphoto-button-border),
85
+ var(--co-inphoto-button-radius),
86
+ var(--co-inphoto-button-padding)
87
+ );
88
+ }
89
+ }
31
90
  }
32
91
  }
33
92
  }
@@ -1,11 +1,17 @@
1
1
  .co-prepare-starting-image {
2
2
  --co-inphoto-prepare-starting-image-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-prepare-starting-image-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-prepare-icon-background: #FFF7ED;
4
+ --co-inphoto-prepare-starting-image-icon-background: #FFF7ED;
5
5
  --co-inphoto-prepare-starting-image-full-width: 100%;
6
6
  --co-inphoto-prepare-starting-image-min-height: 100vh;
7
7
  --co-inphoto-prepare-starting-image-preview-margin: 20px;
8
8
  --co-inphoto-prepare-starting-image-preview-padding: 20px;
9
9
  --co-inphoto-prepare-starting-image-preview-max-width: 100%;
10
10
  --co-inphoto-prepare-starting-image-image-height: auto;
11
+ --co-inphoto-prepare-starting-image-gap: 16px;
12
+ --co-inphoto-prepare-starting-image-side-panel-prompt-padding: 20px 0;
13
+ --co-inphoto-prepare-starting-image-tiles-columns: repeat(2, 1fr);
14
+ --co-inphoto-prepare-starting-image-tiles-rows: repeat(2, 1fr);
15
+ --co-inphoto-prepare-starting-image-button-flex: 1;
16
+ --co-inphoto-prepare-starting-image-label-font-weight: normal;
11
17
  }
@@ -13,11 +13,19 @@
13
13
  .prepare-starting-image-dialog {
14
14
  .prepare-starting-dialog-header {
15
15
  .header-icon {
16
- background: var(--co-inphoto-prepare-icon-background);
16
+ background: var(--co-inphoto-prepare-starting-image-icon-background);
17
17
  color: var(--co-inphoto-accent-color);
18
18
  @include cfg.default-icon(var(--co-inphoto-icon-size-large), var(--co-inphoto-icon-size-large), var(--co-inphoto-accent-color));
19
19
  }
20
20
  }
21
+
22
+ .prepare-starting-image-side-panel-buttons {
23
+ .co-button {
24
+ .label {
25
+ font-weight: var(--co-inphoto-prepare-starting-image-label-font-weight);
26
+ }
27
+ }
28
+ }
21
29
  }
22
30
  }
23
31
  }
@@ -26,6 +26,12 @@
26
26
  justify-content: space-around;
27
27
  align-items: center;
28
28
  padding: var(--co-inphoto-process-loader-icon-padding);
29
+
30
+ svg {
31
+ width: var(--co-inphoto-process-loader-icon-svg-full-size);
32
+ height: var(--co-inphoto-process-loader-icon-svg-full-size);
33
+ overflow: visible;
34
+ }
29
35
  }
30
36
 
31
37
  .loading-text-carousel {
@@ -64,11 +70,5 @@
64
70
  width: var(--co-inphoto-process-loader-dots-size);
65
71
  }
66
72
  }
67
-
68
- @media (prefers-reduced-motion: reduce) {
69
- .loading-text-track {
70
- transition: var(--co-inphoto-process-loader-track-transition-none);
71
- }
72
- }
73
73
  }
74
74
  }
@@ -1,8 +1,8 @@
1
1
  .co-process-loader {
2
2
  --co-inphoto-process-loader-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-process-loader-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-loader-pulse-duration: 2.4s;
5
- --co-inphoto-loader-twinkle-duration: 1.6s;
4
+ --co-inphoto-process-loader-pulse-duration: 2.4s;
5
+ --co-inphoto-process-loader-twinkle-duration: 1.6s;
6
6
  --co-inphoto-process-loader-position-fixed: fixed;
7
7
  --co-inphoto-process-loader-inset-zero: 0;
8
8
  --co-inphoto-process-loader-wrapper-z-index: 101;
@@ -11,6 +11,7 @@
11
11
  --co-inphoto-process-loader-icon-size: 100px;
12
12
  --co-inphoto-process-loader-icon-radius: 50%;
13
13
  --co-inphoto-process-loader-icon-padding: 15px;
14
+ --co-inphoto-process-loader-icon-svg-full-size: 100%;
14
15
  --co-inphoto-process-loader-carousel-margin-top: 30px;
15
16
  --co-inphoto-process-loader-carousel-width: 450px;
16
17
  --co-inphoto-process-loader-text-item-height: 60px;
@@ -21,4 +22,21 @@
21
22
  --co-inphoto-process-loader-dots-animation: drop 1.4s ease-in-out infinite;
22
23
  --co-inphoto-process-loader-dots-delay-2: 0.15s;
23
24
  --co-inphoto-process-loader-dots-delay-3: 0.30s;
25
+ --co-inphoto-process-loader-spark-small-a-delay: 0.3s;
26
+ --co-inphoto-process-loader-spark-small-b-delay: 0.9s;
27
+ --co-inphoto-process-loader-wrap-pulse-shadow-edge: 0 0 0 0 rgba(222, 241, 221, 0.7);
28
+ --co-inphoto-process-loader-wrap-pulse-shadow-spread: 0 0 0 20px rgba(222, 241, 221, 0);
29
+ --co-inphoto-process-loader-wrap-pulse-shadow-fade: 0 0 0 0 rgba(222, 241, 221, 0);
30
+ --co-inphoto-process-loader-pulse-transform-rest: scale(1) rotate(0deg);
31
+ --co-inphoto-process-loader-pulse-opacity-rest: 1;
32
+ --co-inphoto-process-loader-pulse-transform-peak: scale(1.12) rotate(8deg);
33
+ --co-inphoto-process-loader-pulse-opacity-peak: 0.85;
34
+ --co-inphoto-process-loader-twinkle-transform-rest: scale(0.5);
35
+ --co-inphoto-process-loader-twinkle-opacity-rest: 0.25;
36
+ --co-inphoto-process-loader-twinkle-transform-peak: scale(1.15);
37
+ --co-inphoto-process-loader-twinkle-opacity-peak: 1;
38
+ --co-inphoto-process-loader-drop-transform-out: translateY(-0.6em);
39
+ --co-inphoto-process-loader-drop-opacity-out: 0;
40
+ --co-inphoto-process-loader-drop-transform-in: translateY(0);
41
+ --co-inphoto-process-loader-drop-opacity-in: 1;
24
42
  }
@@ -42,13 +42,7 @@
42
42
 
43
43
  .loading-icon {
44
44
  background: var(--co-inphoto-header-icon-background);
45
- animation: wrap-pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
46
-
47
- svg {
48
- width: 100%;
49
- height: 100%;
50
- overflow: visible;
51
- }
45
+ animation: wrap-pulse var(--co-inphoto-process-loader-pulse-duration) ease-in-out infinite;
52
46
 
53
47
  .spark {
54
48
  fill: var(--co-inphoto-success-color);
@@ -57,71 +51,77 @@
57
51
  transform-style: preserve-3d;
58
52
 
59
53
  &--big {
60
- animation: pulse var(--co-inphoto-loader-pulse-duration) ease-in-out infinite;
54
+ animation: pulse var(--co-inphoto-process-loader-pulse-duration) ease-in-out infinite;
61
55
  }
62
56
 
63
57
  &--small-a {
64
- animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
65
- animation-delay: 0.3s;
58
+ animation: twinkle var(--co-inphoto-process-loader-twinkle-duration) ease-in-out infinite;
59
+ animation-delay: var(--co-inphoto-process-loader-spark-small-a-delay);
66
60
  }
67
61
 
68
62
  &--small-b {
69
- animation: twinkle var(--co-inphoto-loader-twinkle-duration) ease-in-out infinite;
70
- animation-delay: 0.9s;
63
+ animation: twinkle var(--co-inphoto-process-loader-twinkle-duration) ease-in-out infinite;
64
+ animation-delay: var(--co-inphoto-process-loader-spark-small-b-delay);
71
65
  }
72
66
  }
73
67
  }
74
68
 
75
69
  @keyframes wrap-pulse {
76
70
  0% {
77
- box-shadow: 0 0 0 0 rgba(222, 241, 221, 0.7);
71
+ box-shadow: var(--co-inphoto-process-loader-wrap-pulse-shadow-edge);
78
72
  }
79
73
  70% {
80
- box-shadow: 0 0 0 20px rgba(222, 241, 221, 0);
74
+ box-shadow: var(--co-inphoto-process-loader-wrap-pulse-shadow-spread);
81
75
  }
82
76
  100% {
83
- box-shadow: 0 0 0 0 rgba(222, 241, 221, 0);
77
+ box-shadow: var(--co-inphoto-process-loader-wrap-pulse-shadow-fade);
84
78
  }
85
79
  }
86
80
 
87
81
  @keyframes pulse {
88
82
  0%, 100% {
89
- transform: scale(1) rotate(0deg);
90
- opacity: 1;
83
+ transform: var(--co-inphoto-process-loader-pulse-transform-rest);
84
+ opacity: var(--co-inphoto-process-loader-pulse-opacity-rest);
91
85
  }
92
86
  50% {
93
- transform: scale(1.12) rotate(8deg);
94
- opacity: 0.85;
87
+ transform: var(--co-inphoto-process-loader-pulse-transform-peak);
88
+ opacity: var(--co-inphoto-process-loader-pulse-opacity-peak);
95
89
  }
96
90
  }
97
91
 
98
92
  @keyframes twinkle {
99
93
  0%, 100% {
100
- transform: scale(0.5);
101
- opacity: 0.25;
94
+ transform: var(--co-inphoto-process-loader-twinkle-transform-rest);
95
+ opacity: var(--co-inphoto-process-loader-twinkle-opacity-rest);
102
96
  }
103
97
  50% {
104
- transform: scale(1.15);
105
- opacity: 1;
98
+ transform: var(--co-inphoto-process-loader-twinkle-transform-peak);
99
+ opacity: var(--co-inphoto-process-loader-twinkle-opacity-peak);
100
+ }
101
+ }
102
+
103
+ @media (prefers-reduced-motion: reduce) {
104
+ .loading-text-track {
105
+ transition: var(--co-inphoto-process-loader-track-transition-none);
106
106
  }
107
107
  }
108
108
 
109
109
  @keyframes drop {
110
110
  0% {
111
- transform: translateY(-0.6em);
112
- opacity: 0;
111
+ transform: var(--co-inphoto-process-loader-drop-transform-out);
112
+ opacity: var(--co-inphoto-process-loader-drop-opacity-out);
113
113
  }
114
114
  20% {
115
- transform: translateY(0);
116
- opacity: 1;
115
+ transform: var(--co-inphoto-process-loader-drop-transform-in);
116
+ opacity: var(--co-inphoto-process-loader-drop-opacity-in);
117
117
  }
118
118
  80% {
119
- transform: translateY(0);
120
- opacity: 1;
119
+ transform: var(--co-inphoto-process-loader-drop-transform-in);
120
+ opacity: var(--co-inphoto-process-loader-drop-opacity-in);
121
121
  }
122
122
  100% {
123
- transform: translateY(-0.6em);
124
- opacity: 0;
123
+ transform: var(--co-inphoto-process-loader-drop-transform-out);
124
+ opacity: var(--co-inphoto-process-loader-drop-opacity-out);
125
125
  }
126
126
  }
127
127
  }
@@ -0,0 +1,25 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-scale-dialog-layout') {
4
+ .co-scale-dialog {
5
+ .scale-dialog-container {
6
+ position: var(--co-inphoto-scale-dialog-position);
7
+ width: var(--co-inphoto-scale-dialog-width);
8
+ padding: var(--co-inphoto-scale-dialog-padding);
9
+
10
+ .scale-dialog-header {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ }
15
+
16
+ .slider-container {
17
+ width: var(--co-inphoto-scale-dialog-full-width);
18
+
19
+ input {
20
+ width: var(--co-inphoto-scale-dialog-full-width);
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,8 @@
1
+ .co-scale-dialog {
2
+ --co-inphoto-scale-dialog-font-size-text: var(--co-inphoto-font-size-text);
3
+ --co-inphoto-scale-dialog-font-family: var(--co-inphoto-font-family);
4
+ --co-inphoto-scale-dialog-position: static;
5
+ --co-inphoto-scale-dialog-width: auto;
6
+ --co-inphoto-scale-dialog-padding: 15px 25px;
7
+ --co-inphoto-scale-dialog-full-width: 100%;
8
+ }
@@ -0,0 +1,26 @@
1
+ @use '../../../style' as cfg;
2
+
3
+ @include cfg.export-module('co-scale-dialog-theme') {
4
+ .co-scale-dialog {
5
+ font-family: var(--co-inphoto-scale-dialog-font-family);
6
+ font-size: var(--co-inphoto-scale-dialog-font-size-text);
7
+
8
+ .scale-dialog-container {
9
+ background: var(--co-inphoto-dialog-background-color);
10
+ border-radius: var(--co-inphoto-border-radius);
11
+
12
+ .scale-dialog-header {
13
+ .header {
14
+ @include cfg.header-text();
15
+ }
16
+
17
+ .header-close {
18
+ cursor: pointer;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
+
26
+
@@ -0,0 +1,3 @@
1
+ @use './_material-definition.scss';
2
+ @use './_layout.scss';
3
+ @use './_theme.scss';
@@ -5,11 +5,21 @@
5
5
  .scene-context-menu-container {
6
6
  position: var(--co-inphoto-scene-context-menu-position-absolute);
7
7
  bottom: var(--co-inphoto-scene-context-menu-container-bottom);
8
+ z-index: var(--co-inphoto-scene-context-menu-container-z-index);
8
9
  left: var(--co-inphoto-scene-context-menu-center-x);
9
10
  transform: var(--co-inphoto-scene-context-menu-translate-center-x);
10
11
  width: var(--co-inphoto-scene-context-menu-container-width);
11
12
  padding: var(--co-inphoto-scene-context-menu-container-padding);
12
13
 
14
+ .scene-context-menu-scale-dialog {
15
+ position: var(--co-inphoto-scene-context-menu-position-absolute);
16
+ bottom: var(--co-inphoto-scene-context-menu-scale-dialog-bottom);
17
+ left: var(--co-inphoto-scene-context-menu-center-x);
18
+ transform: var(--co-inphoto-scene-context-menu-translate-center-x);
19
+ width: var(--co-inphoto-scene-context-menu-scale-dialog-width);
20
+ max-width: var(--co-inphoto-scene-context-menu-scale-dialog-max-width);
21
+ }
22
+
13
23
  .scene-context-menu-body {
14
24
  display: flex;
15
25
  align-items: center;
@@ -33,7 +43,7 @@
33
43
  visibility: hidden;
34
44
  white-space: nowrap;
35
45
  position: var(--co-inphoto-scene-context-menu-position-absolute);
36
- top: var(--co-inphoto-scene-context-menu-item-text-top);
46
+ bottom: var(--co-inphoto-scene-context-menu-item-text-bottom);
37
47
  left: var(--co-inphoto-scene-context-menu-center-x);
38
48
  transform: var(--co-inphoto-scene-context-menu-translate-center-x);
39
49
  padding: var(--co-inphoto-scene-context-menu-item-text-padding);
@@ -41,7 +51,7 @@
41
51
  &::before {
42
52
  content: '';
43
53
  position: var(--co-inphoto-scene-context-menu-position-absolute);
44
- bottom: var(--co-inphoto-scene-context-menu-item-text-arrow-bottom);
54
+ top: var(--co-inphoto-scene-context-menu-item-text-arrow-top);
45
55
  left: var(--co-inphoto-scene-context-menu-center-x);
46
56
  transform: var(--co-inphoto-scene-context-menu-translate-center-x);
47
57
  }
@@ -1,11 +1,12 @@
1
1
  .co-scene-context-menu {
2
2
  --co-inphoto-scene-context-menu-font-size-text: var(--co-inphoto-font-size-text);
3
3
  --co-inphoto-scene-context-menu-font-family: var(--co-inphoto-font-family);
4
- --co-inphoto-context-menu-box-shadow: 0 6px 20px rgba(23, 37, 51, 0.18);
5
- --co-inphoto-context-menu-hover-background: #f0f2f5;
4
+ --co-inphoto-scene-context-menu-box-shadow: 0 6px 20px rgba(23, 37, 51, 0.18);
5
+ --co-inphoto-scene-context-menu-item-hover-background: #f0f2f5;
6
6
  --co-inphoto-scene-context-menu-position-absolute: absolute;
7
7
  --co-inphoto-scene-context-menu-position-relative: relative;
8
8
  --co-inphoto-scene-context-menu-container-bottom: 70px;
9
+ --co-inphoto-scene-context-menu-container-z-index: 10; // above the 2D image canvas (z-index 5)
9
10
  --co-inphoto-scene-context-menu-center-x: 50%;
10
11
  --co-inphoto-scene-context-menu-translate-center-x: translateX(-50%);
11
12
  --co-inphoto-scene-context-menu-container-width: auto;
@@ -18,10 +19,14 @@
18
19
  --co-inphoto-scene-context-menu-item-transition: background 0.15s ease;
19
20
  --co-inphoto-scene-context-menu-item-text-hidden-opacity: 0;
20
21
  --co-inphoto-scene-context-menu-item-text-visible-opacity: 1;
21
- --co-inphoto-scene-context-menu-item-text-top: calc(100% + 10px);
22
+ --co-inphoto-scene-context-menu-item-text-bottom: calc(100% + 10px);
22
23
  --co-inphoto-scene-context-menu-item-text-padding: 6px 12px;
23
24
  --co-inphoto-scene-context-menu-item-text-radius: 8px;
24
25
  --co-inphoto-scene-context-menu-item-text-transition: opacity 0.15s ease, visibility 0.15s ease;
25
- --co-inphoto-scene-context-menu-item-text-arrow-bottom: 100%;
26
+ --co-inphoto-scene-context-menu-item-text-arrow-top: 100%;
26
27
  --co-inphoto-scene-context-menu-arrow-border: 5px solid transparent;
28
+ --co-inphoto-scene-context-menu-scale-dialog-bottom: calc(100% + 12px);
29
+ --co-inphoto-scene-context-menu-scale-dialog-width: 320px;
30
+ --co-inphoto-scene-context-menu-scale-dialog-max-width: calc(100vw - 32px);
27
31
  }
32
+
@@ -7,9 +7,14 @@
7
7
 
8
8
  .scene-context-menu-container {
9
9
  background: var(--co-inphoto-background-white);
10
- box-shadow: var(--co-inphoto-context-menu-box-shadow);
10
+ box-shadow: var(--co-inphoto-scene-context-menu-box-shadow);
11
11
  border-radius: var(--co-inphoto-scene-context-menu-container-radius);
12
12
 
13
+ .scene-context-menu-scale-dialog {
14
+ box-shadow: var(--co-inphoto-scene-context-menu-box-shadow);
15
+ border-radius: var(--co-inphoto-border-radius);
16
+ }
17
+
13
18
  .scene-context-menu-body {
14
19
  .scene-context-menu-item {
15
20
  border-radius: var(--co-inphoto-scene-context-menu-item-radius);
@@ -22,19 +27,19 @@
22
27
  .scene-context-menu-item-text {
23
28
  opacity: var(--co-inphoto-scene-context-menu-item-text-hidden-opacity);
24
29
  background: var(--co-inphoto-background-white);
25
- box-shadow: var(--co-inphoto-context-menu-box-shadow);
30
+ box-shadow: var(--co-inphoto-scene-context-menu-box-shadow);
26
31
  border-radius: var(--co-inphoto-scene-context-menu-item-text-radius);
27
32
  transition: var(--co-inphoto-scene-context-menu-item-text-transition);
28
33
  @include cfg.text();
29
34
 
30
35
  &::before {
31
36
  border: var(--co-inphoto-scene-context-menu-arrow-border);
32
- border-bottom-color: var(--co-inphoto-background-white);
37
+ border-top-color: var(--co-inphoto-background-white);
33
38
  }
34
39
  }
35
40
 
36
41
  &:hover {
37
- background: var(--co-inphoto-context-menu-hover-background);
42
+ background: var(--co-inphoto-scene-context-menu-item-hover-background);
38
43
 
39
44
  .scene-context-menu-item-text {
40
45
  opacity: var(--co-inphoto-scene-context-menu-item-text-visible-opacity);
@@ -25,7 +25,7 @@
25
25
  gap: var(--co-inphoto-segment-inpaint-tile-group-gap);
26
26
 
27
27
  .co-step-tile {
28
- flex: 1;
28
+ flex: var(--co-inphoto-segment-inpaint-tile-group-flex);
29
29
 
30
30
  .button-container {
31
31
  display: block;
@@ -33,6 +33,7 @@
33
33
  .image-container {
34
34
  --co-inphoto-step-tile-image-size: var(--co-inphoto-segment-inpaint-tile-image-size);
35
35
  }
36
+
36
37
  .button-container-text-container {
37
38
  --co-inphoto-step-tile-button-container-padding: var(--co-inphoto-segment-inpaint-tile-container-padding);
38
39
  }
@@ -45,6 +46,27 @@
45
46
  }
46
47
  }
47
48
  }
49
+
50
+ .button-container {
51
+ display: flex;
52
+ justify-content: space-between;
53
+ gap: var(--co-inphoto-segment-inpaint-button-container-gap);
54
+ margin-top: var(--co-inphoto-segment-inpaint-button-container-margin-top);
55
+
56
+ .co-button {
57
+ flex: 1;
58
+ }
59
+
60
+ .clear-objects-button {
61
+ margin-bottom: var(--co-inphoto-segment-inpaint-clear-button-margin-bottom);
62
+ }
63
+
64
+ .clear-objects-button, .restart-button {
65
+ .label {
66
+ margin-left: var(--co-inphoto-segment-inpaint-button-label-margin-left);
67
+ }
68
+ }
69
+ }
48
70
  }
49
71
  }
50
72
  }
@@ -4,8 +4,16 @@
4
4
  --co-inphoto-segment-inpaint-full-size: 100%;
5
5
  --co-inphoto-segment-inpaint-zero: 0;
6
6
  --co-inphoto-segment-inpaint-position-relative: relative;
7
- --co-inphoto-segment-inpaint-tile-group-gap: 10px;
7
+ --co-inphoto-segment-inpaint-tile-group-gap: 16px;
8
+ --co-inphoto-segment-inpaint-tile-group-flex: 1;
8
9
  --co-inphoto-segment-inpaint-tile-image-size: 100%;
9
10
  --co-inphoto-segment-inpaint-tile-container-padding: 5px;
10
11
  --co-inphoto-segment-inpaint-tile-active-border: 1px solid var(--co-inphoto-accent-color);
12
+ --co-inphoto-segment-inpaint-tile-disabled-opacity: 0.5;
13
+
14
+ --co-inphoto-segment-inpaint-button-container-gap: 16px;
15
+ --co-inphoto-segment-inpaint-button-container-margin-top: 20px;
16
+ --co-inphoto-segment-inpaint-clear-button-margin-bottom: 30px;
17
+ --co-inphoto-segment-inpaint-button-label-margin-left: 15px;
18
+ --co-inphoto-segment-inpaint-button-label-font-weight: normal;
11
19
  }