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

Method updateWall

src/LAMAPFVisualizer.jsx:565–574  ·  view source on GitHub ↗
(row, col)

Source from the content-addressed store, hash-verified

563 }
564
565 updateWall(row, col) {
566 if (this.state.map[row][col].agent === -1 && !this.state.isPlanning && !this.state.isPlanned) {
567 var newMap = this.state.map.slice();
568 newMap[row][col] = {
569 ...newMap[row][col],
570 isWall: !newMap[row][col].isWall,
571 };
572 this.setState({ map: newMap });
573 }
574 }
575
576 startNewTask() {
577 this.setState(

Callers 2

handleMouseDownMethod · 0.95
handleMouseEnterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected