Type Alias DragPanOptions
type DragPanOptions = {
deceleration?: number;
easing?: (t: number) => number;
linearity?: number;
maxSpeed?: number;
}
deceleration?: number;
easing?: (t: number) => number;
linearity?: number;
maxSpeed?: number;
}
Index
Properties
Properties
Optionaldeceleration
deceleration?: number
the maximum value of the drag velocity.
Optionaleasing
easing?: (t: number) => number
easing function applied to map.panTo when applying the drag.
Type Declaration
- (t: number): number
Parameters
- t: number
the easing function
Returns number
- t: number
Optionallinearity
linearity?: number
factor used to scale the drag velocity
OptionalmaxSpeed
maxSpeed?: number
the rate at which the speed reduces after the pan ends.
Was this helpful?
A DragPanHandler options object