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(annotation): added keybinds for iterating through annotation list, also pins and jumps to each annotation #624

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

Conversation

chrisj
Copy link
Contributor

@chrisj chrisj commented Jul 24, 2024

Our plan is to have keybinds to iterate through any visible list for the currently selected layer.

I couldn't find any way to access tab instances. Before attempting to make the changes necessary to access, for example, the tabs for a given layer. I tried two alternative approaches. One uses element.dispatchEvent for a custom event. The other adds a similar event model to the UserLayerClass (registerLayerEvent and dispatchLayerEvent).

Currently segmentation lists don't have the same ability to select an annotation other than the pinned segment. I am going to try to get that working as well.

The current issue I have with the layer event model is that I need a way identify if the tab is the primary tab of the currently selected layer. I left some commented out code like this.layer.panels.panels[0].selectedTab.value === "annotations". Otherwise it will iterate every visible list.

@chrisj chrisj force-pushed the cj_annotation_list_keybinds_2 branch 2 times, most recently from 7d92404 to 6d6974d Compare July 24, 2024 21:36
…ion list, also pins and jumps to each annotation
@chrisj chrisj force-pushed the cj_annotation_list_keybinds_2 branch from 6d6974d to 208f36c Compare July 24, 2024 21:37
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.

1 participant