
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@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.21.0
Release date: 2025-07-22
For more details, see the 0.21.0 Changelog on the GitHub release page.
This release improves Webpack and Node.js compatibility, removes legacy code, and slightly reduces bundle size.
Breaking Changes:
AbstractGraph.fit
method moved to FitPlugin
, as well as the minFitScale
and maxFitScale
properties.
The method now accepts a single parameter, mainly to minimize the need to pass many default values.Dictionary
class has been removed. The maxGraph API use the Map
class instead, which is a standard JavaScript feature.
If your code depends on the Dictionary
class, you can use the Map
class instead.arcSize
of rounded shapes was not always correctly computed in the past. The computation is now consistent everywhere in the code and matches the mxGraph behavior.
To have the same rendering as before for edges, you must multiply the arcSize
by 2
in your styles.AbstractGraph.getPlugin
method now explicitly returns undefined
when a plugin is not found.undefined
case when calling this method.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 3,243 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.