kitchen-simulator 11.20.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.
|
@@ -26,7 +26,7 @@ export function ccdfMapper(ccdf_list, layer) {
|
|
|
26
26
|
}
|
|
27
27
|
var cd = layerJS.items[correctItemId];
|
|
28
28
|
if (cd && !!(ccdf !== null && ccdf !== void 0 && ccdf.scene_cabinet_id) && (cd === null || cd === void 0 ? void 0 : cd.id) === ccdf.scene_cabinet_id) {
|
|
29
|
-
var _ccdf$cabinet_id,
|
|
29
|
+
var _ccdf$cabinet_id, _ccdf$long_name, _ccdf$sizeinfo, _ccdf$shape_svg, _ccdf$is_corner;
|
|
30
30
|
if (!isEmpty(ccdf === null || ccdf === void 0 ? void 0 : ccdf.id)) {
|
|
31
31
|
cdfId = ccdf.id;
|
|
32
32
|
}
|
|
@@ -79,13 +79,13 @@ export function ccdfMapper(ccdf_list, layer) {
|
|
|
79
79
|
itemID: (_ccdf$cabinet_id = ccdf === null || ccdf === void 0 ? void 0 : ccdf.cabinet_id) !== null && _ccdf$cabinet_id !== void 0 ? _ccdf$cabinet_id : cd.itemID,
|
|
80
80
|
// cd.itemID may be legacy from legacy project, so ccdf.cabinet_id is preferred if exists
|
|
81
81
|
name: cd.name,
|
|
82
|
-
long_name: (
|
|
83
|
-
sizeinfo: (
|
|
82
|
+
long_name: (_ccdf$long_name = ccdf === null || ccdf === void 0 ? void 0 : ccdf.long_name) !== null && _ccdf$long_name !== void 0 ? _ccdf$long_name : cd.long_name,
|
|
83
|
+
sizeinfo: (_ccdf$sizeinfo = ccdf === null || ccdf === void 0 ? void 0 : ccdf.sizeinfo) !== null && _ccdf$sizeinfo !== void 0 ? _ccdf$sizeinfo : cd.sizeinfo,
|
|
84
84
|
description: cd.description,
|
|
85
85
|
prototype: cd.prototype,
|
|
86
86
|
base: cd.base,
|
|
87
87
|
ccdf: cd.ccdf,
|
|
88
|
-
shape_svg: (
|
|
88
|
+
shape_svg: (_ccdf$shape_svg = ccdf === null || ccdf === void 0 ? void 0 : ccdf.shape_svg) !== null && _ccdf$shape_svg !== void 0 ? _ccdf$shape_svg : cd.shape_svg,
|
|
89
89
|
// If host provides cabinet base gltf/bin at CCDF top-level, prefer it.
|
|
90
90
|
gltf: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.gltf) || cd.gltf,
|
|
91
91
|
bin: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.bin) || (cd === null || cd === void 0 ? void 0 : cd.bin),
|
|
@@ -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
|
-
|
|
77
|
-
|
|
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;
|
|
@@ -33,7 +33,7 @@ function ccdfMapper(ccdf_list, layer) {
|
|
|
33
33
|
}
|
|
34
34
|
var cd = layerJS.items[correctItemId];
|
|
35
35
|
if (cd && !!(ccdf !== null && ccdf !== void 0 && ccdf.scene_cabinet_id) && (cd === null || cd === void 0 ? void 0 : cd.id) === ccdf.scene_cabinet_id) {
|
|
36
|
-
var _ccdf$cabinet_id,
|
|
36
|
+
var _ccdf$cabinet_id, _ccdf$long_name, _ccdf$sizeinfo, _ccdf$shape_svg, _ccdf$is_corner;
|
|
37
37
|
if (!(0, _utils.isEmpty)(ccdf === null || ccdf === void 0 ? void 0 : ccdf.id)) {
|
|
38
38
|
cdfId = ccdf.id;
|
|
39
39
|
}
|
|
@@ -86,13 +86,13 @@ function ccdfMapper(ccdf_list, layer) {
|
|
|
86
86
|
itemID: (_ccdf$cabinet_id = ccdf === null || ccdf === void 0 ? void 0 : ccdf.cabinet_id) !== null && _ccdf$cabinet_id !== void 0 ? _ccdf$cabinet_id : cd.itemID,
|
|
87
87
|
// cd.itemID may be legacy from legacy project, so ccdf.cabinet_id is preferred if exists
|
|
88
88
|
name: cd.name,
|
|
89
|
-
long_name: (
|
|
90
|
-
sizeinfo: (
|
|
89
|
+
long_name: (_ccdf$long_name = ccdf === null || ccdf === void 0 ? void 0 : ccdf.long_name) !== null && _ccdf$long_name !== void 0 ? _ccdf$long_name : cd.long_name,
|
|
90
|
+
sizeinfo: (_ccdf$sizeinfo = ccdf === null || ccdf === void 0 ? void 0 : ccdf.sizeinfo) !== null && _ccdf$sizeinfo !== void 0 ? _ccdf$sizeinfo : cd.sizeinfo,
|
|
91
91
|
description: cd.description,
|
|
92
92
|
prototype: cd.prototype,
|
|
93
93
|
base: cd.base,
|
|
94
94
|
ccdf: cd.ccdf,
|
|
95
|
-
shape_svg: (
|
|
95
|
+
shape_svg: (_ccdf$shape_svg = ccdf === null || ccdf === void 0 ? void 0 : ccdf.shape_svg) !== null && _ccdf$shape_svg !== void 0 ? _ccdf$shape_svg : cd.shape_svg,
|
|
96
96
|
// If host provides cabinet base gltf/bin at CCDF top-level, prefer it.
|
|
97
97
|
gltf: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.gltf) || cd.gltf,
|
|
98
98
|
bin: (ccdf === null || ccdf === void 0 ? void 0 : ccdf.bin) || (cd === null || cd === void 0 ? void 0 : cd.bin),
|
|
@@ -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
|
-
|
|
85
|
-
|
|
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;
|