@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,365 +0,0 @@
1
- #import "GestureHandler.h"
2
-
3
- #import "NativeViewHandler.h"
4
-
5
- #import <UIKit/UIGestureRecognizerSubclass.h>
6
-
7
-
8
- @interface UIGestureRecognizer (GestureHandler)
9
- @property (nonatomic, readonly) GestureHandler *gestureHandler;
10
- @end
11
-
12
-
13
- @implementation UIGestureRecognizer (GestureHandler)
14
-
15
- - (GestureHandler *)gestureHandler
16
- {
17
- id delegate = self.delegate;
18
- if ([delegate isKindOfClass:[GestureHandler class]]) {
19
- return (GestureHandler *)delegate;
20
- }
21
- return nil;
22
- }
23
-
24
- @end
25
-
26
- typedef struct GHHitSlop {
27
- CGFloat top, left, bottom, right, width, height;
28
- } RNGHHitSlop;
29
-
30
- static RNGHHitSlop RNGHHitSlopEmpty = { NAN, NAN, NAN, NAN, NAN, NAN };
31
-
32
- #define GH_HIT_SLOP_GET(key) (prop[key] == nil ? NAN : [prop[key] doubleValue])
33
- #define GH_HIT_SLOP_IS_SET(hitSlop) (!isnan(hitSlop.left) || !isnan(hitSlop.right) || \
34
- !isnan(hitSlop.top) || !isnan(hitSlop.bottom))
35
- #define GH_HIT_SLOP_INSET(key) (isnan(hitSlop.key) ? 0. : hitSlop.key)
36
-
37
- CGRect GHHitSlopInsetRect(CGRect rect, RNGHHitSlop hitSlop) {
38
- rect.origin.x -= GH_HIT_SLOP_INSET(left);
39
- rect.origin.y -= GH_HIT_SLOP_INSET(top);
40
-
41
- if (!isnan(hitSlop.width)) {
42
- if (!isnan(hitSlop.right)) {
43
- rect.origin.x = rect.size.width - hitSlop.width + GH_HIT_SLOP_INSET(right);
44
- }
45
- rect.size.width = hitSlop.width;
46
- } else {
47
- rect.size.width += (GH_HIT_SLOP_INSET(left) + GH_HIT_SLOP_INSET(right));
48
- }
49
- if (!isnan(hitSlop.height)) {
50
- if (!isnan(hitSlop.bottom)) {
51
- rect.origin.y = rect.size.height - hitSlop.height + GH_HIT_SLOP_INSET(bottom);
52
- }
53
- rect.size.height = hitSlop.height;
54
- } else {
55
- rect.size.height += (GH_HIT_SLOP_INSET(top) + GH_HIT_SLOP_INSET(bottom));
56
- }
57
- return rect;
58
- }
59
-
60
-
61
- @implementation GestureHandler {
62
- NSArray<NSNumber *> *_handlersToWaitFor;
63
- NSArray<NSNumber *> *_simultaneousHandlers;
64
- RNGHHitSlop _hitSlop;
65
- }
66
-
67
- - (instancetype)initWithTag:(NSNumber *)tag
68
- {
69
- if ((self = [super init])) {
70
- _tag = tag;
71
- _lastState = GestureHandlerStateUndetermined;
72
- _hitSlop = RNGHHitSlopEmpty;
73
- }
74
- return self;
75
- }
76
-
77
- - (void)configure:(NSDictionary *)config
78
- {
79
- _handlersToWaitFor = config[@"waitFor"];
80
- _simultaneousHandlers = config[@"simultaneousHandlers"];
81
-
82
- id prop = config[@"enabled"];
83
- if (prop != nil) {
84
- self.enabled = [prop boolValue];
85
- } else {
86
- self.enabled = YES;
87
- }
88
-
89
- prop = config[@"shouldCancelWhenOutside"];
90
- if (prop != nil) {
91
- _shouldCancelWhenOutside = [prop boolValue];
92
- // } else {
93
- // _shouldCancelWhenOutside = NO;
94
- }
95
-
96
- prop = config[@"hitSlop"];
97
- if ([prop isKindOfClass:[NSNumber class]]) {
98
- _hitSlop.left = _hitSlop.right = _hitSlop.top = _hitSlop.bottom = [prop doubleValue];
99
- } else if (prop != nil) {
100
- _hitSlop.left = _hitSlop.right = GH_HIT_SLOP_GET(@"horizontal");
101
- _hitSlop.top = _hitSlop.bottom = GH_HIT_SLOP_GET(@"vertical");
102
- _hitSlop.left = GH_HIT_SLOP_GET(@"left");
103
- _hitSlop.right = GH_HIT_SLOP_GET(@"right");
104
- _hitSlop.top = GH_HIT_SLOP_GET(@"top");
105
- _hitSlop.bottom = GH_HIT_SLOP_GET(@"bottom");
106
- _hitSlop.width = GH_HIT_SLOP_GET(@"width");
107
- _hitSlop.height = GH_HIT_SLOP_GET(@"height");
108
- if (isnan(_hitSlop.left) && isnan(_hitSlop.right) && !isnan(_hitSlop.width)) {
109
- NSLog(@"When width is set one of left or right pads need to be defined");
110
- }
111
- if (!isnan(_hitSlop.width) && !isnan(_hitSlop.left) && !isnan(_hitSlop.right)) {
112
- NSLog(@"Cannot have all of left, right and width defined");
113
- }
114
- if (isnan(_hitSlop.top) && isnan(_hitSlop.bottom) && !isnan(_hitSlop.height)) {
115
- NSLog(@"When height is set one of top or bottom pads need to be defined");
116
- }
117
- if (!isnan(_hitSlop.height) && !isnan(_hitSlop.top) && !isnan(_hitSlop.bottom)) {
118
- NSLog(@"Cannot have all of top, bottom and height defined");
119
- }
120
- }
121
- }
122
-
123
- - (void)setEnabled:(BOOL)enabled
124
- {
125
- _enabled = enabled;
126
- self.recognizer.enabled = enabled;
127
- }
128
-
129
- - (void)bindToView:(UIView *)view
130
- {
131
- // view.userInteractionEnabled = YES;
132
- self.recognizer.delegate = self;
133
- [view addGestureRecognizer:self.recognizer];
134
- }
135
-
136
- - (void)unbindFromView
137
- {
138
- [self.recognizer.view removeGestureRecognizer:self.recognizer];
139
- self.recognizer.delegate = nil;
140
- }
141
-
142
- - (NSMutableDictionary *)eventExtraData:(UIGestureRecognizer *)recognizer
143
- {
144
- CGPoint position = [recognizer locationInView:recognizer.view];
145
- CGPoint absolutePosition = [recognizer locationInView:recognizer.view.window];
146
- NSMutableDictionary* result = [NSMutableDictionary new];
147
- NSUInteger numberOfTouches = recognizer.numberOfTouches;
148
- [result setObject:@(numberOfTouches) forKey:@"numberOfPointers"];
149
- [result setObject:@(position.x) forKey:@"x"];
150
- [result setObject:@(position.y) forKey:@"y"];
151
- [result setObject:@(absolutePosition.y) forKey:@"absoluteX"];
152
- [result setObject:@(absolutePosition.y) forKey:@"absoluteY"];
153
- NSMutableArray* positions = [NSMutableArray arrayWithCapacity:2*numberOfTouches];
154
- for (NSUInteger i = 0; i <numberOfTouches; i++) {
155
- CGPoint pos = [recognizer locationOfTouch:i inView:recognizer.view];
156
-
157
- [positions insertObject:@(pos.x) atIndex:2*i];
158
- [positions insertObject:@(pos.y) atIndex:2*i+1];
159
- }
160
- [result setObject:positions forKey:@"positions"];
161
- return result;
162
- }
163
-
164
- - (void)handleGesture:(UIGestureRecognizer *)recognizer
165
- {
166
- NSMutableDictionary *eventData = [self eventExtraData:recognizer];
167
- [self sendEventsInState:[self stateForRecognizer:recognizer] forView:recognizer.view withExtraData:eventData];
168
- }
169
-
170
- - (void)sendEventsInState:(GestureHandlerState)state
171
- forView:(nonnull UIView *)view
172
- withExtraData:(nullable NSDictionary *)extraData
173
- {
174
- if (state != _lastState) {
175
- if (state == GestureHandlerStateEnd && _lastState != GestureHandlerStateActive) {
176
- if (self.delegate) {
177
- [self.delegate gestureHandler:self didChangeState:GestureHandlerStateActive prevState:_lastState extraData:extraData view:view];
178
- }
179
- _lastState = GestureHandlerStateActive;
180
- }
181
- if (self.delegate) {
182
- [self.delegate gestureHandler:self didChangeState:state prevState:_lastState extraData:extraData view:view];
183
- }
184
- _lastState = state;
185
- }
186
-
187
- if (state == GestureHandlerStateActive) {
188
- if (self.delegate) {
189
- [self.delegate gestureHandler:self touchEventOnView:view state:state extraData:extraData];
190
- }
191
- }
192
- }
193
-
194
- - (GestureHandlerState)state
195
- {
196
- switch (_recognizer.state) {
197
- case UIGestureRecognizerStateBegan:
198
- case UIGestureRecognizerStatePossible:
199
- return GestureHandlerStateBegan;
200
- case UIGestureRecognizerStateEnded:
201
- return GestureHandlerStateEnd;
202
- case UIGestureRecognizerStateFailed:
203
- return GestureHandlerStateFailed;
204
- case UIGestureRecognizerStateCancelled:
205
- return GestureHandlerStateCancelled;
206
- case UIGestureRecognizerStateChanged:
207
- return GestureHandlerStateActive;
208
- }
209
- return GestureHandlerStateUndetermined;
210
- }
211
- - (GestureHandlerState)stateForRecognizer:(UIGestureRecognizer*)recognizer
212
- {
213
- switch (recognizer.state) {
214
- case UIGestureRecognizerStateBegan:
215
- case UIGestureRecognizerStatePossible:
216
- return GestureHandlerStateBegan;
217
- case UIGestureRecognizerStateEnded:
218
- return GestureHandlerStateEnd;
219
- case UIGestureRecognizerStateFailed:
220
- return GestureHandlerStateFailed;
221
- case UIGestureRecognizerStateCancelled:
222
- return GestureHandlerStateCancelled;
223
- case UIGestureRecognizerStateChanged:
224
- return GestureHandlerStateActive;
225
- }
226
- return GestureHandlerStateUndetermined;
227
- }
228
-
229
- #pragma mark UIGestureRecognizerDelegate
230
-
231
- + (GestureHandler *)findGestureHandlerByRecognizer:(UIGestureRecognizer *)recognizer
232
- {
233
- GestureHandler *handler = recognizer.gestureHandler;
234
- if (handler != nil) {
235
- return handler;
236
- }
237
-
238
- // We may try to extract "DummyGestureHandler" in case when "otherGestureRecognizer" belongs to
239
- // a native view being wrapped with "NativeViewGestureHandler"
240
- UIView *view = recognizer.view;
241
- // while (reactView != nil && reactView.reactTag == nil) {
242
- // reactView = reactView.superview;
243
- // }
244
-
245
- for (UIGestureRecognizer *recognizer in view.gestureRecognizers) {
246
- if ([recognizer isKindOfClass:[DummyGestureRecognizer class]]) {
247
- return recognizer.gestureHandler;
248
- }
249
- }
250
-
251
- return nil;
252
- }
253
-
254
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
255
- shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
256
- {
257
- GestureHandler *handler = [GestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer];
258
- if ([handler isKindOfClass:[NativeViewGestureHandler class]]) {
259
- for (NSNumber *handlerTag in handler->_handlersToWaitFor) {
260
- if ([_tag isEqual:handlerTag]) {
261
- return YES;
262
- }
263
- }
264
- }
265
-
266
- return NO;
267
- }
268
-
269
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
270
- shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
271
- {
272
- if ([_handlersToWaitFor count]) {
273
- GestureHandler *handler = [GestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer];
274
- if (handler != nil) {
275
- for (NSNumber *handlerTag in _handlersToWaitFor) {
276
- if ([handler.tag isEqual:handlerTag]) {
277
- return YES;
278
- }
279
- }
280
- }
281
- }
282
- return NO;
283
- }
284
-
285
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer
286
- shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
287
- {
288
- if (gestureRecognizer.view == otherGestureRecognizer.view && [gestureRecognizer isKindOfClass:[UISwipeGestureRecognizer class]] && [otherGestureRecognizer isKindOfClass:[UISwipeGestureRecognizer class]]) {
289
- return YES;
290
- }
291
- if (_recognizer.state == UIGestureRecognizerStateBegan && _recognizer.state == UIGestureRecognizerStatePossible) {
292
- return YES;
293
- }
294
- if ([_simultaneousHandlers count]) {
295
- GestureHandler *handler = [GestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer];
296
- if (handler != nil) {
297
- for (NSNumber *handlerTag in _simultaneousHandlers) {
298
- if ([handler.tag isEqual:handlerTag]) {
299
- return YES;
300
- }
301
- }
302
- }
303
- }
304
- return NO;
305
- }
306
-
307
- - (void)reset
308
- {
309
- _lastState = GestureHandlerStateUndetermined;
310
- }
311
-
312
- - (BOOL)containsPointInView
313
- {
314
- CGPoint pt = [_recognizer locationInView:_recognizer.view];
315
- CGRect hitFrame = GHHitSlopInsetRect(_recognizer.view.bounds, _hitSlop);
316
- return CGRectContainsPoint(hitFrame, pt);
317
- }
318
-
319
- - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
320
- {
321
- [self reset];
322
- if (self.delegate && [self.delegate respondsToSelector:@selector(gestureHandler:shouldActivateForEvent:)]) {
323
- if (![self.delegate gestureHandler:self shouldActivateForEvent:[self eventExtraData:gestureRecognizer]]) {
324
- return FALSE;
325
- }
326
- }
327
- return YES;
328
- }
329
-
330
- - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
331
- {
332
- #if TARGET_IPHONE_SIMULATOR
333
- // we get unwanted touch on simulator which messes everything
334
- UIView* view = gestureRecognizer.view;
335
- CGPoint location = [touch locationInView:gestureRecognizer.view];
336
- if (touch.phase == UITouchPhaseBegan && location.x == 0 && round(location.y) == view.window.bounds.size.height) {
337
- return NO;
338
- }
339
- #endif // TARGET_IPHONE_SIMULATOR
340
-
341
- // If hitSlop is set we use it to determine if a given gesture recognizer should start processing
342
- // touch stream. This only works for negative values of hitSlop as this method won't be triggered
343
- // unless touch startes in the bounds of the attached view. To acheve similar effect with positive
344
- // values of hitSlop one should set hitSlop for the underlying view. This limitation is due to the
345
- // fact that hitTest method is only available at the level of UIView
346
- if (GH_HIT_SLOP_IS_SET(_hitSlop)) {
347
- CGPoint location = [touch locationInView:gestureRecognizer.view];
348
- CGRect hitFrame = GHHitSlopInsetRect(gestureRecognizer.view.bounds, _hitSlop);
349
- return CGRectContainsPoint(hitFrame, location);
350
- }
351
- return YES;
352
- }
353
-
354
- //- (void)sendTouchEvent:(GestureHandlerEvent *)event
355
- //{
356
- // // [_eventDispatcher sendEvent:event];
357
- //}
358
- //
359
- //- (void)sendStateChangeEvent:(GestureHandlerStateChange *)event
360
- //{
361
- // // [_eventDispatcher sendEvent:event];
362
- //}
363
-
364
-
365
- @end
@@ -1,8 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
-
3
- typedef NS_ENUM(NSInteger, GestureHandlerDirection) {
4
- GestureHandlerDirectionRight = 1,
5
- GestureHandlerDirectionLeft = 2,
6
- GestureHandlerDirectionUp = 4,
7
- GestureHandlerDirectionDown = 8,
8
- };
@@ -1,30 +0,0 @@
1
-
2
- #import <Foundation/Foundation.h>
3
- #import <UIKit/UIKit.h>
4
-
5
- #import "GestureHandlerState.h"
6
-
7
- #define SAFE_VELOCITY(velocity) @(isnan(velocity) ? 0 : velocity)
8
-
9
-
10
- @interface GestureHandlerEvent : NSObject
11
- @property (readonly) UIView *view;
12
-
13
- - (instancetype)initWithView:(UIView *)view
14
- handlerTag:(NSNumber *)handlerTag
15
- state:(GestureHandlerState)state
16
- extraData:(NSMutableDictionary*)extraData NS_DESIGNATED_INITIALIZER;
17
-
18
- @end
19
-
20
-
21
- @interface GestureHandlerStateChange : NSObject
22
- @property (readonly) UIView *view;
23
-
24
- - (instancetype)initWithView:(UIView *)view
25
- handlerTag:(NSNumber *)handlerTag
26
- state:(GestureHandlerState)state
27
- prevState:(GestureHandlerState)prevState
28
- extraData:(NSMutableDictionary*)extraData NS_DESIGNATED_INITIALIZER;
29
-
30
- @end
@@ -1,122 +0,0 @@
1
- #import "GestureHandlerEvents.h"
2
-
3
- #define SAFE_VELOCITY(velocity) @(isnan(velocity) ? 0 : velocity)
4
-
5
- @implementation GestureHandlerEvent
6
- {
7
- NSNumber *_handlerTag;
8
- GestureHandlerState _state;
9
- NSDictionary *_extraData;
10
- }
11
-
12
- @synthesize view = _view;
13
-
14
- - (instancetype)initWithView:(UIView *)view
15
- handlerTag:(NSNumber *)handlerTag
16
- state:(GestureHandlerState)state
17
- extraData:(NSDictionary *)extraData
18
- {
19
- if ((self = [super init])) {
20
- _view = view;
21
- _handlerTag = handlerTag;
22
- _state = state;
23
- _extraData = extraData;
24
- }
25
- return self;
26
- }
27
-
28
-
29
- - (NSString *)eventName
30
- {
31
- return @"onGestureHandlerEvent";
32
- }
33
-
34
- - (BOOL)canCoalesce
35
- {
36
- // TODO: event coalescing
37
- return NO;
38
- }
39
-
40
- //- (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent;
41
- //{
42
- // return newEvent;
43
- //}
44
-
45
- //+ (NSString *)moduleDotMethod
46
- //{
47
- // return @"RCTEventEmitter.receiveEvent";
48
- //}
49
-
50
- - (NSArray *)arguments
51
- {
52
- NSMutableDictionary *body = [NSMutableDictionary dictionaryWithDictionary:_extraData];
53
- [body setObject:self.view forKey:@"target"];
54
- [body setObject:_handlerTag forKey:@"handlerTag"];
55
- [body setObject:@(_state) forKey:@"state"];
56
- return @[self.view, @"onGestureHandlerEvent", body];
57
- }
58
-
59
- @end
60
-
61
-
62
- @implementation GestureHandlerStateChange
63
- {
64
- NSNumber *_handlerTag;
65
- UIView *_view;
66
- GestureHandlerState _state;
67
- GestureHandlerState _prevState;
68
- NSDictionary *_extraData;
69
- }
70
-
71
- @synthesize view = _view;
72
-
73
- - (instancetype)initWithView:(UIView *)view
74
- handlerTag:(NSNumber *)handlerTag
75
- state:(GestureHandlerState)state
76
- prevState:(GestureHandlerState)prevState
77
- extraData:(NSDictionary *)extraData
78
- {
79
- if ((self = [super init])) {
80
- _view = view;
81
- _handlerTag = handlerTag;
82
- _state = state;
83
- _prevState = prevState;
84
- _extraData = extraData;
85
- }
86
- return self;
87
- }
88
-
89
- //RCT_NOT_IMPLEMENTED(- (instancetype)init)
90
-
91
- - (NSString *)eventName
92
- {
93
- return @"onGestureHandlerStateChange";
94
- }
95
-
96
- - (BOOL)canCoalesce
97
- {
98
- // TODO: event coalescing
99
- return NO;
100
- }
101
-
102
- //- (id<RCTEvent>)coalesceWithEvent:(id<RCTEvent>)newEvent;
103
- //{
104
- // return newEvent;
105
- //}
106
-
107
- //+ (NSString *)moduleDotMethod
108
- //{
109
- // return @"RCTEventEmitter.receiveEvent";
110
- //}
111
-
112
- - (NSArray *)argumentsx
113
- {
114
- NSMutableDictionary *body = [NSMutableDictionary dictionaryWithDictionary:_extraData];
115
- [body setObject:_view forKey:@"target"];
116
- [body setObject:_handlerTag forKey:@"handlerTag"];
117
- [body setObject:@(_state) forKey:@"state"];
118
- [body setObject:@(_prevState) forKey:@"oldState"];
119
- return @[self.view, @"onGestureHandlerStateChange", body];
120
- }
121
-
122
- @end
@@ -1,23 +0,0 @@
1
-
2
- #import <UIKit/UIKit.h>
3
-
4
- //! Project version number for GestureHandler.
5
- FOUNDATION_EXPORT double GestureHandlerVersionNumber;
6
-
7
- //! Project version string for GestureHandler.
8
- FOUNDATION_EXPORT const unsigned char GestureHandlerVersionString[];
9
-
10
- #import "GestureHandler.h"
11
- #import "GestureHandlerManager.h"
12
- #import "GestureHandlerRegistry.h"
13
- #import "GestureHandlerState.h"
14
- #import "GestureHandlerEvents.h"
15
- #import "GestureHandlerDirection.h"
16
- #import "FlingHandler.h"
17
- #import "ForceTouchHandler.h"
18
- #import "LongPressHandler.h"
19
- #import "NativeViewHandler.h"
20
- #import "PinchHandler.h"
21
- #import "PanHandler.h"
22
- #import "RotationHandler.h"
23
- #import "TapHandler.h"
@@ -1,25 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
- #import <UIKit/UIKit.h>
3
-
4
- @class GestureHandler;
5
- @interface GestureHandlerManager : NSObject
6
-
7
- - (nonnull instancetype)init;
8
-
9
- - (GestureHandler*)createGestureHandler:(nonnull NSString *)handlerName
10
- tag:(nonnull NSNumber *)handlerTag
11
- config:(nonnull NSDictionary *)config;
12
-
13
- - (void)attachGestureHandler:(nonnull NSNumber *)handlerTag
14
- toView:(nonnull UIView *)view;
15
-
16
- - (void)updateGestureHandler:(nonnull NSNumber *)handlerTag config:(nonnull NSDictionary *)config;
17
-
18
- - (void)dropGestureHandler:(nonnull NSNumber *)handlerTag;
19
-
20
- //- (void)handleSetJSResponder:(nonnull UIView *)view
21
- // blockNativeResponder:(nonnull NSNumber *)blockNativeResponder;
22
-
23
- //- (void)handleClearJSResponder;
24
-
25
- @end