@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.
Files changed (193) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +149 -90
  3. package/angular/bundles/nativescript-community-ui-drawer-angular.umd.js +54 -31
  4. package/angular/esm2015/index.js +1 -1
  5. package/angular/esm2015/module.js +11 -10
  6. package/angular/esm2015/nativescript-community-ui-drawer-angular.js +1 -1
  7. package/angular/fesm2015/nativescript-community-ui-drawer-angular.js +34 -32
  8. package/angular/module.d.ts +15 -14
  9. package/angular/package.json +3 -3
  10. package/index.js +15 -10
  11. package/package.json +11 -3
  12. package/vue/index.js +1 -1
  13. package/angular/bundles/nativescript-community-ui-drawer-angular.umd.min.js +0 -2
  14. package/pnpm-global/5/node_modules/.modules.yaml +0 -24
  15. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
  16. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
  17. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
  18. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
  19. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
  20. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
  21. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
  22. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
  23. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
  24. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
  25. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
  26. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
  27. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
  28. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
  29. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  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/PinchGestureHandler.java +0 -138
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  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/ScaleGestureDetector.java +0 -597
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
  86. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
  87. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
  88. 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
  89. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
  90. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  91. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/LICENSE +0 -201
  92. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/README.md +0 -17
  93. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  94. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.js +0 -37
  95. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  96. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  97. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/package.json +0 -31
  98. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  99. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/LICENSE +0 -201
  100. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/README.md +0 -17
  101. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  102. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.js +0 -37
  103. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  104. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  105. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/package.json +0 -31
  106. package/pnpm-global/5/node_modules/.pnpm/lock.yaml +0 -19
  107. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  108. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/LICENSE +0 -201
  109. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/README.md +0 -17
  110. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  111. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.js +0 -37
  112. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  113. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  114. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/package.json +0 -31
  115. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
  116. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
  117. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
  118. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
  119. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
  120. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
  121. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
  122. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
  123. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
  124. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
  125. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
  126. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
  127. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
  128. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
  129. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
  130. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
  131. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
  132. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
  133. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
  134. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
  135. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
  136. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
  137. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
  138. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
  139. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
  140. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
  141. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
  142. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
  143. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
  144. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
  145. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
  146. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
  147. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
  148. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
  149. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
  150. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
  151. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
  152. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
  153. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
  154. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
  155. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
  156. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
  157. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
  158. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
  159. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
  160. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
  161. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
  162. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
  163. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
  164. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
  165. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
  166. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
  167. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
  168. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
  169. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
  170. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
  171. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
  172. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
  173. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
  174. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
  175. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
  176. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
  177. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
  178. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
  179. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
  180. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
  181. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
  182. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
  183. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
  184. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
  185. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
  186. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
  187. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
  188. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
  189. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
  190. package/pnpm-global/5/pnpm-lock.yaml +0 -19
  191. package/pnpm-lock.yaml +0 -16
  192. package/react/index.d.ts +0 -20
  193. package/react/index.js +0 -8
