calipho-sib / feature-viewer

Library to visualize protein sequence features in javascript using D3 - From SIB CALIPHO group; neXtProt project
http://calipho-sib.github.io/feature-viewer/examples/
Other
110 stars 31 forks source link

Where to modify in order to add function triggers in rectangles? #78

Open Firingam opened 1 year ago

Firingam commented 1 year ago

Hi, I am playing with this library and would like to modify it to add new features and adapt it for my purposes. In particular, I would like to add an option in order that when a rectangle is clicked, it triggers a function that does something.

I am trying to modify the feature-viewer.js file in the src folder but I think it is not the right solution.

In general, it would be useful to add an option that allows for including custom functions when rects are clicked.

I think I got where to modify in feature-viewer.js but where to modify in feature-viewer.bundle.js? The file is very large and I am getting trouble to understand it

Thanks!