spin-wheel
spin-wheel copied to clipboard
Add font-weight attribute for item label font
This pull request introduces the itemLabelFontWeight property to the Wheel class, allowing users to specify the font weight for item labels.
Enhancements to Wheel class:
src/wheel.js: AddeditemLabelFontWeightproperty, including getter and setter methods, and updated thectx.fontassignment to incorporate the new property. [1] [2] [3]
Updates to default constants:
src/constants.js: AddeditemLabelFontWeightto theDefaultsobject with an initial value of an empty string.
Playground updates:
examples/playground/index.html: Added a new input group foritemLabelFontWeight.
Evidences
https://github.com/user-attachments/assets/0e2093e9-de6f-4fd0-982b-fb30d9ef2e06
ps @CrazyTim
@igorwessel nice PR, thanks for this.
Sorry for the late reply, I had some ideas about extending this but never got around to it 😆 I'll try and have another look soon.