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

Method changeMapCol

src/EECBSVisualizer.jsx:263–278  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

261 }
262
263 changeMapCol(e) {
264 let t = parseInt(e.target.value);
265 t = t > 30 ? 30 : t < 4 ? 4 : t;
266 t = Math.max(t, this.state.numRow);
267 this.setState({
268 tempCol: t,
269 numCol: t,
270 map: this.createEmptyMap(this.state.numRow, t),
271 agents: [],
272 numAgents: 0,
273 startToAdd: false,
274 goalToAdd: false,
275 addedSRowClick: null,
276 addedSColClick: null,
277 });
278 }
279
280 handleAddAgent(e) {
281 e.preventDefault();

Callers 1

renderMethod · 0.95

Calls 1

createEmptyMapMethod · 0.95

Tested by

no test coverage detected