Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add observable event for pathway diagrams #371

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Conversation

eweitz
Copy link
Owner

@eweitz eweitz commented Aug 13, 2024

This makes new pathway diagrams (#370) adaptable and programmable in more embedding contexts.

For example, clients can use code like the following to hook into the pathway draw completion event:

document.addEventListener('ideogramDrawPathway', function(event) {
  const {pathwayViewer, pwId, sourceGene, destGene, dimensions} = event.detail
  clientsCustomPathwayEnhancement(pathwayViewer, pwId, sourceGene, destGene, dimensions)
})

@eweitz eweitz merged commit 1a6aa33 into master Aug 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant