mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-19 02:48:30 +08:00
Add hover-over highlighting to the scatterplot (#900)
* small perf improvement - do not recreate functions each time component is updated * add hover-over highlighting to scatterplot
This commit is contained in:
@@ -26,8 +26,7 @@ export default function(regl) {
|
||||
bool isNaN, isSelected, isHighlight;
|
||||
getFlags(flag, isNaN, isSelected, isHighlight);
|
||||
|
||||
float size = isHighlight ? 8. : isSelected ? 4. : 1.;
|
||||
gl_PointSize = size;
|
||||
gl_PointSize = isHighlight ? 8. : isSelected ? 4. : 1.;
|
||||
|
||||
float z = isNaN ? zBottom : (isHighlight ? zTop : zMiddle);
|
||||
vec3 xy = projection * vec3(position, 1.);
|
||||
|
||||
Reference in New Issue
Block a user