Skip to content

Commit

Permalink
Merge pull request #1138 from girder/fix-band-min
Browse files Browse the repository at this point in the history
Fix setting minimum values on bands from the frame selector
  • Loading branch information
manthey authored May 2, 2023
2 parents 417c369 + 5efb676 commit 22c2e2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

## 1.20.6

### Improvements
- Store current frame and style in the DOM for easier access ([#1036](../../pull/1036))

### Changes
- Add a guard if PIL doesn't support ImageCms ([#1032](../../pull/1032))

### Bug Fixes
- Allow clearing the min/max fields of the frame selector ([#1030](../../pull/1030))
- Fix a bug with caching tiles and styling ([#1031](../../pull/1031))
- Fix setting minimum values on bands from the frame selector ([#1038](../../pull/1038))

## 1.20.5

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
this.compositeLayerInfo[layer].palette = swatch.hex;
},
updateLayerMin(event, layer) {
const newVal = event.target.value;
const newVal = event.target.valueAsNumber;
const newMinVal = Number.isFinite(newVal) ? parseFloat(newVal) : undefined;
this.compositeLayerInfo[layer].min = newMinVal;
this.updateStyle();
Expand Down Expand Up @@ -177,7 +177,7 @@ export default {
type="number"
step="0.01"
min="0"
max="1"
max="65535"
:value="layerInfo.min"
@change.prevent="(event) => updateLayerMin(event, layer)"
>
Expand All @@ -187,7 +187,7 @@ export default {
type="number"
step="0.01"
min="0"
max="1"
max="65535"
:value="layerInfo.max"
@change.prevent="(event) => updateLayerMax(event, layer)"
>
Expand Down

0 comments on commit 22c2e2d

Please sign in to comment.