14 Commits

Author SHA1 Message Date
Gaëtan Renaudeau
06d5648599
Make gl-react-dom fallback to "webgl" when "webgl2" fails
By default, we'll do "auto" compatible mode until Safari supports webgl2.
This behavior can be overriden if needed by forcing version="webgl2" or version="webgl" on the Surface. it will implicitly be version="auto" until 100% browser supports webgl2.
2021-03-13 20:12:38 +01:00
Gaëtan Renaudeau
be57c71188
gl-react-dom to allow Surface to be absolute positionned
Fixes #238
2020-12-26 18:50:53 +01:00
Gaëtan Renaudeau
b116482240
Support WebGL2 2020-12-26 16:04:56 +01:00
Gaëtan Renaudeau
f655a83469
Upgrade libs and prettier 2020-12-23 21:18:54 +01:00
Gaëtan Renaudeau
6002ea969c
Update dependencies to latest libaries 2019-08-14 13:45:59 +08:00
Gaëtan Renaudeau
dab6ded6d0 typecheck window is here (attempt to fix next.js) 2018-02-25 10:01:39 +01:00
Gaëtan Renaudeau
6b8fac5a72 fixes https://github.com/gre/gl-react/issues/147
we'll work later on the RN/Expo implementation implication of that
2017-09-01 18:35:59 +02:00
Gaëtan Renaudeau
b506c56061 prettier pass: don't use es5 trailing comma 2017-07-04 18:15:29 +02:00
Gaëtan Renaudeau
837647e7c3 prettier update pass 2017-05-15 12:34:20 +02:00
Gaëtan Renaudeau
cff1bd7e4c update dev deps & drop eslint 2017-04-30 17:07:19 +02:00
Gaëtan Renaudeau
c16cebc165 Unify cookbook-rn & cookbook-expo code! also prettier pass on the proj 2017-04-30 15:21:34 +02:00
Gaëtan Renaudeau
d4ea74d922 fixes https://github.com/gre/gl-react/issues/97
upgrade some projects.. next release will be 3.0.0 ! not that it's fully ready yet (will still be in @next, but in order to get semver on track.. & so the projects can properly dep on the right version)
there were currently an issue with gl-react@3.0.0-alpha1 being installed instead of gl-react@3.0.0-alpha.8 when not depending on exact version, 'cause it's just not very compliant with semver
2017-04-23 17:12:42 +02:00
Gaëtan Renaudeau
4d4b567726 fundamentally refactor the way width/height works
in gl-react: the context no longer have {width,height} but have {glSizable} which is an object with a getGLSize function. the size is dynamically calculated in the graph & using gl.drawingBufferWidth / gl.drawingBufferHeight which allows more flexible implementations.
in gl-react-dom: nothing fundamentally changes
in gl-react-native/exponent: Surface no longer takes width/height props! instead, it is just the style object, like any usual React Native view. e.g. you can use flexbox!
2017-03-02 14:42:21 +01:00
Gaëtan Renaudeau
4600bcedd0 initial release 2016-12-02 10:55:17 +01:00