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

Method changeMapCol

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

Source from the content-addressed store, hash-verified

257 }
258
259 changeMapCol(e) {
260 let t = parseInt(e.target.value);
261 t = t > 30 ? 30 : t < 4 ? 4 : t;
262 t = Math.max(t, this.state.numRow);
263 this.setState({ tempCol: t });
264 this.adjustMap(this.state.numRow, t, this.createEmptyMap(this.state.numRow, t));
265 }
266
267 handleAddAgent(e) {
268 e.preventDefault();

Callers 1

renderMethod · 0.95

Calls 2

adjustMapMethod · 0.95
createEmptyMapMethod · 0.95

Tested by

no test coverage detected