Kit route crossings: count crossings at a shared sample and along a shared stretch
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 54/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- tooling
Direção de pesquisa
Start with packages/renderers/kit/src/routes/crossings.ts and segment-crossing.ts, then read crossingsBetween and the existing together behavior. Add the terraform-deployment and perpendicular-grid cases to packages/renderers/kit/test/routes.test.mjs and run the route tests. Done means both shared-sample and shared-stretch crossings are counted once, shared trunks from a common port remain uncounted, and the drafting, converging, and ports tests stay green.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The kit's crossing test (polylinesCross / routeCrossings, packages/renderers/kit/src/routes/crossings.ts and segment-crossing.ts) counts a proper crossing, and since #234 a route passing through another at one of its own samples. It still misses:
- Two routes meeting at a sample of each. For example, perpendicular lines sampled every 3 units both have a sample at the crossing point, so neither the proper test nor the through-a-sample test sees it (Copilot review on #234).
- Two routes crossing along a stretch they share. One route joins another's run from one side and leaves it to the other side, which reads as a crossing with a hidden overlap.
crossingsBetweentreats collinear stretches as a trunk and never counts them.
These need doing together. Counting (1) alone (the neighbouring samples interleaved strictly around the shared point) changes terraform-deployment's routing so that lambda.api and lambda.payments into aws_subnet.private[0] take one track and part on opposite sides, which is (2).
Suggested approach: for a shared sample or shared collinear stretch, compare the side each route enters from (the last sample before) with the side it leaves to (the first sample after), relative to the other route. Count a crossing when they differ, once per shared stretch, and keep shared trunks from a common port uncounted, as together does now.
Check: add terraform-deployment and the perpendicular-grid case to packages/renderers/kit/test/routes.test.mjs; the drafting, converging and ports tests should stay green.
- Linguagem predominante
- TypeScript
- Estrelas
- 4
- Forks
- 1
- Merge médio
- 5h 31min
- PRs com merge (30d)
- 229
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de githubnext/projections
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 45/100
githubnext/projections#68 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de githubnext/projections
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
nicobailon/pi-subagents#3425 ·
Mantenedores costumam responder em até 1 dia
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea-a2a bug port python
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
strands-agents/harness-sdk#6697 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
api technical-debt
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
opencollective/opencollective#9235 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
openwatersio/slackwater#603 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia