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.
From 8.0.14 to 8.14.1 (version 8.1.0 is on page 7).
.parentElement
to get tor3fRoot
and a change to ther3fRoot > canvas
CSS selector. R3F still registers events onr3fRoot
.Line
element to not conflict with SVGline
in JSXThreeElements
to access the prop types of Three objects - e.g.ThreeElements['mesh']
=>MeshProps
— it could come in handy:<T extends 'mesh' | 'points'>(props: ThreeElements[T]) => void
gl.domElement.parentNode
(i.e.r3fRoot
). This is going to enable further refactoring and new features like the picking API.Canvas
can now access contexts provided outside of R3F, like the toolbar configs (not that we want to do that). I think this opens the door to refactoring opportunities, notably in Daiquiri.OffscreenCanvas
! Maybe a way forward for #95...