Skip to content

Commit

Permalink
fix(deepssm-ui): correct grid coordinate assignment for scalar bar pl…
Browse files Browse the repository at this point in the history
…acement (#369)
  • Loading branch information
annehaley authored Apr 14, 2024
1 parent d3feb87 commit 5660983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/shapeworks/src/components/ShapeViewer/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export default {
this.prepareColorScale(canvas, labels, range)
} else {
Object.entries(this.data).forEach(([, data], i) => {
const [y1, x2, y2] = this.grid[i]
const [, y1, x2, y2] = this.grid[i]
const canvas = document.createElement('canvas')
canvas.style.top = `calc(${(1 - y2) * 100}%)`
canvas.style.right = `calc(${(1 - x2) * 100}% + 10px)`
Expand Down

0 comments on commit 5660983

Please sign in to comment.