[cairo] svg - significance of surface6 id? might change?

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Sun Feb 7 19:13:01 UTC 2021


Hi Daniel,

Le dim. 7 févr. 2021 à 4:56, Daniel Goldman <dagoldman at yahoo.com> a 
écrit :
> When I make the cairo SVG map, <g id="surface6"> is always generated 
> so far. Can I count on surface6 id not changing? Is it hard-coded, or 
> might change (eg, surface7)? What is significance (if any) to 
> surface6 id, or just hard-coded arbitrary id?

ids are constructed using an counter. If you replay the same cairo 
comands, with a given cairo version, you should always get the same id 
for a given element. But that's not guaranteed. And ids generation can 
change in a later cairo release. Then SVG generated by cairo was never 
really meant for later edition or for element referencing. Additional 
APIs are needed for this purpose.

Cheers,

    Emmanuel.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210207/7c68125c/attachment.htm>


More information about the cairo mailing list