-
Notifications
You must be signed in to change notification settings - Fork 2
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: Add dimension selector tool palette at bottom of screen #35
base: main
Are you sure you want to change the base?
Conversation
@@ -291,6 +293,17 @@ def combine_json_layers( | |||
"row": 2, | |||
"visible": False, | |||
}, | |||
"toolPalettes": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few changes which would be helpful here! The first is to have it stack horizontally, which would be controlled by "verticalStacking". The second is to make this a query, because that way the user can't delete the controls.
Something like
"toolPalettes": {
"Palette": {
"side": "bottom",
"row": 1,
"size": 120,
"query": "type:dimension",
"verticalStacking": false
}
}
The size
would depend on whether it is vertically or horizontally stacked to be honest, but let's try this size for now.
def test__generate_configuration_default_values(): | ||
state = combine_json_layers(layers=[{"type": "image", "volumeRendering": "OK", "name": "myname"}], scale=1.0) | ||
|
||
assert "enableLayerColorWidget" in state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I think we'll need to pull out the color widget related changes, because I don't think we can merge this PR until horizontal stacking and our scroll fix are available. Unlike some of the other changes which can sit in the state and wait until neuroglancer understands the state changes
Closes CC-203