nglviewer / ngl

WebGL protein viewer
http://nglviewer.org/ngl/
MIT License
657 stars 168 forks source link

info in tooltip #1024

Closed hellhorse123 closed 2 months ago

hellhorse123 commented 4 months ago

How to change info, which displays in default tootlip? For example, I want to delete filename of atom

Screenshot 2024-02-20 at 10 56 26
ppillot commented 4 months ago

It can't be configured: https://github.com/nglviewer/ngl/blob/d242234becffbe91c11126079ed22e6930390584/src/controls/picking-proxy.ts#L310

But this would be a nice feature to add (using the same templating syntax as for labels)

hellhorse123 commented 2 months ago

I found a workaround: you can rename the file itself and this solves my problem:

component.structure.name = "Protein";

Screenshot 2024-04-26 at 13 03 57