[cairo] svg - significance of surface6 id? might change?
emmanuel.pacaud at lapp.in2p3.fr
Sun Feb 7 19:13:01 UTC 2021
Le dim. 7 févr. 2021 à 4:56, Daniel Goldman <dagoldman at yahoo.com> a
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo