Skip to content

feat: color parallel sibling branch stations on SHMetro - #809

Open
Unnamed2964 wants to merge 3 commits into
railmapgen:mainfrom
Unnamed2964:fix/shmetro-parallel-branch-coloring
Open

Unnamed2964 wants to merge 3 commits into
railmapgen:mainfrom
Unnamed2964:fix/shmetro-parallel-branch-coloring

Conversation

@Unnamed2964

Copy link
Copy Markdown
Contributor

Resolve #732.

本 PR 实现了 #732 所述的功能。

  1. 求出另一支线需要额外染色的站点列表,将 stn_list 项设为1
  2. 对 _linePath 函数添加 isExtraColoring 参数来控制 cap 的画法,设为 true 则在 direction 的对侧延长一段 cap(本 pr 新增的情形)
屏幕截图 2026-03-06 011452

本 PR 由 #775 拆出,可以独立 merge。

Test plan

  • Diamond / parallel branch (e.g. Line 10 Hangzhong): the other arm is colored when approaching the merge
  • Theme-color terminal caps look correct for parallel siblings
  • With no parallel topology, coloring matches previous getStnState behavior
  • shmetro-share unit tests pass

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

关于上海地图风格站台门线路图支线到主线方向时的涂色

1 participant