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

Nested right click menu #1161

Open
marktaipan-cvisionai opened this issue Mar 3, 2023 · 3 comments
Open

Nested right click menu #1161

marktaipan-cvisionai opened this issue Mar 3, 2023 · 3 comments
Milestone

Comments

@marktaipan-cvisionai
Copy link
Member

Category
Feature Request

Problem
The annotator's right click / context menu can get crowded; especially if there are a lot of applets and states registered to the project. This makes the menu less accessible and potentially problematic in low viewport scenarios.

Request

  • Put the create states into its own submenu
  • Put the track functions into its own submenu
  • Put the applet functions into its own submenu

These submenus could appear/disappear on mouseover/mouseout and are likely another div that is adjacent to the current menu. Alternatively, these submenus could behave like the video settings and timeline settings menus and have a back button and require clicking.
Could also investigate using browser.menus.overrideContext instead

@bctcvai
Copy link
Member

bctcvai commented Mar 8, 2023

I switched around the initializing of this a bit in moving it to tator-js. The code still lives in annotation.js; but it uses the custom menu's web component as an interface which isn't great. I think we want to have a signal defined coming off the canvas like: "right-click event" and have the higher-order code (annotation-****) make the menu and all that.

@marktaipan-cvisionai marktaipan-cvisionai added this to the 1.5.0 milestone Jul 8, 2024
@bctcvai
Copy link
Member

bctcvai commented Dec 10, 2024

A submenu for multiview ops would also be appropriate

@marktaipan-cvisionai
Copy link
Member Author

This is dependent on completing #1934 - typically the number of state types necessitates submenus in the right click menu.

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

No branches or pull requests

2 participants