ResizeModule

WHS.app.ResizeModule

const app = new WHS.App([
  // ...
  new WHS.app.ResizeModule()
]);

Parameters

Name

Description

Default

auto

If set to true - resize will be triggered when container resizes

true

API

.setSize(width = 1, height = 1)

This function sets provided width & height to the renderer object.

.trigger()

Triggers resize when called. width & height are determined automatically