@interactjs / core/types
Module: core/types
Table of contents
Interfaces
- ActionMap
- ActionMethod
- ActionProps
- Actions
- CoordsSet
- CoordsSetMember
- EdgeOptions
- HasGetRect
- InertiaOption
- ListenerMap
- OptionMethod
- Point
- PointerEventsOptions
- Rect
- Size
Type Aliases
- ActionChecker
- ActionName
- ArrayElementType
- Context
- CursorChecker
- Dimensions
- Element
- EventTarget
- EventTypes
- FullRect
- InertiaOptions
- Listener
- Listeners
- ListenersArg
- NativePointerEventType
- OrBoolean
- OriginFunction
- PointerEventType
- PointerType
- RectChecker
- RectFunction
- RectResolvable
- Target
Type Aliases
ActionChecker
Ƭ ActionChecker: (pointerEvent
: any
, defaultAction
: string
, interactable
: Interactable
, element
: Element
, interaction
: Interaction
) => ActionProps
Type declaration
â–¸ (pointerEvent
, defaultAction
, interactable
, element
, interaction
): ActionProps
Parameters
Name | Type |
---|---|
pointerEvent | any |
defaultAction | string |
interactable | Interactable |
element | Element |
interaction | Interaction |
Returns
Defined in
ActionName
Ƭ ActionName: keyof ActionMap
Defined in
ArrayElementType
Ƭ ArrayElementType<T
>: T
extends infer P[] ? P
: never
Type parameters
Name |
---|
T |
Defined in
Context
Ƭ Context: Document
| Element
Defined in
CursorChecker
Ƭ CursorChecker: (action
: ActionProps
<ActionName
>, interactable
: Interactable
, element
: Element
, interacting
: boolean
) => string
Type declaration
â–¸ (action
, interactable
, element
, interacting
): string
Parameters
Name | Type |
---|---|
action | ActionProps <ActionName > |
interactable | Interactable |
element | Element |
interacting | boolean |
Returns
string
Defined in
Dimensions
Defined in
Element
Ƭ Element: HTMLElement
| SVGElement
Defined in
EventTarget
Ƭ EventTarget: Window
| Document
| Element
Defined in
EventTypes
Ƭ EventTypes: string
| ListenerMap
| (string
| ListenerMap
)[]
Defined in
FullRect
Ƭ FullRect: Required
<Rect
>
Defined in
InertiaOptions
Ƭ InertiaOptions: InertiaOption
| boolean
Defined in
Listener
Ƭ Listener: (…args
: any
[]) => any
Type declaration
â–¸ (...args
): any
Parameters
Name | Type |
---|---|
...args | any [] |
Returns
any
Defined in
Listeners
Ƭ Listeners: ListenerMap
| ListenerMap
[]
Defined in
ListenersArg
Ƭ ListenersArg: Listener
| ListenerMap
| (Listener
| ListenerMap
)[]
Defined in
NativePointerEventType
Ƭ NativePointerEventType: typeof NativePointerEvent_
Defined in
OrBoolean
Ƭ OrBoolean<T
>: { [P in keyof T]: T[P] | boolean }
Type parameters
Name |
---|
T |
Defined in
OriginFunction
Ƭ OriginFunction: (target
: Element
) => Rect
Type declaration
â–¸ (target
): Rect
Parameters
Name | Type |
---|---|
target | Element |
Returns
Defined in
PointerEventType
Ƭ PointerEventType: MouseEvent
| TouchEvent
| Partial
<NativePointerEventType
> | InteractEvent
Defined in
PointerType
Ƭ PointerType: MouseEvent
| Touch
| Partial
<NativePointerEventType
> | InteractEvent
Defined in
RectChecker
Ƭ RectChecker: (element
: Element
) => Rect
Type declaration
â–¸ (element
): Rect
Parameters
Name | Type |
---|---|
element | Element |
Returns
Defined in
RectFunction
Ƭ RectFunction<T
>: (…args
: T
) => Rect
| Element
Type parameters
Name | Type |
---|---|
T | extends any [] |
Type declaration
Parameters
Name | Type |
---|---|
...args | T |
Returns
Defined in
RectResolvable
Ƭ RectResolvable<T
>: Rect
| string
| Element
| RectFunction
<T
>
Type parameters
Name | Type |
---|---|
T | extends any [] |
Defined in
Target
Ƭ Target: EventTarget
| string