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

feat: change image user layer UI labels #496

Merged
merged 10 commits into from
Nov 6, 2023
14 changes: 7 additions & 7 deletions src/neuroglancer/image_user_layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,29 +299,29 @@ const LAYER_CONTROLS: LayerControlDefinition<ImageUserLayer>[] = [
})),
},
{
label: 'Blending',
label: 'Blending (slice)',
toolJson: BLEND_JSON_KEY,
...enumLayerControl(layer => layer.blendMode),
},
{
label: 'Opacity (slice)',
toolJson: OPACITY_JSON_KEY,
...rangeLayerControl(layer => ({value: layer.opacity})),
},
{
label: 'Volume rendering (experimental)',
toolJson: VOLUME_RENDERING_JSON_KEY,
...checkboxLayerControl(layer => layer.volumeRendering),
},
{
label: 'Resolution (3d)',
label: 'Resolution (3D)',
toolJson: VOLUME_RENDER_SCALE_JSON_KEY,
isValid: layer => layer.volumeRendering,
...renderScaleLayerControl(layer => ({
histogram: layer.volumeRenderingRenderScaleHistogram,
target: layer.volumeRenderingRenderScaleTarget
})),
},
{
label: 'Opacity',
toolJson: OPACITY_JSON_KEY,
...rangeLayerControl(layer => ({value: layer.opacity})),
},
];

for (const control of LAYER_CONTROLS) {
Expand Down
Loading