Skip to content

Conversation

@gabrielnau
Copy link

Allows to optionally have a knob above the stroke.

Configuration :

  • displayKnob : boolean to display the knob or not. Default to false to be backward compatible
  • knobColor : (optionnal) background color of the knob, default to fgColor
  • knobRadius : (required) must be expressed as a fractino of the lineWidth. Default to 0 in order to avoid having special cases further in the code.

Notes : It reduces the whole widget radius if activated, or the knob would overflow the canvas.

Allows to optionally have a knob above the stroke.
It reduces the whole widget radius if activated, or the knob would overflow the canvas.

The knob's own radius must be expressed as a percentage of the ```lineWidth``` ( 0 < r < 1 ).

If no ```knobRadius``` config argument is given, the value is set to ```0``` to avoid adding special cases further in the code for users that don't use it.
Previous commit #8be26fb211438e8d9c3b772363250ad4f11fb9a3 was misguided by non agnostic development environment.
@gabrielnau gabrielnau closed this Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant