MCPcopy Index your code
hub / github.com/StevenLyt/mapf-visualizer / changeMapCol

Method changeMapCol

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

Source from the content-addressed store, hash-verified

286 }
287
288 changeMapCol(e) {
289 let t = parseInt(e.target.value);
290 t = t > 30 ? 30 : t < 4 ? 4 : t;
291 t = Math.max(t, this.state.numRow);
292 this.setState({ tempCol: t });
293 this.adjustMap(this.state.numRow, t, this.createEmptyMap(this.state.numRow, t));
294 }
295
296 handleAddAgent(e) {
297 e.preventDefault();

Callers 1

renderMethod · 0.95

Calls 2

adjustMapMethod · 0.95
createEmptyMapMethod · 0.95

Tested by

no test coverage detected