fixed scatterplot infinite render (#429)

* add more to state from componentDidMount

* always brush

* destructure

* move render to function

* fixed scatterplot infinite render

* remove logging
This commit is contained in:
Colin Megill
2018-11-09 20:28:22 -05:00
committed by GitHub
parent 47ce0cfc49
commit 9decf134e0
3 changed files with 68 additions and 41 deletions

View File

@@ -38,14 +38,7 @@ export default function(regl) {
uniforms: {
distance: regl.prop("distance"),
view: regl.prop("view"),
projection: (context, props) =>
mat4.perspective(
[],
Math.PI / 2,
(context.viewportWidth * props.scale) / context.viewportHeight,
0.01,
1000
)
projection: () => mat4.perspective([], Math.PI / 2, 1, 0.01, 1000)
},
count: regl.prop("count"),