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

Method handleMouseUp

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

Source from the content-addressed store, hash-verified

549 }
550
551 handleMouseUp(row, col) {
552 if (this.state.startToAdd) {
553 this.setState({
554 startToAdd: false,
555 goalToAdd: true,
556 isMousePressed: false,
557 addedSRowClick: Math.min(row, this.state.addedSRowClick),
558 addedSColClick: Math.min(col, this.state.addedSColClick),
559 });
560 } else {
561 this.setState({ isMousePressed: false });
562 }
563 }
564
565 updateWall(row, col) {
566 if (this.state.map[row][col].agent === -1 && !this.state.isPlanning && !this.state.isPlanned) {

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected