Degree options

For angles, use a degree option.

Structure

Your degree option should be a plain object with these properties:

  • deg : The default value in degrees
  • min : The minimum that’s allowed
  • max : The maximum that’s allowed
TIP

Like all options that are configured through an object, you can add more properties to the options’ object to implement functionality on top of what’s provided by the core library.

Refer to extending options for more details.

Example

Javascript
options: {
  collarAngle: { 
    deg:  85,
    min:  60,
    max: 130,
  }
}