MCPcopy Create free account
hub / github.com/StevenLyt/mapf-visualizer / changeMapRow

Method changeMapRow

src/MAPFVisualizer.jsx:251–257  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

249 }
250
251 changeMapRow(e) {
252 let t = parseInt(e.target.value);
253 t = t > 30 ? 30 : t < 4 ? 4 : t;
254 t = Math.min(t, this.state.numCol);
255 this.setState({ tempRow: t });
256 this.adjustMap(t, this.state.numCol, this.createEmptyMap(t, this.state.numCol));
257 }
258
259 changeMapCol(e) {
260 let t = parseInt(e.target.value);

Callers 1

renderMethod · 0.95

Calls 2

adjustMapMethod · 0.95
createEmptyMapMethod · 0.95

Tested by

no test coverage detected