Viewport fills entire screen (#430)

* full pane webgl and svg

* fixes for full pane selection and centering

* force graph remount, clear brush state
This commit is contained in:
Colin Megill
2018-11-13 11:45:38 -05:00
committed by GitHub
parent 9decf134e0
commit dbff824854
6 changed files with 45 additions and 31 deletions
@@ -38,7 +38,7 @@ export default function(regl) {
uniforms: {
distance: regl.prop("distance"),
view: regl.prop("view"),
projection: () => mat4.perspective([], Math.PI / 2, 1, 0.01, 1000)
projection: ({viewportWidth, viewportHeight}) => mat4.perspective([], Math.PI / 2, viewportWidth / viewportHeight, 0.01, 1000)
},
count: regl.prop("count"),