vexflow icon indicating copy to clipboard operation
vexflow copied to clipboard

How is addClass method supposed to work?

Open utanashati opened this issue 1 year ago • 2 comments

Hi Vexflow team! Thank you for this great lib!

I have an issue with the addClass method, of a StaveNote, in particular. I tried using it on a StaveNote to add a custom class to the corresponding G element, and while after I use it, the StaveNote instance does get updated with the new class name, it's not reflected in the final SVG.

Could you please explain, is this a bug or a feature, and how is it supposed to work? At which point do the classes get appended to the G elements?

I reproduced the issue in a code sandbox.

utanashati avatar Sep 11 '24 10:09 utanashati