setViewport method

void setViewport(
  1. num x,
  2. num y,
  3. double width,
  4. double height,
)

Implementation

void setViewport(num x, num y, double width, double height) {
  _viewport.set(x, y, width, height);
  state.viewport(_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor());
}