Skip to content

Add fill tool support on strokes #2664

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

Draft
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

seam0s-dev
Copy link
Contributor

This PR adds support for fill on strokes while using the fill tool as requested in #2615.

@seam0s-dev seam0s-dev closed this May 26, 2025
@seam0s-dev seam0s-dev reopened this May 26, 2025
@seam0s-dev
Copy link
Contributor Author

seam0s-dev commented May 26, 2025

Test cases:
stroke fill pattern.graphite.txt

@seam0s-dev seam0s-dev force-pushed the 2615-fill-tool-on-strokes branch from 9741537 to 1a64e29 Compare June 1, 2025 18:06
@seam0s-dev seam0s-dev marked this pull request as ready for review June 8, 2025 18:06
@Keavon
Copy link
Member

Keavon commented Jun 9, 2025

See the video for the issues this encounters:

capture_10_.mp4

Here's the file with this shape (remove the .txt from the file after downloading it):

issues.graphite.txt

@Keavon Keavon marked this pull request as draft June 9, 2025 00:38
@seam0s-dev
Copy link
Contributor Author

seam0s-dev commented Jun 9, 2025

@Keavon The issue does not seem to affect shapes constructed using pen tool:

ellipse_vs_path_shapes_fill_overlay.mp4

@Keavon
Copy link
Member

Keavon commented Jun 9, 2025

You likely need to take into account the local transform, the nested transform spaces to reach from local space to document space, and the stroke transform (which is affected by scaling or skewing a grouped layer, for example).

@Keavon
Copy link
Member

Keavon commented Jun 10, 2025

!build

Copy link

📦 Build Complete for de70263
https://cfa9993d.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Jun 10, 2025

capture
file.graphite.txt

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.

3 participants