User-Defined Events
The paramate JavaScript API allows to add a number of user-defined callback function that are called on certain events during the configuration process.
configurator.onBeforeConfigure Function to be called before configuration starts. If it does not return true, the configuration will not start.
configurator.onAfterConfigure Function to be called after configuration finished.
onConfigureError Function to be called when a configuration fails. The argument of it is the error. If it is defined and does not return true, the parameters will not be set back to their last valid values.
configurator.onAfterConfigureRedraw Function to be called after a configuration and the subsequent redrawing finished.
viewport.onBeforeRedraw Function to be called before a redraw operation is started. If it does not return true, the drawing will not start.
viewport.onAfterRedraw Function to be called after a redraw operation is finished.
viewport.onCheckCameraLimits Function to be called when the user changes the camera to check limits and correct if needed.