Skip to content

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

Open
schloerke wants to merge 1 commit into
mainfrom
schloerke/issue-76-address
Open

schloerke wants to merge 1 commit into
mainfrom
schloerke/issue-76-address

Conversation

@schloerke

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.

@schloerke
schloerke marked this pull request as ready for review October 20, 2026 18:43

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.

Should add legend for line type

1 participant