»group« contains the name of a variable, in which the generated Zinc group is stored.
This variable name is used inside SVG as the ID of the created group element. »group« is later used inside »zincNew« to add children to this node–this is different to »canvasNew« where, there are no groups for Tk items.
The Zinc window must be queried for the parent group, this isn't possible here!
Side-effect generates a variable »_lastgroup« the value is used later by zincNew and contains the the future ID of that group!
Walking down the Zinc hierarchy isn't straight-forward. There is a special routine in the parser section to do that: »walkDownZincGroups«, in short the Z-Order must be preserved. And the Zinc does not –never– report its elements this way...
groupzinc is being used by ::dumper::zincNew.
groupzinc is being used by ::vgcode::dump-configure-Zinc clients.
Example 4.27. ::vgcode::dump-configure-Zinc using groupzinc
... set group \ [groupOf $target $id] set generated \ [dumper::groupzinc $target $ta_name $properties $group $transformation $pgroup]