Kit route crossings: count crossings at a shared sample and along a shared stretch
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 54/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- tooling
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 4
- 派生
- 1
- 平均合并
- 5 小时 31 分钟
- 30 天内合并 PR
- 229
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/projections 的其他 Issue
-
难度 3/5 半天 新手友好度 45/100
githubnext/projections#68 ·
维护者通常 1 天内回复
查看 githubnext/projections 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
nicobailon/pi-subagents#3425 ·
维护者通常 1 天内回复
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area-a2a bug port python
难度 2/5 1-3 小时 新手友好度 68/100
strands-agents/harness-sdk#6697 · 1 条评论 ·
维护者通常 1 天内回复
-
api technical-debt
难度 2/5 1-3 小时 新手友好度 66/100
opencollective/opencollective#9235 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
openwatersio/slackwater#603 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复