Skip to content

Add Artboard Grab/Scale#4053

Open
atchamwa wants to merge 6 commits intoGraphiteEditor:masterfrom
atchamwa:artboard-gsr
Open

Add Artboard Grab/Scale#4053
atchamwa wants to merge 6 commits intoGraphiteEditor:masterfrom
atchamwa:artboard-gsr

Conversation

@atchamwa
Copy link
Copy Markdown

Description

Added artboard tool support to the transform system so you can actually use the G/S (grand and scale) key binds for the artboard. Changing the artboard wont change the other things inside of it. Closes #4026

Changes Made:

transformation.rs - Added Artboard to the tool type checks so it skips the normal transform logic when using the Artboard tool
transform_layer_message_handler.rs - Made artboards filterable and gave them special handling. Also clears everything on cancel/finish.

Graphite.mp4

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements Grab and Scale transformation support for the Artboard tool by tracking original bounds and applying custom resizing logic within the transform handler. Feedback indicates that the current implementation breaks numerical and keyboard-constrained transformations because artboards are skipped in the generic transformation path. Additionally, artboards are not correctly reverted to their original state when switching between transformation operations (e.g., from Grab to Scale), leading to inconsistent behavior compared to regular layers.

@atchamwa atchamwa marked this pull request as ready for review April 27, 2026 06:26
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

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.

The Artboard tool needs to support G/S (grab and scale) transformation

3 participants