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

Add the ability to screenshot a part of the screen #722

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

Jamie5
Copy link
Contributor

@Jamie5 Jamie5 commented Apr 12, 2023

Sometimes, especially in situations with play functions, we may need to adjust some of the UI but only be interested in taking a screenshot of a portion of the UI. This allows us to specify what portion of the screen we want the screenshot taken.

To some extent resolves #506 (this does not allow passing a selector string, but it is easy to convert a selector string to a bounding box, and using a bounding box provides us more flexibility).

@Quramy
Copy link
Member

Quramy commented Apr 14, 2023

It looks good.

Would you write about this option to README.md ?

@Jamie5
Copy link
Contributor Author

Jamie5 commented Apr 14, 2023

@Quramy added some docs to README.md

@Quramy Quramy merged commit d014ec9 into reg-viz:master Apr 19, 2023
@Quramy
Copy link
Member

Quramy commented Apr 19, 2023

Thanks!

throwandgo added a commit to remix/storycap that referenced this pull request Oct 4, 2023
Pull in new changes from reg-viz/storycap, including the ability to shard screenshot captures across machines. We anticipate using this feature to ease the burden placed on individual CircleCI instances, since screenshot captures can be resource- and time-intensive.

Resolved conflicts on:
- packages/storycap/package.json
- packages/storycap/src/node/capturing-browser.ts
- packages/storycap/src/shared/screenshot-options-helper.ts

Since we last synced from upstream, the following changes have been accepted:
- Add the ability to screenshot a part of the screen (reg-viz#722)
- Fixed exposeFunction not being awaited (reg-viz#632)

We continue to maintain this fork because we're waiting for this issue to be addressed:
- Expose setViewport on window reg-viz#624

This sync is reflected in a version bump of our fork from 1.0.4 to 1.1.0.
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.

Feature Request: Take screenshot of a portion of the page
2 participants