Skip to content

Immediate redraw #161

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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