Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Extending from point allows a handle to be colinear with 2 others

Offen
#4,618 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust

Rechercherichtung

Start in editor/src/messages/tool/tool_messages/pen_tool.rs at the referenced lines 1397-1401 and 834-842, and reproduce the colinear-handle case with the pen and path tools. Trace how extending by clicking places the handle when the anchor already connects to two segments. Done means the resulting handle no longer conflicts with both existing handles, while behavior for an anchor with one connected segment is considered separately.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Reproduction

  • New document
  • Use pen tool
  • Draw path containing an anchor with colinear handles (not an end point and not broken)
  • Extend from the anchor with colinear handles by clicking (do not drag)
  • Finish the path
  • Use path tool
  • Drag the handle noting how the handle tries to be colinear with two different handles causing strange behaviour.

Video

https://github.com/user-attachments/assets/274bf06a-38c2-4ff4-9378-73171a9f6f68

Resolution

When extending from an existing point that is already connected to two segments, do not make it colinear with the existing path. If the user does not drag to place the handle then it should probably be placed on top of the anchor. When there is only one segment connected to a point, it may be desirable (?) to keep the current behaviour.

Relevant code

https://github.com/GraphiteEditor/Graphite/blob/ae321b3409113b238f1482a5ad71cbfff6929602/editor/src/messages/tool/tool_messages/pen_tool.rs#L1397-L1401

https://github.com/GraphiteEditor/Graphite/blob/ae321b3409113b238f1482a5ad71cbfff6929602/editor/src/messages/tool/tool_messages/pen_tool.rs#L834-L842

Vorherrschende Sprache
Rust
Sterne
27.3k
Forks
1.3k
Ø Merge
16 Std. 57 Min.
Gemergte PRs (30 T.)
87

Entwicklungsumgebung

Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus GraphiteEditor/Graphite

Alle Issues in GraphiteEditor/Graphite

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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