Repository navigation
Styled text, material effects, pinch/rotate/fuse, node reads, context loss and an opaque canvas - #15
Merged
Merged
Conversation
Wraps virocore's viroSetNodeSelectable: a node that is not selectable, and its subtree, is skipped by taps and hit tests.
ViroSceneApi.createStyledText takes a family list, weight, italic, extrusion and an outline or drop shadow, and draws plain text on a binary without the binding. ViroWebRenderer.loadTextFace fetches the face a weight or italic needs from beside the wasm, once per page. copy-wasm copies the 11 faces into wasm/, so they ship and reach hosts that copy that folder; viro-web.data is unchanged. The package test checks every face the binary can ask for is there.
Two touch pointers on the canvas become a pinch and a rotate, started on the first two-finger move as the iOS and Android recognisers start them. The first finger's press is cancelled without a click, and pointercancel cancels a press for any pointer id instead of releasing it.
Every remount used to add a render loop. After a restore the renderer is spent: its owner disposes it and creates a new one on the same canvas.
Ships the virocore web build that creates the WebGL context without alpha.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ships the virocore web build from ReactVision/virocore
feat/web-gesturesand exposes it in the scene API. Merge after that PR. The changes are listed under Unreleased inCHANGELOG.md, ready for 1.2.0.Added
ViroSceneApi.setNodeSelectable: a node that is not selectable, and its subtree, is skipped by taps and hit tests.ViroSceneApi.createStyledTexttakes a family list, weight, italic, extrusion depth and an outline or drop shadow.ViroWebRenderer.loadTextFacefetches the Roboto face a weight or italic needs from beside the wasm, once per page.copy-wasmcopies the 11 faces intowasm/, so they reach hosts that copy that folder.viro-web.datais unchanged.createStyledTextdraws plain text.setMaterialAlpha,setMaterialBloomThreshold,setMaterialColorWriteMask(with the newViroColorWriteMaskbits) andsetMaterialChromaKey.supportsMaterialEffectsis false.onPinchandonRotate). They start on the first two-finger move, as the iOS and Android recognisers start them. The first finger's press is cancelled without a click.onFusecovers the gaze at the screen's centre, andsetNodeTimeToFusesets its time.getNodeWorldTransformandgetNodeBoundingBox, in the same shapes as native'sgetTransformAsyncandgetBoundingBoxAsync.supportsGesturesis false on an older binary.isContextLostandaddContextListener. After a restore, dispose the renderer and create a new one on the same canvas.Fixed
dispose()stops the render loop. Before, every remount added another loop.pointercancelno longer completes a click. It used to be sent as a release, which could click the pressed node.Testing
wasm/.