Optional
Which axes the drag responds to. Default 'both'.
'both'
'x'
view.x
'y'
view.y
Locks drag panning to a single axis. The former useWheelPanTool / useWheelZoomTool / useKeyboardZoomTool axis option is dissolved.
useWheelPanTool
useWheelZoomTool
useKeyboardZoomTool
Which axes the drag responds to. Default
'both'.'both'— pan both axes (default).'x'— drag only changesview.x. Inertia (if enabled) also stays on x.'y'— drag only changesview.y. Inertia stays on y.Locks drag panning to a single axis. The former
useWheelPanTool/useWheelZoomTool/useKeyboardZoomToolaxis option is dissolved.