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

Method changeMapRow

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

Source from the content-addressed store, hash-verified

244 }
245
246 changeMapRow(e) {
247 let t = parseInt(e.target.value);
248 t = t > 30 ? 30 : t < 4 ? 4 : t;
249 t = Math.min(t, this.state.numCol);
250 this.setState({
251 tempRow: t,
252 numRow: t,
253 map: this.createEmptyMap(t, this.state.numCol),
254 agents: [],
255 numAgents: 0,
256 startToAdd: false,
257 goalToAdd: false,
258 addedSRowClick: null,
259 addedSColClick: null,
260 });
261 }
262
263 changeMapCol(e) {
264 let t = parseInt(e.target.value);

Callers 1

renderMethod · 0.95

Calls 1

createEmptyMapMethod · 0.95

Tested by

no test coverage detected