Skip to content

Add stroke scaling option to Stroke node #2961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chbornman
Copy link

@chbornman chbornman commented Jul 31, 2025

Add a "Scaling" field to the Stroke node that allows users to toggle whether strokes should scale with shape transformations or maintain a constant visual width.

  • Add StrokeScaling enum with ScaleWithShape and NonScaling options
  • Add new "Scaling" parameter to the Stroke node
  • Update document migration to handle the new parameter
  • Fix migration bug that caused index out of bounds error
  • Remove duplicate apply_stroke call in shape_tool.rs

Closes #2960

Add a "Scaling" field to the Stroke node that allows users to toggle whether strokes should scale with shape transformations or maintain a constant visual width.

* Add StrokeScaling enum with ScaleWithShape and NonScaling options
* Add new "Scaling" parameter to the Stroke node
* Update document migration to handle the new parameter
* Fix migration bug that caused index out of bounds error
* Remove duplicate apply_stroke call in shape_tool.rs

Closes GraphiteEditor#2960

Apply cargo fmt
@Keavon Keavon changed the title Add stroke scaling option to Stroke node (#2960) Add stroke scaling option to Stroke node Aug 2, 2025
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.

Add stroke scaling option to Stroke node
1 participant