docs(HiearchicalLayout): fix copy pasted JSDoc for cache attributes#975
Conversation
WalkthroughClarified JSDoc comments for three internal caches in HierarchicalLayout and removed an unused local destructuring in the getEdges method; no behavior or exported API changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi and thanks for your contribution
That's fine, for a change like this, there's no need to create a ticket, that would be overwhelming. 😄 |
|
|
||
| /** | ||
| * A cache of edges whose source terminal is the key | ||
| * Maps each vertex to its computed list of incident edges considered by the layout. |
There was a problem hiding this comment.
thought: I suggest replacing the term “vertex” with “cell” in all modified JSDocs.
This is because the source and target of an edge can be either a vertex or an edge, so the word “cell” is more general and better represents what can be stored in maps.
What do you think?
There was a problem hiding this comment.
yes I agree, I made the change
|
tbouffard
left a comment
There was a problem hiding this comment.
LGTM, thanks again for the contribution.



Overview
Hello ! First of all thank you for the work on this library, it is very cool to use !
I was going throught the code and I think I spot a wrong copy/paste for the docstrings of
edgesCache,edgeSourceTermCacheandedgesTargetTermCache. I also removed a variable declaration that wasn't usedVery small changes so I didn't raise an issue, I hope it is ok
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.