docs(core): fix types & improve jsdoc comments (#10620)

This commit is contained in:
Ammar Ahmed
2025-01-13 01:38:28 +05:00
committed by GitHub
parent 3dec0a5e99
commit 24ad6e45b1
55 changed files with 1057 additions and 39 deletions

View File

@ -11,14 +11,20 @@ export enum GestureEvents {
/**
* When the gesture is attached to the view
* Provides access to the native gesture recognizer for further customization
*
* @nsEvent {GestureEventData} gestureAttached
*/
gestureAttached = 'gestureAttached',
/**
* When a touch down was detected
*
* @nsEvent touchDown
*/
touchDown = 'touchDown',
/**
* When a touch up was detected
*
* @nsEvent touchUp
*/
touchUp = 'touchUp',
}
@ -29,34 +35,50 @@ export enum GestureEvents {
export enum GestureTypes {
/**
* Denotes tap (click) gesture.
*
* @nsEvent {TapGestureEventData} tap
*/
tap = 1 << 0,
/**
* Denotes double tap gesture.
*
* @nsEvent {TapGestureEventData} doubleTap
*/
doubleTap = 1 << 1,
/**
* Denotes pinch gesture.
*
* @nsEvent {PinchGestureEventData} pinch
*/
pinch = 1 << 2,
/**
* Denotes pan gesture.
*
* @nsEvent {PanGestureEventData} pan
*/
pan = 1 << 3,
/**
* Denotes swipe gesture.
*
* @nsEvent {SwipeGestureEventData} swipe
*/
swipe = 1 << 4,
/**
* Denotes rotation gesture.
*
* @nsEvent {RotationGestureEventData} rotate
*/
rotation = 1 << 5,
/**
* Denotes long press gesture.
*
* @nsEvent {GestureEventDataWithState} longPress
*/
longPress = 1 << 6,
/**
* Denotes touch action.
*
* @nsEvent {TouchGestureEventData} touch
*/
touch = 1 << 7,
}