Skip to content

feat(srcts): Show edge line styles in the legend - #157

Merged
schloerke merged 2 commits into
mainfrom
schloerke/issue-76-address
Oct 21, 2026
Merged

schloerke merged 2 commits into
mainfrom
schloerke/issue-76-address

Conversation

@schloerke

@schloerke schloerke commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #76

The graph draws three kinds of edges, but the legend only explained node colors. This adds three line rows below the color rows: a solid line for a dependency, a dashed line for an isolate()d dependency, and a dotted line for an inactive dependency (one that existed earlier in the replay but is not active at the current step). The rows are plain HTML in reactlog.html with a small .legendLine CSS class; srcts/index.ts sets each line color from colors.edges / colors.ghostEdges, the same way the color boxes are set, so the legend stays in sync with cytoStyle.ts.

To verify: run npm run build, open inst/reactlog/reactlog.html through a local web server, and check the bottom-left legend shows the three line rows matching the edges on the graph.

image

@schloerke
schloerke marked this pull request as ready for review October 20, 2026 18:43
@schloerke
schloerke merged commit b5520ac into main Oct 21, 2026
12 checks passed
@schloerke
schloerke deleted the schloerke/issue-76-address branch October 21, 2026 18:17
@github-actions
github-actions Bot restored the schloerke/issue-76-address branch October 21, 2026 18:18
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.

Should add legend for line type

1 participant