| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
No actionable comments were generated in the recent review. 🎉 WalkthroughComments and JSDoc in UndoManager.ts were updated to replace legacy mx-* names with current public types and event identifiers (e.g., mxUndoableChange → UndoableEdit, mxEvent → InternalEvent, mxGraphModel → GraphDataModel), update change-type names, and modernize example code. No runtime logic, signatures, or exported APIs changed. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✏️ 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. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)packages/core/src/view/undoable-change/UndoManager.ts (1)57-58: ⚠️ Potential issue | 🟡 Minor
Legacy mxEvent.UNDO reference in code example was not updated.
The example still uses the mxEvent namespace which no longer exists in maxGraph. Since InternalEvent is already imported in this file (line 19), the example should reference InternalEvent.UNDO.
📝 Proposed fix- graph.getDataModel().addListener(mxEvent.UNDO, listener); - graph.getView().addListener(mxEvent.UNDO, listener); + graph.getDataModel().addListener(InternalEvent.UNDO, listener); + graph.getView().addListener(InternalEvent.UNDO, listener);
Sorry, something went wrong.
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary by CodeRabbit