Skip to content

Commit

Permalink
Clear class labels
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Jul 18, 2024
1 parent bf5e631 commit c37bf17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ async function main() {
if (nv1.volumes[1].colormapLabel === null) {
return
}
classLabels = []
let labels = nv1.volumes[1].colormapLabel.labels;
for (let i = 0; i <= maxClass; i++) {
let label = i.toString()
Expand Down Expand Up @@ -249,6 +250,7 @@ async function main() {
}
}
function handleLocationChange(data) {
console.log(data)
let str = ''
if ((classLabels.length > 0) && (data.values.length > 1)) {
str = classLabels[data.values[1].value]
Expand Down

0 comments on commit c37bf17

Please sign in to comment.