.new ResizeModule(paramsopt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
params |
Object
|
<optional> |
{auto: true}
|
If auto is set to true - resize will be triggered when container resizes |
Methods
.addAutoresize()
Sets module to autoresize, this adds an event listene on window resize to trigger the resize
- Source:
.addCallback(func)
Adds a call back function to the existing callbacks list.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function
|
The callback function to add |
.setSize(widthopt, heightopt)
This function sets the provided width & height to the renderer object.
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
Number
|
<optional> |
1
|
The promise that should be added to a queue. |
height |
Number
|
<optional> |
1
|
that is resolved when all promises completed. |
.trigger()
Triggers resize when called. width & height are determined automatically This invokes each callbacks with the new width and height as params
- Source: