Skip to content

SVG!Group expects *sequence* of elements #17

Open

Description

@lemmy

(**************************************************************************)
(* Group element. 'children' is a sequence of elements that will be *)
(* contained in this group. *)

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

Activity

  1. lemmy commented on Aug 27, 2020

    @lemmy
    MemberAuthor

    @will62794 Can you shed light on this?

  2. will62794 commented on Sep 14, 2020

    @will62794
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions