Added Warping and Text Transformation as well as text erasing #1105
Open
longkidkoolstar wants to merge 9 commits intodmMaze:devfrom
Open
Added Warping and Text Transformation as well as text erasing #1105longkidkoolstar wants to merge 9 commits intodmMaze:devfrom
longkidkoolstar wants to merge 9 commits intodmMaze:devfrom
Conversation
- Implement warp mode and text mask strokes in TextBlock class - Add warp editing controls in TextBlkShapeControl - Introduce text mask brush functionality in Canvas - Add undo/redo support for warp and text mask operations - Implement quad and mesh warping algorithms in TextBlkItem
- Add config option to move warp/transform/eraser tools to advanced text sidebar - Implement signal connections between canvas and text panel components - Update context menu to conditionally show text tools based on config - Add new methods for text tool operations in canvas and text panel
…menu Remove angle and squeeze buttons from text format panel and move them to the context menu for cleaner UI. This change simplifies the text formatting panel while maintaining all functionality through the context menu.
…ntrol - Add mesh-based warping mode for more flexible text deformation - Implement center control point for rise/fall warping effects - Support edge handles for both quad and mesh warping modes - Improve warping visualization with stroke outlines
Add raster scaling to text rendering to improve quality on high DPI displays. The changes include: - Calculating appropriate scale based on device DPI and dimensions - Applying scaling to the rendered image - Adding antialiasing and smooth transform hints - Ensuring proper image bounds when drawing
Add configurable option to enable high quality rendering for text warp preview. When enabled, uses higher raster scale for better quality. Also adds cache invalidation method to update text items when quality setting changes.
Owner
Implement adaptive mesh sizing for warp editing based on bounding rect dimensions and target cell size. Add mesh edge point calculation and improved z-value handling for control blocks. Introduce OpenCV-based mesh warping with caching for better performance. Refactor text alignment handling for vertical text and improve mesh warping quality with better interpolation and edge handling.
Author
Owner
Owner
|
And the handle won't disappear while creating a rect region (which it should) for the rectangle tool in painting mode. |
Add _controls_hidden flag to track control visibility state and consolidate hide/show logic in hideControls/showControls methods. Remove duplicate visibility control code from startEditing/endEditing methods.
Author
Owner
|
@longkidkoolstar |
Owner
|
Besides, please make an option to disable the warping effect, remind me if it already exists. |
- Add warp_rise_fall_u and warp_rise_fall_amp fields to TextBlock - Implement interactive dragging for rise/fall control point - Improve mesh sampling with bilinear interpolation - Add preset handling for arc_up and arc_down warp modes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.








Also made pressing escape for Text Erase to escape out of it