I'm trying to add a class attribute to a
diagrams.net (
draw.io) svg, so I can style it later with CSS. The diagram was created with the app and saved as type ".svg"
Consider two simple shapes:
I can "edit data" to add a class to shape1:
This shows up in Extras>Edit Diagram:
But when I open the svg file in a text editor, the class cannot be found. I honestly have no idea where
diagrams.net is even saving the data, as there is only the one .svg file with no metadata. This is the case if I open the
diagrams.net .svg file or export as svg.
Any help would be appreciated. I've tried .drawio format, tags and styles without success.
Thanks,
Nico