registerViewportControl
Register a viewport control for automatic drawing.
Parameters
- control
-
The control object. The control object has to have a "visible" member (that is true if the control should be visible, false otherwise) and the following methods:
- draw(ctx): draw the control on the ctx canvas context
- handleEvent(e): handle events sent to the control