andyruwruw / chess-image-generator

Accepts FEN, PGN or array data for chess board and generates PNG or buffer.
https://www.npmjs.com/package/chess-image-generator
MIT License
55 stars 22 forks source link

SVG Manipulation #23

Open IJustDev opened 3 years ago

IJustDev commented 3 years ago

Hey everybody and hey @andyruwruw !

Thanks for creating this beautiful library, got it integrated in whatsapp-chess. I would love to add col and row descriptions (ABCDEFGH and 12345678).

We could either achieve this by coding it right into, or by letting the user get the svg itself so he could then manipulate it.

Would love to do this and will open a pr right away!

Hope you will merge it if it suits your roadmap and release it asap.

IJustDev commented 3 years ago

Okay so just modified my app to handle the rendering of letters itself... If anybody is in need of it: https://github.com/IJustDev/whatsapp-chess/blob/master/src/commandHandler.ts#L39

I will create a pr containing an option to display them tomorrow

andyruwruw commented 3 years ago

Happy you found the lib useful!

I plan on revisiting this and do a bit of refactoring and I'll add those features as well, for now thank you for sharing your implementation :)