@interactjs / inertia/plugin / InertiaState
inertia/plugin.InertiaState
- active
- allowResume
- currentOffset
- interaction
- isModified
- lambda_v0
- modification
- modifiedOffset
- modifierArg
- modifierCount
- one_ve_v0
- smoothEnd
- startCoords
- t0
- targetOffset
- te
- timeout
- v0
• active: boolean
= false
• allowResume: boolean
= false
• currentOffset: Point
• Readonly
interaction: Interaction
<keyof ActionMap
>
• isModified: boolean
= false
• Optional
lambda_v0: number
= 0
• modification: Modification
• modifiedOffset: Point
• modifierArg: ModifierArg
<{ index?
: number
; methods?
: { beforeEnd?
: (arg
: ModifierArg
<any
>) => void
| Point
; set?
: (arg
: ModifierArg
<any
>) => any
; start?
: (arg
: ModifierArg
<any
>) => void
; stop?
: (arg
: ModifierArg
<any
>) => void
} ; name?
: any
; options
: unknown
}>
• modifierCount: number
= 0
• Optional
one_ve_v0: number
= 0
• smoothEnd: boolean
= false
• startCoords: Point
• t0: number
= 0
• targetOffset: Point
• te: number
= 0
• timeout: number
• v0: number
= 0
▸ end(): void
void
▸ inertiaTick(): void
void
▸ onNextFrame(tickFn
): void
Name | Type |
---|---|
tickFn |
() => void |
void
▸ resume(«destructured»
): void
Name | Type |
---|---|
«destructured» |
PointerArgProps <{ type : "down" }> |
void
▸ smoothEndTick(): void
void
▸ start(event
): boolean
Name | Type |
---|---|
event |
PointerEventType |
boolean
▸ startInertia(): void
void
▸ startSmoothEnd(): void
void
▸ stop(): void
void