Kit route crossings: count crossings at a shared sample and along a shared stretch
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- tooling
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4
- Forks
- 1
- Merge medio
- 5 h 31 min
- PR fusionados (30 d)
- 229
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de githubnext/projections
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
githubnext/projections#68 ·
Los mantenedores suelen responder en 1 día
Todos los issues de githubnext/projections
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nicobailon/pi-subagents#3425 ·
Los mantenedores suelen responder en 1 día
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea-a2a bug port python
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
strands-agents/harness-sdk#6697 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
api technical-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
opencollective/opencollective#9235 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
openwatersio/slackwater#603 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día