updateContainerSize()

rogneur relies on the size of the container that is calculated once so if it changes, you'll need to update it.

Return the api.

subscribe(event, callback)

Add a callback to be called when event occurs.

event: the name of the event to subscribe to, one of: LOAD_START, LOAD_END.

callback: a function to call when the event is published.

setState(state)

Used to set the internal rogneur instance's state.
Can be used to update the position.x, position.y and zoom but should be used with caution otherwise.
Note: some properties go through a transformer that ensure they match their min/max values.