Refresh function for API.
Refresh function for API.

Now, components can be refreshed by using API function if container dimensions have been changed without triggering the resize event for window. Also, function debounce is used to avoid too frequent component redraws during resize events.

fmidev/metoclient-ui,fmidev/metoclient-ui