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: Add dimension selector tool palette at bottom of screen #35

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aranega
Copy link
Collaborator

@aranega aranega commented Jan 14, 2025

Closes CC-203

@aranega aranega requested a review from seankmartin January 14, 2025 10:37
@@ -291,6 +293,17 @@ def combine_json_layers(
"row": 2,
"visible": False,
},
"toolPalettes": {
Copy link
Collaborator

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
Copy link
Collaborator

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

@seankmartin seankmartin changed the title feat: Add layer color sync activation option feat: Add dimension selector tool palette at bottom of screen Jan 15, 2025
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.

2 participants