Skip to content

Allow dynamic resizing of <canvas>'s #1

@bencentra

Description

@bencentra

When the width of a canvas changes, it clears the canvas' context. This means everything drawn goes away, as well as all other settings (stroke color, thickness, etc).

Add a way to save the state of the canvas before resizing the window, then restore it (properly, given the altered width) when resizing the canvas.

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