Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#4,618 2 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
72/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
rust

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Rust
Estrelas
27.4k
Forks
1.3k
Merge médio
16h 57min
PRs com merge (30d)
87

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de GraphiteEditor/Graphite

Todas as issues de GraphiteEditor/Graphite

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.