This is exactly what Graph registers when it is instantiated. BaseGraph registers nothing, so this
function is the way to get all builtins at once without subclassing it.
Registering everything defeats tree-shaking: all builtin shapes, edge styles, perimeters and edge markers end up in
the application bundle, whether they are used or not. Prefer registering only the elements used by the application.
See the tree-shaking documentation for guidance.
Register all default builtin style elements provided by
maxGraph, by calling:This is exactly what Graph registers when it is instantiated. BaseGraph registers nothing, so this function is the way to get all builtins at once without subclassing it.
Registering everything defeats tree-shaking: all builtin shapes, edge styles, perimeters and edge markers end up in the application bundle, whether they are used or not. Prefer registering only the elements used by the application. See the tree-shaking documentation for guidance.