MCPcopy Create free account
hub / github.com/alienkitty/space.js / init

Method init

src/ui/HeaderInfo.js:32–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 init() {
33 this.css({
34 cssFloat: 'right',
35 padding: 10,
36 pointerEvents: 'auto',
37 webkitUserSelect: 'none',
38 userSelect: 'none'
39 });
40
41 this.number = new Interface('.number');
42 this.number.css({
43 letterSpacing: 1
44 });
45 this.number.text(this.fps);
46 this.add(this.number);
47 }
48
49 initViews() {
50 this.panel = new Panel();

Callers 1

constructorMethod · 0.95

Calls 3

cssMethod · 0.80
textMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected