Skip to content

Commit

Permalink
Allow clearing the min/max fields of the frame selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Apr 21, 2023
1 parent 8bb8fec commit 49a7b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export default {
},
updateLayerMin(event, layer) {
const newVal = event.target.value;
const newMinVal = parseFloat(newVal);
const newMinVal = Number.isFinite(newVal) ? parseFloat(newVal) : undefined;
this.compositeLayerInfo[layer].min = newMinVal;
this.updateStyle();
},
updateLayerMax(event, layer) {
const newVal = event.target.valueAsNumber;
const newMaxVal = parseFloat(newVal);
const newMaxVal = Number.isFinite(newVal) ? parseFloat(newVal) : undefined;
this.compositeLayerInfo[layer].max = newMaxVal;
this.updateStyle();
},
Expand Down Expand Up @@ -192,7 +192,6 @@ export default {
@change.prevent="(event) => updateLayerMax(event, layer)"
>
</td>
<td></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default Vue.extend({
)
}
this.sliderModes.push(
{ id: 3, name: 'Advanced Band Compositing' }
{ id: 3, name: 'Band Compositing' }
)
}
},
Expand Down

0 comments on commit 49a7b91

Please sign in to comment.