spin-wheel icon indicating copy to clipboard operation
spin-wheel copied to clipboard

Add font-weight attribute for item label font

Open igorwessel opened this issue 1 year ago • 1 comments

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: Added itemLabelFontWeight property, including getter and setter methods, and updated the ctx.font assignment to incorporate the new property. [1] [2] [3]

Updates to default constants:

  • src/constants.js: Added itemLabelFontWeight to the Defaults object with an initial value of an empty string.

Playground updates:

  • examples/playground/index.html: Added a new input group for itemLabelFontWeight.

Evidences

https://github.com/user-attachments/assets/0e2093e9-de6f-4fd0-982b-fb30d9ef2e06

igorwessel avatar Dec 13 '24 21:12 igorwessel

ps @CrazyTim

igorwessel avatar Dec 14 '24 09:12 igorwessel

@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.

CrazyTim avatar Jul 17 '25 22:07 CrazyTim