Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame Selector component: Auto-Range format for saving presets #1404

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

annehaley
Copy link
Collaborator

Resolves #1394.

There are two ways a band object can express autoRanging:

  1. {min: 'min:0.002', max: 'max:0.002'}
  2. {autoRange: 0.2}

After #1306, the currentStyle passed to PresetsMenu will always be in the first format. This PR converts those bands to the second format before saving the preset, since we document the preset specification with autoRange.

@annehaley annehaley requested a review from manthey December 11, 2023 20:55
@annehaley annehaley merged commit 29dbf1a into master Dec 13, 2023
14 checks passed
@annehaley annehaley deleted the preset-autorange branch December 13, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channel presets don't maintain auto range
2 participants