Skip to content

Commit

Permalink
Allow negative min / max values for floating point color layers (#7873)
Browse files Browse the repository at this point in the history
* allow negative min / max values for floating point color layers

* add changelog entry
  • Loading branch information
MichaelBuessemeyer authored Jun 10, 2024
1 parent 59bc7fb commit 052c0c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released

### Changed
- The "WEBKNOSSOS Changelog" modal now lazily loads its content potentially speeding up the initial loading time of WEBKNOSSOS and thus improving the UX. [#7843](https://github.com/scalableminds/webknossos/pull/7843)
- Updated the min max settings for the histogram to allow floating point color layers to have negative min / max values. [#7873](https://github.com/scalableminds/webknossos/pull/7873)
- From now on only project owner get a notification email upon project overtime. The organization specific email list `overTimeMailingList` was removed. [#7842](https://github.com/scalableminds/webknossos/pull/7842)
- Replaced skeleton comment tab component with antd's `<Tree />`component. [#7802](https://github.com/scalableminds/webknossos/pull/7802)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ export function getDefaultValueRangeOfLayer(
return [0, 2 ** 63 - 1];

case "float":
return [0, maxFloatValue];
return [-maxFloatValue, maxFloatValue];

case "double":
return [0, maxDoubleValue];
return [-maxDoubleValue, maxDoubleValue];

default:
return [0, 255];
Expand Down

0 comments on commit 052c0c7

Please sign in to comment.