powsybl-diagram
powsybl-diagram copied to clipboard
Rotate component/label with CSS
-
Do you want to request a feature or report a bug? Feature
-
What is the current behavior? Rotation is added directly in the svg file
-
What is the expected behavior? Rotation is added through CSS rotate
-
What is the motivation / use case for changing the behavior? Factorizing the rotation leading to a lighter file
As mentioned in #191, it cannot be done for components because of anchors. This can still be used for text labels, which will allow to remove LayoutParameters::isLabelDiagonal