EdgeFilterLens can keep the focused edges within the lens range, while other edges will not be displayed within that range.
string
Plugin type
EdgeStyle | ((datum: EdgeData) => EdgeStyle__)
The style of the edges displayed in the lens
(id: string__, elementType: 'node' | 'edge' | 'combo'__) => boolean
Filter elements that are never displayed in the lens
number Default:
canvas 宽高最小值的一半
The maximum radius of the lens. Only valid when scaleRBy
is wheel
number Default:
0
The minimum radius of the lens. Only valid when scaleRBy
is wheel
NodeStyle | ((datum: NodeData) => NodeStyle__)
The style of the nodes displayed in the lens
'both' | 'source' | 'target' | 'either' Default:
'both'
The condition for displaying the edge
'both'
: The edge is displayed only when both the source node and the target node are in the lens
'source'
: The edge is displayed only when the source node is in the lens
'target'
: The edge is displayed only when the target node is in the lens
'either'
: The edge is displayed when either the source node or the target node is in the lens
boolean Default:
true
Whether to prevent the default event
number Default:
60
The radius of the lens
'wheel' Default: ``
The way to scale the radius of the lens
'wheel'
: scale the radius of the lens by the wheelBaseStyleProps
The style of the lens
'pointermove' | 'click' | 'drag' Default:
'pointermove'
The way to move the lens
'pointermove'
: always follow the mouse movement
'click'
: move the lens when the mouse clicks
'drag'
: drag the lens
destroy(): void;
update(options: Partial<EdgeFilterLensOptions>): void;