ProfileSVG.jl
ProfileSVG.jl copied to clipboard
Adding options specifying frame shape (`xspacing`/`yspacing` and `roundradius`)
Currently the rounding radii of frame (<rect>
) corners are re-calculated based on the zooming factor. Since roundradius = 0
means square corners, the corner-rounding process can be omitted.
On the other hand, setting frame spacing may require re-calculation of the width
and height
attributes of each frame. However, if width
s and height
s are overwritten, there is a problem with accumulative errors. Therefore, it may be another option to manipulate the transform
attribute of each frame.
I think these new options require drastic design changes. I will decide the design according to the benchmark results.
I will put the support for xspacing
/yspacing
/spacing
as a v0.2.x material, not v0.2.0.
The roundradius
has been supported by PR #47.
We might also need the frameheight
option. Currently the height is calculated based on the fontsize
, but this is not suitable for displaying deep graphs. (cf. https://github.com/kimikage/ProfileSVG.jl/issues/44#issuecomment-685426484)
Anyway, I plan to support y-axis zooming in v0.3.