Skip to content

Conversation

@igorwessel
Copy link

@igorwessel igorwessel commented Dec 13, 2024

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:

Evidences

Gravacao.de.Tela.2024-12-13.as.18.10.01.mov

@igorwessel igorwessel marked this pull request as ready for review December 13, 2024 21:26
@igorwessel igorwessel changed the title feat: add font-weight attribute to itemLabelFont Add font-weight attribute for item label font Dec 13, 2024
@igorwessel
Copy link
Author

ps @CrazyTim

@CrazyTim
Copy link
Owner

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

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.

2 participants