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

Method constructor

src/ui/TargetNumber.js:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7export class TargetNumber extends Interface {
8 constructor() {
9 super('.target-number');
10
11 const size = window.devicePixelRatio > 1 ? 17 : 18;
12
13 this.width = size;
14 this.height = size;
15
16 this.init();
17 }
18
19 init() {
20 this.invisible();

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected