Closed meganrm closed 9 months ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
๐ด | Statements | 40.73% (-5.13% ๐ป) | 1997/4902 |
๐ด | Branches | 44.26% | 829/1873 |
๐ด | Functions | 37.79% (-5.69% ๐ป) | 412/1090 |
๐ด | Lines | 40.94% (-4.91% ๐ป) | 1911/4667 |
Status of coverage: ๐ข - ok, ๐ก - slightly more than threshold, ๐ด - under the threshold
About the change to only accept a single color at a time, I think we used to have in mind bulk color changes like "palettes". That's the only reason I can remember ever needing to change multiple colors in one function call in an optimized way. (And of course we never did it)
About the change to only accept a single color at a time, I think we used to have in mind bulk color changes like "palettes". That's the only reason I can remember ever needing to change multiple colors in one function call in an optimized way. (And of course we never did it)
Yeah, I think in that case we would wipe everything out, ie, re-init the colorHandler with the new pallet, and then just call 'setInitialColors' again.
Problem
347
Solution
I moved all the functions in visGeometry into a colorHandling class. In the process I also simplified the
colorChanges
which was an array, but we're only ever sending in onecolorChange
at a time. I updated https://github.com/simularium/simularium-website/pull/432 for this change too.VisGeometry still has some color handling functions to unite the color with the visAgent, but it now only deals with colors by their names (no indices).
Type of change
Please delete options that are not relevant.
Steps to Verify: