[metapost] Problem with clip and svg output

Pétiard François petiard.francois at free.fr
Fri Nov 4 18:07:10 CET 2022


Thank you!

François

Le 04/11/2022 à 18:04, luigi scarso a écrit :
>
>
> On Fri, 4 Nov 2022 at 17:16, luigi scarso <luigi.scarso at gmail.com> wrote:
>
>         <clipPath id="CLIP1">
>             <path d="M100.000000 50.000000C100.000000
>     36.738586,94.731140 24.021912,85.354614 14.645386C75.978088
>     5.268860,63.261414 -0.000000,50.000000 -0.000000C36.738586
>     -0.000000,24.021912 5.268860,14.645386 14.645386C5.268860
>     24.021912,0.000000 36.738586,0.000000 50.000000C0.000000
>     63.261414,5.268860 75.978088,14.645386 85.354614C24.021912
>     94.731140,36.738586 100.000000,50.000000 100.000000C63.261414
>     100.000000,75.978088 94.731140,85.354614 85.354614C94.731140
>     75.978088,100.000000 63.261414,100.000000 50.000000Z" style="fill:
>     black; stroke: none;"></path>
>           </clipPath>
>         </defs>
>         <g clip-path="url(#CLIP1);">
>
>
>     hm... not ok. It should be
>         <g clip-path="url(#CLIP1)">
>
>     i.e. without the final ';'  .
>     I need to check.
>
>
>
> Just commited
> ------------------------------------------------------------------------
> r64923 | lscarso | 2022-11-04 18:03:25 +0100 (Fri, 04 Nov 2022) | 1 line
>
> Fixed the value of the clip-path attribute for the svg output.
> ------------------------------------------------------------------------
>
> --
> luigi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/metapost/attachments/20221104/0742c0f8/attachment.html>


More information about the metapost mailing list.