CommunityModules icon indicating copy to clipboard operation
CommunityModules copied to clipboard

SVG!Group expects *sequence* of elements

Open lemmy opened this issue 5 years ago • 2 comments

https://github.com/tlaplus/CommunityModules/blob/dd647242998a8694846a17874344bf7299c43f56/modules/SVG.tla#L96-L98

What is the meaning of the order given by the sequence? Is it the z coordinate of the svg?

lemmy avatar Jul 15 '20 16:07 lemmy

@will62794 Can you shed light on this?

lemmy avatar Aug 27 '20 18:08 lemmy

As I recall, the order of the given sequence should simply correspond to the order that SVG elements are appended as children to the <g> SVG element. From a quick experiment, this ordering does indeed appear to affect z order of the rendered elements, but I'd have to search more to find official SVG documentation that describes the behavior.

will62794 avatar Sep 14 '20 14:09 will62794