kitchen-simulator 1.0.0-clark.101 → 1.0.0-clark.102
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
|
-
var
|
|
335
|
-
var
|
|
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
|
}
|
|
@@ -374,9 +374,9 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
374
374
|
});
|
|
375
375
|
if (tempPlaceholders.length > 0) if (_objCnt4 === 1 || fixedPHs % _objCnt4 !== 0) {
|
|
376
376
|
if (tempData['fixed_drawer_door_handle_1'] === undefined) tempData['fixed_drawer_door_handle_1'] = [];
|
|
377
|
-
|
|
378
|
-
phname = tempPlaceholders[0].name;
|
|
379
|
-
newph = undefined;
|
|
377
|
+
var _loop2 = function _loop2() {
|
|
378
|
+
var phname = tempPlaceholders[0].name;
|
|
379
|
+
var newph = undefined;
|
|
380
380
|
if (tempData['base_fixed_drawer_door_1'][_w2].isLeftPlaceholder()) {
|
|
381
381
|
newph = tempPlaceholders.find(function (el) {
|
|
382
382
|
return el.name.isRightPlaceholder();
|
|
@@ -395,30 +395,33 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
395
395
|
})) {
|
|
396
396
|
tempData['fixed_drawer_door_handle_1'].push('base_fixed_drawer_door_1/' + phname);
|
|
397
397
|
}
|
|
398
|
+
};
|
|
399
|
+
for (var _w2 = 0; _w2 < fixedPHs; _w2++) {
|
|
400
|
+
_loop2();
|
|
398
401
|
}
|
|
399
402
|
} else if (_objCnt4 > 1 && fixedPHs > 0 && fixedPHs % _objCnt4 === 0) {
|
|
400
403
|
if (tempData['fixed_drawer_door_handle' + t.name.slice(-2)] === undefined) {
|
|
401
404
|
tempData['fixed_drawer_door_handle' + t.name.slice(-2)] = [];
|
|
402
405
|
}
|
|
403
|
-
|
|
404
|
-
|
|
406
|
+
var _phname = tempPlaceholders[0].name;
|
|
407
|
+
var _newph = undefined;
|
|
405
408
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
406
|
-
|
|
409
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
407
410
|
return el.name.isRightPlaceholder();
|
|
408
411
|
});
|
|
409
412
|
}
|
|
410
413
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
411
|
-
|
|
414
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
412
415
|
return el.name.isLeftPlaceholder();
|
|
413
416
|
});
|
|
414
417
|
}
|
|
415
|
-
if (
|
|
416
|
-
|
|
418
|
+
if (_newph != undefined) {
|
|
419
|
+
_phname = _newph.name;
|
|
417
420
|
}
|
|
418
421
|
if (!tempData['fixed_drawer_door_handle' + t.name.slice(-2)].some(function (el) {
|
|
419
|
-
return el === t.name + '/' +
|
|
422
|
+
return el === t.name + '/' + _phname;
|
|
420
423
|
})) {
|
|
421
|
-
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
424
|
+
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' + _phname);
|
|
422
425
|
}
|
|
423
426
|
}
|
|
424
427
|
}
|
|
@@ -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
|
-
var
|
|
343
|
-
var
|
|
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
|
}
|
|
@@ -382,9 +382,9 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
382
382
|
});
|
|
383
383
|
if (tempPlaceholders.length > 0) if (_objCnt4 === 1 || fixedPHs % _objCnt4 !== 0) {
|
|
384
384
|
if (tempData['fixed_drawer_door_handle_1'] === undefined) tempData['fixed_drawer_door_handle_1'] = [];
|
|
385
|
-
|
|
386
|
-
phname = tempPlaceholders[0].name;
|
|
387
|
-
newph = undefined;
|
|
385
|
+
var _loop2 = function _loop2() {
|
|
386
|
+
var phname = tempPlaceholders[0].name;
|
|
387
|
+
var newph = undefined;
|
|
388
388
|
if (tempData['base_fixed_drawer_door_1'][_w2].isLeftPlaceholder()) {
|
|
389
389
|
newph = tempPlaceholders.find(function (el) {
|
|
390
390
|
return el.name.isRightPlaceholder();
|
|
@@ -403,30 +403,33 @@ function _parseTempPlaceholdersFromCabinetPayload() {
|
|
|
403
403
|
})) {
|
|
404
404
|
tempData['fixed_drawer_door_handle_1'].push('base_fixed_drawer_door_1/' + phname);
|
|
405
405
|
}
|
|
406
|
+
};
|
|
407
|
+
for (var _w2 = 0; _w2 < fixedPHs; _w2++) {
|
|
408
|
+
_loop2();
|
|
406
409
|
}
|
|
407
410
|
} else if (_objCnt4 > 1 && fixedPHs > 0 && fixedPHs % _objCnt4 === 0) {
|
|
408
411
|
if (tempData['fixed_drawer_door_handle' + t.name.slice(-2)] === undefined) {
|
|
409
412
|
tempData['fixed_drawer_door_handle' + t.name.slice(-2)] = [];
|
|
410
413
|
}
|
|
411
|
-
|
|
412
|
-
|
|
414
|
+
var _phname = tempPlaceholders[0].name;
|
|
415
|
+
var _newph = undefined;
|
|
413
416
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
414
|
-
|
|
417
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
415
418
|
return el.name.isRightPlaceholder();
|
|
416
419
|
});
|
|
417
420
|
}
|
|
418
421
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
419
|
-
|
|
422
|
+
_newph = tempPlaceholders.find(function (el) {
|
|
420
423
|
return el.name.isLeftPlaceholder();
|
|
421
424
|
});
|
|
422
425
|
}
|
|
423
|
-
if (
|
|
424
|
-
|
|
426
|
+
if (_newph != undefined) {
|
|
427
|
+
_phname = _newph.name;
|
|
425
428
|
}
|
|
426
429
|
if (!tempData['fixed_drawer_door_handle' + t.name.slice(-2)].some(function (el) {
|
|
427
|
-
return el === t.name + '/' +
|
|
430
|
+
return el === t.name + '/' + _phname;
|
|
428
431
|
})) {
|
|
429
|
-
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
432
|
+
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' + _phname);
|
|
430
433
|
}
|
|
431
434
|
}
|
|
432
435
|
}
|