-
Notifications
You must be signed in to change notification settings - Fork 0
Event hook plugins #47
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestngl-viewerRelating to the NGL viewer and it's stateRelating to the NGL viewer and it's statepose-viewer
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestngl-viewerRelating to the NGL viewer and it's stateRelating to the NGL viewer and it's statepose-viewer
I want to add some extra functionality to the pose viewer that would be much more useful if this could be done in a generic manner.
The scenario is when a molecule is selected in the card view and therefore displayed in NGL viewer we want to be able to execute some additional Javascript that adds extra components (shapes, arrows ...) to NGL, and then removed when the molecule is de-selected.
The Javascript is relatively simple and just needs data from the selected card. It is very specific to a particular purpose and should only be used when applicable, so would be best thought of as a plugin that can be added when needed.
I can see a library of predefined functions that can be used as hooks as well as the ability to define new ones.
For now just think this through. We'll define this more fully once we've done some initial brainstorming.