kitchen-simulator 11.28.0 → 11.29.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.
package/es/class/item.js
CHANGED
|
@@ -1332,13 +1332,16 @@ var Item = /*#__PURE__*/function () {
|
|
|
1332
1332
|
doorStyle: doorStyle
|
|
1333
1333
|
});
|
|
1334
1334
|
var layerID = state.scene.get('selectedLayer');
|
|
1335
|
-
|
|
1336
|
-
temp_layer_molding =
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
state = state.setIn(
|
|
1335
|
+
|
|
1336
|
+
// let temp_layer_molding = state.scene.getIn(['layers', layerID, 'molding']);
|
|
1337
|
+
// temp_layer_molding = temp_layer_molding.filter(md =>
|
|
1338
|
+
// itemCDS?.some(ds => md.itemID === ds.itemID)
|
|
1339
|
+
// );
|
|
1340
|
+
|
|
1341
|
+
// state = state.setIn(
|
|
1342
|
+
// ['scene', 'layers', layerID, 'molding'],
|
|
1343
|
+
// temp_layer_molding
|
|
1344
|
+
// );
|
|
1342
1345
|
|
|
1343
1346
|
// 🔥 Determine which items to update
|
|
1344
1347
|
var items = state.scene.layers.get(layerID).items;
|
|
@@ -70,7 +70,7 @@ export function ccdfMapper(ccdf_list, layer) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
// make structure_json
|
|
73
|
-
if (cd.category === 'cabinet' || cd.category === 'Base') structure_json = {
|
|
73
|
+
if (cd.category === 'cabinet' || cd.category === 'Base' || cd.category === 'Wall' || cd.category === 'Tall') structure_json = {
|
|
74
74
|
tempPlaceholders: tempPlaceholders
|
|
75
75
|
};else structure_json = structure;
|
|
76
76
|
// make cabinet definition using structure_json and catalog
|
package/lib/class/item.js
CHANGED
|
@@ -1339,13 +1339,16 @@ var Item = exports["default"] = /*#__PURE__*/function () {
|
|
|
1339
1339
|
doorStyle: doorStyle
|
|
1340
1340
|
});
|
|
1341
1341
|
var layerID = state.scene.get('selectedLayer');
|
|
1342
|
-
|
|
1343
|
-
temp_layer_molding =
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
state = state.setIn(
|
|
1342
|
+
|
|
1343
|
+
// let temp_layer_molding = state.scene.getIn(['layers', layerID, 'molding']);
|
|
1344
|
+
// temp_layer_molding = temp_layer_molding.filter(md =>
|
|
1345
|
+
// itemCDS?.some(ds => md.itemID === ds.itemID)
|
|
1346
|
+
// );
|
|
1347
|
+
|
|
1348
|
+
// state = state.setIn(
|
|
1349
|
+
// ['scene', 'layers', layerID, 'molding'],
|
|
1350
|
+
// temp_layer_molding
|
|
1351
|
+
// );
|
|
1349
1352
|
|
|
1350
1353
|
// 🔥 Determine which items to update
|
|
1351
1354
|
var items = state.scene.layers.get(layerID).items;
|
|
@@ -77,7 +77,7 @@ function ccdfMapper(ccdf_list, layer) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
// make structure_json
|
|
80
|
-
if (cd.category === 'cabinet' || cd.category === 'Base') structure_json = {
|
|
80
|
+
if (cd.category === 'cabinet' || cd.category === 'Base' || cd.category === 'Wall' || cd.category === 'Tall') structure_json = {
|
|
81
81
|
tempPlaceholders: tempPlaceholders
|
|
82
82
|
};else structure_json = structure;
|
|
83
83
|
// make cabinet definition using structure_json and catalog
|