kitchen-simulator 1.0.0-clark.105 → 1.0.0-clark.110
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/models.js +2 -2
- package/es/utils/isolate-event-handler.js +16 -13
- package/lib/models.js +2 -2
- package/lib/utils/isolate-event-handler.js +16 -13
- package/package.json +1 -1
package/es/models.js
CHANGED
|
@@ -39,7 +39,7 @@ export var DefaultGrids = new Map({
|
|
|
39
39
|
type: 'horizontal-streak',
|
|
40
40
|
properties: {
|
|
41
41
|
step: 24,
|
|
42
|
-
colors: ['
|
|
42
|
+
colors: ['rgb(193, 202, 228)'] // dot's color
|
|
43
43
|
}
|
|
44
44
|
}),
|
|
45
45
|
v1: new Grid({
|
|
@@ -47,7 +47,7 @@ export var DefaultGrids = new Map({
|
|
|
47
47
|
type: 'vertical-streak',
|
|
48
48
|
properties: {
|
|
49
49
|
step: 24,
|
|
50
|
-
colors: ['
|
|
50
|
+
colors: ['rgb(193, 202, 228)'] // dot's color
|
|
51
51
|
}
|
|
52
52
|
})
|
|
53
53
|
});
|
|
@@ -331,8 +331,8 @@ 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
|
-
phname = tempPlaceholders[0].name;
|
|
335
|
-
newph = undefined;
|
|
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()) {
|
|
@@ -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
|
}
|
package/lib/models.js
CHANGED
|
@@ -46,7 +46,7 @@ var DefaultGrids = exports.DefaultGrids = new _immutable.Map({
|
|
|
46
46
|
type: 'horizontal-streak',
|
|
47
47
|
properties: {
|
|
48
48
|
step: 24,
|
|
49
|
-
colors: ['
|
|
49
|
+
colors: ['rgb(193, 202, 228)'] // dot's color
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
52
|
v1: new Grid({
|
|
@@ -54,7 +54,7 @@ var DefaultGrids = exports.DefaultGrids = new _immutable.Map({
|
|
|
54
54
|
type: 'vertical-streak',
|
|
55
55
|
properties: {
|
|
56
56
|
step: 24,
|
|
57
|
-
colors: ['
|
|
57
|
+
colors: ['rgb(193, 202, 228)'] // dot's color
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
});
|
|
@@ -339,8 +339,8 @@ 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
|
-
phname = tempPlaceholders[0].name;
|
|
343
|
-
newph = undefined;
|
|
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()) {
|
|
@@ -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
|
}
|