knob-scale-generator icon indicating copy to clipboard operation
knob-scale-generator copied to clipboard

Sync Custom Start Degree with Numbering Position

Open seanalexander opened this issue 4 months ago • 2 comments

Summary: This PR introduces a feature that automatically synchronizes the Custom Start Degree field with the Numbering Position. When a user selects a numbering position (Top, Left, Right, Bottom), the corresponding angle (0, 90, 180, 270 degrees) is automatically set in the Custom Start Degree input, ensuring consistent behavior between the two options.

Changes:

  • Added logic to update Custom Start Degree based on the selected Numbering Position if no custom degree is manually set.
  • Numbering Position angles:
    • Top: 90 degrees
    • Left: 180 degrees
    • Right: 0 degrees
    • Bottom: 270 degrees
  • Custom Start Degree remains flexible and can be overridden by the user if needed.

Impact:

  • Improves usability by ensuring that the Custom Start Degree automatically reflects changes made via Numbering Position selection.
  • Prevents confusion by keeping the two options synchronized while preserving manual overrides when necessary.

Testing:

  • Tested functionality where selecting different Numbering Positions correctly updates the Custom Start Degree.
  • Confirmed that manually setting Custom Start Degree still works as expected, overriding the numbering position when needed.

seanalexander avatar Oct 09 '24 16:10 seanalexander