kitchen-simulator 11.3.0 → 11.5.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.
@@ -199,9 +199,12 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
199
199
  var verticallyOverlappedBottomPart = jFace.zTop < iFace.zTop && jFace.zTop > iFace.zBottom && Math.abs(jFace.zTop - iFace.zTop) > EPSILON && Math.abs(jFace.zTop - iFace.zBottom) > EPSILON;
200
200
  var relationship = relationshipOfTwoOverlappedLines(iFace.sectionLine, jFace.sectionLine);
201
201
  if (overlapList.includes(relationship.result)) {
202
- if (verticallyIncluded) removeIdxs.push(i);else if (verticallyOverlappedTopPart) {
202
+ if (verticallyIncluded) {
203
203
  removeIdxs.push(i);
204
- newFaces.push({
204
+ break;
205
+ } else if (verticallyOverlappedTopPart) {
206
+ removeIdxs.push(i);
207
+ var newFace = {
205
208
  sectionLine: iFace.sectionLine,
206
209
  // cm unit
207
210
  zBottom: iFace.zBottom,
@@ -215,10 +218,15 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
215
218
  isBackFace: iFace.isBackFace,
216
219
  skinPanelSKU: iFace.skinPanelSKU,
217
220
  itemInfo: iFace.itemInfo
218
- });
221
+ };
222
+ var contourFaces = filterFacesBlockedByFaces([newFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
223
+ return idx !== i;
224
+ }) : blockingFaces, 0);
225
+ if (contourFaces.length > 0) newFaces = [].concat(_toConsumableArray(newFaces), _toConsumableArray(contourFaces));
226
+ break;
219
227
  } else if (verticallyOverlappedBottomPart) {
220
228
  removeIdxs.push(i);
221
- newFaces.push({
229
+ var _newFace = {
222
230
  sectionLine: iFace.sectionLine,
223
231
  // cm unit
224
232
  zBottom: jFace.zTop,
@@ -232,9 +240,13 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
232
240
  isBackFace: iFace.isBackFace,
233
241
  skinPanelSKU: iFace.skinPanelSKU,
234
242
  itemInfo: iFace.itemInfo
235
- });
243
+ };
244
+ var _contourFaces = filterFacesBlockedByFaces([_newFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
245
+ return idx !== i;
246
+ }) : blockingFaces, 0);
247
+ if (_contourFaces.length > 0) newFaces = [].concat(_toConsumableArray(newFaces), _toConsumableArray(_contourFaces));
248
+ break;
236
249
  }
237
- break;
238
250
  } else if (relationship.result === OVERLAP_SOME && ((_relationship$trimmed = relationship.trimmedSegs) === null || _relationship$trimmed === void 0 ? void 0 : _relationship$trimmed.length) > 0 && verticallyIncluded) {
239
251
  removeIdxs.push(i);
240
252
  var tFaceSegs = getTrimmedFaceSegs([iFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
@@ -207,9 +207,12 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
207
207
  var verticallyOverlappedBottomPart = jFace.zTop < iFace.zTop && jFace.zTop > iFace.zBottom && Math.abs(jFace.zTop - iFace.zTop) > _constants.EPSILON && Math.abs(jFace.zTop - iFace.zBottom) > _constants.EPSILON;
208
208
  var relationship = (0, _geometry.relationshipOfTwoOverlappedLines)(iFace.sectionLine, jFace.sectionLine);
209
209
  if (overlapList.includes(relationship.result)) {
210
- if (verticallyIncluded) removeIdxs.push(i);else if (verticallyOverlappedTopPart) {
210
+ if (verticallyIncluded) {
211
211
  removeIdxs.push(i);
212
- newFaces.push({
212
+ break;
213
+ } else if (verticallyOverlappedTopPart) {
214
+ removeIdxs.push(i);
215
+ var newFace = {
213
216
  sectionLine: iFace.sectionLine,
214
217
  // cm unit
215
218
  zBottom: iFace.zBottom,
@@ -223,10 +226,15 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
223
226
  isBackFace: iFace.isBackFace,
224
227
  skinPanelSKU: iFace.skinPanelSKU,
225
228
  itemInfo: iFace.itemInfo
226
- });
229
+ };
230
+ var contourFaces = filterFacesBlockedByFaces([newFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
231
+ return idx !== i;
232
+ }) : blockingFaces, 0);
233
+ if (contourFaces.length > 0) newFaces = [].concat((0, _toConsumableArray2["default"])(newFaces), (0, _toConsumableArray2["default"])(contourFaces));
234
+ break;
227
235
  } else if (verticallyOverlappedBottomPart) {
228
236
  removeIdxs.push(i);
229
- newFaces.push({
237
+ var _newFace = {
230
238
  sectionLine: iFace.sectionLine,
231
239
  // cm unit
232
240
  zBottom: jFace.zTop,
@@ -240,9 +248,13 @@ function filterFacesBlockedByFaces(sourceFaces, blockingFaces) {
240
248
  isBackFace: iFace.isBackFace,
241
249
  skinPanelSKU: iFace.skinPanelSKU,
242
250
  itemInfo: iFace.itemInfo
243
- });
251
+ };
252
+ var _contourFaces = filterFacesBlockedByFaces([_newFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
253
+ return idx !== i;
254
+ }) : blockingFaces, 0);
255
+ if (_contourFaces.length > 0) newFaces = [].concat((0, _toConsumableArray2["default"])(newFaces), (0, _toConsumableArray2["default"])(_contourFaces));
256
+ break;
244
257
  }
245
- break;
246
258
  } else if (relationship.result === _constants.OVERLAP_SOME && ((_relationship$trimmed = relationship.trimmedSegs) === null || _relationship$trimmed === void 0 ? void 0 : _relationship$trimmed.length) > 0 && verticallyIncluded) {
247
259
  removeIdxs.push(i);
248
260
  var tFaceSegs = getTrimmedFaceSegs([iFace], sourceFaces === blockingFaces ? blockingFaces.filter(function (v, idx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "11.3.0",
3
+ "version": "11.5.0",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",