lab-cosmo / chemiscope

An interactive structure/property explorer for materials and molecules
http://chemiscope.org
BSD 3-Clause "New" or "Revised" License
119 stars 29 forks source link

One-liner change to fix a cornercase visualization error #349

Closed ceriottm closed 1 week ago

ceriottm commented 1 week ago

You can barely see it here, but if you open a viewer with environments, disable the environments and hide the bonds, you'll see a wireframe visualization of the atoms within the selected center. image

This fixes the problem by initializing the style of the center upon creation.