Rotation variant for axis widget
Here is a MR to add 2 new widget to Daiquiri.
Features
The integrated knob widget provides the following features
- Allow to move the motor by dragging the knob
- The dragging can be aborted with right click (to cancel the move request)
- Multi rotation are available
- Snapping (every 45deg)
- When the mouse is close to the scales
- When CTRL is pressed
- During motor move
- The widget is disabled
- The target of the motor is displayed
Changelog
- Introduce an highly modified version of
rc-knob
- For now as github pinpoint, but this could be merged in a project as a lib
- I prefer a pinpoint for now as it is not yet stabilized
- Added generic
InfiniteKnob360
fromrc-knob
to design common use cases and style - Added a basic
MotorRotation
with just a knob for rotation axis - Added a custom
MotorTomoRotation
for specialized tomo use case (this will be improved later) - Added
MotorMock
to have interactive widget in the documentation - Update
MotorDefault
andMotorSmall
documentation to useMotorMock
Edited by Valentin Valls