Rac. Controller

The Controller is the object that manages the control system for an instance of Rac.

The instance contains the pointerStyle and settings shared between all controls like the knobRadius. It also keeps the list of all managed controls and the currenty selected control.

⚠️ The API for controls is planned to change in a future minor release. ⚠️

Constructor

new Controller()

Builds a new Controller with the given Rac instance.

Classes

Selection

Members

knobRadius :number

Distance at which the pointer is considered to interact with a control knob. Also used by controls for drawing.

rac :Rac

Instance of Rac used for drawing and passed along to any created object.

(nullable) selection :Rac.Controller.Selection

Selection information for the currently selected control, or null when there is no selection.