MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / constructor

Function constructor

src/components/Player/index.js:17–29  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

15
16class Player extends BaseComponent {
17 constructor(props) {
18 super(props);
19
20 this.state = {
21 speed: 2,
22 playing: false,
23 building: false,
24 };
25
26 this.tracerApiSource = null;
27
28 this.reset();
29 }
30
31 componentDidMount() {
32 const { editingFile, shouldBuild } = this.props.current;

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected