Fisheye is designed for focus+context exploration, it keeps the context and the relationships between context and the focus while magnifying the focus area.
string
Plugin type
number Default:
1.5
Distortion factor
number Default:
5
The maximum distortion factor that the fisheye lens can be adjusted, used with scaleDBy
number Default:
画布宽高的最小值的一半
The maximum radius that the fisheye lens can be adjusted, used with scaleRBy
number Default:
0
The minimum distortion factor that the fisheye lens can be adjusted, used with scaleDBy
number Default:
0
The minimum radius that the fisheye lens can be adjusted, used with scaleRBy
NodeStyle | ((datum: NodeData) => NodeStyle__)
Node style in the fisheye lens
boolean Default:
true
Whether to prevent the default event
number Default:
120
The radius of the fisheye lens
'wheel' | 'drag'
The way to adjust the distortion factor of the fisheye lens
'wheel'
: adjust by wheel
'drag'
: adjust by drag
'wheel' | 'drag'
The way to adjust the range radius of the fisheye lens
'wheel'
: adjust by wheel
'drag'
: adjust by drag
If trigger
, scaleRBy
, and scaleDBy
are set to 'drag'
at the same time, the priority order is trigger
> scaleRBy
> scaleDBy
, and only the configuration item with the highest priority will be bound to the drag event. Similarly, if scaleRBy
and scaleDBy
are set to 'wheel'
at the same time, only scaleRBy
will be bound to the wheel event
boolean Default:
true
Whether to display the value of the distortion factor in the fisheye lens
CircleStyleProps
Fisheye Lens Style
'pointermove' | 'drag' | 'click' Default: ``
The way to move the fisheye lens
'pointermove'
: always follow the mouse movement
'click'
: move when the mouse is clicked
'drag'
: move by dragging
destroy(): void;
update(options: Partial<FisheyeOptions>): void;