compost icon indicating copy to clipboard operation
compost copied to clipboard

Support for round corners and/or beizer curves.

Open OnurGumus opened this issue 4 years ago • 4 comments

Anyway support for round corners and/or beizer curves?

OnurGumus avatar Jun 17 '20 07:06 OnurGumus

This is currently not supported, but I can see how this would be useful for smooth lines.

Out of curiosity, what are the use cases that you're thinking of? I can definitely imagine the smooth line using a bezier curve (and SVG supports this, so it should be not too hard). I'm not sure about good use case for rounded corners though...

tpetricek avatar Jun 17 '20 20:06 tpetricek

One of the cases is purely for cosmetic reasons, it would be nice to round the corners of those bar charts. As for the second, I was thinking about pie charts.

OnurGumus avatar Jun 18 '20 07:06 OnurGumus

Thanks, that makes sense!

Pie charts are one thing that I don't have a good solution for right now. Ideally, I would like to handle those by somehow projecting the 2D space of a chart on a circle (so that a chart with just a series of plain rectangles becomes a pie chart) - but I have not done anything to make this actually work...

tpetricek avatar Jun 18 '20 10:06 tpetricek

How about a helper shape dedicated to beizer curves just like you have a helper for lines? That might ease the pain as the user can give the start and end points and make the curve with this function. One thing needs be added lines and curves should be able to form a closed shape so that you can fill inside. I guess this leads to something like SVG paths.

OnurGumus avatar Jun 18 '20 11:06 OnurGumus