Skip to content

feat: implement Polygon Lasso tool in Sprite Editor#20

Merged
robertpelloni merged 4 commits into
mainfrom
feat/polygon-lasso-4905851647628508372
Jul 2, 2026
Merged

feat: implement Polygon Lasso tool in Sprite Editor#20
robertpelloni merged 4 commits into
mainfrom
feat/polygon-lasso-4905851647628508372

Conversation

@robertpelloni

Copy link
Copy Markdown
Owner

This commit implements the Polygon Lasso tool for the Sprite Editor. It introduces a new PolygonLassoBrush class that implements the Brush interface, using a standard ray-casting algorithm to generate a boolean mask. The Brush interface was expanded with a default onMouseMove method, allowing PolygonLassoBrush to draw a live preview line without breaking other brush implementations. The SECanvas was updated to delegate mouseMoved events to the active brush, and the tool was added to the SEToolsPanel. Documentation files TODO.md and ROADMAP_EDITOR.md were also updated.


PR created automatically by Jules for task 4905851647628508372 started by @robertpelloni

- 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>
@google-labs-jules

Copy link
Copy Markdown

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@blocksorg

blocksorg Bot commented Jun 30, 2026

Copy link
Copy Markdown

Mention Blocks like a regular teammate with your question or request:

@blocks review this pull request
@blocks make the following changes ...
@blocks create an issue from what was mentioned in the following comment ...
@blocks explain the following code ...
@blocks are there any security or performance concerns?

Run @blocks /help for more information.

Workspace settings | Disable this message

google-labs-jules Bot and others added 3 commits June 30, 2026 22:57
- 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>
@robertpelloni
robertpelloni merged commit 82f685c into main Jul 2, 2026
3 checks passed
@robertpelloni
robertpelloni deleted the feat/polygon-lasso-4905851647628508372 branch July 2, 2026 03:05
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