Clipped svg output

Lutz Haseloff <[email protected]> Mon, 09 Jan 2023 16:30:56 +0100
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
Hi all,

the svg output of recent metapost (linux and windows) seems to be clipped or the viewbox of the svg is shifted a small amount down and right.

My test.mp is:

outputformat := "svg";
outputtemplate := "%j.%{outputformat}";
beginfig(1)
draw fullcircle scaled 20;
endfig;
end

The resulting svg included in a context lmtx file:

\starttext
\startTEXpage
\externalfigure[test.svg][conversion=mp]
\stopTEXpage
\stoptext

eps and png output is ok.

Has it to do with the recent change in the svg clippath?
Am I doing something wrong?

Greetings

Lutz

--
http://tug.org/metapost/