This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for capturing viewport when rendering images
Adds a new 'onlyViewport' option to the render API so that images can be captured based on the viewport size when set to 'true' as opposed to being captured as a page based on the content size when set to 'false'. The 'onlyViewport' option defaults to 'false' for backward compatibility. Align on SlimerJS Fixes #10619
- Loading branch information
1 parent
4ef5f27
commit bfccbd6
Showing
2 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters