fatteneder / SVGMakie.jl

SVG backend for Makie
MIT License
1 stars 1 forks source link

Optimize SVG file output - `Mesh2D` #6

Open fatteneder opened 1 year ago

fatteneder commented 1 year ago

The idea would be to keep the area of the raster to a minimum.

A first guess would be to orient the raster such that one of its edges aligns with a triangle's longest side. That's probably not the most optimal way, but I guess it is already better than just always using a horizontally/vertically oriented rectangular raster layout. Only extra thing to do is then to rotate the clip.

1 is related in the sense that it also considers avoiding unnecessary raster-ed images that are useless because they fall behind other images. So not 100% sure if the above is the way to go ...