GraphiteEditor / GraphiteEditor/Graphite

Allow avoid merging layers with pen tool

Offen
#4,214 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
27.2k
Forks
1.3k
Ø Merge
20 Std. 5 Min.
Gemergte PRs (30 T.)
57

Beschreibung

# Reproduction
When drawing with the pen tool, a user may wish to keep two layers separate. This could be useful for e.g. applying different fills or animations. However if the anchor shares a position with an anchor from another layer, it will always automatically merge.

https://github.com/user-attachments/assets/78a04e27-e7d0-4303-8882-aa034ef2bfe9

# Fix
- Indication when placing the anchor will automatically merge layers (e.g. in the tooltip). It is currently very hard to tell.
- Option to avoid merging the layers even when they have the same anchor position.

# Code
https://github.com/GraphiteEditor/Graphite/blob/cc7d700bfda6961fece0b6125289ef39c9caa0a5/editor/src/messages/tool/tool_messages/pen_tool.rs#L1883-L1900

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start in editor/src/messages/tool/tool_messages/pen_tool.rs around lines 1883-1900 and trace the anchor-placement path used by the pen tool. Determine how the merge is triggered and where tooltip feedback is defined. Done means users can tell when placement will merge layers and can choose to keep layers separate at the same anchor position.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
computer-graphics, design
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.