Skip to content

Commit

Permalink
Merge pull request #286 from RAIRLab/modeState-magic-numbers-fix
Browse files Browse the repository at this point in the history
No more modeState updates based on magic numbers
  • Loading branch information
AnushaTiwari5 authored Dec 5, 2023
2 parents f87a464 + 57395af commit 562e389
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,8 @@ export function setTool(state: Tool) {
treeContext.toolState = state;
cutTools.style.display = "none";
atomTools.style.display = "none";
treeString.style.display = "none";
proofString.style.display = "none";
selectionDisplay.style.display = "none";

if (state <= 11) {
treeContext.modeState = "Draw";
treeString.style.display = "block";
} else {
treeContext.modeState = "Proof";
proofString.style.display = "block";
}

switch (treeContext.toolState) {
case Tool.atomTool:
atomTools.style.display = "block";
Expand Down

0 comments on commit 562e389

Please sign in to comment.