GeezerVison is showing github.com — docs: add graph documentation page and refine related pages by redfish4ktc · Pull Request #1048 · maxGraph/maxGraph
Conversation
redfish4ktc
commented
Apr 15, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
- Add new "Graph" page covering AbstractGraph, Graph, BaseGraph, comparison and use cases
- Add cross-references to the new page across usage, manual and tutorials docs
- Refine plugins.md: alphabetized table, emoji status column, BaseGraph examples, warning against duplicate plugins, improved intro of "Choosing the Plugins to Use", removed reference to default plugins
- Fix typo in website README
Notes
Covers #781
Tasks
Summary by CodeRabbit
- Documentation
- Clarified Graph vs BaseGraph behavior (defaults, auto-registration, plugins, styles, perimeters, edge styles) and added a comprehensive Graph hierarchy/usage page with improved cross-references across tutorials and guides.
- Expanded plugin, image-bundle, i18n, CSS/image, and example guidance; refined multiple tutorial and manual wordings; README note about local dev server/navbar links.
- Chores
- Reorganized documentation structure.

Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Apr 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e1dce059-c7ea-42b3-90ae-eaf70c318bcf
📥 Commits
Reviewing files that changed from the base of the PR and between 0fd946a and 2fefb41.
📒 Files selected for processing (1)
packages/website/docs/usage/graph.md
✅ Files skipped from review due to trivial changes (1)
- packages/website/docs/usage/graph.md
Walkthrough
This PR adds JSDoc and inline comments to AbstractGraph/Graph, introduces a comprehensive Graph hierarchy guide (graph.md), and updates many website docs to link to and clarify differences between Graph and BaseGraph (auto-registration, plugins, constructor patterns, and related wording).
Changes
Graph and BaseGraph Documentation and Integration
| Layer / File(s) |
Summary |
Core source code documentation improvements packages/core/src/view/AbstractGraph.ts, packages/core/src/view/Graph.ts |
JSDoc and inline comments document initializeCollaborators() wiring requirements for subclasses and clarify how Graph builds components via factory methods with positional constructor options. |
Comprehensive Graph hierarchy documentation packages/website/docs/usage/graph.md |
New page explains the class hierarchy (AbstractGraph → Graph/BaseGraph), lifecycle hooks, auto-registration behavior, plugin defaults, constructor differences, and provides TypeScript examples for both Graph (batteries-included) and BaseGraph (minimal/opt-in) patterns. |
Documentation cross-linking and Graph/BaseGraph clarifications packages/website/README.md, packages/website/docs/development/high-level-api-description.md, packages/website/docs/intro.md, packages/website/docs/tutorials/graph.md, packages/website/docs/tutorials/the-hello-world-example.md, packages/website/docs/tutorials/editor.md, packages/website/docs/manual/cells.md, packages/website/docs/manual/group-and-complexity-management.md, packages/website/docs/usage/css-and-images.md, packages/website/docs/usage/edge-styles.md, packages/website/docs/usage/global-configuration.md, packages/website/docs/usage/i18n.md, packages/website/docs/usage/image-bundles.md, packages/website/docs/usage/migrate-from-mxgraph.md, packages/website/docs/usage/perimeters.md, packages/website/docs/usage/plugins.md |
Update existing docs to link Graph/BaseGraph references to the new hierarchy guide, clarify that style elements and plugins auto-register for Graph but require explicit registration for BaseGraph, and refine wording in tutorials and guides throughout the site. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related issues
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 inconclusive)
| Check name |
Status |
Explanation |
Resolution |
| Description check |
❓ Inconclusive |
The description provides a clear overview of changes but lacks several PR checklist items required by the template (PR checklist checkboxes, discussion with maintainers confirmation, scope confirmation). |
Complete the PR checklist section with all required checkboxes marked, and confirm discussion with maintainers and scope assessment as specified in the template. |
✅ Passed checks (4 passed)
| Check name |
Status |
Explanation |
| Title check |
✅ Passed |
The title clearly and concisely summarizes the main change: adding a new Graph documentation page and refining related documentation pages. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
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.
❤️ Share
Comment @coderabbitai help to get the list of available commands and usage tips.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Add new "Graph" page covering AbstractGraph, Graph, BaseGraph, comparison and use cases
- Add cross-references to the new page across usage, manual and tutorials docs
- Refine plugins.md: alphabetized table, emoji status column, BaseGraph examples,
warning against duplicate plugins, improved intro of "Choosing the Plugins to Use",
removed reference to default plugins
- Fix typo in website README
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
redfish4ktc
changed the title
docs: add graph documentation page and update related pages
docs: add graph documentation page and refine related pages
Apr 28, 2026
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (1)
packages/website/docs/usage/plugins.md (1)
25-25: ⚡ Quick win
Consider simplifying "a large number of" to "many".
To reduce wordiness, "a large number of handler instances" could be simplified to "many handler instances" or "numerous handler instances".
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 29e0a523-5595-44fe-b571-0e491bf7f31b
📥 Commits
Reviewing files that changed from the base of the PR and between 5f189e7 and 10cf860.
📒 Files selected for processing (19)
packages/core/src/view/AbstractGraph.ts
packages/core/src/view/Graph.ts
packages/website/README.md
packages/website/docs/development/high-level-api-description.md
packages/website/docs/intro.md
packages/website/docs/manual/cells.md
packages/website/docs/manual/group-and-complexity-management.md
packages/website/docs/tutorials/editor.md
packages/website/docs/tutorials/graph.md
packages/website/docs/tutorials/the-hello-world-example.md
packages/website/docs/usage/css-and-images.md
packages/website/docs/usage/edge-styles.md
packages/website/docs/usage/global-configuration.md
packages/website/docs/usage/graph.md
packages/website/docs/usage/i18n.md
packages/website/docs/usage/image-bundles.md
packages/website/docs/usage/migrate-from-mxgraph.md
packages/website/docs/usage/perimeters.md
packages/website/docs/usage/plugins.md
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|