feat: implement Polygon Lasso tool in Sprite Editor#20
Conversation
- Create PolygonLassoBrush using a ray-casting point-in-polygon algorithm for selection masking. - Add an `onMouseMove` method to the `Brush` interface to support dynamic UI feedback without breaking existing brushes. - Wire SECanvas `mouseMoved` to update the lasso's preview line. - Update SEToolsPanel to include the new Polygon Lasso toggle button. - Update `TODO.md` and `ROADMAP_EDITOR.md` reflecting the completion of the advanced selection tools requirement. Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Mention Blocks like a regular teammate with your question or request: @blocks review this pull request Run |
- Created `MapHistoryPanel` to visualize the `UndoManager` stack for `MapCanvas`. - Implemented click-to-undo/redo interaction within the history list. - Integrated `MapHistoryPanel` alongside `ControlPanel` inside a `JTabbedPane` in `EditorMain`. - Updated documentation (`TODO.md`, `ROADMAP_EDITOR.md`, `CHANGELOG.md`, `VERSION.md`, and `HANDOFF.md`) to reflect the completion of the Undo/Redo command pattern finalization feature and bumped version to `2.0.33`. Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com>
Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com>
Co-authored-by: robertpelloni <673434+robertpelloni@users.noreply.github.com>
This commit implements the Polygon Lasso tool for the Sprite Editor. It introduces a new
PolygonLassoBrushclass that implements theBrushinterface, using a standard ray-casting algorithm to generate a boolean mask. TheBrushinterface was expanded with a defaultonMouseMovemethod, allowingPolygonLassoBrushto draw a live preview line without breaking other brush implementations. TheSECanvaswas updated to delegatemouseMovedevents to the active brush, and the tool was added to theSEToolsPanel. Documentation filesTODO.mdandROADMAP_EDITOR.mdwere also updated.PR created automatically by Jules for task 4905851647628508372 started by @robertpelloni