Skip to content

Viewport

This docs was updated at: 2026-02-23

com.paragon.web.Viewport  ยท  Record


Represents a viewport configuration with width and height dimensions.

Methods

of

public static Viewport of(int width, int height)

Creates a Viewport.

Parameters

Name Description
width The width of the viewport in pixels
height The height of the viewport in pixels

Returns

A new Viewport instance