MCPcopy Create free account
hub / github.com/codrops/TypeShuffleAnimation / Line

Class Line

src/js/typeShuffle.js:9–22  ·  view source on GitHub ↗

* Class representing one line

Source from the content-addressed store, hash-verified

7 * Class representing one line
8 */
9class Line {
10 // line position
11 position = -1;
12 // cells/chars
13 cells = [];
14
15 /**
16 * Constructor.
17 * @param {Element} DOM_el - the char element (<span>)
18 */
19 constructor(linePosition) {
20 this.position = linePosition;
21 }
22}
23
24/**
25 * Class representing one cell/char

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected