feat: expose CrosswordSizeContext & Provider
Enables users to modify CrosswordSizeContext via its associated Provider. All previous default values remain unchanged for backwards compatibility.
Also makes cellTextVerticalOffset a configurable parameter of
CrosswordSizeContext. This vertical offset was previously hardcoded to
1 which displayed text awkwardly low in larger grids (e.g. 40x40). A
user can now override this default to 0 to keep text vertically
centered in smaller cells.
Hey @JaredReisinger some extra context:
I'm using this module for a personal project and saw that text was offset a bit too low on a grid about 36x36. So I made some changes here to expose the CrosswordSizeContext to higher level components to enable some optional tweaks. Let me know what you think. Thanks!
Friendly bump @JaredReisinger 😃 Mind taking a look?
Hi, @akirabaruah, sorry I haven't responded to your PR yet! On a quick glance, it looks good; I'll see if I can merge it with other changes I've made recently. Thanks!
Sounds great 👍 lemme know if you need me to push any fresh changes