Repository navigation
v1.2.0
1.2.0
Styled text, material effects, pinch, rotate and fuse, node transform and bounding box reads, and recovery from a lost WebGL context: what viro's web components need to match native in @reactvision/react-viro 3.2.2.
Added
- Styled text:
createStyledTextwith a family list, weight, italic, extrusion and an outline or drop shadow;loadTextFacefetches the Roboto face a weight or italic needs, once per page. - Material effects:
setMaterialAlpha,setMaterialBloomThreshold,setMaterialColorWriteMaskandsetMaterialChromaKey. - Pinch, rotate and fuse on the node under two fingers, and
setNodeTimeToFuse. - Node reads:
getNodeWorldTransformandgetNodeBoundingBox, in native's shapes. - Context loss:
isContextLostandaddContextListener.
Fixed
- The canvas is opaque, as a native view is.
dispose()stops the render loop, so a remount no longer adds a loop.pointercancelno longer completes a click.
Check when upgrading
- Copy the whole
wasm/folder: it now carries the 11 Roboto faces besideviro-web.wasm, fetched when a text asks for a weight or italic.