Skip to content

[Rect] Support rounded when using canvas layer #481

@techniq

Description

@techniq

Support <Rect rx={...}> similar to SVG's <rect rx={...} (same for ry).

Looks like using roundRect() instead of just rect() would work, but is only supported in more modern browsers (but green across the board, Baseline 2023)

Actually it looks like we use fillRect() without rect() first, but should be able to call roundRect() followed by fill()

Metadata

Metadata

Assignees

No one assigned

    Labels

    layer:canvas<Canvas> / <Layer type="canvas">

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions