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

Method initText

src/ui/Title.js:28–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }
27
28 initText() {
29 const split = this.title.split('');
30
31 split.forEach(string => {
32 if (string === ' ') {
33 string = '&nbsp';
34 }
35
36 const letter = new Interface(null, 'span');
37 letter.css({ display: 'inline-block' });
38 letter.html(string);
39 this.add(letter);
40
41 this.letters.push(letter);
42 });
43 }
44
45 // Public methods
46

Callers 2

constructorMethod · 0.95
setTitleMethod · 0.95

Calls 4

cssMethod · 0.95
htmlMethod · 0.95
addMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected