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

Method changeMapRow

src/LAMAPFVisualizer.jsx:280–286  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

278 }
279
280 changeMapRow(e) {
281 let t = parseInt(e.target.value);
282 t = t > 30 ? 30 : t < 4 ? 4 : t;
283 t = Math.min(t, this.state.numCol);
284 this.setState({ tempRow: t });
285 this.adjustMap(t, this.state.numCol, this.createEmptyMap(t, this.state.numCol));
286 }
287
288 changeMapCol(e) {
289 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