Skip to content

Comments

Feature/overflow#94

Open
pulimoodan wants to merge 3 commits intogeongeorge:masterfrom
pulimoodan:feature/overflow
Open

Feature/overflow#94
pulimoodan wants to merge 3 commits intogeongeorge:masterfrom
pulimoodan:feature/overflow

Conversation

@pulimoodan
Copy link

Related to:
#83

Uses globalCompositeOperation for adding a rectangular mask according to the height and width.

@vercel
Copy link

vercel bot commented Jan 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
canvas-txt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2024 6:09pm

@pulimoodan
Copy link
Author

I used globalCompositeOperation before in the first commit, but then realised an issue.

The mask affects all the shapes drawn to the canvas before.

In the new commit, I use the clip function to hide the overflow.

stefcameron added a commit to stefcameron/text-to-canvas that referenced this pull request Mar 13, 2024
Originally requested here: geongeorge/Canvas-Txt#83

And fix proposed here: geongeorge/Canvas-Txt#94

By default, text overflows. Set to `false` to clip the text to the
specified box.
stefcameron added a commit to stefcameron/text-to-canvas that referenced this pull request Mar 13, 2024
Originally requested here: geongeorge/Canvas-Txt#83

And fix proposed here: geongeorge/Canvas-Txt#94

By default, text overflows. Set to `false` to clip the text to the
specified box.
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.

1 participant