
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@maxgraph/core
Advanced tools
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
maxGraph
is a TypeScript library which can display and allow interaction with vector diagrams. At a high level, it provides:
It provides many of the diagramming features which would be expected by a piece of presentation software like Microsoft® PowerPoint™ or LibreOffice® Impress such as being able to resize, move or rotate nodes, but has a stronger focus on automatic layout algorithms and applications of Graph Theory. It is suited towards software which requires finer-grained customization of functionality than off-the-shelf packages.
For more details, see the maxGraph GitHub repository.
npm install @maxgraph/core
All the information is available in the README of the GitHub repository.
0.20.0
Release date: 2025-05-16
For more details, see the 0.20.0 Changelog on the GitHub release page.
This new version improves registry consistency, removes legacy enums, supports CommonJS, and enables tree-shaking optimizations.
Breaking Changes:
constants.ALIGN
--> AlignValue
and VAlignValue
constants.DIALECT
--> DialectValue
constants.ARROW
--> ArrowValue
constants.DIRECTION
--> DirectionValue
constants.EDGESTYLE
--> EdgeStyleValue
constants.ELBOW
--> ElbowValue
constants.PERIMETER
--> PerimeterValue
constants.RENDERING_HINT
: no replacement as it wasn't usedconstants.SHAPE
--> ShapeValue
constants.TEXT_DIRECTION
--> TextDirectionValue
constants.NODETYPE
enum has been removed and replaced by the constants.NODE_TYPE
value object.
The former DOCUMENTTYPE
enum member has been renamed to DOCUMENT_TYPE
.constants.DIRECTION_MASK
is now read-only (types only).constants.FONT
enum has been removed and replaced by the constants.FONT_STYLE_FLAG
value object.constants.CURSOR
enum has been removed. The values are now configurable and have been moved to:
ConnectionHandler
EdgeHandlerConfig
HandleConfig
VertexHandlerConfig
Registry
interface for consistency.
So, they all share the same methods (add, get and clear) and their internal storage is no longer accessible.MarkerShape
registry has been renamed to MarkerShapeRegistry
.ShapeRegistry
instead in CellRenderer
.StyleRegistry
has been removed. Use EdgeStyleRegistry
and PerimeterRegistry
instead.FAQs
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
The npm package @maxgraph/core receives a total of 1,016 weekly downloads. As such, @maxgraph/core popularity was classified as popular.
We found that @maxgraph/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.