ResizeModule

WHS.app.ResizeModule

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

Parameters

NameDescriptionDefault
autoIf set to true - resize will be triggered when container resizestrue

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