| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The `selectionModel` option of `BaseGraph` is typed `(graph: AbstractGraph) => GraphSelectionModel`, so an application supplying its own selection model has to name that class. It was reachable only from inside the package, and `@maxgraph/core` has a single entry point, which left the option unusable from TypeScript: there was no way to import the base class a custom selection model must extend, nor to type the value the factory returns. The four other collaborators an application can inject through the constructor options, `CellRenderer`, `GraphDataModel`, `GraphView` and `Stylesheet`, were already exported.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: b98e843e-7521-4fb9-8a2f-893a157b221d 📥 CommitsReviewing files that changed from the base of the PR and between 016e5da and bea1504. 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe core package index now exports GraphSelectionModel from ./view/GraphSelectionModel.js. ChangesPublic API
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to bea15 This change makes the existing selection model available through the package entry point. No material merge risk is identified. 🚥 Pre-merge checks | ✅ 5 ✅ Passed checks (5 passed)
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. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
BaseGraph accepts a selectionModel option, typed (graph: AbstractGraph) => GraphSelectionModel, so an application that supplies its own selection model has to name that class. GraphSelectionModel was never re-exported from packages/core/src/index.ts, and @maxgraph/core exposes a single entry point, so a TypeScript application had no way to import the base class its selection model must extend, nor to type the value its factory returns. The option was documented and unusable.
The four other collaborators an application can inject through the constructor options were already exported: CellRenderer, GraphDataModel, GraphView and Stylesheet. This adds the fifth, next to them, re-exporting the default export under its name exactly as CellRenderer does.
The class itself is unchanged, and nothing else in the package is affected.
Summary by CodeRabbit