kitchen-simulator 1.0.0-clark.102 → 1.0.0-clark.104
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 +13 -16
- package/lib/models.js +2 -2
- package/lib/utils/isolate-event-handler.js +13 -16
- 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
|
-
|
|
335
|
-
|
|
334
|
+
phname = tempPlaceholders[0].name;
|
|
335
|
+
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
|
-
var
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
for (var _w2 = 0; _w2 < fixedPHs; _w2++) {
|
|
378
|
+
phname = tempPlaceholders[0].name;
|
|
379
|
+
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,33 +395,30 @@ 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();
|
|
401
398
|
}
|
|
402
399
|
} else if (_objCnt4 > 1 && fixedPHs > 0 && fixedPHs % _objCnt4 === 0) {
|
|
403
400
|
if (tempData['fixed_drawer_door_handle' + t.name.slice(-2)] === undefined) {
|
|
404
401
|
tempData['fixed_drawer_door_handle' + t.name.slice(-2)] = [];
|
|
405
402
|
}
|
|
406
|
-
|
|
407
|
-
|
|
403
|
+
phname = tempPlaceholders[0].name;
|
|
404
|
+
newph = undefined;
|
|
408
405
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
409
|
-
|
|
406
|
+
newph = tempPlaceholders.find(function (el) {
|
|
410
407
|
return el.name.isRightPlaceholder();
|
|
411
408
|
});
|
|
412
409
|
}
|
|
413
410
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
414
|
-
|
|
411
|
+
newph = tempPlaceholders.find(function (el) {
|
|
415
412
|
return el.name.isLeftPlaceholder();
|
|
416
413
|
});
|
|
417
414
|
}
|
|
418
|
-
if (
|
|
419
|
-
|
|
415
|
+
if (newph != undefined) {
|
|
416
|
+
phname = newph.name;
|
|
420
417
|
}
|
|
421
418
|
if (!tempData['fixed_drawer_door_handle' + t.name.slice(-2)].some(function (el) {
|
|
422
|
-
return el === t.name + '/' +
|
|
419
|
+
return el === t.name + '/' + phname;
|
|
423
420
|
})) {
|
|
424
|
-
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
421
|
+
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' + phname);
|
|
425
422
|
}
|
|
426
423
|
}
|
|
427
424
|
}
|
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
|
-
|
|
343
|
-
|
|
342
|
+
phname = tempPlaceholders[0].name;
|
|
343
|
+
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
|
-
var
|
|
386
|
-
|
|
387
|
-
|
|
385
|
+
for (var _w2 = 0; _w2 < fixedPHs; _w2++) {
|
|
386
|
+
phname = tempPlaceholders[0].name;
|
|
387
|
+
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,33 +403,30 @@ 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();
|
|
409
406
|
}
|
|
410
407
|
} else if (_objCnt4 > 1 && fixedPHs > 0 && fixedPHs % _objCnt4 === 0) {
|
|
411
408
|
if (tempData['fixed_drawer_door_handle' + t.name.slice(-2)] === undefined) {
|
|
412
409
|
tempData['fixed_drawer_door_handle' + t.name.slice(-2)] = [];
|
|
413
410
|
}
|
|
414
|
-
|
|
415
|
-
|
|
411
|
+
phname = tempPlaceholders[0].name;
|
|
412
|
+
newph = undefined;
|
|
416
413
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isLeftPlaceholder()) {
|
|
417
|
-
|
|
414
|
+
newph = tempPlaceholders.find(function (el) {
|
|
418
415
|
return el.name.isRightPlaceholder();
|
|
419
416
|
});
|
|
420
417
|
}
|
|
421
418
|
if (tempData['base_fixed_drawer_door' + t.name.slice(-2)][0].isRightPlaceholder()) {
|
|
422
|
-
|
|
419
|
+
newph = tempPlaceholders.find(function (el) {
|
|
423
420
|
return el.name.isLeftPlaceholder();
|
|
424
421
|
});
|
|
425
422
|
}
|
|
426
|
-
if (
|
|
427
|
-
|
|
423
|
+
if (newph != undefined) {
|
|
424
|
+
phname = newph.name;
|
|
428
425
|
}
|
|
429
426
|
if (!tempData['fixed_drawer_door_handle' + t.name.slice(-2)].some(function (el) {
|
|
430
|
-
return el === t.name + '/' +
|
|
427
|
+
return el === t.name + '/' + phname;
|
|
431
428
|
})) {
|
|
432
|
-
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' +
|
|
429
|
+
tempData['fixed_drawer_door_handle' + t.name.slice(-2)].push(t.name + '/' + phname);
|
|
433
430
|
}
|
|
434
431
|
}
|
|
435
432
|
}
|