@nativescript-community/ui-drawer 0.0.29 → 0.0.33
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/CHANGELOG.md +38 -0
- package/README.md +149 -90
- package/angular/bundles/nativescript-community-ui-drawer-angular.umd.js +54 -31
- package/angular/esm2015/index.js +1 -1
- package/angular/esm2015/module.js +11 -10
- package/angular/esm2015/nativescript-community-ui-drawer-angular.js +1 -1
- package/angular/fesm2015/nativescript-community-ui-drawer-angular.js +34 -32
- package/angular/module.d.ts +15 -14
- package/angular/package.json +3 -3
- package/index.js +15 -10
- package/package.json +11 -3
- package/vue/index.js +1 -1
- package/angular/bundles/nativescript-community-ui-drawer-angular.umd.min.js +0 -2
- package/pnpm-global/5/node_modules/.modules.yaml +0 -24
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/.pnpm/lock.yaml +0 -19
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
- package/pnpm-global/5/pnpm-lock.yaml +0 -19
- package/pnpm-lock.yaml +0 -16
- package/react/index.d.ts +0 -20
- package/react/index.js +0 -8
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import { View } from '@nativescript/core';
|
2
|
-
import { GestureEventData, GestureTypes } from '@nativescript/core/ui/gestures';
|
3
|
-
export declare function observe(target: View, type: GestureTypes, callback: (args: GestureEventData) => void, context?: any): GesturesObserver;
|
4
|
-
export declare class GesturesObserver {
|
5
|
-
private _callback;
|
6
|
-
private _target;
|
7
|
-
private _context;
|
8
|
-
type: GestureTypes;
|
9
|
-
private nObserver?;
|
10
|
-
get callback(): (args: GestureEventData) => void;
|
11
|
-
get target(): View & {
|
12
|
-
_gestureHandlers?: any;
|
13
|
-
};
|
14
|
-
get context(): any;
|
15
|
-
constructor(target: View, callback: (args: GestureEventData) => void, context: any);
|
16
|
-
disconnect(): void;
|
17
|
-
private _notifyTouch;
|
18
|
-
private _eventData;
|
19
|
-
private _onTargetLoaded;
|
20
|
-
private _onTargetUnloaded;
|
21
|
-
observe(type: GestureTypes): void;
|
22
|
-
private _detach;
|
23
|
-
private onGestureStateChange;
|
24
|
-
private onGestureTouchChange;
|
25
|
-
private _attach;
|
26
|
-
androidOnTouchEvent(motionEvent: android.view.MotionEvent): void;
|
27
|
-
}
|
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.js
DELETED
@@ -1,263 +0,0 @@
|
|
1
|
-
import { GestureTypes, GesturesObserver as NGesturesObserver, TouchAction, toString as gestureToString } from '@nativescript/core/ui/gestures';
|
2
|
-
import { layout } from '@nativescript/core/utils/utils';
|
3
|
-
import { Manager } from './gesturehandler';
|
4
|
-
import { GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureState, HandlerType } from './gesturehandler.common';
|
5
|
-
export function observe(target, type, callback, context) {
|
6
|
-
const observer = new GesturesObserver(target, callback, context);
|
7
|
-
observer.observe(type);
|
8
|
-
return observer;
|
9
|
-
}
|
10
|
-
let TAG = 0;
|
11
|
-
export class GesturesObserver {
|
12
|
-
constructor(target, callback, context) {
|
13
|
-
this._target = target;
|
14
|
-
if (!target['TAP_HANDLER_TAG']) {
|
15
|
-
target['TAP_HANDLER_TAG'] = TAG++;
|
16
|
-
}
|
17
|
-
if (!target['LONGPRESS_HANDLER_TAG']) {
|
18
|
-
target['LONGPRESS_HANDLER_TAG'] = TAG++;
|
19
|
-
}
|
20
|
-
if (!target['DOUBLE_TAP_HANDLER_TAG']) {
|
21
|
-
target['DOUBLE_TAP_HANDLER_TAG'] = TAG++;
|
22
|
-
}
|
23
|
-
this._callback = callback;
|
24
|
-
this._context = context;
|
25
|
-
}
|
26
|
-
get callback() {
|
27
|
-
return this._callback;
|
28
|
-
}
|
29
|
-
get target() {
|
30
|
-
return this._target;
|
31
|
-
}
|
32
|
-
get context() {
|
33
|
-
return this._context;
|
34
|
-
}
|
35
|
-
disconnect() {
|
36
|
-
this._detach();
|
37
|
-
if (this.target) {
|
38
|
-
this.target.off('loaded', this._onTargetLoaded);
|
39
|
-
this.target.off('unloaded', this._onTargetUnloaded);
|
40
|
-
this._onTargetLoaded = null;
|
41
|
-
this._onTargetUnloaded = null;
|
42
|
-
}
|
43
|
-
if (this.target) {
|
44
|
-
const list = this.target.getGestureObservers(this.type);
|
45
|
-
if (list && list.length > 0) {
|
46
|
-
for (let i = 0; i < list.length; i++) {
|
47
|
-
if (list[i].callback === this.callback) {
|
48
|
-
break;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
list.length = 0;
|
52
|
-
if (this.target._gestureHandlers && this.target._gestureHandlers[this.type]) {
|
53
|
-
this.target._gestureHandlers[this.type].detachFromView();
|
54
|
-
delete this.target._gestureHandlers[this.type];
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
if (this.nObserver) {
|
59
|
-
this.nObserver.disconnect();
|
60
|
-
this.nObserver = null;
|
61
|
-
}
|
62
|
-
this._target = null;
|
63
|
-
this._callback = null;
|
64
|
-
this._context = null;
|
65
|
-
}
|
66
|
-
observe(type) {
|
67
|
-
if (this.target) {
|
68
|
-
this.type = type;
|
69
|
-
this._onTargetLoaded = (args) => {
|
70
|
-
this._attach(this.target, type);
|
71
|
-
};
|
72
|
-
this._onTargetUnloaded = (args) => {
|
73
|
-
this._detach();
|
74
|
-
};
|
75
|
-
this.target.on('loaded', this._onTargetLoaded);
|
76
|
-
this.target.on('unloaded', this._onTargetUnloaded);
|
77
|
-
if (this.target.isLoaded) {
|
78
|
-
this._attach(this.target, type);
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
_detach() {
|
83
|
-
this._notifyTouch = false;
|
84
|
-
this._eventData = null;
|
85
|
-
}
|
86
|
-
onGestureStateChange(type, triggerOnstate = -1) {
|
87
|
-
return (event) => {
|
88
|
-
if (triggerOnstate !== -1 && event.data.state !== triggerOnstate) {
|
89
|
-
return;
|
90
|
-
}
|
91
|
-
if (this.callback) {
|
92
|
-
this.callback.call(this._context, Object.assign(Object.assign({ eventName: gestureToString(type), object: event.data.view, type }, event.data), event.data.extraData));
|
93
|
-
}
|
94
|
-
};
|
95
|
-
}
|
96
|
-
onGestureTouchChange(type) {
|
97
|
-
return (event) => {
|
98
|
-
if (this.callback && event.data.state === GestureState.ACTIVE) {
|
99
|
-
this.callback.call(this._context, Object.assign(Object.assign({ eventName: gestureToString(type), object: event.data.view, type }, event.data), event.data.extraData));
|
100
|
-
}
|
101
|
-
};
|
102
|
-
}
|
103
|
-
_attach(target, type) {
|
104
|
-
if (type & GestureTypes.touch) {
|
105
|
-
this._notifyTouch = true;
|
106
|
-
}
|
107
|
-
const manager = Manager.getInstance();
|
108
|
-
if (!target._gestureHandlers) {
|
109
|
-
target._gestureHandlers = {};
|
110
|
-
}
|
111
|
-
let gestureHandler = target._gestureHandlers[type];
|
112
|
-
if (type & GestureTypes.tap) {
|
113
|
-
if (!gestureHandler) {
|
114
|
-
gestureHandler = manager.createGestureHandler(HandlerType.TAP, target['TAP_HANDLER_TAG'], {
|
115
|
-
waitFor: [target['LONGPRESS_HANDLER_TAG'], target['DOUBLE_TAP_HANDLER_TAG']],
|
116
|
-
});
|
117
|
-
gestureHandler.attachToView(target);
|
118
|
-
target._gestureHandlers[type] = gestureHandler;
|
119
|
-
}
|
120
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.tap, GestureState.ACTIVE), this);
|
121
|
-
}
|
122
|
-
if (type & GestureTypes.longPress) {
|
123
|
-
if (!gestureHandler) {
|
124
|
-
gestureHandler = manager.createGestureHandler(HandlerType.LONG_PRESS, target['LONGPRESS_HANDLER_TAG']);
|
125
|
-
gestureHandler.attachToView(target);
|
126
|
-
target._gestureHandlers[type] = gestureHandler;
|
127
|
-
}
|
128
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.longPress, GestureState.ACTIVE), this);
|
129
|
-
}
|
130
|
-
if (type & GestureTypes.doubleTap) {
|
131
|
-
if (!gestureHandler) {
|
132
|
-
gestureHandler = manager.createGestureHandler(HandlerType.TAP, target['DOUBLE_TAP_HANDLER_TAG'], {
|
133
|
-
numberOfTaps: 2,
|
134
|
-
});
|
135
|
-
gestureHandler.attachToView(target);
|
136
|
-
target._gestureHandlers[type] = gestureHandler;
|
137
|
-
}
|
138
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.doubleTap), this);
|
139
|
-
}
|
140
|
-
if (type & GestureTypes.pinch) {
|
141
|
-
if (!gestureHandler) {
|
142
|
-
gestureHandler = manager.createGestureHandler(HandlerType.PINCH, TAG++);
|
143
|
-
gestureHandler.attachToView(target);
|
144
|
-
target._gestureHandlers[type] = gestureHandler;
|
145
|
-
}
|
146
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.pinch), this);
|
147
|
-
gestureHandler.on(GestureHandlerTouchEvent, this.onGestureTouchChange(GestureTypes.pinch), this);
|
148
|
-
}
|
149
|
-
if (type & GestureTypes.swipe) {
|
150
|
-
if (!gestureHandler) {
|
151
|
-
gestureHandler = manager.createGestureHandler(HandlerType.FLING, TAG++);
|
152
|
-
gestureHandler.attachToView(target);
|
153
|
-
target._gestureHandlers[type] = gestureHandler;
|
154
|
-
}
|
155
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.swipe), this);
|
156
|
-
}
|
157
|
-
if (type & GestureTypes.pan) {
|
158
|
-
if (!gestureHandler) {
|
159
|
-
gestureHandler = manager.createGestureHandler(HandlerType.PAN, TAG++, {});
|
160
|
-
gestureHandler.attachToView(target);
|
161
|
-
target._gestureHandlers[type] = gestureHandler;
|
162
|
-
}
|
163
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.pan), this);
|
164
|
-
gestureHandler.on(GestureHandlerTouchEvent, this.onGestureTouchChange(GestureTypes.pan), this);
|
165
|
-
}
|
166
|
-
if (type & GestureTypes.rotation) {
|
167
|
-
if (!gestureHandler) {
|
168
|
-
gestureHandler = manager.createGestureHandler(HandlerType.ROTATION, TAG++, {});
|
169
|
-
gestureHandler.attachToView(target);
|
170
|
-
target._gestureHandlers[type] = gestureHandler;
|
171
|
-
}
|
172
|
-
gestureHandler.on(GestureHandlerStateEvent, this.onGestureStateChange(GestureTypes.rotation), this);
|
173
|
-
gestureHandler.on(GestureHandlerTouchEvent, this.onGestureTouchChange(GestureTypes.rotation), this);
|
174
|
-
}
|
175
|
-
if (type & GestureTypes.touch && global.isIOS) {
|
176
|
-
const nObserver = new NGesturesObserver(target, this.callback, this.context);
|
177
|
-
nObserver.observe(type);
|
178
|
-
this.nObserver = nObserver;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
androidOnTouchEvent(motionEvent) {
|
182
|
-
if (this._notifyTouch) {
|
183
|
-
if (!this._eventData) {
|
184
|
-
this._eventData = new TouchGestureEventData();
|
185
|
-
}
|
186
|
-
this._eventData.prepare(this.target, motionEvent);
|
187
|
-
_executeCallback(this, this._eventData);
|
188
|
-
}
|
189
|
-
}
|
190
|
-
}
|
191
|
-
class Pointer {
|
192
|
-
constructor(id, event) {
|
193
|
-
this.event = event;
|
194
|
-
this.ios = undefined;
|
195
|
-
this.android = id;
|
196
|
-
}
|
197
|
-
getX() {
|
198
|
-
return this.event.getX(this.android) / layout.getDisplayDensity();
|
199
|
-
}
|
200
|
-
getY() {
|
201
|
-
return this.event.getY(this.android) / layout.getDisplayDensity();
|
202
|
-
}
|
203
|
-
}
|
204
|
-
class TouchGestureEventData {
|
205
|
-
constructor() {
|
206
|
-
this.eventName = gestureToString(GestureTypes.touch);
|
207
|
-
this.type = GestureTypes.touch;
|
208
|
-
this.ios = undefined;
|
209
|
-
}
|
210
|
-
prepare(view, e) {
|
211
|
-
this.view = view;
|
212
|
-
this.object = view;
|
213
|
-
this.android = e;
|
214
|
-
this.action = this.getActionType(e);
|
215
|
-
this._activePointers = undefined;
|
216
|
-
this._allPointers = undefined;
|
217
|
-
}
|
218
|
-
getPointerCount() {
|
219
|
-
return this.android.getPointerCount();
|
220
|
-
}
|
221
|
-
getActivePointers() {
|
222
|
-
if (!this._activePointers) {
|
223
|
-
this._activePointers = [new Pointer(this.android.getActionIndex(), this.android)];
|
224
|
-
}
|
225
|
-
return this._activePointers;
|
226
|
-
}
|
227
|
-
getAllPointers() {
|
228
|
-
if (!this._allPointers) {
|
229
|
-
this._allPointers = [];
|
230
|
-
for (let i = 0; i < this.getPointerCount(); i++) {
|
231
|
-
this._allPointers.push(new Pointer(i, this.android));
|
232
|
-
}
|
233
|
-
}
|
234
|
-
return this._allPointers;
|
235
|
-
}
|
236
|
-
getX() {
|
237
|
-
return this.getActivePointers()[0].getX();
|
238
|
-
}
|
239
|
-
getY() {
|
240
|
-
return this.getActivePointers()[0].getY();
|
241
|
-
}
|
242
|
-
getActionType(e) {
|
243
|
-
switch (e.getActionMasked()) {
|
244
|
-
case android.view.MotionEvent.ACTION_DOWN:
|
245
|
-
case android.view.MotionEvent.ACTION_POINTER_DOWN:
|
246
|
-
return TouchAction.down;
|
247
|
-
case android.view.MotionEvent.ACTION_MOVE:
|
248
|
-
return TouchAction.move;
|
249
|
-
case android.view.MotionEvent.ACTION_UP:
|
250
|
-
case android.view.MotionEvent.ACTION_POINTER_UP:
|
251
|
-
return TouchAction.up;
|
252
|
-
case android.view.MotionEvent.ACTION_CANCEL:
|
253
|
-
return TouchAction.cancel;
|
254
|
-
}
|
255
|
-
return '';
|
256
|
-
}
|
257
|
-
}
|
258
|
-
function _executeCallback(observer, args) {
|
259
|
-
if (observer && observer.callback) {
|
260
|
-
observer.callback.call(observer._context, args);
|
261
|
-
}
|
262
|
-
}
|
263
|
-
//# sourceMappingURL=gestures_override.js.map
|
@@ -1,39 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "@nativescript-community/gesturehandler",
|
3
|
-
"version": "0.1.41",
|
4
|
-
"description": "Declarative API exposing platform native touch and gesture system to NativeScript.",
|
5
|
-
"main": "gesturehandler",
|
6
|
-
"sideEffects": false,
|
7
|
-
"typings": "gesturehandler.d.ts",
|
8
|
-
"nativescript": {
|
9
|
-
"platforms": {
|
10
|
-
"android": "6.2.1",
|
11
|
-
"ios": "6.2.1"
|
12
|
-
}
|
13
|
-
},
|
14
|
-
"keywords": [
|
15
|
-
"NativeScript",
|
16
|
-
"JavaScript",
|
17
|
-
"iOS",
|
18
|
-
"Android",
|
19
|
-
"Vue",
|
20
|
-
"preview|https://raw.githubusercontent.com/nativescript-community/gesturehandler/master/images/demo.gif"
|
21
|
-
],
|
22
|
-
"author": {
|
23
|
-
"name": "Martin Guillon",
|
24
|
-
"email": "martin.guillon@akylas.fr"
|
25
|
-
},
|
26
|
-
"bugs": {
|
27
|
-
"url": "https://github.com/nativescript-community/gesturehandler/issues"
|
28
|
-
},
|
29
|
-
"license": "Apache-2.0",
|
30
|
-
"repository": {
|
31
|
-
"type": "git",
|
32
|
-
"url": "https://github.com/nativescript-community/gesturehandler"
|
33
|
-
},
|
34
|
-
"bootstrapper": "nativescript-plugin-seed",
|
35
|
-
"dependencies": {
|
36
|
-
"@nativescript-community/observable": "^2.0.8"
|
37
|
-
},
|
38
|
-
"gitHead": "670c68d7f27a5213f2af8bf20850fd06dc2fafe1"
|
39
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
package com.nativescript.gesturehandler;
|
2
|
-
|
3
|
-
import android.content.Context;
|
4
|
-
import android.view.ViewGroup;
|
5
|
-
import android.os.IBinder;
|
6
|
-
import android.view.View;
|
7
|
-
import android.view.KeyEvent;
|
8
|
-
import android.util.AttributeSet;
|
9
|
-
import android.view.inputmethod.InputMethodManager;
|
10
|
-
import android.util.Log;
|
11
|
-
|
12
|
-
import com.swmansion.gesturehandler.GestureHandler;
|
13
|
-
|
14
|
-
import java.util.HashMap;
|
15
|
-
|
16
|
-
public class GestureHandlerInteractionController implements com.swmansion.gesturehandler.GestureHandlerInteractionController {
|
17
|
-
private HashMap<Number, int[]> mWaitForRelations = new HashMap();
|
18
|
-
private HashMap<Number, int[]> mSimultaneousRelations = new HashMap();
|
19
|
-
|
20
|
-
public GestureHandlerInteractionController() {
|
21
|
-
super();
|
22
|
-
}
|
23
|
-
|
24
|
-
public void dropRelationsForHandlerWithTag(int handlerTag) {
|
25
|
-
mWaitForRelations.remove(handlerTag);
|
26
|
-
mSimultaneousRelations.remove(handlerTag);
|
27
|
-
}
|
28
|
-
|
29
|
-
public void configureInteractions(com.swmansion.gesturehandler.GestureHandler handler, int[] waitFor,
|
30
|
-
int[] simultaneousHandlers) {
|
31
|
-
handler.setInteractionController(this);
|
32
|
-
if (waitFor != null) {
|
33
|
-
mWaitForRelations.put(handler.getTag(), waitFor);
|
34
|
-
}
|
35
|
-
if (simultaneousHandlers != null) {
|
36
|
-
mSimultaneousRelations.put(handler.getTag(), simultaneousHandlers);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
public boolean shouldWaitForHandlerFailure(GestureHandler handler, GestureHandler otherHandler) {
|
41
|
-
int[] waitForTags = mWaitForRelations.get(handler.getTag());
|
42
|
-
if (waitForTags != null) {
|
43
|
-
for (int i = 0; i < waitForTags.length; i++) {
|
44
|
-
if (waitForTags[i] == otherHandler.getTag()) {
|
45
|
-
return true;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
return false;
|
50
|
-
}
|
51
|
-
|
52
|
-
public boolean shouldRequireHandlerToWaitForFailure(GestureHandler handler, GestureHandler otherHandler) {
|
53
|
-
return false;
|
54
|
-
}
|
55
|
-
|
56
|
-
public boolean shouldHandlerBeCancelledBy(GestureHandler handler, GestureHandler otherHandler) {
|
57
|
-
return false;
|
58
|
-
}
|
59
|
-
|
60
|
-
public boolean shouldRecognizeSimultaneously(GestureHandler handler, GestureHandler otherHandler) {
|
61
|
-
int[] simultHandlerTags = mSimultaneousRelations.get(handler.getTag());
|
62
|
-
if (GestureHandler.debug) {
|
63
|
-
Log.d("JS", "GestureHandlerInteractionController shouldRecognizeSimultaneously " + handler + " " + otherHandler + " " + simultHandlerTags);
|
64
|
-
}
|
65
|
-
if (simultHandlerTags != null) {
|
66
|
-
for (int i = 0; i < simultHandlerTags.length; i++) {
|
67
|
-
if (simultHandlerTags[i] == otherHandler.getTag()) {
|
68
|
-
return true;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
}
|
72
|
-
return false;
|
73
|
-
}
|
74
|
-
|
75
|
-
public void reset() {
|
76
|
-
mWaitForRelations.clear();
|
77
|
-
mSimultaneousRelations.clear();
|
78
|
-
}
|
79
|
-
}
|
@@ -1,169 +0,0 @@
|
|
1
|
-
package com.nativescript.gesturehandler;
|
2
|
-
|
3
|
-
import android.content.Context;
|
4
|
-
import android.view.MotionEvent;
|
5
|
-
import android.view.View;
|
6
|
-
import android.view.ViewGroup;
|
7
|
-
import android.util.Log;
|
8
|
-
|
9
|
-
import org.nativescript.widgets.ItemSpec;
|
10
|
-
import org.nativescript.widgets.GridUnitType;
|
11
|
-
|
12
|
-
import com.swmansion.gesturehandler.GestureHandlerOrchestrator;
|
13
|
-
import com.swmansion.gesturehandler.GestureHandlerRegistryImpl;
|
14
|
-
import com.swmansion.gesturehandler.PointerEventsConfig;
|
15
|
-
import com.swmansion.gesturehandler.GestureHandler;
|
16
|
-
import com.swmansion.gesturehandler.ViewConfigurationHelper;
|
17
|
-
|
18
|
-
public class PageLayout extends org.nativescript.widgets.GridLayout {
|
19
|
-
public PageLayout(Context context) {
|
20
|
-
super(context);
|
21
|
-
addRow(new ItemSpec(1, GridUnitType.auto));
|
22
|
-
addRow(new ItemSpec(1, GridUnitType.star));
|
23
|
-
}
|
24
|
-
private final static int GESTURE_HANDLER_TAG = -12345;
|
25
|
-
|
26
|
-
private GestureHandlerOrchestrator mOrchestrator;
|
27
|
-
private GestureHandlerRegistryImpl mRegistry;
|
28
|
-
private ViewConfigurationHelper configurationHelper;
|
29
|
-
RootViewGestureHandler rootGestureHandler;
|
30
|
-
|
31
|
-
private boolean mShouldIntercept = false;
|
32
|
-
private boolean mPassingTouch = false;
|
33
|
-
private boolean mDispatchToOrchestra = true;
|
34
|
-
|
35
|
-
public void setShouldIntercept(boolean value) {
|
36
|
-
if (GestureHandler.debug) {
|
37
|
-
Log.d("JS", "PageLayout setShouldIntercept " + value);
|
38
|
-
}
|
39
|
-
this.mShouldIntercept = value;
|
40
|
-
}
|
41
|
-
|
42
|
-
public void setPassingTouch(boolean value) {
|
43
|
-
this.mPassingTouch = value;
|
44
|
-
}
|
45
|
-
|
46
|
-
public void setDispatchToOrchestra(boolean value) {
|
47
|
-
if (GestureHandler.debug) {
|
48
|
-
Log.d("JS", "PageLayout setDispatchToOrchestra " + value);
|
49
|
-
}
|
50
|
-
this.mDispatchToOrchestra = value;
|
51
|
-
}
|
52
|
-
|
53
|
-
public GestureHandlerRegistryImpl registry() {
|
54
|
-
return this.mRegistry;
|
55
|
-
}
|
56
|
-
// requestDisallowInterceptTouchEvent(disallowIntercept) {
|
57
|
-
// console.log('requestDisallowInterceptTouchEvent');
|
58
|
-
// if (this.mGestureRootHelper != null) {
|
59
|
-
// this.mGestureRootHelper.requestDisallowInterceptTouchEvent(disallowIntercept);
|
60
|
-
// }
|
61
|
-
// super.requestDisallowInterceptTouchEvent(disallowIntercept);
|
62
|
-
// }
|
63
|
-
|
64
|
-
// dispatchTouchEvent(ev) {
|
65
|
-
// if (this.mGestureRootHelper != null && this.mGestureRootHelper.dispatchTouchEvent(ev)) {
|
66
|
-
// return true;
|
67
|
-
// }
|
68
|
-
// return super.dispatchTouchEvent(ev);
|
69
|
-
// }
|
70
|
-
public void tryCancelAllHandlers() {
|
71
|
-
if (GestureHandler.debug) {
|
72
|
-
Log.d("JS", "PageLayout tryCancelAllHandlers ");
|
73
|
-
}
|
74
|
-
// In order to cancel handlers we activate handler that is hooked to the root view
|
75
|
-
if (this.rootGestureHandler != null && this.rootGestureHandler.getState() == com.swmansion.gesturehandler.GestureHandler.STATE_BEGAN) {
|
76
|
-
// Try activate main JS handler
|
77
|
-
this.rootGestureHandler.activate();
|
78
|
-
this.rootGestureHandler.end();
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) {
|
83
|
-
if (GestureHandler.debug) {
|
84
|
-
Log.d("JS", "PageLayout requestDisallowInterceptTouchEvent " + disallowIntercept + " " + this.mPassingTouch);
|
85
|
-
}
|
86
|
-
// If this method gets called it means that some native view is attempting to grab lock for
|
87
|
-
// touch event delivery. In that case we cancel all gesture recognizers
|
88
|
-
if (this.mOrchestrator != null && !this.mPassingTouch) {
|
89
|
-
// if we are in the process of delivering touch events via GH orchestrator, we don't want to
|
90
|
-
// treat it as a native gesture capturing the lock
|
91
|
-
this.tryCancelAllHandlers();
|
92
|
-
}
|
93
|
-
super.requestDisallowInterceptTouchEvent(disallowIntercept);
|
94
|
-
}
|
95
|
-
|
96
|
-
public boolean dispatchTouchEventToOrchestrator(MotionEvent ev) {
|
97
|
-
if (this.mOrchestrator != null) {
|
98
|
-
this.mPassingTouch = true;
|
99
|
-
this.mOrchestrator.onTouchEvent(ev);
|
100
|
-
this.mPassingTouch = false;
|
101
|
-
}
|
102
|
-
if (GestureHandler.debug) {
|
103
|
-
Log.d("JS", "PageLayout dispatchTouchEventToOrchestrator " + this.mShouldIntercept);
|
104
|
-
}
|
105
|
-
return this.mShouldIntercept;
|
106
|
-
}
|
107
|
-
|
108
|
-
public boolean dispatchTouchEvent(MotionEvent ev) {
|
109
|
-
if (GestureHandler.debug) {
|
110
|
-
Log.d("JS", "PageLayout dispatchTouchEvent " + this.mDispatchToOrchestra);
|
111
|
-
}
|
112
|
-
if (this.mDispatchToOrchestra && this.dispatchTouchEventToOrchestrator(ev)) {
|
113
|
-
return true;
|
114
|
-
}
|
115
|
-
final boolean handled = super.dispatchTouchEvent(ev);
|
116
|
-
if (GestureHandler.debug) {
|
117
|
-
Log.d("JS", "PageLayout dispatchTouchEvent to children " + handled);
|
118
|
-
}
|
119
|
-
// we need to always return true or gestures wont work on layouts because they don't handle touch so dispatchTouchEvent returns false
|
120
|
-
return true;
|
121
|
-
}
|
122
|
-
|
123
|
-
// onInterceptTouchEvent(ev: android.view.MotionEvent) {
|
124
|
-
// return this.mShouldIntercept;
|
125
|
-
// }
|
126
|
-
|
127
|
-
// onTouchEvent(ev: android.view.MotionEvent) {
|
128
|
-
// console.log('onTouchEvent', ev);
|
129
|
-
// this.mOrchestrator.onTouchEvent(ev);
|
130
|
-
// return super.onTouchEvent(ev);
|
131
|
-
// }
|
132
|
-
|
133
|
-
/**
|
134
|
-
* This method is used to enable root view to start processing touch events through the gesture
|
135
|
-
* handler library logic. Unless this method is called (which happens as a result of instantiating
|
136
|
-
* new gesture handler from JS) the root view component will just proxy all touch related methods
|
137
|
-
* to its superclass. Thus in the "disabled" state all touch related events will fallback to
|
138
|
-
* default behavior.
|
139
|
-
*/
|
140
|
-
public void initialize() {
|
141
|
-
this.mRegistry = new com.swmansion.gesturehandler.GestureHandlerRegistryImpl();
|
142
|
-
this.configurationHelper = new com.swmansion.gesturehandler.ViewConfigurationHelper() {
|
143
|
-
public PointerEventsConfig getPointerEventsConfigForView(View view) {
|
144
|
-
return view.isEnabled() ? com.swmansion.gesturehandler.PointerEventsConfig.AUTO : com.swmansion.gesturehandler.PointerEventsConfig.NONE;
|
145
|
-
}
|
146
|
-
|
147
|
-
public boolean isViewClippingChildren(ViewGroup parent) {
|
148
|
-
return false;
|
149
|
-
}
|
150
|
-
|
151
|
-
public View getChildInDrawingOrderAtIndex(ViewGroup parent, int index) {
|
152
|
-
return parent.getChildAt(index);
|
153
|
-
}
|
154
|
-
};
|
155
|
-
this.mOrchestrator = new com.swmansion.gesturehandler.GestureHandlerOrchestrator(this, this.mRegistry, this.configurationHelper);
|
156
|
-
this.mOrchestrator.setMinimumAlphaForTraversal(0.01f);
|
157
|
-
|
158
|
-
this.rootGestureHandler = new RootViewGestureHandler();
|
159
|
-
this.rootGestureHandler.setTag(GESTURE_HANDLER_TAG);
|
160
|
-
this.mRegistry.registerHandler(this.rootGestureHandler);
|
161
|
-
this.mRegistry.attachHandlerToView(GESTURE_HANDLER_TAG, this);
|
162
|
-
}
|
163
|
-
|
164
|
-
public void tearDown() {
|
165
|
-
this.configurationHelper = null;
|
166
|
-
this.mOrchestrator = null;
|
167
|
-
this.mRegistry = null;
|
168
|
-
}
|
169
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
package com.nativescript.gesturehandler;
|
2
|
-
|
3
|
-
import android.content.Context;
|
4
|
-
import android.view.MotionEvent;
|
5
|
-
import com.swmansion.gesturehandler.GestureHandler;
|
6
|
-
import android.os.SystemClock;
|
7
|
-
import android.view.View;
|
8
|
-
import android.util.Log;
|
9
|
-
|
10
|
-
public class RootViewGestureHandler extends GestureHandler {
|
11
|
-
private static final String TAG = "RootViewGestureHandler";
|
12
|
-
public RootViewGestureHandler() {
|
13
|
-
super();
|
14
|
-
}
|
15
|
-
|
16
|
-
public PageLayout getView() {
|
17
|
-
return (PageLayout)super.getView();
|
18
|
-
}
|
19
|
-
protected void onHandle(MotionEvent event) {
|
20
|
-
final int currentState = getState();
|
21
|
-
if (currentState == GestureHandler.STATE_UNDETERMINED) {
|
22
|
-
begin();
|
23
|
-
getView().setShouldIntercept(false);
|
24
|
-
}
|
25
|
-
if (event.getActionMasked() == MotionEvent.ACTION_UP) {
|
26
|
-
end();
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
protected void onCancel() {
|
31
|
-
if (GestureHandler.debug) {
|
32
|
-
Log.d("JS", "RootViewGestureHandler onCancel");
|
33
|
-
}
|
34
|
-
getView().setShouldIntercept(true);
|
35
|
-
final long time = SystemClock.uptimeMillis();
|
36
|
-
final MotionEvent event = MotionEvent.obtain(time, time, MotionEvent.ACTION_CANCEL, 0, 0, 0);
|
37
|
-
event.setAction(MotionEvent.ACTION_CANCEL);
|
38
|
-
getView().setDispatchToOrchestra(false);
|
39
|
-
getView().dispatchTouchEvent(event);
|
40
|
-
getView().setDispatchToOrchestra(true);
|
41
|
-
}
|
42
|
-
// public boolean shouldRecognizeSimultaneously(GestureHandler handler) {
|
43
|
-
// return true;
|
44
|
-
// }
|
45
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
package com.swmansion.gesturehandler;
|
2
|
-
|
3
|
-
public abstract class BaseGestureHandlerInteractionController implements GestureHandlerInteractionController {
|
4
|
-
|
5
|
-
@Override
|
6
|
-
public boolean shouldWaitForHandlerFailure(GestureHandler handler, GestureHandler otherHandler) {
|
7
|
-
return false;
|
8
|
-
}
|
9
|
-
|
10
|
-
@Override
|
11
|
-
public boolean shouldRequireHandlerToWaitForFailure(GestureHandler handler, GestureHandler otherHandler) {
|
12
|
-
return false;
|
13
|
-
}
|
14
|
-
|
15
|
-
@Override
|
16
|
-
public boolean shouldRecognizeSimultaneously(GestureHandler handler, GestureHandler otherHandler) {
|
17
|
-
return false;
|
18
|
-
}
|
19
|
-
}
|