concord-consortium / lab

HTML5-based scientific models, visualizations, graphing, and probeware
http://lab-framework.concord.org/
MIT License
57 stars 38 forks source link

Charge shading style #121

Closed pjanik closed 7 years ago

pjanik commented 7 years ago

This PR adds a new property: "chargeShadingStyle". Possible values: "biology" (default), "chemistry". It lets authors swap blue/red coloring of +/- atoms.

@ddamelin, you can take a look if naming makes sense to you (property, values).

pjanik commented 7 years ago

Right, although I think I'd need twice as much color declarations (6 for chemistry and 6 for biology, doubling the same d3.scale() declarations), so I'd just merge as it is now. Thanks!