codesmithyide / UMLWebWidget

A jQuery widget to display UML diagrams
https://www.codesmithy.com/umlwebwidget/index.html
MIT License
1 stars 1 forks source link

Reconsider use of CSS for styling #11

Open xleclercq opened 7 years ago

xleclercq commented 7 years ago

Currently we use CSS for styling some aspects of the SVG. That will not always work fine for instance we need the size of the font before we do the layout.

xleclercq commented 7 years ago

A simple test seem to show it works in the browser where the CSS is available when the SVG is constructed. I do not know how svg.js manages to take it into account but it seems it does. However when the document is generated and the CSS added later like in the test code then it doesn't work. So I think we're fine but I need to know how to apply the CSS to svgdom.js

xleclercq commented 4 years ago

This is probably using window.getComputedStyle()