Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Capture Canvas elements #483

Merged
merged 4 commits into from
Mar 13, 2020
Merged

feat: Capture Canvas elements #483

merged 4 commits into from
Mar 13, 2020

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Mar 13, 2020

What is this?

We can now capture Canvas elements and serialize them into images in the DOM snapshot we capture.

Important to note WebGL canvas elements will need to enable preserveDrawingBuffer in order for us to capture them.

TODOs

  • How to document preserveDrawingBuffer is needed? Recipe?

We can now capture Canvas elements and serialize them into images in the DOM
snapshot we capture. Important to note WebGL canvas elements will need to enable
`preserveDrawingBuffer` in order for us to capture them.
src/percy-agent-client/dom.ts Outdated Show resolved Hide resolved
src/percy-agent-client/dom.ts Outdated Show resolved Hide resolved
src/percy-agent-client/dom.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎮

@Robdel12 Robdel12 merged commit 7b45c12 into master Mar 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the rd/canvas branch March 13, 2020 22:47
djones pushed a commit that referenced this pull request Mar 13, 2020
# [0.25.0](v0.24.3...v0.25.0) (2020-03-13)

### Features

* Capture Canvas elements ([#483](#483)) ([7b45c12](7b45c12))
Turbo87 added a commit to Turbo87/skylines that referenced this pull request Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants