Retrieve the destination canvas
Retrieve the 2D-context attached to the destination canvas
Returns true if this viewport currently has focus and thus receives keyboard events
See EventTarget.addEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsSee EventTarget.dispatchEvent for reference. Works with with EventUnified
Performs a pick on all ComponentPicks in the branch of this viewport
using a ray from its camera through the client coordinates given in the event.
Dispatches the event to all nodes hit.
If PICK.CAMERA was chosen as the method to pick, a pick property gets added to the event,
which holds the detailed information, but is overwritten for each node.
Connects the viewport to the given canvas to render the given branch to using the given camera-component, and names the viewport as given.
Returns a point on a projection surface in the hypothetical distance of 1 to the camera
matching the given point on the client rectangle
TODO: examine, if this should be a camera-method. Current implementation is for central-projection
See EventTarget.removeEventListener for reference. Works with EventListenerUnified and EventUnified
Optional
_options: boolean | AddEventListenerOptionsSet the branch to be drawn in the viewport.
Controls the rendering of a branch, using the given ComponentCamera, and the propagation of the rendered image from the offscreen renderbuffer to the target canvas through a series of Framing objects. The stages involved are in order of rendering Render.viewport -> Viewport.source -> Viewport.destination -> DOM-Canvas -> Client(CSS)
Authors
Jascha Karagöl, HFU, 2019 | Jirka Dell'Oro-Friedl, HFU, 2019-2022 | Jonas Plotzky, HFU, 2023
Link
https://github.com/JirkaDellOro/FUDGE/wiki/Viewport