Skip to content

Irregular rectangles

Nicco Kunzmann requested to merge irregular-rectangles into main

This is a MR to add to #27. The problem I am facing at the moment is that I create this path:

m 48.5,38.0 h 164.0 a 47.5,47.5 45 0 1 47.5,47.5 v 51.5 a 81.0,81.0 135 0 1 -81.0,81.0 h -101.5 a 47.5,47.5 45 0 1 -47.5,-47.5 v -114.0 a 18.5,18.5 135 0 1 18.5,-18.5 z 

And Inkscape converts it to this path:

m 48.5,38
h 164
C 238.73353,38 260,59.266474 260,85.5
V 137
c 0,44.73506 -36.26494,81 -81,81
H 77.5
C 51.266474,218 30,196.73353 30,170.5
V 56.5
C 30,46.282732 38.282732,38 48.5,38
Z

And then, the path effect does not properly work: All the C/c commands create two nodes instead of one arc corner.

Changes

  • Add path effect to SVG

  • Add paths and path effects to irregular rectangles

  • move rectangle creation to live shape module

Checklist

  • Change is tested
  • Change is documented.
  • Licenses are up to date

Related

Edited by Nicco Kunzmann

Merge request reports