diff --git a/CHANGELOG.released.md b/CHANGELOG.released.md index 49acb2a15c9..b91a2e44a40 100644 --- a/CHANGELOG.released.md +++ b/CHANGELOG.released.md @@ -13,13 +13,13 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released ### Highlights - The fill tool can now be adapted so that it only acts within a specified bounding box. Use the new "Restrict Floodfill" mode for that in the toolbar. [#8267](https://github.com/scalableminds/webknossos/pull/8267) - Added the option for "Selective Segment Visibility" for segmentation layers. Select this option in the left sidebar to only show segments that are currently active or hovered. [#8281](https://github.com/scalableminds/webknossos/pull/8281) -- Segment and tree names can be edited by doubleclicking them. [#8316](https://github.com/scalableminds/webknossos/pull/8316) +- Segment and tree names can be edited by double-clicking them. [#8316](https://github.com/scalableminds/webknossos/pull/8316) ### Added - Added the total volume of a dataset to a tooltip in the dataset info tab. [#8229](https://github.com/scalableminds/webknossos/pull/8229) - Optimized performance of data loading with “fill value“ chunks. [#8271](https://github.com/scalableminds/webknossos/pull/8271) - Added the option to export a segmentation that was corrected with the proofreading tool to a new segmentation. [#8286](https://github.com/scalableminds/webknossos/pull/8286) -- A segment can be activated with doubleclick now. [#8281](https://github.com/scalableminds/webknossos/pull/8281) +- A segment can be activated with double-click now. [#8281](https://github.com/scalableminds/webknossos/pull/8281) - It is now possible to select the magnification of the layers on which an AI model will be trained. [#8266](https://github.com/scalableminds/webknossos/pull/8266) - Added support for translations in OME NGFF zarr datasets (translation within coordinateTransformations on datasets). [#8311](https://github.com/scalableminds/webknossos/pull/8311) - When the eraser tool is active, one can switch temporarily to the fill-segment tool by pressing shift and ctrl. Only pressing shift, switches to the pick-segment tool. [#8314](https://github.com/scalableminds/webknossos/pull/8314) diff --git a/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx b/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx index ed86920c531..3f05a539072 100644 --- a/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx +++ b/frontend/javascripts/oxalis/view/left-border-tabs/layer_settings_tab.tsx @@ -919,7 +919,7 @@ class DatasetSettings extends React.PureComponent { diff --git a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/services/uploading/ComposeService.scala b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/services/uploading/ComposeService.scala index 8f3aa0b1897..8d7a3d842d6 100644 --- a/webknossos-datastore/app/com/scalableminds/webknossos/datastore/services/uploading/ComposeService.scala +++ b/webknossos-datastore/app/com/scalableminds/webknossos/datastore/services/uploading/ComposeService.scala @@ -2,18 +2,7 @@ package com.scalableminds.webknossos.datastore.services.uploading import com.scalableminds.util.io.PathUtils import com.scalableminds.util.tools.{Fox, FoxImplicits} -import com.scalableminds.webknossos.datastore.dataformats.layers.{ - N5DataLayer, - N5SegmentationLayer, - PrecomputedDataLayer, - PrecomputedSegmentationLayer, - WKWDataLayer, - WKWSegmentationLayer, - Zarr3DataLayer, - Zarr3SegmentationLayer, - ZarrDataLayer, - ZarrSegmentationLayer -} +import com.scalableminds.webknossos.datastore.dataformats.layers.{WKWDataLayer, WKWSegmentationLayer} import com.scalableminds.webknossos.datastore.models.VoxelSize import com.scalableminds.webknossos.datastore.models.datasource._ import com.scalableminds.webknossos.datastore.services.{ @@ -103,30 +92,9 @@ class ComposeService @Inject()(dataSourceRepository: DataSourceRepository, _ <- Fox.runIf(!layerIsRemote)( datasetSymlinkService.addSymlinksToOtherDatasetLayers(uploadDir, List(linkedLayerIdentifier))) editedLayer: DataLayer = layer match { - case l: PrecomputedDataLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: PrecomputedSegmentationLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: ZarrDataLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: ZarrSegmentationLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: N5DataLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: N5SegmentationLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: Zarr3DataLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) - case l: Zarr3SegmentationLayer => - l.copy(name = composeLayer.newName, - coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) + case l: DataLayerWithMagLocators => + l.mapped(name = composeLayer.newName, + coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations)) case l: WKWDataLayer => l.copy(name = composeLayer.newName, coordinateTransformations = applyCoordinateTransformations(l.coordinateTransformations))