@@ -1,169 +0,0 @@
1
- #import "GestureHandlerManager.h"
2
-
3
- #import "GestureHandlerState.h"
4
- #import "GestureHandler.h"
5
- #import "GestureHandlerRegistry.h"
6
- #import "RootViewGestureRecognizer.h"
7
-
8
- #import "PanHandler.h"
9
- #import "TapHandler.h"
10
- #import "FlingHandler.h"
11
- #import "LongPressHandler.h"
12
- #import "NativeViewHandler.h"
13
- #import "PinchHandler.h"
14
- #import "RotationHandler.h"
15
- #import "ForceTouchHandler.h"
16
-
17
-
18
- @interface GestureHandlerManager ()
19
-
20
- @end
21
-
22
- @implementation GestureHandlerManager
23
- {
24
- GestureHandlerRegistry *_registry;
25
- NSMutableSet<UIView*> *_rootViews;
26
- }
27
-
28
- - (instancetype)init
29
- {
30
- if ((self = [super init])) {
31
- _registry = [GestureHandlerRegistry new];
32
- _rootViews = [NSMutableSet new];
33
- }
34
- return self;
35
- }
36
-
37
- - (GestureHandler*)createGestureHandler:(NSString *)handlerName
38
- tag:(NSNumber *)handlerTag
39
- config:(NSDictionary *)config
40
- {
41
- static NSDictionary *map;
42
- static dispatch_once_t mapToken;
43
- dispatch_once(&mapToken, ^{
44
- map = @{
45
- @"pan" : [PanGestureHandler class],
46
- @"tap" : [TapGestureHandler class],
47
- @"fling" : [FlingGestureHandler class],
48
- @"longPress": [LongPressGestureHandler class],
49
- @"nativeView": [NativeViewGestureHandler class],
50
- @"pinch": [PinchGestureHandler class],
51
- @"rotation": [RotationGestureHandler class],
52
- @"forceTouch": [ForceTouchHandler class],
53
- };
54
- });
55
-
56
- Class nodeClass = map[handlerName];
57
- if (!nodeClass) {
58
- NSLog(@"Gesture handler type %@ is not supported", handlerName);
59
- return nil;
60
- }
61
-
62
- GestureHandler *gestureHandler = [[nodeClass alloc] initWithTag:handlerTag];
63
- [gestureHandler configure:config];
64
- [_registry registerGestureHandler:gestureHandler];
65
- return gestureHandler;
66
- // __weak id<GestureHandlerEventEmitter> emitter = self;
67
- // gestureHandler.emitter = emitter;
68
- }
69
-
70
-
71
- - (void)attachGestureHandler:(nonnull NSNumber *)handlerTag
72
- toView:(nonnull UIView *)view
73
- {
74
- [_registry attachHandlerWithTag:handlerTag toView:view];
75
-
76
- // register root view if not already there
77
- // [self registerRootViewIfNeeded:view];
78
- }
79
-
80
- - (void)updateGestureHandler:(NSNumber *)handlerTag config:(NSDictionary *)config
81
- {
82
- GestureHandler *handler = [_registry handlerWithTag:handlerTag];
83
- [handler configure:config];
84
- }
85
-
86
- - (void)dropGestureHandler:(NSNumber *)handlerTag
87
- {
88
- [_registry dropHandlerWithTag:handlerTag];
89
- }
90
-
91
- //- (void)handleSetJSResponder:(NSNumber *)viewTag blockNativeResponder:(NSNumber *)blockNativeResponder
92
- //{
93
- // if ([blockNativeResponder boolValue]) {
94
- // for (RCTRootView *rootView in _rootViews) {
95
- // for (UIGestureRecognizer *recognizer in rootView.gestureRecognizers) {
96
- // if ([recognizer isKindOfClass:[RNRootViewGestureRecognizer class]]) {
97
- // [(RNRootViewGestureRecognizer *)recognizer blockOtherRecognizers];
98
- // }
99
- // }
100
- // }
101
- // }
102
- //}
103
-
104
- //- (void)handleClearJSResponder
105
- //{
106
- // // ignore...
107
- //}
108
-
109
- #pragma mark Root Views Management
110
-
111
- //- (void)registerRootViewIfNeeded:(UIView*)childView
112
- //{
113
- // UIView *parent = childView;
114
- // while (parent != nil && ![parent isKindOfClass:[RCTRootView class]]) parent = parent.superview;
115
- //
116
- // RootView *rootView = (RCTRootView *)parent;
117
- // UIView *rootContentView = rootView.contentView;
118
- // if (rootContentView != nil && ![_rootViews containsObject:rootContentView]) {
119
- // LifecycleLog(@"[GESTURE HANDLER] Initialize gesture handler for root view %@", rootContentView);
120
- // [_rootViews addObject:rootContentView];
121
- // RootViewGestureRecognizer *recognizer = [RNRootViewGestureRecognizer new];
122
- // recognizer.delegate = self;
123
- // rootContentView.userInteractionEnabled = YES;
124
- // [rootContentView addGestureRecognizer:recognizer];
125
- // }
126
- //}
127
-
128
- - (void)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
129
- didActivateInRootView:(UIView *)rootContentView
130
- {
131
- // Cancel touches in RN's root view in order to cancel all in-js recognizers
132
-
133
- // As scroll events are special-cased in RN responder implementation and sending them would
134
- // trigger JS responder change, we don't cancel touches if the handler that got activated is
135
- // a scroll recognizer. This way root view will keep sending touchMove and touchEnd events
136
- // and therefore allow JS responder to properly release the responder at the end of the touch
137
- // stream.
138
- // NOTE: this is not a proper fix and solving this problem requires upstream fixes to RN. In
139
- // particular if we have one PanHandler and ScrollView that can work simultaniously then when
140
- // the Pan handler activates it would still tigger cancel events.
141
- // Once the upstream fix lands the line below along with this comment can be removed
142
- if ([gestureRecognizer.view isKindOfClass:[UIScrollView class]]) return;
143
-
144
- // UIView *parent = rootContentView.superview;
145
- // if ([parent isKindOfClass:[RCTRootView class]]) {
146
- // [(RCTRootView*)parent cancelTouches];
147
- // }
148
- }
149
-
150
- - (void)dealloc
151
- {
152
- // if ([_rootViews count] > 0) {
153
- // LifecycleLog(@"[GESTURE HANDLER] Tearing down gesture handler registered for views %@", _rootViews);
154
- // }
155
- }
156
-
157
- //#pragma mark Events
158
-
159
- //- (void)sendTouchEvent:(GestureHandlerEvent *)event
160
- //{
161
- //// [_eventDispatcher sendEvent:event];
162
- //}
163
- //
164
- //- (void)sendStateChangeEvent:(GestureHandlerStateChange *)event
165
- //{
166
- //// [_eventDispatcher sendEvent:event];
167
- //}
168
-
169
- @end
@@ -1,18 +0,0 @@
1
- //
2
- // GestureHandlerRegistry.h
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "GestureHandler.h"
10
-
11
- @interface GestureHandlerRegistry : NSObject
12
-
13
- - (nullable GestureHandler *)handlerWithTag:(nonnull NSNumber *)handlerTag;
14
- - (void)registerGestureHandler:(nonnull GestureHandler *)gestureHandler;
15
- - (void)attachHandlerWithTag:(nonnull NSNumber *)handlerTag toView:(nonnull UIView *)view;
16
- - (void)dropHandlerWithTag:(nonnull NSNumber *)handlerTag;
17
-
18
- @end
@@ -1,49 +0,0 @@
1
- //
2
- // RNGestureHandlerRegistry.m
3
- // RNGestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "GestureHandlerRegistry.h"
10
-
11
-
12
- @implementation GestureHandlerRegistry {
13
- NSMutableDictionary<NSNumber *, GestureHandler *> *_handlers;
14
- }
15
-
16
- - (instancetype)init
17
- {
18
- if ((self = [super init])) {
19
- _handlers = [NSMutableDictionary new];
20
- }
21
- return self;
22
- }
23
-
24
- - (GestureHandler *)handlerWithTag:(NSNumber *)handlerTag
25
- {
26
- return _handlers[handlerTag];
27
- }
28
-
29
- - (void)registerGestureHandler:(GestureHandler *)gestureHandler
30
- {
31
- _handlers[gestureHandler.tag] = gestureHandler;
32
- }
33
-
34
- - (void)attachHandlerWithTag:(NSNumber *)handlerTag toView:(UIView *)view
35
- {
36
- GestureHandler *handler = _handlers[handlerTag];
37
- NSAssert(handler != nil, @"Handler for tag %@ does not exists", handlerTag);
38
- [handler unbindFromView];
39
- [handler bindToView:view];
40
- }
41
-
42
- - (void)dropHandlerWithTag:(NSNumber *)handlerTag
43
- {
44
- GestureHandler *handler = _handlers[handlerTag];
45
- [handler unbindFromView];
46
- [_handlers removeObjectForKey:handlerTag];
47
- }
48
-
49
- @end
@@ -1,10 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- typedef NS_ENUM(NSInteger, GestureHandlerState) {
4
- GestureHandlerStateUndetermined = 0,
5
- GestureHandlerStateFailed,
6
- GestureHandlerStateBegan,
7
- GestureHandlerStateCancelled,
8
- GestureHandlerStateActive,
9
- GestureHandlerStateEnd,
10
- };
@@ -1,12 +0,0 @@
1
- //
2
- // LongPressHandler.h
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "GestureHandler.h"
10
-
11
- @interface LongPressGestureHandler : GestureHandler
12
- @end
@@ -1,100 +0,0 @@
1
- //
2
- // LongPressHandler.m
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "LongPressHandler.h"
10
-
11
- #import <UIKit/UIGestureRecognizerSubclass.h>
12
-
13
-
14
- @interface BetterLongPressGestureRecognizer : UILongPressGestureRecognizer
15
-
16
- - (id)initWithGestureHandler:(GestureHandler*)gestureHandler;
17
-
18
- @end
19
-
20
- @implementation BetterLongPressGestureRecognizer {
21
- __weak GestureHandler *_gestureHandler;
22
- }
23
-
24
- - (id)initWithGestureHandler:(GestureHandler*)gestureHandler
25
- {
26
- if ((self = [super initWithTarget:gestureHandler action:@selector(handleGesture:)])) {
27
- _gestureHandler = gestureHandler;
28
- }
29
- return self;
30
- }
31
-
32
- - (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
33
- {
34
- [super touchesMoved:touches withEvent:event];
35
- if (_gestureHandler.shouldCancelWhenOutside && ![_gestureHandler containsPointInView]) {
36
- self.enabled = NO;
37
- self.enabled = YES;
38
- }
39
- }
40
-
41
- @end
42
-
43
-
44
- @implementation LongPressGestureHandler
45
-
46
- - (instancetype)initWithTag:(NSNumber *)tag
47
- {
48
- if ((self = [super initWithTag:tag])) {
49
- _recognizer = [[BetterLongPressGestureRecognizer alloc] initWithGestureHandler:self];
50
- self.shouldCancelWhenOutside = YES;
51
- }
52
- return self;
53
- }
54
-
55
- - (void)configure:(NSDictionary *)config
56
- {
57
- [super configure:config];
58
- UILongPressGestureRecognizer *recognizer = (UILongPressGestureRecognizer *)_recognizer;
59
-
60
- id prop = config[@"minDurationMs"];
61
- if (prop != nil) {
62
- recognizer.minimumPressDuration = [prop floatValue] / 1000.0;
63
- }
64
-
65
- prop = config[@"maxDist"];
66
- if (prop != nil) {
67
- recognizer.allowableMovement = [prop floatValue];
68
- }
69
- }
70
-
71
- //
72
- //- (void) setMinDurationMs:(NSNumber *) value {
73
- // ((UILongPressGestureRecognizer *)_recognizer).minimumPressDuration = [value floatValue] / 1000.0;
74
- //}
75
- //
76
- //- (NSNumber *) minDurationMs {
77
- // return [NSNumber numberWithFloat: ((UILongPressGestureRecognizer *)_recognizer).minimumPressDuration * 1000.0];
78
- //}
79
- //
80
- //- (void) setMaxDist:(NSNumber *) value {
81
- // ((UILongPressGestureRecognizer *)_recognizer).allowableMovement = [value floatValue];
82
- //}
83
- //
84
- //- (NSNumber *) maxDist {
85
- // return [NSNumber numberWithFloat: ((UILongPressGestureRecognizer *)_recognizer).allowableMovement];
86
- //}
87
-
88
- - (GestureHandlerState)state
89
- {
90
- // For long press recognizer we treat "Began" state as "active"
91
- // as it changes its state to "Began" as soon as the the minimum
92
- // hold duration timeout is reached, whereas state "Changed" is
93
- // only set after "Began" phase if there is some movement.
94
- if (_recognizer.state == UIGestureRecognizerStateBegan) {
95
- return GestureHandlerStateActive;
96
- }
97
- return [super state];
98
- }
99
- @end
100
-
@@ -1,15 +0,0 @@
1
- //
2
- // NativeViewHandler.h
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "GestureHandler.h"
10
-
11
- @interface DummyGestureRecognizer : UIGestureRecognizer
12
- @end
13
-
14
- @interface NativeViewGestureHandler : GestureHandler
15
- @end
@@ -1,163 +0,0 @@
1
- //
2
- // NativeViewHandler.m
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "NativeViewHandler.h"
10
-
11
- #import <UIKit/UIGestureRecognizerSubclass.h>
12
-
13
-
14
- #pragma mark DummyGestureRecognizer
15
-
16
- @implementation DummyGestureRecognizer
17
-
18
- - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
19
- {
20
- self.state = UIGestureRecognizerStateFailed;
21
- [self reset];
22
- }
23
-
24
- - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
25
- {
26
- self.state = UIGestureRecognizerStateCancelled;
27
- [self reset];
28
- }
29
-
30
- @end
31
-
32
- #pragma mark NativeViewgestureHandler
33
-
34
- @implementation NativeViewGestureHandler {
35
- BOOL _shouldActivateOnStart;
36
- BOOL _disallowInterruption;
37
- }
38
-
39
- - (instancetype)initWithTag:(NSNumber *)tag
40
- {
41
- if ((self = [super initWithTag:tag])) {
42
- _recognizer = [[DummyGestureRecognizer alloc] init];
43
- self.shouldCancelWhenOutside = YES;
44
- }
45
- return self;
46
- }
47
-
48
- - (void)configure:(NSDictionary *)config
49
- {
50
- [super configure:config];
51
- _shouldActivateOnStart = [config[@"shouldActivateOnStart"] boolValue];
52
- _disallowInterruption = [config[@"disallowInterruption"] boolValue];
53
- }
54
-
55
- //
56
- //- (void) setShouldActivateOnStart:(NSNumber *) value {
57
- // _shouldActivateOnStart = [value boolValue];
58
- //}
59
- //
60
- //- (NSNumber *) shouldActivateOnStart {
61
- // return [NSNumber numberWithBool: _shouldActivateOnStart];
62
- //}
63
- //- (void) setDisallowInterruption:(NSNumber *) value {
64
- // _disallowInterruption = [value boolValue];
65
- //}
66
- //
67
- //- (NSNumber *) disallowInterruption {
68
- // return [NSNumber numberWithBool: _disallowInterruption];
69
- //}
70
-
71
-
72
- - (void)bindToView:(UIView *)view
73
- {
74
- // For UIControl based views (UIButton, UISwitch) we provide special handling that would allow
75
- // for properties like `disallowInterruption` to work.
76
- if ([view isKindOfClass:[UIControl class]]) {
77
- UIControl *control = (UIControl *)view;
78
- [control addTarget:self action:@selector(handleTouchDown:forEvent:) forControlEvents:UIControlEventTouchDown];
79
- [control addTarget:self action:@selector(handleTouchUpOutside:forEvent:) forControlEvents:UIControlEventTouchUpOutside];
80
- [control addTarget:self action:@selector(handleTouchUpInside:forEvent:) forControlEvents:UIControlEventTouchUpInside];
81
- [control addTarget:self action:@selector(handleDragExit:forEvent:) forControlEvents:UIControlEventTouchDragExit];
82
- [control addTarget:self action:@selector(handleDragEnter:forEvent:) forControlEvents:UIControlEventTouchDragEnter];
83
- [control addTarget:self action:@selector(handleTouchCancel:forEvent:) forControlEvents:UIControlEventTouchCancel];
84
- } else {
85
- [super bindToView:view];
86
- }
87
-
88
- // We can restore default scrollview behaviour to delay touches to scrollview's children
89
- // because gesture handler system can handle cancellation of scroll recognizer when JS responder
90
- // is set
91
- if ([view isKindOfClass:[UIScrollView class]]) {
92
- // This part of the code is coupled with RN implementation of ScrollView native wrapper and
93
- // we expect for RCTScrollView component to contain a subclass of UIScrollview as the only
94
- // subview
95
- UIScrollView *scrollView = (UIScrollView*)view;
96
- scrollView.delaysContentTouches = YES;
97
- }
98
- }
99
-
100
- - (void)handleTouchDown:(UIView *)sender forEvent:(UIEvent *)event
101
- {
102
- [self reset];
103
-
104
- if (_disallowInterruption) {
105
- // When `disallowInterruption` is set we cancel all gesture handlers when this UIControl
106
- // gets DOWN event
107
- for (UITouch *touch in [event allTouches]) {
108
- for (UIGestureRecognizer *recogn in [touch gestureRecognizers]) {
109
- recogn.enabled = NO;
110
- recogn.enabled = YES;
111
- }
112
- }
113
- }
114
- [self sendEventsInState:GestureHandlerStateActive
115
- forView:sender
116
- withExtraData:@{@"pointerInside": @(YES)}];
117
- }
118
-
119
- - (void)handleTouchUpOutside:(UIView *)sender forEvent:(UIEvent *)event
120
- {
121
- [self sendEventsInState:GestureHandlerStateEnd
122
- forView:sender
123
- withExtraData:@{@"pointerInside": @(NO)}];
124
- }
125
-
126
- - (void)handleTouchUpInside:(UIView *)sender forEvent:(UIEvent *)event
127
- {
128
- [self sendEventsInState:GestureHandlerStateEnd
129
- forView:sender
130
- withExtraData:@{@"pointerInside": @(YES)}];
131
- }
132
-
133
- - (void)handleDragExit:(UIView *)sender forEvent:(UIEvent *)event
134
- {
135
- // Pointer is moved outside of the view bounds, we cancel button when `shouldCancelWhenOutside` is set
136
- if (self.shouldCancelWhenOutside) {
137
- UIControl *control = (UIControl *)sender;
138
- [control cancelTrackingWithEvent:event];
139
- [self sendEventsInState:GestureHandlerStateEnd
140
- forView:sender
141
- withExtraData:@{@"pointerInside": @(NO)}];
142
- } else {
143
- [self sendEventsInState:GestureHandlerStateActive
144
- forView:sender
145
- withExtraData:@{@"pointerInside": @(NO)}];
146
- }
147
- }
148
-
149
- - (void)handleDragEnter:(UIView *)sender forEvent:(UIEvent *)event
150
- {
151
- [self sendEventsInState:GestureHandlerStateActive
152
- forView:sender
153
- withExtraData:@{@"pointerInside": @(YES)}];
154
- }
155
-
156
- - (void)handleTouchCancel:(UIView *)sender forEvent:(UIEvent *)event
157
- {
158
- [self sendEventsInState:GestureHandlerStateCancelled
159
- forView:sender
160
- withExtraData:@{@"pointerInside": @(NO)}];
161
- }
162
-
163
- @end
@@ -1,14 +0,0 @@
1
- //
2
- // PanHandler.h
3
- // GestureHandler
4
- //
5
- // Created by Krzysztof Magiera on 12/10/2017.
6
- // Copyright © 2017 Software Mansion. All rights reserved.
7
- //
8
-
9
- #import "GestureHandler.h"
10
-
11
- @interface PanGestureHandler : GestureHandler
12
-
13
-
14
- @end