Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji
reacted with thumbs down emoji
reacted with laugh emoji
reacted with hooray emoji
reacted with confused emoji
reacted with heart emoji
reacted with rocket emoji
reacted with eyes emoji
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.
โก This new version enhances internationalization (i18n), improves connector configurations, and prepares for future updates with tree shaking optimizations. โก
Resources
Breaking changes
Note
Some changes are introduced to prepare for tree shaking improvements as part of issue #665.
Private utility functions:
The functions utils.isNullish and utils.isNotNullish are now marked as private. They were mistakenly made public and have always been intended for internal use.
Removed utility functions:
Several utility functions, originally designed for internal use to retrieve default values for CellStateStyle and CellStyle, have been removed:
You should now use the nullish coalescing operator (??) and Optional chaining (?.) instead.
Removed Client.isBrowserSupported:
The Client.isBrowserSupported method has been removed. It was not correctly validating all the prerequisites for determining whether the browser supports maxGraph. This method is now deprecated with no direct replacement.
Moved Client.VERSION to constants.VERSION:
The VERSION constant, previously stored in Client, is now stored in the constants module to ensure its immutability, as it represents the actual version of maxGraph.
Relocated Translations configuration:
Configuration elements for translations have been moved from Client to TranslationsConfig. The following properties have been migrated:
Connector Configuration changes:
Internal utility methods:
Several properties and utility methods previously exposed by EdgeStyle are now internal. For example:
Highlights
๐ Custom Shape Support for Overlays
You can now use custom shapes for overlays instead of just images. The CellRenderer provides extension points for configuring custom shapes and their associated DOM nodes.
Here is an example of custom Overlays taken from the Overlays strory ๐๐ฟ
PR_696_custom_overlays.webmNote
For more details, see #696.
๐ Improved i18n Support
This release enhances i18n support with the restoration of original mxGraph resource files (Chinese, English, and German) and adds French and Spanish resources. Additionally, a new configuration object, TranslationsConfig, is introduced to simplify and extend internationalization functionality in future releases.
This update is part of ongoing efforts to allow for custom i18n mechanisms in future versions (see issue #688).
๐ Enhanced Manhattan and Orthogonal Connector Configuration
The configuration for both the Manhattan and Orthogonal connectors is now centralized in dedicated global configuration objects: ManhattanConnectorConfig and OrthogonalConnectorConfig. This change helps clarify responsibilities and makes future tree shaking optimizations easier. Additionally, related reset functions are now available.
What's Changed
๐ New Features
๐ Bug Fixes
๐ Documentation
โ๏ธ Refactor
Full Changelog: v0.15.1...v0.16.0
This discussion was created from the release 0.16.0.