Closed luk3ya0 closed 1 year ago
Do I understand correctly that the verbatim content of the RESULTS
block is actually [[file:./images/radial-tree.svg]]
(like if you were to view it in fundamental-mode)?
If so, then I can add rendering support for SVG but the ability of Orgro to access the file will be dependent on all of the stuff listed here.
yep, the output is actually a OrgFileLink, but without file protocol
I try to get some points to approach, but svg image in flutter isn't mature as the binary ones.
@luk3ya0 I see you have some effort in your code to manipulate the size of the SVG image with FittedBox
. That didn't seem necessary to me, but please let me know if the current sizing behavior needs improvement.
I think it maybe useful to wrapped with FittedBox
while the svg file coming from article documentclass (latex) with redundant white spaces, or outputted from inkscape with complicated path transformation. In that circumstance, the svg display fullfill the screen height.
I think it will be hard to come up with a single strategy that gives good results in all cases. If there is a specific case where things need improvement, please open a new ticket with the specifics.
ok, thanks for adding the improvement
What about add svg ext support for image widget? Like the org babel plotting as svg file output in emacs