Skip to content

Function: renderAreaFor() ​

ts
function renderAreaFor(kind, rect, clip, canvasWidth, canvasHeight): ViewportRect;

Experimental

The rect GL renders into for a viewport: its own rect for clipped 2D and all 3D viewports, the whole canvas for 2D viewports that may overflow their rect.

Parameters ​

ParameterType
kindViewportKind
rectReadonly<ViewportRect>
clipboolean | Readonly<ViewportRect>
canvasWidthnumber
canvasHeightnumber

Returns ​

ViewportRect

Released under the MIT License.