Better scaling of diagrams rendered into SVG part. 2
|Assignee:||Jani Simomaa||% Done:|
|Tags:||diagram, svg, 1.32.0|
|Velocity based estimate||-|
|Release||Simantics 1.32.0||Release relationship||Auto|
#5 Updated by Reino Ruusu 11 days ago
This rendering issue was reverted by commit:40370f30d373d8ad850495f100700141ff600fa3.
The Sulca-specific issue is that it uses the scaling values present in the
Graphics2D object to determine font sizes, but this issue also affects
org.simantics.scenegraph.g2d.nodes.SelectionNode, which uses the the
Graphics2D scaling to determine the margins and line width of the selection rectangle. When global scaling is taken away from Batik's
SVGGraphics2D in the
SCLScenegraph class, that information no longer is available to the scene graph nodes.
This scaling issue is thus present in all Simantics products. Sulca only makes it more obvious, as its diagrams are the size of a postage stamp at scaling factor 1.