kitchen-simulator 11.20.0 → 11.21.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),
|
|
@@ -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),
|