2022-09-21 09:55:21 +02:00
|
|
|
---
|
2022-09-21 12:28:58 +02:00
|
|
|
title: Degree options
|
2022-09-21 09:55:21 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
For angles, use a degree option.
|
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
|
|
|
Your degree option should be a plain object with these properties:
|
|
|
|
|
|
|
|
- `deg` : The default value in degrees
|
2022-12-07 17:30:51 -08:00
|
|
|
- `min` : The minimum that's allowed
|
2022-09-21 09:55:21 +02:00
|
|
|
- `max` : The maximum that's allowed
|
|
|
|
|
2022-09-21 12:28:58 +02:00
|
|
|
<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](/reference/api/part/config/options/extend) for
|
|
|
|
more details.
|
|
|
|
|
|
|
|
</Tip>
|
2022-09-21 09:55:21 +02:00
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```js
|
|
|
|
options: {
|
|
|
|
collarAngle: {
|
2022-12-07 17:30:51 -08:00
|
|
|
deg: 85,
|
|
|
|
min: 60,
|
|
|
|
max: 130,
|
2022-09-21 09:55:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|