visdesignlab / upset2

UpSet - Visualizing Intersecting Sets
https://upset.multinet.app/
BSD 3-Clause "New" or "Revised" License
41 stars 7 forks source link

Refactor BaseElement to add a displayName field #331

Open NateLanza opened 3 months ago

NateLanza commented 3 months ago

Currently, the elementName field of BaseElement divides set names with ~&~ , which needs to be removed upon display. Adding a displayName field with this already done removes the need to run replaceAll('~&~', ' & ') in every location where the element is displayed, improving code quality. Ideally the displayName field would depend on elementName and respond to updates to it.