The vue-knob component also supports some customization for the angles.
The start and end angles can be set using the start-angle
and end-angle
props which set the limits for the label anchors to calculate their spacing between.
<template>
<vue-knob
v-model="knob.value"
:options="knob.options"
:start-angle="90"
:end-angle="270"
/>
</template
If something specific is required any angle can be explicitly set in the options.
<template>
<vue-knob
v-model="knob.value"
:options="[{
value: 1,
angle: 97
}, {
value: 10,
angle: 127
}]"
/>
</template
The anchor-offset
props allows for an adjustment of the anchors which is useful in some cases for better alignment with the way labels are displayed.
<template>
<vue-knob
v-model="knob.value"
:options="knob.options"
:anchor-offset="3"
/>
</template