Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new text tool. Partially implements #589. The reason I delayed adding a text tool so much was because the plan was to first implement vector layers, and then add the text tool for non-destructive text editing. But this is taking longer than expected, and Pixelorama needs a way to add text, so I made a destructive text tool. This means that once you confirm the text, you cannot edit it later.
2024-11-19.01-10-21.mp4
Usability-wise, it acts similarly to Photoshop/Photopea, where you click somewhere on the canvas and the text will appear there, and dragging anywhere outside the text area will move the text around. To insert text, simply click inside the text area and start typing. To confirm or cancel the changes, you have to click on the confirm/cancel buttons in the text tool options.