mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 13:48:12 +08:00
reduce dot scaling upon zoom (#963)
* remove obsolete code * change point scaling with zoom distance
This commit is contained in:
@@ -31,7 +31,7 @@ export default function(regl) {
|
||||
getFlags(flag, isNaN, isSelected, isHighlight);
|
||||
|
||||
float size = pointSize(nPoints, minViewportDimension, isSelected, isHighlight);
|
||||
gl_PointSize = size * pow(distance, 1.2);
|
||||
gl_PointSize = size * pow(distance, 0.5);
|
||||
|
||||
float z = isNaN ? zBottom : (isHighlight ? zTop : zMiddle);
|
||||
vec3 xy = projView * vec3(position, 1.);
|
||||
|
||||
@@ -194,11 +194,7 @@ class Graph extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
// setup canvas, webgl draw function and camera
|
||||
const camera = _camera(this.reglCanvas, {
|
||||
pan: true,
|
||||
scale: true,
|
||||
rotate: false
|
||||
});
|
||||
const camera = _camera(this.reglCanvas);
|
||||
const regl = _regl(this.reglCanvas);
|
||||
const drawPoints = _drawPoints(regl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user