Skip to content

Commit

Permalink
Merge pull request #22 from RPA-US/develop
Browse files Browse the repository at this point in the history
Fix coordinates shown on wizard
  • Loading branch information
AntonioRodriguezRuiz authored Aug 2, 2024
2 parents 2e98d40 + c984a41 commit 4458a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/experiment/wizard/GUIComponentsCoordenates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ const ExperimentGetGUIComponentsCoordenates: React.FC = () => {
top: resizeRect(screenshots[key][index2].coordinates[1], resolutionBRW[1], resolutionIMG[1]),
width: resizeRect(screenshots[key][index2].coordinates[2], resolutionBRW[0], resolutionIMG[0]) - resizeRect(screenshots[key][index2].coordinates[0], resolutionBRW[0], resolutionIMG[0]),
height: resizeRect(screenshots[key][index2].coordinates[3], resolutionBRW[1], resolutionIMG[1]) - resizeRect(screenshots[key][index2].coordinates[1], resolutionBRW[1], resolutionIMG[1]),
outline: "2px solid black",
border: "2px solid black",
backgroundColor: randomColor[key][index2],
opacity: 0.3
}}
Expand All @@ -675,7 +675,7 @@ const ExperimentGetGUIComponentsCoordenates: React.FC = () => {
top: (coorR[1] <= coorR[3]) ? coorR[1] : coorR[3],
width: ((Math.abs(coorR[0] - coorR[2]) <= resolutionBRW[0]) ? Math.abs(coorR[0] - coorR[2]) : 1),
height: ((Math.abs(coorR[1] - coorR[3]) <= resolutionBRW[1]) ? Math.abs(coorR[1] - coorR[3]) : 1),
outline: "2px solid blue",
border: "2px solid blue",
backgroundColor: "blue",
opacity: 0.3
}}
Expand Down

0 comments on commit 4458a69

Please sign in to comment.