Skip to content

Immediate redraw #161

@funmaker

Description

@funmaker

Hi. When I am using browser's printing function, the scatterplot does not redraw itself and instead just stretches last canvas content into the new one. It is possible to detect printing using window.matchMedia but calling redraw function doesn't do anything since redraws are queued for next animation frames. It is also not possible to hold printing until the next frame, it happens immediately after related events get fired. It would be nice to be able to redraw scatterplot immediately to update it for printing specific size/aspectratio changes.

Also redraw function is missing from documentation and draw can't be called with empty arguments according to typescript types, while being allowed according to documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementFeature improvement or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions