Skip to content

strokeBounds is incorrect for certain paths #1824

@adroitwhiz

Description

@adroitwhiz

Description/Steps to reproduce

In some cases, paths' strokeBounds will be incorrectly sized too small.
This can easily be seen with e.g. a rotated ellipse, as in the sketch below.

  1. Create a paper.Path.Ellipse
  2. Rotate it
  3. Get its stroke bounds
  4. Notice that the bounds do not cover the actual stroke (and vary depending on the rotation)

Link to reproduction test-case

Sketch

Expected result

An item's strokeBounds should cover the entire item-- otherwise, this can lead to viewboxes of exported SVGs being incorrectly shrunken and cutting off outlines.

Additional information

This occurs across browsers/OSes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions