react-native-gesture-handler 3.0.0-beta.2 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReanimatedDrawerLayout/package.json +1 -1
- package/ReanimatedSwipeable/package.json +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt +0 -5
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +58 -28
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +23 -5
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +3 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +67 -12
- package/android/src/main/java/com/swmansion/gesturehandler/core/OnJSResponderCancelListener.kt +6 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +16 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +23 -7
- package/android/src/main/java/com/swmansion/gesturehandler/core/ViewConfigurationHelper.kt +0 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +429 -135
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerDetectorView.kt +17 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +3 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +4 -10
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +18 -8
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +15 -4
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -6
- package/apple/Handlers/RNFlingHandler.m +7 -7
- package/apple/Handlers/RNForceTouchHandler.m +3 -3
- package/apple/Handlers/RNHoverHandler.m +44 -13
- package/apple/Handlers/RNLongPressHandler.m +23 -10
- package/apple/Handlers/RNManualHandler.m +7 -2
- package/apple/Handlers/RNNativeViewHandler.mm +151 -36
- package/apple/Handlers/RNPanHandler.m +11 -7
- package/apple/Handlers/RNPinchHandler.m +20 -7
- package/apple/Handlers/RNRotationHandler.m +18 -6
- package/apple/Handlers/RNTapHandler.m +7 -5
- package/apple/RNGHUIKit.h +2 -0
- package/apple/RNGestureHandler.h +34 -1
- package/apple/RNGestureHandler.mm +110 -10
- package/apple/RNGestureHandlerButton.h +50 -1
- package/apple/RNGestureHandlerButton.mm +710 -49
- package/apple/RNGestureHandlerButtonComponentView.mm +134 -3
- package/apple/RNGestureHandlerDetector.mm +17 -0
- package/apple/RNGestureHandlerEvents.h +3 -1
- package/apple/RNGestureHandlerEvents.mm +8 -3
- package/apple/RNGestureHandlerManager.h +2 -0
- package/apple/RNGestureHandlerManager.mm +49 -3
- package/apple/RNGestureHandlerModule.mm +17 -10
- package/apple/RNGestureHandlerRegistry.h +2 -1
- package/apple/RNGestureHandlerRegistry.m +41 -11
- package/apple/RNManualActivationRecognizer.m +1 -1
- package/apple/RNRootViewGestureRecognizer.m +4 -15
- package/jest-utils/package.json +1 -1
- package/jestSetup.js +6 -16
- package/lib/module/RNGestureHandlerModule.web.js +2 -1
- package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
- package/lib/module/RNGestureHandlerModule.windows.js +5 -6
- package/lib/module/RNGestureHandlerModule.windows.js.map +1 -1
- package/lib/module/components/GestureButtons.js +37 -20
- package/lib/module/components/GestureButtons.js.map +1 -1
- package/lib/module/components/GestureComponents.js +6 -8
- package/lib/module/components/GestureComponents.js.map +1 -1
- package/lib/module/components/GestureComponents.web.js +3 -4
- package/lib/module/components/GestureComponents.web.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.js +2 -135
- package/lib/module/components/GestureHandlerButton.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.web.js +160 -6
- package/lib/module/components/GestureHandlerButton.web.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.android.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +2 -2
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.web.js +2 -2
- package/lib/module/components/GestureHandlerRootView.web.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.js +17 -11
- package/lib/module/components/Pressable/Pressable.js.map +1 -1
- package/lib/module/components/Pressable/index.js.map +1 -1
- package/lib/module/components/Pressable/stateDefinitions.js +16 -3
- package/lib/module/components/Pressable/stateDefinitions.js.map +1 -1
- package/lib/module/components/Pressable/utils.js +1 -1
- package/lib/module/components/Pressable/utils.js.map +1 -1
- package/lib/module/components/ReanimatedDrawerLayout.js +11 -10
- package/lib/module/components/ReanimatedDrawerLayout.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +16 -16
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/index.js +1 -1
- package/lib/module/components/ReanimatedSwipeable/index.js.map +1 -1
- package/lib/module/components/Text.js +33 -23
- package/lib/module/components/Text.js.map +1 -1
- package/lib/module/components/touchables/GenericTouchable.js +11 -19
- package/lib/module/components/touchables/GenericTouchable.js.map +1 -1
- package/lib/module/components/touchables/TouchableHighlight.js +1 -1
- package/lib/module/components/touchables/TouchableHighlight.js.map +1 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js +1 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +1 -1
- package/lib/module/components/touchables/TouchableOpacity.js +2 -2
- package/lib/module/components/touchables/TouchableOpacity.js.map +1 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +3 -4
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +1 -1
- package/lib/module/components/touchables/index.js +2 -2
- package/lib/module/components/touchables/index.js.map +1 -1
- package/lib/module/findNodeHandle.web.js +4 -2
- package/lib/module/findNodeHandle.web.js.map +1 -1
- package/lib/module/handlers/FlingGestureHandler.js.map +1 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js +1 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js.map +1 -1
- package/lib/module/handlers/LongPressGestureHandler.js.map +1 -1
- package/lib/module/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/handlers/PinchGestureHandler.js.map +1 -1
- package/lib/module/handlers/RotationGestureHandler.js.map +1 -1
- package/lib/module/handlers/TapGestureHandler.js.map +1 -1
- package/lib/module/handlers/createHandler.js +10 -10
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/handlers/createNativeWrapper.js +7 -3
- package/lib/module/handlers/createNativeWrapper.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js +5 -4
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js +5 -5
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/index.js +6 -6
- package/lib/module/handlers/gestures/GestureDetector/index.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js +3 -3
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js +3 -3
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +4 -3
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/utils.js +18 -8
- package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -1
- package/lib/module/handlers/gestures/eventReceiver.js.map +1 -1
- package/lib/module/handlers/gestures/flingGesture.js +8 -0
- package/lib/module/handlers/gestures/flingGesture.js.map +1 -1
- package/lib/module/handlers/gestures/forceTouchGesture.js +3 -3
- package/lib/module/handlers/gestures/forceTouchGesture.js.map +1 -1
- package/lib/module/handlers/gestures/gesture.js +9 -1
- package/lib/module/handlers/gestures/gesture.js.map +1 -1
- package/lib/module/handlers/gestures/gestureComposition.js +28 -0
- package/lib/module/handlers/gestures/gestureComposition.js.map +1 -1
- package/lib/module/handlers/gestures/gestureObjects.js +30 -4
- package/lib/module/handlers/gestures/gestureObjects.js.map +1 -1
- package/lib/module/handlers/gestures/gestureStateManager.js +9 -0
- package/lib/module/handlers/gestures/gestureStateManager.js.map +1 -1
- package/lib/module/handlers/gestures/hoverGesture.js +8 -0
- package/lib/module/handlers/gestures/hoverGesture.js.map +1 -1
- package/lib/module/handlers/gestures/longPressGesture.js +8 -0
- package/lib/module/handlers/gestures/longPressGesture.js.map +1 -1
- package/lib/module/handlers/gestures/manualGesture.js +8 -0
- package/lib/module/handlers/gestures/manualGesture.js.map +1 -1
- package/lib/module/handlers/gestures/nativeGesture.js +8 -0
- package/lib/module/handlers/gestures/nativeGesture.js.map +1 -1
- package/lib/module/handlers/gestures/panGesture.js +13 -0
- package/lib/module/handlers/gestures/panGesture.js.map +1 -1
- package/lib/module/handlers/gestures/pinchGesture.js +13 -0
- package/lib/module/handlers/gestures/pinchGesture.js.map +1 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
- package/lib/module/handlers/gestures/rotationGesture.js +8 -0
- package/lib/module/handlers/gestures/rotationGesture.js.map +1 -1
- package/lib/module/handlers/gestures/tapGesture.js +8 -0
- package/lib/module/handlers/gestures/tapGesture.js.map +1 -1
- package/lib/module/handlers/handlersRegistry.js.map +1 -1
- package/lib/module/handlers/utils.js +4 -4
- package/lib/module/handlers/utils.js.map +1 -1
- package/lib/module/index.js +15 -16
- package/lib/module/index.js.map +1 -1
- package/lib/module/jestUtils/index.js +1 -1
- package/lib/module/jestUtils/index.js.map +1 -1
- package/lib/module/jestUtils/jestUtils.js +0 -1
- package/lib/module/jestUtils/jestUtils.js.map +1 -1
- package/lib/module/mocks/GestureButtons.js +8 -5
- package/lib/module/mocks/GestureButtons.js.map +1 -1
- package/lib/module/mocks/Touchables.js +4 -0
- package/lib/module/mocks/Touchables.js.map +1 -0
- package/lib/module/mocks/gestureComponents.js +1 -12
- package/lib/module/mocks/gestureComponents.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +49 -6
- package/lib/module/specs/RNGestureHandlerDetectorNativeComponent.ts +23 -11
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.ts +2 -2
- package/lib/module/useIsScreenReaderEnabled.js +26 -0
- package/lib/module/useIsScreenReaderEnabled.js.map +1 -0
- package/lib/module/v3/NativeProxy.js.map +1 -1
- package/lib/module/v3/NativeProxy.web.js.map +1 -1
- package/lib/module/v3/components/GestureButtons.js +41 -25
- package/lib/module/v3/components/GestureButtons.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.js +3 -3
- package/lib/module/v3/components/GestureComponents.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.web.js +3 -4
- package/lib/module/v3/components/GestureComponents.web.js.map +1 -1
- package/lib/module/v3/components/Pressable.js +16 -15
- package/lib/module/v3/components/Pressable.js.map +1 -1
- package/lib/module/v3/components/Touchable/Touchable.js +132 -0
- package/lib/module/v3/components/Touchable/Touchable.js.map +1 -0
- package/lib/module/v3/components/Touchable/TouchableProps.js +4 -0
- package/lib/module/v3/components/Touchable/TouchableProps.js.map +1 -0
- package/lib/module/v3/components/index.js +3 -2
- package/lib/module/v3/components/index.js.map +1 -1
- package/lib/module/v3/createNativeWrapper.js +3 -3
- package/lib/module/v3/createNativeWrapper.js.map +1 -1
- package/lib/module/v3/detectors/GestureDetector.js +1 -1
- package/lib/module/v3/detectors/GestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/HostGestureDetector.web.js +14 -10
- package/lib/module/v3/detectors/HostGestureDetector.web.js.map +1 -1
- package/lib/module/v3/detectors/NativeDetector.js +3 -3
- package/lib/module/v3/detectors/NativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/ReanimatedNativeDetector.js +1 -1
- package/lib/module/v3/detectors/ReanimatedNativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +15 -9
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js +10 -5
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js.map +1 -1
- package/lib/module/v3/detectors/common.js +0 -3
- package/lib/module/v3/detectors/common.js.map +1 -1
- package/lib/module/v3/detectors/index.js +1 -1
- package/lib/module/v3/detectors/index.js.map +1 -1
- package/lib/module/v3/detectors/useEnsureGestureHandlerRootView.js.map +1 -1
- package/lib/module/v3/detectors/useNativeGestureRole.js +6 -0
- package/lib/module/v3/detectors/useNativeGestureRole.js.map +1 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js +27 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js.map +1 -0
- package/lib/module/v3/detectors/utils.js.map +1 -1
- package/lib/module/v3/gestureStateManager.js +0 -5
- package/lib/module/v3/gestureStateManager.js.map +1 -1
- package/lib/module/v3/gestureStateManager.web.js +0 -14
- package/lib/module/v3/gestureStateManager.web.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/eventHandler.js +23 -19
- package/lib/module/v3/hooks/callbacks/eventHandler.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/useGestureEventHandler.js +2 -2
- package/lib/module/v3/hooks/callbacks/useGestureEventHandler.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js +19 -4
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js.map +1 -1
- package/lib/module/v3/hooks/composition/index.js +2 -2
- package/lib/module/v3/hooks/composition/index.js.map +1 -1
- package/lib/module/v3/hooks/composition/useCompetingGestures.js.map +1 -1
- package/lib/module/v3/hooks/composition/useComposedGesture.js +1 -1
- package/lib/module/v3/hooks/composition/useComposedGesture.js.map +1 -1
- package/lib/module/v3/hooks/composition/useExclusiveGestures.js.map +1 -1
- package/lib/module/v3/hooks/composition/useSimultaneousGestures.js.map +1 -1
- package/lib/module/v3/hooks/gestures/fling/{FlingProperties.js → FlingTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/fling/FlingTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/hover/{HoverProperties.js → HoverTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/hover/{HoverProperties.js.map → HoverTypes.js.map} +1 -1
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js +10 -2
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/index.js +4 -0
- package/lib/module/v3/hooks/gestures/index.js.map +1 -1
- package/lib/module/v3/hooks/gestures/longPress/{LongPressProperties.js → LongPressTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/longPress/LongPressTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/manual/ManualTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/manual/ManualTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pan/{PanProperties.js → PanTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/pan/PanTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js +9 -1
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pinch/PinchTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/pinch/PinchTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js +9 -3
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/rotation/RotationTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/rotation/RotationTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js +9 -2
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/tap/{TapProperties.js → TapTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/tap/TapTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js.map +1 -1
- package/lib/module/v3/hooks/useGesture.js +10 -11
- package/lib/module/v3/hooks/useGesture.js.map +1 -1
- package/lib/module/v3/hooks/useGestureCallbacks.js +4 -4
- package/lib/module/v3/hooks/useGestureCallbacks.js.map +1 -1
- package/lib/module/v3/hooks/utils/configUtils.js +9 -5
- package/lib/module/v3/hooks/utils/configUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js +3 -7
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/eventUtils.js +10 -0
- package/lib/module/v3/hooks/utils/eventUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/index.js +6 -6
- package/lib/module/v3/hooks/utils/index.js.map +1 -1
- package/lib/module/v3/hooks/utils/propsWhiteList.js +10 -8
- package/lib/module/v3/hooks/utils/propsWhiteList.js.map +1 -1
- package/lib/module/v3/hooks/utils/reanimatedUtils.js +1 -1
- package/lib/module/v3/hooks/utils/reanimatedUtils.js.map +1 -1
- package/lib/module/v3/index.js +3 -4
- package/lib/module/v3/index.js.map +1 -1
- package/lib/module/v3/types/GestureTypes.js.map +1 -1
- package/lib/module/v3/types/index.js +1 -1
- package/lib/module/v3/types/index.js.map +1 -1
- package/lib/module/web/Gestures.js +6 -6
- package/lib/module/web/Gestures.js.map +1 -1
- package/lib/module/web/constants.js +1 -0
- package/lib/module/web/constants.js.map +1 -1
- package/lib/module/web/detectors/RotationGestureDetector.js +22 -12
- package/lib/module/web/detectors/RotationGestureDetector.js.map +1 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js +10 -2
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +1 -1
- package/lib/module/web/handlers/FlingGestureHandler.js +3 -3
- package/lib/module/web/handlers/FlingGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/GestureHandler.js +60 -63
- package/lib/module/web/handlers/GestureHandler.js.map +1 -1
- package/lib/module/web/handlers/HoverGestureHandler.js +2 -5
- package/lib/module/web/handlers/HoverGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/ManualGestureHandler.js +1 -0
- package/lib/module/web/handlers/ManualGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/NativeViewGestureHandler.js +66 -18
- package/lib/module/web/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PanGestureHandler.js +2 -1
- package/lib/module/web/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PinchGestureHandler.js +11 -14
- package/lib/module/web/handlers/PinchGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/RotationGestureHandler.js +30 -35
- package/lib/module/web/handlers/RotationGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/TapGestureHandler.js.map +1 -1
- package/lib/module/web/interfaces.js +6 -0
- package/lib/module/web/interfaces.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +8 -2
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +62 -17
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
- package/lib/module/web/tools/GestureLifecycleEvents.js +10 -0
- package/lib/module/web/tools/GestureLifecycleEvents.js.map +1 -0
- package/lib/module/web/tools/InteractionManager.js.map +1 -1
- package/lib/module/web/tools/KeyboardEventManager.js +1 -1
- package/lib/module/web/tools/KeyboardEventManager.js.map +1 -1
- package/lib/module/web/tools/PointerEventManager.js +16 -7
- package/lib/module/web/tools/PointerEventManager.js.map +1 -1
- package/lib/module/web/tools/WheelEventManager.js +2 -2
- package/lib/module/web/tools/WheelEventManager.js.map +1 -1
- package/lib/module/web/utils.js +22 -1
- package/lib/module/web/utils.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts +8 -8
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts.map +1 -1
- package/lib/typescript/components/GestureButtons.d.ts +16 -5
- package/lib/typescript/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/components/GestureButtonsProps.d.ts +21 -21
- package/lib/typescript/components/GestureButtonsProps.d.ts.map +1 -1
- package/lib/typescript/components/GestureComponents.d.ts +44 -14
- package/lib/typescript/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/components/GestureComponents.web.d.ts +26 -6
- package/lib/typescript/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +114 -2
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +20 -2
- package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts +1 -1
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts +2 -2
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.d.ts +6 -3
- package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/PressableProps.d.ts +4 -4
- package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/StateMachine.d.ts +1 -1
- package/lib/typescript/components/Pressable/StateMachine.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/index.d.ts +1 -1
- package/lib/typescript/components/Pressable/index.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/stateDefinitions.d.ts +3 -3
- package/lib/typescript/components/Pressable/stateDefinitions.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/utils.d.ts +8 -7
- package/lib/typescript/components/Pressable/utils.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +9 -5
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +2 -2
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts +9 -11
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/index.d.ts +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/index.d.ts.map +1 -1
- package/lib/typescript/components/Text.d.ts +15 -3
- package/lib/typescript/components/Text.d.ts.map +1 -1
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts +5 -5
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +2 -2
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +1 -1
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts +2 -2
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts +3 -3
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +2 -2
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +3 -2
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +4 -3
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +1 -1
- package/lib/typescript/components/touchables/index.d.ts +3 -3
- package/lib/typescript/components/touchables/index.d.ts.map +1 -1
- package/lib/typescript/components/utils.d.ts +1 -1
- package/lib/typescript/components/utils.d.ts.map +1 -1
- package/lib/typescript/findNodeHandle.web.d.ts.map +1 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +3 -2
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts +3 -3
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts.map +1 -1
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +3 -3
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/PinchGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/PinchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/RotationGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/RotationGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts +1 -1
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +10 -2
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +1 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +27 -27
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +1 -1
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +3 -3
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts +7 -6
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts +5 -5
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts +3 -3
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts +3 -3
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts +5 -5
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts +1 -1
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/flingGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +7 -6
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gesture.d.ts +9 -3
- package/lib/typescript/handlers/gestures/gesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +23 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +31 -5
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +6 -0
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +7 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/panGesture.d.ts +13 -3
- package/lib/typescript/handlers/gestures/panGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +11 -2
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +3 -3
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +8 -2
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/tapGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/handlersRegistry.d.ts +6 -6
- package/lib/typescript/handlers/handlersRegistry.d.ts.map +1 -1
- package/lib/typescript/handlers/utils.d.ts +1 -1
- package/lib/typescript/handlers/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +41 -42
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/jestUtils/index.d.ts +1 -1
- package/lib/typescript/jestUtils/jestUtils.d.ts +22 -21
- package/lib/typescript/jestUtils/jestUtils.d.ts.map +1 -1
- package/lib/typescript/mocks/GestureButtons.d.ts +5 -5
- package/lib/typescript/mocks/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/mocks/Touchables.d.ts +2 -0
- package/lib/typescript/mocks/Touchables.d.ts.map +1 -0
- package/lib/typescript/mocks/gestureComponents.d.ts +1 -13
- package/lib/typescript/mocks/gestureComponents.d.ts.map +1 -1
- package/lib/typescript/mountRegistry.d.ts +1 -1
- package/lib/typescript/mountRegistry.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +2 -2
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +36 -3
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerDetectorNativeComponent.d.ts +8 -8
- package/lib/typescript/specs/RNGestureHandlerDetectorNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +1 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/useIsScreenReaderEnabled.d.ts +2 -0
- package/lib/typescript/useIsScreenReaderEnabled.d.ts.map +1 -0
- package/lib/typescript/useIsomorphicLayoutEffect.d.ts +1 -1
- package/lib/typescript/useIsomorphicLayoutEffect.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.d.ts +3 -3
- package/lib/typescript/v3/NativeProxy.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.web.d.ts +3 -3
- package/lib/typescript/v3/NativeProxy.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtons.d.ts +21 -11
- package/lib/typescript/v3/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts +25 -85
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.d.ts +27 -38
- package/lib/typescript/v3/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.web.d.ts +26 -34
- package/lib/typescript/v3/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/Pressable.d.ts +1 -1
- package/lib/typescript/v3/components/Pressable.d.ts.map +1 -1
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts +4 -0
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts +40 -0
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts.map +1 -0
- package/lib/typescript/v3/components/index.d.ts +5 -3
- package/lib/typescript/v3/components/index.d.ts.map +1 -1
- package/lib/typescript/v3/createNativeWrapper.d.ts +3 -7
- package/lib/typescript/v3/createNativeWrapper.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/GestureDetector.d.ts +3 -3
- package/lib/typescript/v3/detectors/GestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts +10 -6
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/NativeDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/NativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/ReanimatedNativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/useInterceptingDetectorContext.d.ts +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/useInterceptingDetectorContext.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/common.d.ts +14 -15
- package/lib/typescript/v3/detectors/common.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/index.d.ts +1 -1
- package/lib/typescript/v3/detectors/index.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/useEnsureGestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/utils.d.ts +2 -2
- package/lib/typescript/v3/detectors/utils.d.ts.map +1 -1
- package/lib/typescript/v3/gestureStateManager.d.ts +0 -1
- package/lib/typescript/v3/gestureStateManager.d.ts.map +1 -1
- package/lib/typescript/v3/gestureStateManager.web.d.ts +1 -1
- package/lib/typescript/v3/gestureStateManager.web.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/eventHandler.d.ts +6 -6
- package/lib/typescript/v3/hooks/callbacks/eventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/useGestureEventHandler.d.ts +2 -2
- package/lib/typescript/v3/hooks/callbacks/useGestureEventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/useReanimatedEventHandler.d.ts +3 -3
- package/lib/typescript/v3/hooks/callbacks/useReanimatedEventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/index.d.ts +2 -2
- package/lib/typescript/v3/hooks/composition/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useCompetingGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useCompetingGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useComposedGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useComposedGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useExclusiveGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useExclusiveGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useSimultaneousGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useSimultaneousGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/fling/FlingTypes.d.ts +36 -0
- package/lib/typescript/v3/hooks/gestures/fling/FlingTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/hover/HoverTypes.d.ts +38 -0
- package/lib/typescript/v3/hooks/gestures/hover/HoverTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts +2 -20
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/index.d.ts +19 -28
- package/lib/typescript/v3/hooks/gestures/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/longPress/{LongPressProperties.d.ts → LongPressTypes.d.ts} +16 -1
- package/lib/typescript/v3/hooks/gestures/longPress/LongPressTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/manual/ManualTypes.d.ts +10 -0
- package/lib/typescript/v3/hooks/gestures/manual/ManualTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts +2 -10
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts +33 -0
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts +2 -12
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pan/{PanProperties.d.ts → PanTypes.d.ts} +25 -1
- package/lib/typescript/v3/hooks/gestures/pan/PanTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts +2 -22
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pinch/PinchTypes.d.ts +17 -0
- package/lib/typescript/v3/hooks/gestures/pinch/PinchTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts +2 -16
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/rotation/RotationTypes.d.ts +17 -0
- package/lib/typescript/v3/hooks/gestures/rotation/RotationTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts +2 -16
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/tap/{TapProperties.d.ts → TapTypes.d.ts} +14 -1
- package/lib/typescript/v3/hooks/gestures/tap/TapTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/useGesture.d.ts +2 -2
- package/lib/typescript/v3/hooks/useGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/useGestureCallbacks.d.ts +4 -4
- package/lib/typescript/v3/hooks/useGestureCallbacks.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/eventUtils.d.ts +8 -6
- package/lib/typescript/v3/hooks/utils/eventUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/index.d.ts +6 -6
- package/lib/typescript/v3/hooks/utils/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts +6 -5
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/relationUtils.d.ts +2 -2
- package/lib/typescript/v3/hooks/utils/relationUtils.d.ts.map +1 -1
- package/lib/typescript/v3/index.d.ts +6 -7
- package/lib/typescript/v3/index.d.ts.map +1 -1
- package/lib/typescript/v3/types/ConfigTypes.d.ts +36 -34
- package/lib/typescript/v3/types/ConfigTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/DetectorTypes.d.ts +10 -6
- package/lib/typescript/v3/types/DetectorTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/EventTypes.d.ts +11 -8
- package/lib/typescript/v3/types/EventTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/GestureTypes.d.ts +16 -16
- package/lib/typescript/v3/types/GestureTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/NativeWrapperType.d.ts +7 -4
- package/lib/typescript/v3/types/NativeWrapperType.d.ts.map +1 -1
- package/lib/typescript/v3/types/ReanimatedTypes.d.ts +1 -1
- package/lib/typescript/v3/types/ReanimatedTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/UtilityTypes.d.ts +7 -7
- package/lib/typescript/v3/types/UtilityTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/index.d.ts +6 -6
- package/lib/typescript/v3/types/index.d.ts.map +1 -1
- package/lib/typescript/web/Gestures.d.ts +6 -6
- package/lib/typescript/web/Gestures.d.ts.map +1 -1
- package/lib/typescript/web/constants.d.ts +1 -0
- package/lib/typescript/web/constants.d.ts.map +1 -1
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +2 -2
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +2 -2
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +3 -3
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/GestureHandler.d.ts +16 -9
- package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +4 -4
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts +8 -6
- package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +4 -4
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +4 -3
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +17 -7
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +5 -4
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +5 -4
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +6 -6
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts +3 -3
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/interfaces.d.ts +38 -32
- package/lib/typescript/web/interfaces.d.ts.map +1 -1
- package/lib/typescript/web/tools/EventManager.d.ts +1 -1
- package/lib/typescript/web/tools/EventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +4 -0
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +1 -0
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +6 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts +7 -0
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts.map +1 -0
- package/lib/typescript/web/tools/InteractionManager.d.ts +2 -2
- package/lib/typescript/web/tools/InteractionManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts +2 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/NodeManager.d.ts +3 -3
- package/lib/typescript/web/tools/NodeManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts +2 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts.map +1 -1
- package/lib/typescript/web/tools/Vector.d.ts +1 -1
- package/lib/typescript/web/tools/Vector.d.ts.map +1 -1
- package/lib/typescript/web/tools/VelocityTracker.d.ts +1 -1
- package/lib/typescript/web/tools/VelocityTracker.d.ts.map +1 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts +1 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts.map +1 -1
- package/lib/typescript/web/utils.d.ts +2 -1
- package/lib/typescript/web/utils.d.ts.map +1 -1
- package/package.json +11 -11
- package/react-native.config.js +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerDetectorShadowNode.cpp +61 -30
- package/src/RNGestureHandlerModule.web.ts +2 -2
- package/src/RNGestureHandlerModule.windows.ts +8 -10
- package/src/components/GestureButtons.tsx +55 -43
- package/src/components/GestureButtonsProps.ts +22 -21
- package/src/components/GestureComponents.tsx +28 -35
- package/src/components/GestureComponents.web.tsx +9 -12
- package/src/components/GestureHandlerButton.tsx +150 -144
- package/src/components/GestureHandlerButton.web.tsx +219 -3
- package/src/components/GestureHandlerRootView.android.tsx +2 -1
- package/src/components/GestureHandlerRootView.tsx +5 -4
- package/src/components/GestureHandlerRootView.web.tsx +6 -4
- package/src/components/Pressable/Pressable.tsx +36 -28
- package/src/components/Pressable/PressableProps.tsx +9 -8
- package/src/components/Pressable/StateMachine.tsx +1 -1
- package/src/components/Pressable/index.ts +1 -1
- package/src/components/Pressable/stateDefinitions.ts +31 -5
- package/src/components/Pressable/utils.ts +16 -12
- package/src/components/ReanimatedDrawerLayout.tsx +415 -426
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +30 -30
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +10 -13
- package/src/components/ReanimatedSwipeable/index.ts +2 -2
- package/src/components/Text.tsx +51 -52
- package/src/components/touchables/ExtraButtonProps.ts +5 -5
- package/src/components/touchables/GenericTouchable.tsx +19 -25
- package/src/components/touchables/GenericTouchableProps.ts +4 -3
- package/src/components/touchables/TouchableHighlight.tsx +8 -8
- package/src/components/touchables/TouchableNativeFeedback.android.tsx +5 -3
- package/src/components/touchables/TouchableNativeFeedbackProps.tsx +2 -1
- package/src/components/touchables/TouchableOpacity.tsx +5 -9
- package/src/components/touchables/TouchableWithoutFeedback.tsx +17 -24
- package/src/components/touchables/index.ts +3 -3
- package/src/components/utils.ts +1 -1
- package/src/findNodeHandle.web.ts +12 -2
- package/src/handlers/FlingGestureHandler.ts +3 -5
- package/src/handlers/ForceTouchGestureHandler.ts +6 -6
- package/src/handlers/GestureHandlerEventPayload.ts +3 -3
- package/src/handlers/LongPressGestureHandler.ts +3 -5
- package/src/handlers/NativeViewGestureHandler.ts +5 -7
- package/src/handlers/PanGestureHandler.ts +3 -5
- package/src/handlers/PinchGestureHandler.ts +3 -5
- package/src/handlers/RotationGestureHandler.ts +3 -5
- package/src/handlers/TapGestureHandler.ts +3 -5
- package/src/handlers/createHandler.tsx +19 -22
- package/src/handlers/createNativeWrapper.tsx +12 -7
- package/src/handlers/gestureHandlerCommon.ts +31 -29
- package/src/handlers/gestureHandlerTypesCompat.ts +5 -5
- package/src/handlers/gestures/GestureDetector/Wrap.tsx +2 -1
- package/src/handlers/gestures/GestureDetector/Wrap.web.tsx +34 -30
- package/src/handlers/gestures/GestureDetector/attachHandlers.ts +14 -13
- package/src/handlers/gestures/GestureDetector/dropHandlers.ts +3 -3
- package/src/handlers/gestures/GestureDetector/index.tsx +11 -10
- package/src/handlers/gestures/GestureDetector/needsToReattach.ts +2 -2
- package/src/handlers/gestures/GestureDetector/types.ts +2 -2
- package/src/handlers/gestures/GestureDetector/updateHandlers.ts +7 -7
- package/src/handlers/gestures/GestureDetector/useAnimatedGesture.ts +11 -12
- package/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +9 -8
- package/src/handlers/gestures/GestureDetector/useMountReactions.ts +5 -4
- package/src/handlers/gestures/GestureDetector/useViewRefHandler.ts +5 -4
- package/src/handlers/gestures/GestureDetector/utils.ts +24 -14
- package/src/handlers/gestures/eventReceiver.ts +8 -8
- package/src/handlers/gestures/flingGesture.ts +9 -2
- package/src/handlers/gestures/forceTouchGesture.ts +7 -6
- package/src/handlers/gestures/gesture.ts +15 -9
- package/src/handlers/gestures/gestureComposition.ts +23 -1
- package/src/handlers/gestures/gestureObjects.ts +31 -5
- package/src/handlers/gestures/gestureStateManager.ts +6 -0
- package/src/handlers/gestures/gestureStateManager.web.ts +1 -1
- package/src/handlers/gestures/hoverGesture.ts +9 -2
- package/src/handlers/gestures/longPressGesture.ts +9 -2
- package/src/handlers/gestures/manualGesture.ts +7 -1
- package/src/handlers/gestures/nativeGesture.ts +9 -2
- package/src/handlers/gestures/panGesture.ts +13 -3
- package/src/handlers/gestures/pinchGesture.ts +11 -2
- package/src/handlers/gestures/reanimatedWrapper.ts +7 -6
- package/src/handlers/gestures/rotationGesture.ts +8 -2
- package/src/handlers/gestures/tapGesture.ts +9 -2
- package/src/handlers/handlersRegistry.ts +13 -6
- package/src/handlers/utils.ts +6 -5
- package/src/index.ts +111 -117
- package/src/jestUtils/index.ts +1 -1
- package/src/jestUtils/jestUtils.ts +45 -50
- package/src/mocks/GestureButtons.tsx +9 -5
- package/src/mocks/Touchables.tsx +6 -0
- package/src/mocks/gestureComponents.tsx +7 -22
- package/src/mountRegistry.ts +1 -1
- package/src/specs/NativeRNGestureHandlerModule.ts +3 -2
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +49 -6
- package/src/specs/RNGestureHandlerDetectorNativeComponent.ts +23 -11
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +2 -2
- package/src/useIsScreenReaderEnabled.ts +31 -0
- package/src/v3/NativeProxy.ts +13 -5
- package/src/v3/NativeProxy.web.ts +13 -5
- package/src/v3/components/GestureButtons.tsx +52 -28
- package/src/v3/components/GestureButtonsProps.ts +38 -110
- package/src/v3/components/GestureComponents.tsx +29 -34
- package/src/v3/components/GestureComponents.web.tsx +7 -10
- package/src/v3/components/Pressable.tsx +33 -28
- package/src/v3/components/Touchable/Touchable.tsx +167 -0
- package/src/v3/components/Touchable/TouchableProps.ts +55 -0
- package/src/v3/components/index.ts +12 -13
- package/src/v3/createNativeWrapper.tsx +14 -16
- package/src/v3/detectors/GestureDetector.tsx +17 -9
- package/src/v3/detectors/HostGestureDetector.web.tsx +35 -22
- package/src/v3/detectors/NativeDetector.tsx +12 -10
- package/src/v3/detectors/ReanimatedNativeDetector.tsx +4 -5
- package/src/v3/detectors/VirtualDetector/InterceptingGestureDetector.tsx +66 -34
- package/src/v3/detectors/VirtualDetector/VirtualDetector.tsx +32 -13
- package/src/v3/detectors/VirtualDetector/useInterceptingDetectorContext.ts +2 -1
- package/src/v3/detectors/common.ts +40 -20
- package/src/v3/detectors/index.ts +1 -1
- package/src/v3/detectors/useEnsureGestureHandlerRootView.ts +1 -0
- package/src/v3/detectors/useNativeGestureRole.ts +8 -0
- package/src/v3/detectors/useNativeGestureRole.web.ts +42 -0
- package/src/v3/detectors/utils.ts +4 -3
- package/src/v3/gestureStateManager.ts +0 -6
- package/src/v3/gestureStateManager.web.ts +2 -17
- package/src/v3/hooks/callbacks/eventHandler.ts +87 -47
- package/src/v3/hooks/callbacks/useGestureEventHandler.ts +21 -9
- package/src/v3/hooks/callbacks/useReanimatedEventHandler.ts +42 -18
- package/src/v3/hooks/composition/index.ts +2 -2
- package/src/v3/hooks/composition/useCompetingGestures.ts +2 -1
- package/src/v3/hooks/composition/useComposedGesture.ts +6 -6
- package/src/v3/hooks/composition/useExclusiveGestures.ts +2 -1
- package/src/v3/hooks/composition/useSimultaneousGestures.ts +2 -1
- package/src/v3/hooks/gestures/fling/FlingTypes.ts +60 -0
- package/src/v3/hooks/gestures/fling/useFlingGesture.ts +11 -34
- package/src/v3/hooks/gestures/hover/HoverTypes.ts +76 -0
- package/src/v3/hooks/gestures/hover/useHoverGesture.ts +29 -56
- package/src/v3/hooks/gestures/index.ts +111 -32
- package/src/v3/hooks/gestures/longPress/{LongPressProperties.ts → LongPressTypes.ts} +39 -0
- package/src/v3/hooks/gestures/longPress/useLongPressGesture.ts +13 -44
- package/src/v3/hooks/gestures/manual/ManualTypes.ts +28 -0
- package/src/v3/hooks/gestures/manual/useManualGesture.ts +11 -28
- package/src/v3/hooks/gestures/native/NativeTypes.ts +62 -0
- package/src/v3/hooks/gestures/native/useNativeGesture.ts +11 -34
- package/src/v3/hooks/gestures/pan/{PanProperties.ts → PanTypes.ts} +55 -0
- package/src/v3/hooks/gestures/pan/usePanGesture.ts +34 -55
- package/src/v3/hooks/gestures/pinch/PinchTypes.ts +40 -0
- package/src/v3/hooks/gestures/pinch/usePinchGesture.ts +26 -41
- package/src/v3/hooks/gestures/rotation/RotationTypes.ts +41 -0
- package/src/v3/hooks/gestures/rotation/useRotationGesture.ts +24 -39
- package/src/v3/hooks/gestures/tap/{TapProperties.ts → TapTypes.ts} +32 -0
- package/src/v3/hooks/gestures/tap/useTapGesture.ts +14 -36
- package/src/v3/hooks/useGesture.ts +26 -18
- package/src/v3/hooks/useGestureCallbacks.ts +14 -9
- package/src/v3/hooks/utils/configUtils.ts +61 -22
- package/src/v3/hooks/utils/eventHandlersUtils.ts +23 -20
- package/src/v3/hooks/utils/eventUtils.ts +63 -21
- package/src/v3/hooks/utils/index.ts +15 -21
- package/src/v3/hooks/utils/propsWhiteList.ts +24 -12
- package/src/v3/hooks/utils/reanimatedUtils.ts +22 -10
- package/src/v3/hooks/utils/relationUtils.ts +3 -3
- package/src/v3/index.ts +51 -46
- package/src/v3/types/ConfigTypes.ts +48 -36
- package/src/v3/types/DetectorTypes.ts +29 -7
- package/src/v3/types/EventTypes.ts +27 -16
- package/src/v3/types/GestureTypes.ts +49 -22
- package/src/v3/types/NativeWrapperType.ts +21 -6
- package/src/v3/types/ReanimatedTypes.ts +1 -1
- package/src/v3/types/UtilityTypes.ts +7 -7
- package/src/v3/types/index.ts +32 -36
- package/src/web/Gestures.ts +6 -6
- package/src/web/constants.ts +1 -0
- package/src/web/detectors/RotationGestureDetector.ts +27 -14
- package/src/web/detectors/ScaleGestureDetector.ts +13 -7
- package/src/web/handlers/FlingGestureHandler.ts +6 -7
- package/src/web/handlers/GestureHandler.ts +102 -125
- package/src/web/handlers/HoverGestureHandler.ts +7 -10
- package/src/web/handlers/IGestureHandler.ts +8 -6
- package/src/web/handlers/LongPressGestureHandler.ts +4 -5
- package/src/web/handlers/ManualGestureHandler.ts +5 -3
- package/src/web/handlers/NativeViewGestureHandler.ts +128 -25
- package/src/web/handlers/PanGestureHandler.ts +9 -7
- package/src/web/handlers/PinchGestureHandler.ts +22 -22
- package/src/web/handlers/RotationGestureHandler.ts +34 -47
- package/src/web/handlers/TapGestureHandler.ts +4 -4
- package/src/web/interfaces.ts +42 -35
- package/src/web/tools/EventManager.ts +1 -1
- package/src/web/tools/GestureHandlerDelegate.ts +4 -0
- package/src/web/tools/GestureHandlerOrchestrator.ts +11 -4
- package/src/web/tools/GestureHandlerWebDelegate.ts +82 -23
- package/src/web/tools/GestureLifecycleEvents.ts +14 -0
- package/src/web/tools/InteractionManager.ts +3 -2
- package/src/web/tools/KeyboardEventManager.ts +3 -2
- package/src/web/tools/NodeManager.ts +2 -2
- package/src/web/tools/PointerEventManager.ts +30 -9
- package/src/web/tools/PointerTracker.ts +1 -1
- package/src/web/tools/Vector.ts +1 -1
- package/src/web/tools/VelocityTracker.ts +1 -1
- package/src/web/tools/WheelEventManager.ts +3 -2
- package/src/web/utils.ts +28 -2
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonWrapperViewManager.kt +0 -30
- package/apple/RNGestureHandlerButtonManager.h +0 -5
- package/apple/RNGestureHandlerButtonManager.mm +0 -60
- package/apple/RNGestureHandlerButtonWrapper.h +0 -19
- package/apple/RNGestureHandlerButtonWrapper.mm +0 -46
- package/lib/commonjs/ActionType.js +0 -22
- package/lib/commonjs/ActionType.js.map +0 -1
- package/lib/commonjs/Directions.js +0 -38
- package/lib/commonjs/Directions.js.map +0 -1
- package/lib/commonjs/GestureHandlerRootViewContext.js +0 -10
- package/lib/commonjs/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/commonjs/PlatformConstants.js +0 -9
- package/lib/commonjs/PlatformConstants.js.map +0 -1
- package/lib/commonjs/PlatformConstants.web.js +0 -12
- package/lib/commonjs/PlatformConstants.web.js.map +0 -1
- package/lib/commonjs/PointerType.js +0 -15
- package/lib/commonjs/PointerType.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.js +0 -12
- package/lib/commonjs/RNGestureHandlerModule.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.web.js +0 -73
- package/lib/commonjs/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.windows.js +0 -53
- package/lib/commonjs/RNGestureHandlerModule.windows.js.map +0 -1
- package/lib/commonjs/RNRenderer.js +0 -14
- package/lib/commonjs/RNRenderer.js.map +0 -1
- package/lib/commonjs/RNRenderer.web.js +0 -10
- package/lib/commonjs/RNRenderer.web.js.map +0 -1
- package/lib/commonjs/State.js +0 -19
- package/lib/commonjs/State.js.map +0 -1
- package/lib/commonjs/TouchEventType.js +0 -16
- package/lib/commonjs/TouchEventType.js.map +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -220
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureButtonsProps.js +0 -6
- package/lib/commonjs/components/GestureButtonsProps.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.js +0 -127
- package/lib/commonjs/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.web.js +0 -61
- package/lib/commonjs/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -144
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.web.js +0 -16
- package/lib/commonjs/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.android.js +0 -32
- package/lib/commonjs/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +0 -30
- package/lib/commonjs/components/GestureHandlerRootView.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.web.js +0 -30
- package/lib/commonjs/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/commonjs/components/Pressable/Pressable.js +0 -270
- package/lib/commonjs/components/Pressable/Pressable.js.map +0 -1
- package/lib/commonjs/components/Pressable/PressableProps.js +0 -6
- package/lib/commonjs/components/Pressable/PressableProps.js.map +0 -1
- package/lib/commonjs/components/Pressable/StateMachine.js +0 -44
- package/lib/commonjs/components/Pressable/StateMachine.js.map +0 -1
- package/lib/commonjs/components/Pressable/index.js +0 -14
- package/lib/commonjs/components/Pressable/index.js.map +0 -1
- package/lib/commonjs/components/Pressable/stateDefinitions.js +0 -88
- package/lib/commonjs/components/Pressable/stateDefinitions.js.map +0 -1
- package/lib/commonjs/components/Pressable/utils.js +0 -92
- package/lib/commonjs/components/Pressable/utils.js.map +0 -1
- package/lib/commonjs/components/ReanimatedDrawerLayout.js +0 -377
- package/lib/commonjs/components/ReanimatedDrawerLayout.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js +0 -347
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +0 -12
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/index.js +0 -21
- package/lib/commonjs/components/ReanimatedSwipeable/index.js.map +0 -1
- package/lib/commonjs/components/Text.js +0 -60
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/touchables/ExtraButtonProps.js +0 -2
- package/lib/commonjs/components/touchables/ExtraButtonProps.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -245
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchableProps.js +0 -6
- package/lib/commonjs/components/touchables/GenericTouchableProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableHighlight.js +0 -93
- package/lib/commonjs/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +0 -84
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +0 -13
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js +0 -6
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -65
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -33
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -35
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/components/utils.js +0 -17
- package/lib/commonjs/components/utils.js.map +0 -1
- package/lib/commonjs/findNodeHandle.js +0 -9
- package/lib/commonjs/findNodeHandle.js.map +0 -1
- package/lib/commonjs/findNodeHandle.web.js +0 -39
- package/lib/commonjs/findNodeHandle.web.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.js +0 -51
- package/lib/commonjs/getShadowNodeFromRef.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.web.js +0 -14
- package/lib/commonjs/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/commonjs/ghQueueMicrotask.js +0 -10
- package/lib/commonjs/ghQueueMicrotask.js.map +0 -1
- package/lib/commonjs/global.d.js +0 -6
- package/lib/commonjs/global.d.js.map +0 -1
- package/lib/commonjs/globals.js +0 -6
- package/lib/commonjs/globals.js.map +0 -1
- package/lib/commonjs/handlers/FlingGestureHandler.js +0 -31
- package/lib/commonjs/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js +0 -46
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js +0 -6
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js.map +0 -1
- package/lib/commonjs/handlers/LongPressGestureHandler.js +0 -33
- package/lib/commonjs/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -32
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -112
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PinchGestureHandler.js +0 -29
- package/lib/commonjs/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.js +0 -13
- package/lib/commonjs/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.web.js +0 -11
- package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/commonjs/handlers/RotationGestureHandler.js +0 -29
- package/lib/commonjs/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -33
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createHandler.js +0 -334
- package/lib/commonjs/handlers/createHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -78
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.js +0 -13
- package/lib/commonjs/handlers/customDirectEventTypes.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.web.js +0 -10
- package/lib/commonjs/handlers/customDirectEventTypes.web.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -27
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js +0 -6
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js +0 -32
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js +0 -68
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js +0 -20
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js +0 -122
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js +0 -22
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js +0 -6
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js +0 -67
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js +0 -143
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js +0 -47
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js +0 -145
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js.map +0 -1
- package/lib/commonjs/handlers/gestures/eventReceiver.js +0 -106
- package/lib/commonjs/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/commonjs/handlers/gestures/flingGesture.js +0 -37
- package/lib/commonjs/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js +0 -80
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gesture.js +0 -344
- package/lib/commonjs/handlers/gestures/gesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureComposition.js +0 -90
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureObjects.js +0 -132
- package/lib/commonjs/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.js +0 -50
- package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +0 -36
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/hoverGesture.js +0 -57
- package/lib/commonjs/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/longPressGesture.js +0 -46
- package/lib/commonjs/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/manualGesture.js +0 -25
- package/lib/commonjs/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/nativeGesture.js +0 -34
- package/lib/commonjs/handlers/gestures/nativeGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/panGesture.js +0 -197
- package/lib/commonjs/handlers/gestures/panGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/pinchGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +0 -32
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestures/rotationGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/tapGesture.js +0 -87
- package/lib/commonjs/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/commonjs/handlers/getNextHandlerTag.js +0 -11
- package/lib/commonjs/handlers/getNextHandlerTag.js.map +0 -1
- package/lib/commonjs/handlers/handlersRegistry.js +0 -74
- package/lib/commonjs/handlers/handlersRegistry.js.map +0 -1
- package/lib/commonjs/handlers/utils.js +0 -79
- package/lib/commonjs/handlers/utils.js.map +0 -1
- package/lib/commonjs/index.js +0 -277
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/init.js +0 -11
- package/lib/commonjs/init.js.map +0 -1
- package/lib/commonjs/jestUtils/index.js +0 -19
- package/lib/commonjs/jestUtils/index.js.map +0 -1
- package/lib/commonjs/jestUtils/jestUtils.js +0 -350
- package/lib/commonjs/jestUtils/jestUtils.js.map +0 -1
- package/lib/commonjs/mocks/GestureButtons.js +0 -23
- package/lib/commonjs/mocks/GestureButtons.js.map +0 -1
- package/lib/commonjs/mocks/Pressable.js +0 -13
- package/lib/commonjs/mocks/Pressable.js.map +0 -1
- package/lib/commonjs/mocks/gestureComponents.js +0 -19
- package/lib/commonjs/mocks/gestureComponents.js.map +0 -1
- package/lib/commonjs/mocks/hostDetector.js +0 -10
- package/lib/commonjs/mocks/hostDetector.js.map +0 -1
- package/lib/commonjs/mocks/module.js +0 -30
- package/lib/commonjs/mocks/module.js.map +0 -1
- package/lib/commonjs/mountRegistry.js +0 -37
- package/lib/commonjs/mountRegistry.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +0 -9
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +0 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.ts +0 -27
- package/lib/commonjs/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/lib/commonjs/specs/RNGestureHandlerDetectorNativeComponent.ts +0 -74
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.ts +0 -15
- package/lib/commonjs/typeUtils.js +0 -2
- package/lib/commonjs/typeUtils.js.map +0 -1
- package/lib/commonjs/useIsomorphicLayoutEffect.js +0 -20
- package/lib/commonjs/useIsomorphicLayoutEffect.js.map +0 -1
- package/lib/commonjs/utils.js +0 -83
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/commonjs/v3/NativeProxy.js +0 -48
- package/lib/commonjs/v3/NativeProxy.js.map +0 -1
- package/lib/commonjs/v3/NativeProxy.web.js +0 -29
- package/lib/commonjs/v3/NativeProxy.web.js.map +0 -1
- package/lib/commonjs/v3/components/GestureButtons.js +0 -153
- package/lib/commonjs/v3/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/v3/components/GestureButtonsProps.js +0 -6
- package/lib/commonjs/v3/components/GestureButtonsProps.js.map +0 -1
- package/lib/commonjs/v3/components/GestureComponents.js +0 -124
- package/lib/commonjs/v3/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/v3/components/GestureComponents.web.js +0 -39
- package/lib/commonjs/v3/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/v3/components/Pressable.js +0 -283
- package/lib/commonjs/v3/components/Pressable.js.map +0 -1
- package/lib/commonjs/v3/components/index.js +0 -76
- package/lib/commonjs/v3/components/index.js.map +0 -1
- package/lib/commonjs/v3/createNativeWrapper.js +0 -70
- package/lib/commonjs/v3/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/v3/detectors/GestureDetector.js +0 -24
- package/lib/commonjs/v3/detectors/GestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/HostGestureDetector.js +0 -11
- package/lib/commonjs/v3/detectors/HostGestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/HostGestureDetector.web.js +0 -113
- package/lib/commonjs/v3/detectors/HostGestureDetector.web.js.map +0 -1
- package/lib/commonjs/v3/detectors/NativeDetector.js +0 -76
- package/lib/commonjs/v3/detectors/NativeDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.js +0 -74
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.web.js +0 -11
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.web.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +0 -167
- package/lib/commonjs/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/VirtualDetector.js +0 -74
- package/lib/commonjs/v3/detectors/VirtualDetector/VirtualDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js +0 -19
- package/lib/commonjs/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js.map +0 -1
- package/lib/commonjs/v3/detectors/common.js +0 -22
- package/lib/commonjs/v3/detectors/common.js.map +0 -1
- package/lib/commonjs/v3/detectors/index.js +0 -34
- package/lib/commonjs/v3/detectors/index.js.map +0 -1
- package/lib/commonjs/v3/detectors/useEnsureGestureHandlerRootView.js +0 -17
- package/lib/commonjs/v3/detectors/useEnsureGestureHandlerRootView.js.map +0 -1
- package/lib/commonjs/v3/detectors/utils.js +0 -130
- package/lib/commonjs/v3/detectors/utils.js.map +0 -1
- package/lib/commonjs/v3/gestureStateManager.js +0 -42
- package/lib/commonjs/v3/gestureStateManager.js.map +0 -1
- package/lib/commonjs/v3/gestureStateManager.web.js +0 -54
- package/lib/commonjs/v3/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/eventHandler.js +0 -80
- package/lib/commonjs/v3/hooks/callbacks/eventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/stateChangeHandler.js +0 -50
- package/lib/commonjs/v3/hooks/callbacks/stateChangeHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/touchEventHandler.js +0 -22
- package/lib/commonjs/v3/hooks/callbacks/touchEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/updateHandler.js +0 -30
- package/lib/commonjs/v3/hooks/callbacks/updateHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/useGestureEventHandler.js +0 -21
- package/lib/commonjs/v3/hooks/callbacks/useGestureEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/useReanimatedEventHandler.js +0 -39
- package/lib/commonjs/v3/hooks/callbacks/useReanimatedEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/index.js +0 -27
- package/lib/commonjs/v3/hooks/composition/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useCompetingGestures.js +0 -12
- package/lib/commonjs/v3/hooks/composition/useCompetingGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useComposedGesture.js +0 -52
- package/lib/commonjs/v3/hooks/composition/useComposedGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useExclusiveGestures.js +0 -14
- package/lib/commonjs/v3/hooks/composition/useExclusiveGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useSimultaneousGestures.js +0 -13
- package/lib/commonjs/v3/hooks/composition/useSimultaneousGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/fling/FlingProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/fling/FlingProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/fling/useFlingGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/fling/useFlingGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/hover/HoverProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/hover/HoverProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/hover/useHoverGesture.js +0 -27
- package/lib/commonjs/v3/hooks/gestures/hover/useHoverGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/index.js +0 -69
- package/lib/commonjs/v3/hooks/gestures/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/longPress/LongPressProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/longPress/LongPressProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/longPress/useLongPressGesture.js +0 -21
- package/lib/commonjs/v3/hooks/gestures/longPress/useLongPressGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/manual/ManualProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/manual/ManualProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/manual/useManualGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/manual/useManualGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/native/NativeProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/native/NativeProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/native/useNativeGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/native/useNativeGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pan/PanProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/pan/PanProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pan/usePanGesture.js +0 -79
- package/lib/commonjs/v3/hooks/gestures/pan/usePanGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pinch/PinchProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/pinch/PinchProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pinch/usePinchGesture.js +0 -27
- package/lib/commonjs/v3/hooks/gestures/pinch/usePinchGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/rotation/RotationProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/rotation/RotationProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/rotation/useRotationGesture.js +0 -26
- package/lib/commonjs/v3/hooks/gestures/rotation/useRotationGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/tap/TapProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/tap/TapProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/tap/useTapGesture.js +0 -15
- package/lib/commonjs/v3/hooks/gestures/tap/useTapGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/index.js +0 -28
- package/lib/commonjs/v3/hooks/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/useGesture.js +0 -84
- package/lib/commonjs/v3/hooks/useGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/useGestureCallbacks.js +0 -53
- package/lib/commonjs/v3/hooks/useGestureCallbacks.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/configUtils.js +0 -73
- package/lib/commonjs/v3/hooks/utils/configUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/eventHandlersUtils.js +0 -96
- package/lib/commonjs/v3/hooks/utils/eventHandlersUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/eventUtils.js +0 -73
- package/lib/commonjs/v3/hooks/utils/eventUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/index.js +0 -168
- package/lib/commonjs/v3/hooks/utils/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/propsWhiteList.js +0 -31
- package/lib/commonjs/v3/hooks/utils/propsWhiteList.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/reanimatedUtils.js +0 -85
- package/lib/commonjs/v3/hooks/utils/reanimatedUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/relationUtils.js +0 -51
- package/lib/commonjs/v3/hooks/utils/relationUtils.js.map +0 -1
- package/lib/commonjs/v3/index.js +0 -180
- package/lib/commonjs/v3/index.js.map +0 -1
- package/lib/commonjs/v3/types/ConfigTypes.js +0 -6
- package/lib/commonjs/v3/types/ConfigTypes.js.map +0 -1
- package/lib/commonjs/v3/types/DetectorTypes.js +0 -6
- package/lib/commonjs/v3/types/DetectorTypes.js.map +0 -1
- package/lib/commonjs/v3/types/EventTypes.js +0 -6
- package/lib/commonjs/v3/types/EventTypes.js.map +0 -1
- package/lib/commonjs/v3/types/GestureTypes.js +0 -28
- package/lib/commonjs/v3/types/GestureTypes.js.map +0 -1
- package/lib/commonjs/v3/types/NativeWrapperType.js +0 -6
- package/lib/commonjs/v3/types/NativeWrapperType.js.map +0 -1
- package/lib/commonjs/v3/types/ReanimatedTypes.js +0 -2
- package/lib/commonjs/v3/types/ReanimatedTypes.js.map +0 -1
- package/lib/commonjs/v3/types/UtilityTypes.js +0 -6
- package/lib/commonjs/v3/types/UtilityTypes.js.map +0 -1
- package/lib/commonjs/v3/types/index.js +0 -19
- package/lib/commonjs/v3/types/index.js.map +0 -1
- package/lib/commonjs/web/Gestures.js +0 -30
- package/lib/commonjs/web/Gestures.js.map +0 -1
- package/lib/commonjs/web/constants.js +0 -9
- package/lib/commonjs/web/constants.js.map +0 -1
- package/lib/commonjs/web/detectors/RotationGestureDetector.js +0 -124
- package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js +0 -111
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/commonjs/web/handlers/FlingGestureHandler.js +0 -141
- package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/GestureHandler.js +0 -857
- package/lib/commonjs/web/handlers/GestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/HoverGestureHandler.js +0 -50
- package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/IGestureHandler.js +0 -2
- package/lib/commonjs/web/handlers/IGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js +0 -144
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/ManualGestureHandler.js +0 -42
- package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js +0 -147
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PanGestureHandler.js +0 -386
- package/lib/commonjs/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PinchGestureHandler.js +0 -126
- package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/RotationGestureHandler.js +0 -133
- package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/TapGestureHandler.js +0 -213
- package/lib/commonjs/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web/interfaces.js +0 -25
- package/lib/commonjs/web/interfaces.js.map +0 -1
- package/lib/commonjs/web/tools/CircularBuffer.js +0 -40
- package/lib/commonjs/web/tools/CircularBuffer.js.map +0 -1
- package/lib/commonjs/web/tools/EventManager.js +0 -102
- package/lib/commonjs/web/tools/EventManager.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js +0 -2
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +0 -269
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +0 -219
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/InteractionManager.js +0 -83
- package/lib/commonjs/web/tools/InteractionManager.js.map +0 -1
- package/lib/commonjs/web/tools/KeyboardEventManager.js +0 -108
- package/lib/commonjs/web/tools/KeyboardEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/LeastSquareSolver.js +0 -159
- package/lib/commonjs/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/commonjs/web/tools/NodeManager.js +0 -45
- package/lib/commonjs/web/tools/NodeManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerEventManager.js +0 -186
- package/lib/commonjs/web/tools/PointerEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerTracker.js +0 -192
- package/lib/commonjs/web/tools/PointerTracker.js.map +0 -1
- package/lib/commonjs/web/tools/Vector.js +0 -37
- package/lib/commonjs/web/tools/Vector.js.map +0 -1
- package/lib/commonjs/web/tools/VelocityTracker.js +0 -85
- package/lib/commonjs/web/tools/VelocityTracker.js.map +0 -1
- package/lib/commonjs/web/tools/WheelEventManager.js +0 -55
- package/lib/commonjs/web/tools/WheelEventManager.js.map +0 -1
- package/lib/commonjs/web/utils.js +0 -235
- package/lib/commonjs/web/utils.js.map +0 -1
- package/lib/module/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/lib/module/v3/hooks/callbacks/stateChangeHandler.js +0 -46
- package/lib/module/v3/hooks/callbacks/stateChangeHandler.js.map +0 -1
- package/lib/module/v3/hooks/callbacks/touchEventHandler.js +0 -18
- package/lib/module/v3/hooks/callbacks/touchEventHandler.js.map +0 -1
- package/lib/module/v3/hooks/callbacks/updateHandler.js +0 -26
- package/lib/module/v3/hooks/callbacks/updateHandler.js.map +0 -1
- package/lib/module/v3/hooks/gestures/fling/FlingProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/longPress/LongPressProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/manual/ManualProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/manual/ManualProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/native/NativeProperties.js +0 -4
- package/lib/module/v3/hooks/gestures/native/NativeProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/pan/PanProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/pinch/PinchProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/pinch/PinchProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/rotation/RotationProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/rotation/RotationProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/tap/TapProperties.js.map +0 -1
- package/lib/typescript/specs/RNGestureHandlerButtonWrapperNativeComponent.d.ts +0 -6
- package/lib/typescript/specs/RNGestureHandlerButtonWrapperNativeComponent.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/stateChangeHandler.d.ts +0 -4
- package/lib/typescript/v3/hooks/callbacks/stateChangeHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/touchEventHandler.d.ts +0 -3
- package/lib/typescript/v3/hooks/callbacks/touchEventHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/updateHandler.d.ts +0 -4
- package/lib/typescript/v3/hooks/callbacks/updateHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/fling/FlingProperties.d.ts +0 -23
- package/lib/typescript/v3/hooks/gestures/fling/FlingProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/hover/HoverProperties.d.ts +0 -18
- package/lib/typescript/v3/hooks/gestures/hover/HoverProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/longPress/LongPressProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/manual/ManualProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/manual/ManualProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/native/NativeProperties.d.ts +0 -16
- package/lib/typescript/v3/hooks/gestures/native/NativeProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/pan/PanProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/pinch/PinchProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/pinch/PinchProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/rotation/RotationProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/rotation/RotationProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/tap/TapProperties.d.ts.map +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperComponentDescriptor.h +0 -32
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperShadowNode.cpp +0 -102
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperShadowNode.h +0 -56
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperState.h +0 -32
- package/src/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/src/v3/hooks/callbacks/stateChangeHandler.ts +0 -70
- package/src/v3/hooks/callbacks/touchEventHandler.ts +0 -32
- package/src/v3/hooks/callbacks/updateHandler.ts +0 -53
- package/src/v3/hooks/gestures/fling/FlingProperties.ts +0 -26
- package/src/v3/hooks/gestures/hover/HoverProperties.ts +0 -22
- package/src/v3/hooks/gestures/manual/ManualProperties.ts +0 -1
- package/src/v3/hooks/gestures/native/NativeProperties.ts +0 -19
- package/src/v3/hooks/gestures/pinch/PinchProperties.ts +0 -1
- package/src/v3/hooks/gestures/rotation/RotationProperties.ts +0 -1
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _State = require("../../State");
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _interfaces = require("../interfaces");
|
|
10
|
-
var _GestureHandler = _interopRequireDefault(require("./GestureHandler"));
|
|
11
|
-
var _types = require("../../v3/types");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const DEFAULT_MIN_POINTERS = 1;
|
|
14
|
-
const DEFAULT_MAX_POINTERS = 10;
|
|
15
|
-
const DEFAULT_MIN_DIST_SQ = _constants.DEFAULT_TOUCH_SLOP * _constants.DEFAULT_TOUCH_SLOP;
|
|
16
|
-
class PanGestureHandler extends _GestureHandler.default {
|
|
17
|
-
velocityX = 0;
|
|
18
|
-
velocityY = 0;
|
|
19
|
-
minDist = undefined;
|
|
20
|
-
minDistSq = DEFAULT_MIN_DIST_SQ;
|
|
21
|
-
activeOffsetXStart = -Number.MAX_SAFE_INTEGER;
|
|
22
|
-
activeOffsetXEnd = Number.MIN_SAFE_INTEGER;
|
|
23
|
-
failOffsetXStart = Number.MIN_SAFE_INTEGER;
|
|
24
|
-
failOffsetXEnd = Number.MAX_SAFE_INTEGER;
|
|
25
|
-
activeOffsetYStart = Number.MAX_SAFE_INTEGER;
|
|
26
|
-
activeOffsetYEnd = Number.MIN_SAFE_INTEGER;
|
|
27
|
-
failOffsetYStart = Number.MIN_SAFE_INTEGER;
|
|
28
|
-
failOffsetYEnd = Number.MAX_SAFE_INTEGER;
|
|
29
|
-
minVelocityX = Number.MAX_SAFE_INTEGER;
|
|
30
|
-
minVelocityY = Number.MAX_SAFE_INTEGER;
|
|
31
|
-
minVelocitySq = Number.MAX_SAFE_INTEGER;
|
|
32
|
-
minPointers = DEFAULT_MIN_POINTERS;
|
|
33
|
-
maxPointers = DEFAULT_MAX_POINTERS;
|
|
34
|
-
startX = 0;
|
|
35
|
-
startY = 0;
|
|
36
|
-
offsetX = 0;
|
|
37
|
-
offsetY = 0;
|
|
38
|
-
lastX = 0;
|
|
39
|
-
lastY = 0;
|
|
40
|
-
activateAfterLongPress = 0;
|
|
41
|
-
activationTimeout = 0;
|
|
42
|
-
enableTrackpadTwoFingerGesture = false;
|
|
43
|
-
endWheelTimeout = 0;
|
|
44
|
-
wheelDevice = _interfaces.WheelDevice.UNDETERMINED;
|
|
45
|
-
hasCustomActivationCriteria = false;
|
|
46
|
-
constructor(delegate) {
|
|
47
|
-
super(delegate);
|
|
48
|
-
this.name = _types.SingleGestureName.Pan;
|
|
49
|
-
}
|
|
50
|
-
updateGestureConfig(config) {
|
|
51
|
-
super.updateGestureConfig(config);
|
|
52
|
-
if (config.minPointers !== undefined) {
|
|
53
|
-
this.minPointers = config.minPointers;
|
|
54
|
-
}
|
|
55
|
-
if (config.maxPointers !== undefined) {
|
|
56
|
-
this.maxPointers = config.maxPointers;
|
|
57
|
-
}
|
|
58
|
-
if (config.minVelocity !== undefined) {
|
|
59
|
-
this.minVelocityX = config.minVelocity;
|
|
60
|
-
this.minVelocityY = config.minVelocity;
|
|
61
|
-
this.hasCustomActivationCriteria = true;
|
|
62
|
-
}
|
|
63
|
-
if (config.minVelocityX !== undefined) {
|
|
64
|
-
this.minVelocityX = config.minVelocityX;
|
|
65
|
-
this.hasCustomActivationCriteria = true;
|
|
66
|
-
}
|
|
67
|
-
if (config.minVelocityY !== undefined) {
|
|
68
|
-
this.minVelocityY = config.minVelocityY;
|
|
69
|
-
this.hasCustomActivationCriteria = true;
|
|
70
|
-
}
|
|
71
|
-
if (config.activateAfterLongPress !== undefined) {
|
|
72
|
-
this.activateAfterLongPress = config.activateAfterLongPress;
|
|
73
|
-
}
|
|
74
|
-
if (config.activeOffsetXStart !== undefined) {
|
|
75
|
-
this.activeOffsetXStart = config.activeOffsetXStart;
|
|
76
|
-
this.hasCustomActivationCriteria = true;
|
|
77
|
-
}
|
|
78
|
-
if (config.activeOffsetXEnd !== undefined) {
|
|
79
|
-
this.activeOffsetXEnd = config.activeOffsetXEnd;
|
|
80
|
-
this.hasCustomActivationCriteria = true;
|
|
81
|
-
}
|
|
82
|
-
if (config.failOffsetXStart !== undefined) {
|
|
83
|
-
this.failOffsetXStart = config.failOffsetXStart;
|
|
84
|
-
this.hasCustomActivationCriteria = true;
|
|
85
|
-
}
|
|
86
|
-
if (config.failOffsetXEnd !== undefined) {
|
|
87
|
-
this.failOffsetXEnd = config.failOffsetXEnd;
|
|
88
|
-
this.hasCustomActivationCriteria = true;
|
|
89
|
-
}
|
|
90
|
-
if (config.activeOffsetYStart !== undefined) {
|
|
91
|
-
this.activeOffsetYStart = config.activeOffsetYStart;
|
|
92
|
-
this.hasCustomActivationCriteria = true;
|
|
93
|
-
}
|
|
94
|
-
if (config.activeOffsetYEnd !== undefined) {
|
|
95
|
-
this.activeOffsetYEnd = config.activeOffsetYEnd;
|
|
96
|
-
this.hasCustomActivationCriteria = true;
|
|
97
|
-
}
|
|
98
|
-
if (config.failOffsetYStart !== undefined) {
|
|
99
|
-
this.failOffsetYStart = config.failOffsetYStart;
|
|
100
|
-
this.hasCustomActivationCriteria = true;
|
|
101
|
-
}
|
|
102
|
-
if (config.failOffsetYEnd !== undefined) {
|
|
103
|
-
this.failOffsetYEnd = config.failOffsetYEnd;
|
|
104
|
-
this.hasCustomActivationCriteria = true;
|
|
105
|
-
}
|
|
106
|
-
if (config.enableTrackpadTwoFingerGesture !== undefined) {
|
|
107
|
-
this.enableTrackpadTwoFingerGesture = config.enableTrackpadTwoFingerGesture;
|
|
108
|
-
}
|
|
109
|
-
if (config.minDist !== undefined) {
|
|
110
|
-
this.minDist = config.minDist;
|
|
111
|
-
this.minDistSq = config.minDist * config.minDist;
|
|
112
|
-
} else if (this.minDist === undefined && this.hasCustomActivationCriteria) {
|
|
113
|
-
this.minDistSq = Number.MAX_SAFE_INTEGER;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
resetConfig() {
|
|
117
|
-
super.resetConfig();
|
|
118
|
-
this.activeOffsetXStart = -Number.MAX_SAFE_INTEGER;
|
|
119
|
-
this.activeOffsetXEnd = Number.MIN_SAFE_INTEGER;
|
|
120
|
-
this.failOffsetXStart = Number.MIN_SAFE_INTEGER;
|
|
121
|
-
this.failOffsetXEnd = Number.MAX_SAFE_INTEGER;
|
|
122
|
-
this.activeOffsetYStart = Number.MAX_SAFE_INTEGER;
|
|
123
|
-
this.activeOffsetYEnd = Number.MIN_SAFE_INTEGER;
|
|
124
|
-
this.failOffsetYStart = Number.MIN_SAFE_INTEGER;
|
|
125
|
-
this.failOffsetYEnd = Number.MAX_SAFE_INTEGER;
|
|
126
|
-
this.minVelocityX = Number.MAX_SAFE_INTEGER;
|
|
127
|
-
this.minVelocityY = Number.MAX_SAFE_INTEGER;
|
|
128
|
-
this.minVelocitySq = Number.MAX_SAFE_INTEGER;
|
|
129
|
-
this.minDist = undefined;
|
|
130
|
-
this.minDistSq = DEFAULT_MIN_DIST_SQ;
|
|
131
|
-
this.minPointers = DEFAULT_MIN_POINTERS;
|
|
132
|
-
this.maxPointers = DEFAULT_MAX_POINTERS;
|
|
133
|
-
this.activateAfterLongPress = 0;
|
|
134
|
-
this.hasCustomActivationCriteria = false;
|
|
135
|
-
}
|
|
136
|
-
transformNativeEvent() {
|
|
137
|
-
const translationX = this.getTranslationX();
|
|
138
|
-
const translationY = this.getTranslationY();
|
|
139
|
-
return {
|
|
140
|
-
...super.transformNativeEvent(),
|
|
141
|
-
translationX: isNaN(translationX) ? 0 : translationX,
|
|
142
|
-
translationY: isNaN(translationY) ? 0 : translationY,
|
|
143
|
-
velocityX: this.velocityX,
|
|
144
|
-
velocityY: this.velocityY,
|
|
145
|
-
stylusData: this.stylusData
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
getTranslationX() {
|
|
149
|
-
return this.lastX - this.startX + this.offsetX;
|
|
150
|
-
}
|
|
151
|
-
getTranslationY() {
|
|
152
|
-
return this.lastY - this.startY + this.offsetY;
|
|
153
|
-
}
|
|
154
|
-
clearActivationTimeout() {
|
|
155
|
-
clearTimeout(this.activationTimeout);
|
|
156
|
-
}
|
|
157
|
-
updateLastCoords() {
|
|
158
|
-
const {
|
|
159
|
-
x,
|
|
160
|
-
y
|
|
161
|
-
} = this.tracker.getAbsoluteCoordsAverage();
|
|
162
|
-
this.lastX = x;
|
|
163
|
-
this.lastY = y;
|
|
164
|
-
}
|
|
165
|
-
updateVelocity(pointerId) {
|
|
166
|
-
const velocities = this.tracker.getVelocity(pointerId);
|
|
167
|
-
this.velocityX = velocities?.x ?? 0;
|
|
168
|
-
this.velocityY = velocities?.y ?? 0;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// Events Handling
|
|
172
|
-
onPointerDown(event) {
|
|
173
|
-
if (!this.isButtonInConfig(event.button)) {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.tracker.addToTracker(event);
|
|
177
|
-
this.stylusData = event.stylusData;
|
|
178
|
-
super.onPointerDown(event);
|
|
179
|
-
this.updateLastCoords();
|
|
180
|
-
this.startX = this.lastX;
|
|
181
|
-
this.startY = this.lastY;
|
|
182
|
-
this.tryBegin(event);
|
|
183
|
-
this.checkBegan();
|
|
184
|
-
}
|
|
185
|
-
onPointerAdd(event) {
|
|
186
|
-
this.tracker.addToTracker(event);
|
|
187
|
-
super.onPointerAdd(event);
|
|
188
|
-
this.tryBegin(event);
|
|
189
|
-
this.offsetX += this.lastX - this.startX;
|
|
190
|
-
this.offsetY += this.lastY - this.startY;
|
|
191
|
-
this.updateLastCoords();
|
|
192
|
-
this.startX = this.lastX;
|
|
193
|
-
this.startY = this.lastY;
|
|
194
|
-
if (this.tracker.trackedPointersCount > this.maxPointers) {
|
|
195
|
-
if (this.state === _State.State.ACTIVE) {
|
|
196
|
-
this.cancel();
|
|
197
|
-
} else {
|
|
198
|
-
this.fail();
|
|
199
|
-
}
|
|
200
|
-
} else {
|
|
201
|
-
this.checkBegan();
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
onPointerUp(event) {
|
|
205
|
-
this.stylusData = event.stylusData;
|
|
206
|
-
super.onPointerUp(event);
|
|
207
|
-
if (this.state === _State.State.ACTIVE) {
|
|
208
|
-
const lastCoords = this.tracker.getAbsoluteCoordsAverage();
|
|
209
|
-
this.lastX = lastCoords.x;
|
|
210
|
-
this.lastY = lastCoords.y;
|
|
211
|
-
}
|
|
212
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
213
|
-
if (this.tracker.trackedPointersCount === 0) {
|
|
214
|
-
this.clearActivationTimeout();
|
|
215
|
-
}
|
|
216
|
-
if (this.state === _State.State.ACTIVE) {
|
|
217
|
-
this.end();
|
|
218
|
-
} else {
|
|
219
|
-
this.resetProgress();
|
|
220
|
-
this.fail();
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
onPointerRemove(event) {
|
|
224
|
-
super.onPointerRemove(event);
|
|
225
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
226
|
-
this.offsetX += this.lastX - this.startX;
|
|
227
|
-
this.offsetY += this.lastY - this.startY;
|
|
228
|
-
this.updateLastCoords();
|
|
229
|
-
this.startX = this.lastX;
|
|
230
|
-
this.startY = this.lastY;
|
|
231
|
-
if (!(this.state === _State.State.ACTIVE && this.tracker.trackedPointersCount < this.minPointers)) {
|
|
232
|
-
this.checkBegan();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
onPointerMove(event) {
|
|
236
|
-
this.tracker.track(event);
|
|
237
|
-
this.stylusData = event.stylusData;
|
|
238
|
-
this.updateLastCoords();
|
|
239
|
-
this.updateVelocity(event.pointerId);
|
|
240
|
-
this.checkBegan();
|
|
241
|
-
super.onPointerMove(event);
|
|
242
|
-
}
|
|
243
|
-
onPointerOutOfBounds(event) {
|
|
244
|
-
if (this.shouldCancelWhenOutside) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
this.tracker.track(event);
|
|
248
|
-
this.stylusData = event.stylusData;
|
|
249
|
-
this.updateLastCoords();
|
|
250
|
-
this.updateVelocity(event.pointerId);
|
|
251
|
-
this.checkBegan();
|
|
252
|
-
if (this.state === _State.State.ACTIVE) {
|
|
253
|
-
super.onPointerOutOfBounds(event);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
scheduleWheelEnd(event) {
|
|
257
|
-
clearTimeout(this.endWheelTimeout);
|
|
258
|
-
this.endWheelTimeout = setTimeout(() => {
|
|
259
|
-
if (this.state === _State.State.ACTIVE) {
|
|
260
|
-
this.end();
|
|
261
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
262
|
-
this.state = _State.State.UNDETERMINED;
|
|
263
|
-
}
|
|
264
|
-
this.wheelDevice = _interfaces.WheelDevice.UNDETERMINED;
|
|
265
|
-
}, 30);
|
|
266
|
-
}
|
|
267
|
-
onWheel(event) {
|
|
268
|
-
if (this.wheelDevice === _interfaces.WheelDevice.MOUSE || !this.enableTrackpadTwoFingerGesture) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
if (this.state === _State.State.UNDETERMINED) {
|
|
272
|
-
this.wheelDevice = event.wheelDeltaY % 120 !== 0 ? _interfaces.WheelDevice.TOUCHPAD : _interfaces.WheelDevice.MOUSE;
|
|
273
|
-
if (this.wheelDevice === _interfaces.WheelDevice.MOUSE) {
|
|
274
|
-
this.scheduleWheelEnd(event);
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
this.tracker.addToTracker(event);
|
|
278
|
-
this.updateLastCoords();
|
|
279
|
-
this.startX = this.lastX;
|
|
280
|
-
this.startY = this.lastY;
|
|
281
|
-
this.begin();
|
|
282
|
-
this.activate();
|
|
283
|
-
}
|
|
284
|
-
this.tracker.track(event);
|
|
285
|
-
this.updateLastCoords();
|
|
286
|
-
this.updateVelocity(event.pointerId);
|
|
287
|
-
this.tryToSendMoveEvent(false, event);
|
|
288
|
-
this.scheduleWheelEnd(event);
|
|
289
|
-
}
|
|
290
|
-
shouldActivate() {
|
|
291
|
-
const dx = this.getTranslationX();
|
|
292
|
-
if (this.activeOffsetXStart !== Number.MAX_SAFE_INTEGER && dx < this.activeOffsetXStart) {
|
|
293
|
-
return true;
|
|
294
|
-
}
|
|
295
|
-
if (this.activeOffsetXEnd !== Number.MIN_SAFE_INTEGER && dx > this.activeOffsetXEnd) {
|
|
296
|
-
return true;
|
|
297
|
-
}
|
|
298
|
-
const dy = this.getTranslationY();
|
|
299
|
-
if (this.activeOffsetYStart !== Number.MAX_SAFE_INTEGER && dy < this.activeOffsetYStart) {
|
|
300
|
-
return true;
|
|
301
|
-
}
|
|
302
|
-
if (this.activeOffsetYEnd !== Number.MIN_SAFE_INTEGER && dy > this.activeOffsetYEnd) {
|
|
303
|
-
return true;
|
|
304
|
-
}
|
|
305
|
-
const distanceSq = dx * dx + dy * dy;
|
|
306
|
-
if (this.minDistSq !== Number.MAX_SAFE_INTEGER && distanceSq >= this.minDistSq) {
|
|
307
|
-
return true;
|
|
308
|
-
}
|
|
309
|
-
const vx = this.velocityX;
|
|
310
|
-
if (this.minVelocityX !== Number.MAX_SAFE_INTEGER && (this.minVelocityX < 0 && vx <= this.minVelocityX || this.minVelocityX >= 0 && this.minVelocityX <= vx)) {
|
|
311
|
-
return true;
|
|
312
|
-
}
|
|
313
|
-
const vy = this.velocityY;
|
|
314
|
-
if (this.minVelocityY !== Number.MAX_SAFE_INTEGER && (this.minVelocityY < 0 && vy <= this.minVelocityY || this.minVelocityY >= 0 && this.minVelocityY <= vy)) {
|
|
315
|
-
return true;
|
|
316
|
-
}
|
|
317
|
-
const velocitySq = vx * vx + vy * vy;
|
|
318
|
-
return this.minVelocitySq !== Number.MAX_SAFE_INTEGER && velocitySq >= this.minVelocitySq;
|
|
319
|
-
}
|
|
320
|
-
shouldFail() {
|
|
321
|
-
const dx = this.getTranslationX();
|
|
322
|
-
const dy = this.getTranslationY();
|
|
323
|
-
const distanceSq = dx * dx + dy * dy;
|
|
324
|
-
if (this.activateAfterLongPress > 0 && distanceSq > DEFAULT_MIN_DIST_SQ) {
|
|
325
|
-
this.clearActivationTimeout();
|
|
326
|
-
return true;
|
|
327
|
-
}
|
|
328
|
-
if (this.failOffsetXStart !== Number.MIN_SAFE_INTEGER && dx < this.failOffsetXStart) {
|
|
329
|
-
return true;
|
|
330
|
-
}
|
|
331
|
-
if (this.failOffsetXEnd !== Number.MAX_SAFE_INTEGER && dx > this.failOffsetXEnd) {
|
|
332
|
-
return true;
|
|
333
|
-
}
|
|
334
|
-
if (this.failOffsetYStart !== Number.MIN_SAFE_INTEGER && dy < this.failOffsetYStart) {
|
|
335
|
-
return true;
|
|
336
|
-
}
|
|
337
|
-
return this.failOffsetYEnd !== Number.MAX_SAFE_INTEGER && dy > this.failOffsetYEnd;
|
|
338
|
-
}
|
|
339
|
-
tryBegin(event) {
|
|
340
|
-
if (this.state === _State.State.UNDETERMINED && this.tracker.trackedPointersCount >= this.minPointers) {
|
|
341
|
-
this.resetProgress();
|
|
342
|
-
this.offsetX = 0;
|
|
343
|
-
this.offsetY = 0;
|
|
344
|
-
this.velocityX = 0;
|
|
345
|
-
this.velocityY = 0;
|
|
346
|
-
this.begin();
|
|
347
|
-
if (this.activateAfterLongPress > 0) {
|
|
348
|
-
this.activationTimeout = setTimeout(() => {
|
|
349
|
-
this.activate();
|
|
350
|
-
}, this.activateAfterLongPress);
|
|
351
|
-
}
|
|
352
|
-
} else {
|
|
353
|
-
this.updateVelocity(event.pointerId);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
checkBegan() {
|
|
357
|
-
if (this.state === _State.State.BEGAN) {
|
|
358
|
-
if (this.shouldFail()) {
|
|
359
|
-
this.fail();
|
|
360
|
-
} else if (this.shouldActivate()) {
|
|
361
|
-
this.activate();
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
activate(force = false) {
|
|
366
|
-
if (this.state !== _State.State.ACTIVE) {
|
|
367
|
-
this.resetProgress();
|
|
368
|
-
}
|
|
369
|
-
super.activate(force);
|
|
370
|
-
}
|
|
371
|
-
onCancel() {
|
|
372
|
-
this.clearActivationTimeout();
|
|
373
|
-
}
|
|
374
|
-
onReset() {
|
|
375
|
-
this.clearActivationTimeout();
|
|
376
|
-
}
|
|
377
|
-
resetProgress() {
|
|
378
|
-
if (this.state === _State.State.ACTIVE) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
this.startX = this.lastX;
|
|
382
|
-
this.startY = this.lastY;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
exports.default = PanGestureHandler;
|
|
386
|
-
//# sourceMappingURL=PanGestureHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_State","require","_constants","_interfaces","_GestureHandler","_interopRequireDefault","_types","e","__esModule","default","DEFAULT_MIN_POINTERS","DEFAULT_MAX_POINTERS","DEFAULT_MIN_DIST_SQ","DEFAULT_TOUCH_SLOP","PanGestureHandler","GestureHandler","velocityX","velocityY","minDist","undefined","minDistSq","activeOffsetXStart","Number","MAX_SAFE_INTEGER","activeOffsetXEnd","MIN_SAFE_INTEGER","failOffsetXStart","failOffsetXEnd","activeOffsetYStart","activeOffsetYEnd","failOffsetYStart","failOffsetYEnd","minVelocityX","minVelocityY","minVelocitySq","minPointers","maxPointers","startX","startY","offsetX","offsetY","lastX","lastY","activateAfterLongPress","activationTimeout","enableTrackpadTwoFingerGesture","endWheelTimeout","wheelDevice","WheelDevice","UNDETERMINED","hasCustomActivationCriteria","constructor","delegate","name","SingleGestureName","Pan","updateGestureConfig","config","minVelocity","resetConfig","transformNativeEvent","translationX","getTranslationX","translationY","getTranslationY","isNaN","stylusData","clearActivationTimeout","clearTimeout","updateLastCoords","x","y","tracker","getAbsoluteCoordsAverage","updateVelocity","pointerId","velocities","getVelocity","onPointerDown","event","isButtonInConfig","button","addToTracker","tryBegin","checkBegan","onPointerAdd","trackedPointersCount","state","State","ACTIVE","cancel","fail","onPointerUp","lastCoords","removeFromTracker","end","resetProgress","onPointerRemove","onPointerMove","track","onPointerOutOfBounds","shouldCancelWhenOutside","scheduleWheelEnd","setTimeout","onWheel","MOUSE","wheelDeltaY","TOUCHPAD","begin","activate","tryToSendMoveEvent","shouldActivate","dx","dy","distanceSq","vx","vy","velocitySq","shouldFail","BEGAN","force","onCancel","onReset","exports"],"sourceRoot":"../../../../src","sources":["web/handlers/PanGestureHandler.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAGA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AAAmD,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnD,MAAMG,oBAAoB,GAAG,CAAC;AAC9B,MAAMC,oBAAoB,GAAG,EAAE;AAC/B,MAAMC,mBAAmB,GAAGC,6BAAkB,GAAGA,6BAAkB;AAEpD,MAAMC,iBAAiB,SAASC,uBAAc,CAAC;EACrDC,SAAS,GAAG,CAAC;EACbC,SAAS,GAAG,CAAC;EAEZC,OAAO,GAAYC,SAAS;EAC5BC,SAAS,GAAGR,mBAAmB;EAE/BS,kBAAkB,GAAG,CAACC,MAAM,CAACC,gBAAgB;EAC7CC,gBAAgB,GAAGF,MAAM,CAACG,gBAAgB;EAC1CC,gBAAgB,GAAGJ,MAAM,CAACG,gBAAgB;EAC1CE,cAAc,GAAGL,MAAM,CAACC,gBAAgB;EAExCK,kBAAkB,GAAGN,MAAM,CAACC,gBAAgB;EAC5CM,gBAAgB,GAAGP,MAAM,CAACG,gBAAgB;EAC1CK,gBAAgB,GAAGR,MAAM,CAACG,gBAAgB;EAC1CM,cAAc,GAAGT,MAAM,CAACC,gBAAgB;EAExCS,YAAY,GAAGV,MAAM,CAACC,gBAAgB;EACtCU,YAAY,GAA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ACD,UAAU,CAAC,CAAC,EAAE;QACrB,IAAI,CAAC3B,IAAI,CAAC,CAAC;MACb,CAAC,MAAM,IAAI,IAAI,CAACoB,cAAc,CAAC,CAAC,EAAE;QAChC,IAAI,CAACF,QAAQ,CAAC,CAAC;MACjB;IACF;EACF;EAEgBA,QAAQA,CAACW,KAAK,GAAG,KAAK,EAAQ;IAC5C,IAAI,IAAI,CAACjC,KAAK,KAAKC,YAAK,CAACC,MAAM,EAAE;MAC/B,IAAI,CAACO,aAAa,CAAC,CAAC;IACtB;IAEA,KAAK,CAACa,QAAQ,CAACW,KAAK,CAAC;EACvB;EAEmBC,QAAQA,CAAA,EAAS;IAClC,IAAI,CAACtD,sBAAsB,CAAC,CAAC;EAC/B;EAEmBuD,OAAOA,CAAA,EAAS;IACjC,IAAI,CAACvD,sBAAsB,CAAC,CAAC;EAC/B;EAEmB6B,aAAaA,CAAA,EAAS;IACvC,IAAI,IAAI,CAACT,KAAK,KAAKC,YAAK,CAACC,MAAM,EAAE;MAC/B;IACF;IAEA,IAAI,CAACpD,MAAM,GAAG,IAAI,CAACI,KAAK;IACxB,IAAI,CAACH,MAAM,GAAG,IAAI,CAACI,KAAK;EAC1B;AACF;AAACiF,OAAA,CAAAlH,OAAA,GAAAK,iBAAA","ignoreList":[]}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _State = require("../../State");
|
|
8
|
-
var _constants = require("../constants");
|
|
9
|
-
var _GestureHandler = _interopRequireDefault(require("./GestureHandler"));
|
|
10
|
-
var _ScaleGestureDetector = _interopRequireDefault(require("../detectors/ScaleGestureDetector"));
|
|
11
|
-
var _types = require("../../v3/types");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
class PinchGestureHandler extends _GestureHandler.default {
|
|
14
|
-
scale = 1;
|
|
15
|
-
velocity = 0;
|
|
16
|
-
startingSpan = 0;
|
|
17
|
-
spanSlop = _constants.DEFAULT_TOUCH_SLOP;
|
|
18
|
-
scaleDetectorListener = {
|
|
19
|
-
onScaleBegin: detector => {
|
|
20
|
-
this.startingSpan = detector.currentSpan;
|
|
21
|
-
return true;
|
|
22
|
-
},
|
|
23
|
-
onScale: detector => {
|
|
24
|
-
const prevScaleFactor = this.scale;
|
|
25
|
-
this.scale *= detector.calculateScaleFactor(this.tracker.trackedPointersCount);
|
|
26
|
-
const delta = detector.timeDelta;
|
|
27
|
-
if (delta > 0) {
|
|
28
|
-
this.velocity = (this.scale - prevScaleFactor) / delta;
|
|
29
|
-
}
|
|
30
|
-
if (Math.abs(this.startingSpan - detector.currentSpan) >= this.spanSlop && this.state === _State.State.BEGAN) {
|
|
31
|
-
this.activate();
|
|
32
|
-
}
|
|
33
|
-
return true;
|
|
34
|
-
},
|
|
35
|
-
onScaleEnd: _detector => {}
|
|
36
|
-
};
|
|
37
|
-
scaleGestureDetector = new _ScaleGestureDetector.default(this.scaleDetectorListener);
|
|
38
|
-
constructor(delegate) {
|
|
39
|
-
super(delegate);
|
|
40
|
-
this.name = _types.SingleGestureName.Pinch;
|
|
41
|
-
}
|
|
42
|
-
init(ref, propsRef, actionType) {
|
|
43
|
-
super.init(ref, propsRef, actionType);
|
|
44
|
-
this.shouldCancelWhenOutside = false;
|
|
45
|
-
}
|
|
46
|
-
transformNativeEvent() {
|
|
47
|
-
return {
|
|
48
|
-
focalX: this.scaleGestureDetector.focusX,
|
|
49
|
-
focalY: this.scaleGestureDetector.focusY,
|
|
50
|
-
velocity: this.velocity,
|
|
51
|
-
scale: this.scale
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
onPointerDown(event) {
|
|
55
|
-
this.tracker.addToTracker(event);
|
|
56
|
-
super.onPointerDown(event);
|
|
57
|
-
}
|
|
58
|
-
onPointerAdd(event) {
|
|
59
|
-
this.tracker.addToTracker(event);
|
|
60
|
-
super.onPointerAdd(event);
|
|
61
|
-
this.tryBegin();
|
|
62
|
-
this.scaleGestureDetector.onTouchEvent(event, this.tracker);
|
|
63
|
-
}
|
|
64
|
-
onPointerUp(event) {
|
|
65
|
-
super.onPointerUp(event);
|
|
66
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
67
|
-
if (this.state !== _State.State.ACTIVE) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
this.scaleGestureDetector.onTouchEvent(event, this.tracker);
|
|
71
|
-
if (this.state === _State.State.ACTIVE) {
|
|
72
|
-
this.end();
|
|
73
|
-
} else {
|
|
74
|
-
this.fail();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
onPointerRemove(event) {
|
|
78
|
-
super.onPointerRemove(event);
|
|
79
|
-
this.scaleGestureDetector.onTouchEvent(event, this.tracker);
|
|
80
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
81
|
-
if (this.state === _State.State.ACTIVE && this.tracker.trackedPointersCount < 2) {
|
|
82
|
-
this.end();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
onPointerMove(event) {
|
|
86
|
-
if (this.tracker.trackedPointersCount < 2) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
this.tracker.track(event);
|
|
90
|
-
this.scaleGestureDetector.onTouchEvent(event, this.tracker);
|
|
91
|
-
super.onPointerMove(event);
|
|
92
|
-
}
|
|
93
|
-
onPointerOutOfBounds(event) {
|
|
94
|
-
if (this.tracker.trackedPointersCount < 2) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this.tracker.track(event);
|
|
98
|
-
this.scaleGestureDetector.onTouchEvent(event, this.tracker);
|
|
99
|
-
super.onPointerOutOfBounds(event);
|
|
100
|
-
}
|
|
101
|
-
tryBegin() {
|
|
102
|
-
if (this.state !== _State.State.UNDETERMINED) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
this.resetProgress();
|
|
106
|
-
this.begin();
|
|
107
|
-
}
|
|
108
|
-
activate(force) {
|
|
109
|
-
if (this.state !== _State.State.ACTIVE) {
|
|
110
|
-
this.resetProgress();
|
|
111
|
-
}
|
|
112
|
-
super.activate(force);
|
|
113
|
-
}
|
|
114
|
-
onReset() {
|
|
115
|
-
this.resetProgress();
|
|
116
|
-
}
|
|
117
|
-
resetProgress() {
|
|
118
|
-
if (this.state === _State.State.ACTIVE) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.velocity = 0;
|
|
122
|
-
this.scale = 1;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
exports.default = PinchGestureHandler;
|
|
126
|
-
//# sourceMappingURL=PinchGestureHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_State","require","_constants","_GestureHandler","_interopRequireDefault","_ScaleGestureDetector","_types","e","__esModule","default","PinchGestureHandler","GestureHandler","scale","velocity","startingSpan","spanSlop","DEFAULT_TOUCH_SLOP","scaleDetectorListener","onScaleBegin","detector","currentSpan","onScale","prevScaleFactor","calculateScaleFactor","tracker","trackedPointersCount","delta","timeDelta","Math","abs","state","State","BEGAN","activate","onScaleEnd","_detector","scaleGestureDetector","ScaleGestureDetector","constructor","delegate","name","SingleGestureName","Pinch","init","ref","propsRef","actionType","shouldCancelWhenOutside","transformNativeEvent","focalX","focusX","focalY","focusY","onPointerDown","event","addToTracker","onPointerAdd","tryBegin","onTouchEvent","onPointerUp","removeFromTracker","pointerId","ACTIVE","end","fail","onPointerRemove","onPointerMove","track","onPointerOutOfBounds","UNDETERMINED","resetProgress","begin","force","onReset","exports"],"sourceRoot":"../../../../src","sources":["web/handlers/PinchGestureHandler.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAD,sBAAA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;IAEA,IAAI,CAACC,aAAa,CAAC,CAAC;IACpB,IAAI,CAACC,KAAK,CAAC,CAAC;EACd;EAEgBtC,QAAQA,CAACuC,KAAe,EAAQ;IAC9C,IAAI,IAAI,CAAC1C,KAAK,KAAKC,YAAK,CAAC+B,MAAM,EAAE;MAC/B,IAAI,CAACQ,aAAa,CAAC,CAAC;IACtB;IAEA,KAAK,CAACrC,QAAQ,CAACuC,KAAK,CAAC;EACvB;EAEmBC,OAAOA,CAAA,EAAS;IACjC,IAAI,CAACH,aAAa,CAAC,CAAC;EACtB;EAEmBA,aAAaA,CAAA,EAAS;IACvC,IAAI,IAAI,CAACxC,KAAK,KAAKC,YAAK,CAAC+B,MAAM,EAAE;MAC/B;IACF;IACA,IAAI,CAACjD,QAAQ,GAAG,CAAC;IACjB,IAAI,CAACD,KAAK,GAAG,CAAC;EAChB;AACF;AAAC8D,OAAA,CAAAjE,OAAA,GAAAC,mBAAA","ignoreList":[]}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _State = require("../../State");
|
|
8
|
-
var _GestureHandler = _interopRequireDefault(require("./GestureHandler"));
|
|
9
|
-
var _RotationGestureDetector = _interopRequireDefault(require("../detectors/RotationGestureDetector"));
|
|
10
|
-
var _types = require("../../v3/types");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const ROTATION_RECOGNITION_THRESHOLD = Math.PI / 36;
|
|
13
|
-
class RotationGestureHandler extends _GestureHandler.default {
|
|
14
|
-
rotation = 0;
|
|
15
|
-
velocity = 0;
|
|
16
|
-
cachedAnchorX = 0;
|
|
17
|
-
cachedAnchorY = 0;
|
|
18
|
-
rotationGestureListener = {
|
|
19
|
-
onRotationBegin: _detector => true,
|
|
20
|
-
onRotation: detector => {
|
|
21
|
-
const previousRotation = this.rotation;
|
|
22
|
-
this.rotation += detector.rotation;
|
|
23
|
-
const delta = detector.timeDelta;
|
|
24
|
-
if (delta > 0) {
|
|
25
|
-
this.velocity = (this.rotation - previousRotation) / delta;
|
|
26
|
-
}
|
|
27
|
-
if (Math.abs(this.rotation) >= ROTATION_RECOGNITION_THRESHOLD && this.state === _State.State.BEGAN) {
|
|
28
|
-
this.activate();
|
|
29
|
-
}
|
|
30
|
-
return true;
|
|
31
|
-
},
|
|
32
|
-
onRotationEnd: _detector => {
|
|
33
|
-
this.end();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
rotationGestureDetector = new _RotationGestureDetector.default(this.rotationGestureListener);
|
|
37
|
-
constructor(delegate) {
|
|
38
|
-
super(delegate);
|
|
39
|
-
this.name = _types.SingleGestureName.Rotation;
|
|
40
|
-
}
|
|
41
|
-
init(ref, propsRef, actionType) {
|
|
42
|
-
super.init(ref, propsRef, actionType);
|
|
43
|
-
this.shouldCancelWhenOutside = false;
|
|
44
|
-
}
|
|
45
|
-
transformNativeEvent() {
|
|
46
|
-
return {
|
|
47
|
-
rotation: this.rotation ? this.rotation : 0,
|
|
48
|
-
anchorX: this.getAnchorX(),
|
|
49
|
-
anchorY: this.getAnchorY(),
|
|
50
|
-
velocity: this.velocity ? this.velocity : 0
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
getAnchorX() {
|
|
54
|
-
const anchorX = this.rotationGestureDetector.anchorX;
|
|
55
|
-
return anchorX ? anchorX : this.cachedAnchorX;
|
|
56
|
-
}
|
|
57
|
-
getAnchorY() {
|
|
58
|
-
const anchorY = this.rotationGestureDetector.anchorY;
|
|
59
|
-
return anchorY ? anchorY : this.cachedAnchorY;
|
|
60
|
-
}
|
|
61
|
-
onPointerDown(event) {
|
|
62
|
-
this.tracker.addToTracker(event);
|
|
63
|
-
super.onPointerDown(event);
|
|
64
|
-
}
|
|
65
|
-
onPointerAdd(event) {
|
|
66
|
-
this.tracker.addToTracker(event);
|
|
67
|
-
super.onPointerAdd(event);
|
|
68
|
-
this.tryBegin();
|
|
69
|
-
this.rotationGestureDetector.onTouchEvent(event, this.tracker);
|
|
70
|
-
}
|
|
71
|
-
onPointerMove(event) {
|
|
72
|
-
if (this.tracker.trackedPointersCount < 2) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (this.getAnchorX()) {
|
|
76
|
-
this.cachedAnchorX = this.getAnchorX();
|
|
77
|
-
}
|
|
78
|
-
if (this.getAnchorY()) {
|
|
79
|
-
this.cachedAnchorY = this.getAnchorY();
|
|
80
|
-
}
|
|
81
|
-
this.tracker.track(event);
|
|
82
|
-
this.rotationGestureDetector.onTouchEvent(event, this.tracker);
|
|
83
|
-
super.onPointerMove(event);
|
|
84
|
-
}
|
|
85
|
-
onPointerOutOfBounds(event) {
|
|
86
|
-
if (this.tracker.trackedPointersCount < 2) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (this.getAnchorX()) {
|
|
90
|
-
this.cachedAnchorX = this.getAnchorX();
|
|
91
|
-
}
|
|
92
|
-
if (this.getAnchorY()) {
|
|
93
|
-
this.cachedAnchorY = this.getAnchorY();
|
|
94
|
-
}
|
|
95
|
-
this.tracker.track(event);
|
|
96
|
-
this.rotationGestureDetector.onTouchEvent(event, this.tracker);
|
|
97
|
-
super.onPointerOutOfBounds(event);
|
|
98
|
-
}
|
|
99
|
-
onPointerUp(event) {
|
|
100
|
-
super.onPointerUp(event);
|
|
101
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
102
|
-
this.rotationGestureDetector.onTouchEvent(event, this.tracker);
|
|
103
|
-
if (this.state !== _State.State.ACTIVE) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (this.state === _State.State.ACTIVE) {
|
|
107
|
-
this.end();
|
|
108
|
-
} else {
|
|
109
|
-
this.fail();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
onPointerRemove(event) {
|
|
113
|
-
super.onPointerRemove(event);
|
|
114
|
-
this.rotationGestureDetector.onTouchEvent(event, this.tracker);
|
|
115
|
-
this.tracker.removeFromTracker(event.pointerId);
|
|
116
|
-
}
|
|
117
|
-
tryBegin() {
|
|
118
|
-
if (this.state !== _State.State.UNDETERMINED) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
this.begin();
|
|
122
|
-
}
|
|
123
|
-
onReset() {
|
|
124
|
-
if (this.state === _State.State.ACTIVE) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
this.rotation = 0;
|
|
128
|
-
this.velocity = 0;
|
|
129
|
-
this.rotationGestureDetector.reset();
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.default = RotationGestureHandler;
|
|
133
|
-
//# sourceMappingURL=RotationGestureHandler.js.map
|