powsybl-diagram icon indicating copy to clipboard operation
powsybl-diagram copied to clipboard

Rotate component/label with CSS

Open flo-dup opened this issue 3 years ago • 1 comments

  • 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

flo-dup avatar Sep 22 '21 15:09 flo-dup

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

flo-dup avatar Feb 03 '23 14:02 flo-dup