
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@convergence/mxgraph-adapter
Advanced tools
The Convergence mxGraph Adapter makes it easy to provide a collaborative diagram editing experience using mxGraph and Convergence. This adapter provides shared editing of graph data along with shared pointers and selection.
A live example, as part of the Convergence Examples, can be found here.
This project also forms the basis of the mxGraph Graph Editor Demo.
Install package with NPM and add it to your development dependencies:
npm install --save-dev @convergence/mxgraph-adapter
npm installnpm run distnpm installnpm run distexamples/config.example.js.npm starthttp://localost:4100The following HTML creates a container element for mxGraph. The full code can be seen in the Example.
<div id="mxgraph" style="height: 400px; width: 600px"></div>
The following JavaScript code will initialze a collaborative graph.
const {
ActivityColorManager,
MxGraphAdapter,
PointerManager,
SelectionManager,
Deserializer
} = ConvergenceMxGraphAdapter;
Convergence
.connectAnonymously(CONVERGENCE_URL, "test user")
.then(domain => {
const model = domain
.models()
.openAutoCreate({
id: "mxgrph-example",
collection: "mxgraph",
ephemeral: true,
data: () => {
return DEFAULT_GRAPH;
}
});
const activity = domain
.activities()
.join("mxgraph-example");
return Promise.all([model, activity]);
})
.then(([model, activity]) => {
const container = document.getElementById("mxgraph");
const graphModel = Deserializer.deserializeMxGraphModel(model.root().value());
const graph = new mxGraph(container, graphModel);
setTimeout(() => {
const colorManger = new ActivityColorManager(activity);
const graphAdapter = new MxGraphAdapter(graph, model.root());
const pointerManager = new PointerManager(graph, activity, colorManger);
const selectionManager = new SelectionManager(graph, activity, colorManger, graphAdapter);
}, 0);
});
FAQs
Convergence Adapter for mxGraph
We found that @convergence/mxgraph-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.