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(datasource/graphene) find path tool #474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisj
Copy link
Contributor

@chrisj chrisj commented Jul 19, 2023

This tool finds a path between 2 points on the same segment.

I crudely copied AnnotationLayerView.makeAnnotationListElement to create some annotation widgets for this tool. It seems to work fairly well as a UI element. Do you think I should continue and fully move makeAnnotationListElement outside of AnnotationLayerView? Or would it be better to create my own element.

Screen Shot 2023-07-19 at 10 15 42 AM

@jbms
Copy link
Collaborator

jbms commented Aug 30, 2023

Yes, factoring out makeAnnotationListElement seems to make sense to me.

@chrisj chrisj force-pushed the cj_find_path_2 branch 3 times, most recently from 0f82af1 to fd723ef Compare November 22, 2023 02:59
@chrisj
Copy link
Contributor Author

chrisj commented Nov 24, 2023

@jbms this should be ready now

I set up clang-format to run on save, so this includes a bit of formatting changes though I can back those out if you prefer

selectionState.annotationId === annotation.id) {
element.classList.add('neuroglancer-annotation-selected');
}
return element;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved a few things outside of makeAnnotationListElement that were more closely related to the list

@@ -61,6 +65,7 @@ import {Uint64} from 'neuroglancer/util/uint64';
import {makeDeleteButton} from 'neuroglancer/widget/delete_button';
import {DependentViewContext} from 'neuroglancer/widget/dependent_view_widget';
import {makeIcon} from 'neuroglancer/widget/icon';
import {CancellationToken, CancellationTokenSource} from 'src/neuroglancer/util/cancellation';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix src/neuroglancer/ path to neuroglancer/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I'm also going to put up a pull request to fix some other imports.

@chrisj
Copy link
Contributor Author

chrisj commented Mar 20, 2024

This PR is ready now

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