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: add merge screenshots #38

Merged
merged 4 commits into from
Mar 8, 2024
Merged

feat: add merge screenshots #38

merged 4 commits into from
Mar 8, 2024

Conversation

mondaychen
Copy link
Contributor

@mondaychen mondaychen commented Mar 8, 2024

"Show Image" button in debug mode now shows "before and after" screenshots

image

ctx.textAlign = "center";
ctx.font = DEFAULT_FONT_STYLE;
images.forEach((image) => {
ctx.globalAlpha = image.opacity ? image.opacity : 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

could use the nullish coalescing operator ??. "ctx.globalAlpha = image.opacity ?? 1;".

format: "png",
});
const imgData = await mergeImages([
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add an error handling?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What error do we expect here?

@mondaychen mondaychen merged commit 88ca13d into main Mar 8, 2024
3 checks 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