-
Notifications
You must be signed in to change notification settings - Fork 300
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
base: master
Are you sure you want to change the base?
Conversation
Yes, factoring out makeAnnotationListElement seems to make sense to me. |
0f82af1
to
fd723ef
Compare
@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 |
src/neuroglancer/ui/annotations.ts
Outdated
selectionState.annotationId === annotation.id) { | ||
element.classList.add('neuroglancer-annotation-selected'); | ||
} | ||
return element; |
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.
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'; |
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.
fix src/neuroglancer/ path to neuroglancer/
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.
Done, I'm also going to put up a pull request to fix some other imports.
This PR is ready now |
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.