Skip to content

Order is Not Preserved #210

@bcwhite-code

Description

@bcwhite-code

The processing of SVG elements occurs by type (in order: path, polyline, polygon, line, ellipse, circle, and rect) by calling doc.getElementsByTagName() for each type. This ends up returning the paths to the caller in a possibly very different order than they were specified in the original SVG file.

For simple lines, this typically isn't a problem but if some of those shapes are styled to "fill" then it is a big problem. For example, a rectangle at the bottom (e.g. a base color) will end up on top and obscure everything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions