Skip to content

Bounding box incorrectly expanded for 'moveTo' commands #129

@alexjlockwood

Description

@alexjlockwood

I think this line might be wrong:

expandBounds_(args[0], args[1]);

Consider a dumb path that is something like M 10 10 M 20 20 M 30 30 L 40 40 Z. In this case the bounding box should be [30, 30, 40, 40]. However, the current code will incorrectly return [10, 10, 40, 40].

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