-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffices.js
79 lines (79 loc) · 2.66 KB
/
offices.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
window.officesByFloor = {};
window.officesByNumber = {};
[
["710", 2, 632, 489, 681, 559],
["716", 2, 427, 489, 476, 559],
["737", 3, 89, 417, 169, 466],
["739", 4, 69, 366, 169, 415],
["741", 4, 69, 315, 169, 364],
["743", 3, 89, 264, 169, 313],
["745", 3, 89, 212, 169, 262],
["747", 4, 69, 161, 169, 210],
["775", 3, 734, 59, 783, 139],
["787", 4, 888, 161, 988, 210],
["789", 3, 888, 212, 968, 262],
["810", 2, 632, 489, 681, 559],
["812", 2, 581, 489, 630, 559],
["814", 2, 529, 489, 579, 559],
["816", 2, 478, 489, 527, 559],
["818", 2, 427, 489, 476, 559],
["820", 2, 376, 489, 425, 559],
["822", 2, 325, 489, 374, 559],
["826", 3, [374, 374, 304, 304, 325, 325], [487, 417, 417, 456, 456, 487]],
["824", 3, 273, 458, 323, 559],
["828", 2, 376, 417, 425, 487],
["830", 2, 427, 417, 476, 487],
["832", 2, 478, 417, 527, 487],
["834", 2, 529, 417, 579, 487],
["835", 3, 89, 468, 169, 518],
["836", 2, 581, 417, 630, 487],
["840", 4, 632, 284, 681, 384],
["842", 4, 581, 284, 630, 384],
["844", 4, 529, 284, 579, 384],
["845", 3, 89, 212, 169, 262],
["848", 4, 427, 284, 476, 384],
["850", 4, 376, 284, 425, 384],
["852", 4, 325, 284, 374, 384],
["853", 4, 171, 38, 220, 139],
["854", 4, 263, 284, 323, 364],
["869", 4, 581, 38, 630, 139],
["935", 3, 89, 468, 169, 518],
["937", 3, 89, 417, 169, 466],
["941", 3, 89, 264, 169, 313],
["1004", 2, 621, 274, 681, 323],
["1006", 2, 621, 325, 681, 374],
["1008", 2, 621, 376, 681, 425],
["1010", 2, 621, 427, 681, 487],
["1020", 2, 304, 427, 364, 487],
["1037", 3, 89, 468, 169, 518],
["1039", 3, 89, 417, 169, 466],
["1040", 2, 304, 376, 364, 425],
["1041", 3, 89, 366, 169, 415],
["1042", 3, 284, 325, 364, 374],
["1043", 3, 89, 315, 169, 364],
["1044", 3, 263, 274, 364, 323],
["1045", 3, 89, 264, 169, 313],
["1047", 3, 89, 212, 169, 262],
["1049", 3, 89, 161, 169, 210],
["1056", 2, 284, 171, 364, 221],
["1057", 3, 314, 90, 384, 139],
["1058", 3, 263, 223, 364, 272],
["1060", 3, 366, 171, 415, 231],
["1061", 3, 386, 90, 456, 139],
["1062", 3, 417, 171, 466, 231],
["1064", 3, 468, 171, 517, 231],
["1065", 3, 529, 90, 599, 139],
["1066", 3, 519, 171, 568, 231],
["1068", 3, 570, 171, 619, 231],
["1070", 2, 621, 171, 681, 221],
["1075", 3, 816, 90, 886, 139],
["1085", 3, 888, 212, 968, 262],
["1087", 3, 888, 264, 968, 313],
["1093", 3, 888, 417, 968, 466],
["1095", 3, 888, 468, 968, 518],
["1097", 3, 888, 520, 968, 569],
].forEach(function ([number, capacity, x1, y1, x2, y2]) {
window.officesByNumber[number] = { capacity };
if (!(number[0] in window.officesByFloor)) window.officesByFloor[number[0]] = [];
window.officesByFloor[number[0]].push({ number, capacity, x1, x2, y1, y2 });
});