Register an EdgeStyleFunction under the given name along with its EdgeStyleMetaData.
The metadata is used by maxGraph to drive edge handling behaviors (handler kind, orthogonal projection on perimeter, intermediate bend handles). Make sure to pass the correct values, as omitting or mis-setting them may lead to unexpected behaviors when editing or rendering the edge.
To register edge styles provided by maxGraph, prefer the dedicated helpers which already provide the correct metadata:
Or registerDefaultEdgeStyles to register all of them at once.
the key under which the edgeStyle is registered.
the EdgeStyleFunction to register.
OptionalmetaData: EdgeStyleMetaDatathe optional EdgeStyleMetaData associated with edgeStyle.
Retrieves whether the specified edgeStyle allows intermediate bend handles.
If the edgeStyle is not registered or the allowIntermediateHandles was not set during registration, this method returns true.
OptionaledgeStyle: null | EdgeStyleFunctionRetrieves the handler kind of the specified edgeStyle as it was registered.
If the edgeStyle is not registered or the handlerKind was not set during registration, this method returns 'default'.
OptionaledgeStyle: null | EdgeStyleFunctionRetrieves the orthogonal state of the specified edgeStyle as it was registered.
If the edgeStyle is not registered or the orthogonal state was not set during registration, this method returns false.
OptionaledgeStyle: null | EdgeStyleFunction
The definition of a registry that stores the EdgeStyleFunctions and their configuration.
Since
0.20.0