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

Method initCanvas

src/ui/DetailsButton.js:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 initCanvas() {
54 this.canvas = new Interface(null, 'canvas');
55 this.canvas.css({
56 position: 'absolute',
57 left: 10,
58 top: 10
59 });
60 this.context = this.canvas.element.getContext('2d');
61 this.add(this.canvas);
62 }
63
64 addListeners() {
65 this.element.addEventListener('mouseenter', this.onHover);

Callers 1

constructorMethod · 0.95

Calls 2

cssMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected