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

Method updateWall

src/MAPFVisualizer.jsx:440–449  ·  view source on GitHub ↗
(row, col)

Source from the content-addressed store, hash-verified

438 }
439
440 updateWall(row, col) {
441 if (this.state.map[row][col].agent === -1 && !this.state.isPlanning && !this.state.isPlanned) {
442 var newMap = this.state.map.slice();
443 newMap[row][col] = {
444 ...newMap[row][col],
445 isWall: !newMap[row][col].isWall,
446 };
447 this.setState({ map: newMap });
448 }
449 }
450
451 startNewTask() {
452 this.setState(

Callers 2

handleMouseDownMethod · 0.95
handleMouseEnterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected