kitchen-simulator 11.21.0 → 11.22.0

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.
@@ -73,8 +73,19 @@ export function getSideFaces(item, layer) {
73
73
  skinPanelSKU = i === 2 ? 'unknown' : SKIN_SKU_BSV_24;
74
74
  break;
75
75
  case WALL_CABINET_LAYOUTPOS:
76
- if (Math.abs(depthInch - 12) <= 1) skinPanelSKU = SKIN_SKU_WSV_1242;else if (Math.abs(depthInch - 24) <= 1) skinPanelSKU = SKIN_SKU_WSV_2442;
77
- break;
76
+ {
77
+ // Wall corner cabinets (e.g. "Wall Easy Reach") still use 12"-deep wall skins.
78
+ // Their bounding box/edge length can be ~24" even though the finished end panel
79
+ // part SKU is WSV1242.
80
+ if (isCornerCabinet(item)) {
81
+ skinPanelSKU = SKIN_SKU_WSV_1242;
82
+ } else if (Math.abs(depthInch - 12) <= 1) {
83
+ skinPanelSKU = SKIN_SKU_WSV_1242;
84
+ } else if (Math.abs(depthInch - 24) <= 1) {
85
+ skinPanelSKU = SKIN_SKU_WSV_2442;
86
+ }
87
+ break;
88
+ }
78
89
  case TALL_CABINET_LAYOUTPOS:
79
90
  skinPanelSKU = SKIN_SKU_USV245325;
80
91
  break;
@@ -81,8 +81,19 @@ function getSideFaces(item, layer) {
81
81
  skinPanelSKU = i === 2 ? 'unknown' : _skinPanel.SKIN_SKU_BSV_24;
82
82
  break;
83
83
  case _constants.WALL_CABINET_LAYOUTPOS:
84
- if (Math.abs(depthInch - 12) <= 1) skinPanelSKU = _skinPanel.SKIN_SKU_WSV_1242;else if (Math.abs(depthInch - 24) <= 1) skinPanelSKU = _skinPanel.SKIN_SKU_WSV_2442;
85
- break;
84
+ {
85
+ // Wall corner cabinets (e.g. "Wall Easy Reach") still use 12"-deep wall skins.
86
+ // Their bounding box/edge length can be ~24" even though the finished end panel
87
+ // part SKU is WSV1242.
88
+ if ((0, _cabinetCorner.isCornerCabinet)(item)) {
89
+ skinPanelSKU = _skinPanel.SKIN_SKU_WSV_1242;
90
+ } else if (Math.abs(depthInch - 12) <= 1) {
91
+ skinPanelSKU = _skinPanel.SKIN_SKU_WSV_1242;
92
+ } else if (Math.abs(depthInch - 24) <= 1) {
93
+ skinPanelSKU = _skinPanel.SKIN_SKU_WSV_2442;
94
+ }
95
+ break;
96
+ }
86
97
  case _constants.TALL_CABINET_LAYOUTPOS:
87
98
  skinPanelSKU = _skinPanel.SKIN_SKU_USV245325;
88
99
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "11.21.0",
3
+ "version": "11.22.0",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",