| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
After upgrading from version 0.20.0 to 0.21.0, I encountered a problem with cell dragging on the canvas. I can't drag an operator if a cell isn't selected. I can drag a selected cell, but the position doesn't update immediately after the mouse is lifted; I need to click on an empty area of the canvas to update it. How can I position the cell? Please help me. |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
{{editor}}'s edit
{{editor}}'s edit
Uh oh!
There was an error while loading. Please reload this page.
Version 0.21.0 released on 2025-07-23.
⚡ This release improves Webpack and Node.js compatibility, removes legacy code, and slightly reduces bundle size. ⚡
Resources
Breaking changes
Important
These changes might require updates in your codebase if you relied on internal behaviors or legacy APIs.
See the issues and pull requests referenced below for migration help.
fit method moved to FitPlugin
The AbstractGraph.fit method and the minFitScale and maxFitScale properties have been moved to the FitPlugin.
This helps reduce the size of the base graph when the plugin is not used.
Tip
The fit method now accepts a single options parameter to reduce boilerplate. See #734.
Removal of Dictionary class
The Dictionary class has been removed. You can now use the native JavaScript Map object, which is available in all environments supported by maxGraph.
This class was originally introduced in mxGraph to support old browsers lacking Map.
If your code used Dictionary, replace it with Map.
Note
This change slightly reduces the bundle size. See #857.
Rounded shapes: consistent arcSize rendering
The way arcSize is computed for rounded shapes is now consistent across all shape types and matches the behavior of mxGraph.
Important
If you were relying on the previous behavior (especially for edges), you may need to multiply your arcSize value by 2 to keep the same rendering.
TypeScript-specific changes
AbstractGraph.getPlugin() now explicitly returns undefined if the plugin is not found.
You must handle the undefined case in your code.
Improved return types for EditorToolbar methods:
Highlights
🔍 Search bar on the documentation website
You can now quickly search the documentation!
website_search_20250722.mp4The new search bar uses a local lunr-search index for fast results.
Note
For more details, see #853
🛠️ Webpack configuration simplified + Node.js ESM support
maxGraph can now be used with Webpack and Node.js ESM without extra config 🎉
Before this update, using maxGraph with Webpack required a workaround like this:
This was needed because import paths in maxGraph were missing the .js extension.
This also caused issues when importing maxGraph in ESM contexts with Node.js — no workaround was possible in that case.
These issues are now fixed ✅
Note
See #827 (issue) and #867 (fix)
📦 Bundle size reduction
Small but measurable size gains:
What's Changed
🎉 New Features
🐛 Bug Fixes
📝 Documentation
⚙️ Refactor
🛠 Chore
Full Changelog: v0.20.0...v0.21.0
This discussion was created from the release 0.21.0.