kitchen-simulator 1.0.0-clark.100 → 1.0.0-clark.101
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.
|
@@ -331,12 +331,12 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
331
331
|
}
|
|
332
332
|
} else if (_objCnt3 > 1 && doorPHs > 0 && doorPHs % _objCnt3 === 0) {
|
|
333
333
|
if (tempData['door_handle' + t.name.slice(-2)] === undefined) tempData['door_handle' + t.name.slice(-2)] = [];
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
var _phname = tempPlaceholders[0].name;
|
|
335
|
+
var _newph = undefined;
|
|
336
336
|
var blAdd = true;
|
|
337
337
|
if (element.is_corner) {
|
|
338
338
|
if (tempData['base_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
339
|
-
|
|
339
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
340
340
|
return el.name.isLeftPlaceholder();
|
|
341
341
|
});
|
|
342
342
|
} else {
|
|
@@ -344,24 +344,24 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
344
344
|
}
|
|
345
345
|
} else {
|
|
346
346
|
if (tempData['base_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
347
|
-
|
|
347
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
348
348
|
return el.name.isRightPlaceholder();
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
if (tempData['base_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
352
|
-
|
|
352
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
353
353
|
return el.name.isLeftPlaceholder();
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
if (blAdd) {
|
|
358
|
-
if (
|
|
359
|
-
|
|
358
|
+
if (_newph != undefined) {
|
|
359
|
+
_phname = _newph.name;
|
|
360
360
|
}
|
|
361
361
|
if (!tempData['door_handle' + t.name.slice(-2)].some(function (el) {
|
|
362
|
-
return el === t.name + '/' +
|
|
362
|
+
return el === t.name + '/' + _phname;
|
|
363
363
|
})) {
|
|
364
|
-
tempData['door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
364
|
+
tempData['door_handle' + t.name.slice(-2)].push(t.name + '/' + _phname);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
@@ -339,12 +339,12 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
339
339
|
}
|
|
340
340
|
} else if (_objCnt3 > 1 && doorPHs > 0 && doorPHs % _objCnt3 === 0) {
|
|
341
341
|
if (tempData['door_handle' + t.name.slice(-2)] === undefined) tempData['door_handle' + t.name.slice(-2)] = [];
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
var _phname = tempPlaceholders[0].name;
|
|
343
|
+
var _newph = undefined;
|
|
344
344
|
var blAdd = true;
|
|
345
345
|
if (element.is_corner) {
|
|
346
346
|
if (tempData['base_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
347
|
-
|
|
347
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
348
348
|
return el.name.isLeftPlaceholder();
|
|
349
349
|
});
|
|
350
350
|
} else {
|
|
@@ -352,24 +352,24 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
352
352
|
}
|
|
353
353
|
} else {
|
|
354
354
|
if (tempData['base_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
355
|
-
|
|
355
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
356
356
|
return el.name.isRightPlaceholder();
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
if (tempData['base_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
360
|
-
|
|
360
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
361
361
|
return el.name.isLeftPlaceholder();
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
if (blAdd) {
|
|
366
|
-
if (
|
|
367
|
-
|
|
366
|
+
if (_newph != undefined) {
|
|
367
|
+
_phname = _newph.name;
|
|
368
368
|
}
|
|
369
369
|
if (!tempData['door_handle' + t.name.slice(-2)].some(function (el) {
|
|
370
|
-
return el === t.name + '/' +
|
|
370
|
+
return el === t.name + '/' + _phname;
|
|
371
371
|
})) {
|
|
372
|
-
tempData['door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
372
|
+
tempData['door_handle' + t.name.slice(-2)].push(t.name + '/' + _phname);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|