This page is a work in progress. Comments are welcome by creating an issue or opening a discussion.!
The maxGraph
APIs are not fully compatible with the mxGraph
APIs, but the maxGraph
APIs are close to the former mxGraph
APIs.
The concepts are the same, so experienced mxGraph users should be able to switch from mxGraph to maxGraph without issues.
The major changes are the removal of support for Internet Explorer (including VML support) and Legacy Edge.
Remove the
mxgraph
dependency and addmaxgraph@core
instead.- mxGraph initialization code using the
factory
function. Access maxGraph objects directly.
Remove the
@typed-mxgraph/typed-mxgraph
dependency in thepackage.json
filetyperoots
settings related totyped-mxgraph
in thetsconfig.json
file
As an example, you can check this project which has been migrated from a typed-mxgraph example.
- The names of mxGraph objects were all prefixed with
mx
. The prefix has been dropped in maxGraph. - Most names remain the same.
- Some utility functions, whose implementation is natively available in modern versions of ECMAScript, have been removed.
Property rename
autosize
intoautoSize
(as of [email protected])
Property type change from number
(0 or 1) to boolean
(if not specified, as of [email protected]):
anchorPointDirection
absoluteArcSize
(as of [email protected])autosize
backgroundOutline
(as of [email protected])bendable
cloneable
curved
dashed
deletable
editable
endFill
entryPerimeter
exitPerimeter
fixDash
flipH
flipV
foldable
glass
horizontal
imageAspect
movable
noEdgeStyle
noLabel
orthogonal
orthogonalLoop
pointerEvents
resizable
resizeHeight
resizeWidth
rotatable
rounded
shadow
startFill
swimlaneLine