docs: update reference to functions moved to dedicated namespaces#746
docs: update reference to functions moved to dedicated namespaces#746
Conversation
WalkthroughThe changes update how configuration files are loaded in the editor tutorial by replacing the direct import and call to the Changes
Sequence Diagram(s)sequenceDiagram
participant Editor
participant requestUtils
Editor->>requestUtils: load('editors/config/keyhandler-commons.xml')
requestUtils-->>Editor: returns configuration data
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/website/docs/usage/migrate-from-mxgraph.md (1)
175-181: Clear Documentation of the NewrequestUtilsNamespace Methods
The added section forrequestUtilsclearly lists the updated utility methods (get(),getAll(),load(),post(), andsubmit()) along with their migration instructions frommxUtils. This makes it easier for developers to locate and update their code.Minor Note: Consider reviewing the punctuation and formatting of the bullet entries for consistency, although the current style is acceptable.
🧰 Tools
🪛 LanguageTool
[uncategorized] ~176-~176: Loose punctuation mark.
Context: ....show(). ####requestUtils-get(): Update your code to userequestUtils.g...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~177-~177: Loose punctuation mark.
Context: ...instead ofmxUtils.get(). -getAll(): Update your code to use `requestUtils.g...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~178-~178: Loose punctuation mark.
Context: ...nstead ofmxUtils.getAll(). -load(): Update your code to use `requestUtils.l...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~179-~179: Loose punctuation mark.
Context: ... instead ofmxUtils.load(). -post(): Update your code to use `requestUtils.p...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~180-~180: Loose punctuation mark.
Context: ...nstead ofmxUtils.post(). -submit(): Update your code to use `requestUtils.s...(UNLIKELY_OPENING_PUNCTUATION)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/website/docs/tutorials/editor.md(1 hunks)packages/website/docs/usage/migrate-from-mxgraph.md(1 hunks)
🧰 Additional context used
🪛 LanguageTool
packages/website/docs/usage/migrate-from-mxgraph.md
[uncategorized] ~176-~176: Loose punctuation mark.
Context: ....show(). #### requestUtils-get(): Update your code to use requestUtils.g...
(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~177-~177: Loose punctuation mark.
Context: ...instead of mxUtils.get(). - getAll(): Update your code to use `requestUtils.g...
(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~178-~178: Loose punctuation mark.
Context: ...nstead of mxUtils.getAll(). - load(): Update your code to use `requestUtils.l...
(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~179-~179: Loose punctuation mark.
Context: ... instead of mxUtils.load(). - post(): Update your code to use `requestUtils.p...
(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~180-~180: Loose punctuation mark.
Context: ...nstead of mxUtils.post(). - submit(): Update your code to use `requestUtils.s...
(UNLIKELY_OPENING_PUNCTUATION)
🔇 Additional comments (1)
packages/website/docs/tutorials/editor.md (1)
37-38: Updated Import and Method Call Using the New Namespace
The code snippet now correctly importsrequestUtilsfrom@maxgraph/coreand usesrequestUtils.load(...)to load the configuration file. This update is consistent with the migration guidelines and improves clarity by grouping utility methods under a dedicated namespace.



Summary by CodeRabbit