-
Notifications
You must be signed in to change notification settings - Fork 0
/
relative_points.js
84 lines (83 loc) · 2.25 KB
/
relative_points.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
80
81
82
83
84
export const relative_points = {
width: 500,
height: 500,
rotation: 0,
backgroundColor: '#009dff',
sections: [
{
name: "Parent Section",
backgroundColor: '#B39DDB',
points: [
{ x: 100, y: 350 },
{ x: 150, y: 350 },
{ x: 150, y: 340 },
{ x: 250, y: 340 },
{ x: 250, y: 300 },
{ x: 280, y: 300 },
{ x: 280, y: 400 },
{ x: 400, y: 400 },
{ x: 400, y: 100 },
{ x: 280, y: 100 },
{ x: 280, y: 150 },
{ x: 100, y: 150 },
{ x: 100, y: 350 },
],
},
{
name: "Room 1",
backgroundColor: '#CFD8DC',
points: [
{ x: 100, y: 340 },
{ x: 250, y: 340 },
{ x: 250, y: 150 },
{ x: 100, y: 150 },
{ x: 100, y: 340 },
],
},
{
name: "Wardrobe",
backgroundColor: '#E1BEE7',
points: [
{ x: 100, y: 350 },
{ x: 150, y: 350 },
{ x: 150, y: 340 },
{ x: 100, y: 340 },
{ x: 100, y: 350 },
],
},
{
name: "Washroom",
backgroundColor: '#BBDEFB',
points: [
{ x: 250, y: 150 },
{ x: 250, y: 250 },
{ x: 280, y: 250 },
{ x: 280, y: 150 },
{ x: 250, y: 150 },
],
},
{
name: "Room 2",
backgroundColor: '#CFD8DC',
points: [
{ x: 280, y: 250 },
{ x: 400, y: 250 },
{ x: 400, y: 100 },
{ x: 280, y: 100 },
{ x: 280, y: 250 },
],
},
{
name: "Room 3",
backgroundColor: '#CFD8DC',
points: [
{ x: 280, y: 300 },
{ x: 280, y: 400 },
{ x: 400, y: 400 },
{ x: 400, y: 300 },
{ x: 280, y: 300 },
],
},
]
};
export default relative_points;