auto-adapt-label
Behavior type
boolean | ((event: IGraphLifeCycleEvent | IAnimateEvent | IElementLifeCycleEvent | IViewportEvent | IPointerEvent | IWheelEvent | IKeyboardEvent | IDragEvent) => boolean) Default: ``
Whether to enable
number | number[] Default:
0
Set the padding of the label to determine whether the label overlaps to avoid the label being displayed too densely
(elementA: NodeData | EdgeData | ComboData, elementB: NodeData | EdgeData | ComboData) => -1 | 0 | 1
Sort elements by their importance in descending order; elements with higher importance have higher label display priority; usually combo > node > edge
Sort combos by importance in descending order; combos with higher importance have higher label display priority. By default, they are sorted according to the data. It should be noted that if sort
is set, sortCombo
will not take effect
Sort edges by importance in descending order; edges with higher importance have higher label display priority. By default, they are sorted according to the data. It should be noted that if sort
is set, sortEdge
will not take effect
Sort nodes by importance in descending order; nodes with higher importance have higher label display priority. Several centrality algorithms are built in, and custom sorting functions can also be defined. It should be noted that if sort
is set, sortNode
will not take effect
number Default:
32
Throttle time
destroy(): void;
update(options: Partial<AutoAdaptLabelOptions>): void;