Skip to content

Remove puppeteer and switch to headless rendering to png #1258

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

Merged
merged 26 commits into from
Nov 30, 2024
Merged

Conversation

pentacular
Copy link
Member

No description provided.

Copy link
Contributor

@BarbourSmith BarbourSmith left a comment

Choose a reason for hiding this comment

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

Other than a tiny bit of rasterization these all look fantastic!

@BarbourSmith
Copy link
Contributor

Is the rasterization deterministic so it won't make the test fail when comparing the output? It should be, right?

@pentacular
Copy link
Member Author

Other than a tiny bit of rasterization these all look fantastic!

Yeah, I can't quite figure it out, except that perhaps it's related to devicePixelRatio causing the browser to oversample.

@pentacular
Copy link
Member Author

Is the rasterization deterministic so it won't make the test fail when comparing the output? It should be, right?

I hope so, but mostly I wanted to (a) remove the dependency on pupeteer, and (b) support thumbnail generation.

So now we should be able to say shape.png('foo') and be able to get a png of that view of shape.

@pentacular pentacular merged commit d7bf56e into master Nov 30, 2024
1 check passed
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