-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
67 lines (61 loc) · 1.43 KB
/
app.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
// Generated by CoffeeScript 2.3.2
(function() {
var Border, canvasBorder, phoneCanvas, phoneScreen;
phoneScreen = new Layer({
width: 1440,
height: 2960,
x: Align.center(),
y: Align.center(),
backgroundColor: "transparent"
});
phoneCanvas = new Layer({
parent: phoneScreen,
width: 1440 - 10,
height: 2960 - 10,
x: Align.center(),
y: Align.center()
});
Border = class Border extends Layer {
constructor(options = {}) {
super(_.defaults(options, {
backgroundColor: "transparent"
}));
this.size = this.parent.size;
this.left = new Layer({
parent: this,
x: Align.left(),
y: Align.center(),
width: 10,
height: this.height,
backgroundColor: "red"
});
this.right = new Layer({
parent: this,
x: Align.right(),
y: Align.center(),
width: 10,
height: this.height,
backgroundColor: "red"
});
this.top = new Layer({
parent: this,
x: Align.center(),
y: Align.top(),
width: this.width,
height: 10,
backgroundColor: "red"
});
this.bottom = new Layer({
parent: this,
x: Align.center(),
y: Align.bottom(),
width: this.width,
height: 10,
backgroundColor: "red"
});
}
};
canvasBorder = new Border({
parent: phoneScreen
});
}).call(this);