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

[nad-viewer] Add right-click callback #155

Closed
flo-dup opened this issue Jan 21, 2025 · 1 comment · Fixed by #160
Closed

[nad-viewer] Add right-click callback #155

flo-dup opened this issue Jan 21, 2025 · 1 comment · Fixed by #160
Assignees

Comments

@flo-dup
Copy link
Contributor

flo-dup commented Jan 21, 2025

Describe the current behavior

No callback on right-click

Describe the expected behavior

Callback called on right-click on any element (line, transformer, vl node, text node).
Callback defined in constructor.
Callback type:

(equipmentId: string, elementType: string) => void

Describe the motivation

Allow the user to create a context menu.

Extra Information

No response

@flo-dup
Copy link
Contributor Author

flo-dup commented Jan 21, 2025

Similarly to OnToggleNadHoverCallbackType, is mousePosition : Point also needed in the callback?

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 a pull request may close this issue.

2 participants