Skip to content

Commit

Permalink
Merge pull request #1463 from girder/composites-histogram-reqs
Browse files Browse the repository at this point in the history
Fix histogram request bug in band compositing mode
  • Loading branch information
annehaley authored Feb 13, 2024
2 parents b4cff79 + 35c518a commit b61cb1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ export default {
:auto-range="autoRange"
:current-min="min"
:current-max="max"
:active="active"
@updateMin="(v, d) => updateLayerMin(layerName, v, d)"
@updateMax="(v, d) => updateLayerMax(layerName, v, d)"
@updateAutoRange="(v) => updateLayerAutoRange(layerName, v)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ export default Vue.extend({
case 4:
this.metadata.bands = ['red', 'green', 'blue', 'alpha'];
break;
default:
this.metadata.bands = [...Array(this.metadata.bandCount).keys()].map((i) => `Band ${i + 1}`);
}
} else {
this.metadata.bands = Object.values(this.metadata.bands).map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default {
'framedelta',
'currentMin',
'currentMax',
'autoRange'
'autoRange',
'active'
],
emits: ['updateMin', 'updateMax', 'updateAutoRange'],
data() {
Expand Down Expand Up @@ -64,6 +65,7 @@ export default {
},
methods: {
fetchHistogram() {
if (!this.active) return undefined;
if (this.framedelta !== undefined) {
restRequest({
type: 'GET',
Expand Down

0 comments on commit b61cb1b

Please sign in to comment.