@tamagui/react-native-web-lite 1.125.6 → 1.125.8

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 (274) hide show
  1. package/dist/esm/AccessibilityInfo/index.native.js +58 -62
  2. package/dist/esm/AccessibilityInfo/index.native.js.map +1 -6
  3. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +85 -55
  4. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +1 -6
  5. package/dist/esm/ActivityIndicator/index.native.js +82 -90
  6. package/dist/esm/ActivityIndicator/index.native.js.map +1 -6
  7. package/dist/esm/Alert/index.native.js +14 -18
  8. package/dist/esm/Alert/index.native.js.map +1 -6
  9. package/dist/esm/AppRegistry/AppContainer.native.js +30 -26
  10. package/dist/esm/AppRegistry/AppContainer.native.js.map +1 -6
  11. package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
  12. package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +1 -6
  13. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +45 -34
  14. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +1 -6
  15. package/dist/esm/AppRegistry/index.native.js +50 -55
  16. package/dist/esm/AppRegistry/index.native.js.map +1 -6
  17. package/dist/esm/AppRegistry/renderApplication.native.js +33 -27
  18. package/dist/esm/AppRegistry/renderApplication.native.js.map +1 -6
  19. package/dist/esm/AppState/__tests__/index-test.native.js +9 -10
  20. package/dist/esm/AppState/__tests__/index-test.native.js.map +1 -6
  21. package/dist/esm/AppState/index.native.js +45 -51
  22. package/dist/esm/AppState/index.native.js.map +1 -6
  23. package/dist/esm/Appearance/index.native.js +27 -24
  24. package/dist/esm/Appearance/index.native.js.map +1 -6
  25. package/dist/esm/BackHandler/index.native.js +11 -13
  26. package/dist/esm/BackHandler/index.native.js.map +1 -6
  27. package/dist/esm/Batchinator/index.native.js +19 -23
  28. package/dist/esm/Batchinator/index.native.js.map +1 -6
  29. package/dist/esm/Clipboard/index.native.js +21 -26
  30. package/dist/esm/Clipboard/index.native.js.map +1 -6
  31. package/dist/esm/DeviceEmitter.native.js +3 -5
  32. package/dist/esm/DeviceEmitter.native.js.map +1 -6
  33. package/dist/esm/DeviceInfo/index.native.js +41 -33
  34. package/dist/esm/DeviceInfo/index.native.js.map +1 -6
  35. package/dist/esm/Dimensions/__tests__/index-test.native.js +9 -8
  36. package/dist/esm/Dimensions/__tests__/index-test.native.js.map +1 -6
  37. package/dist/esm/Dimensions/index.native.js +49 -53
  38. package/dist/esm/Dimensions/index.native.js.map +1 -6
  39. package/dist/esm/FlatList.native.js +137 -131
  40. package/dist/esm/FlatList.native.js.map +1 -6
  41. package/dist/esm/I18nManager/index.native.js +10 -13
  42. package/dist/esm/I18nManager/index.native.js.map +1 -6
  43. package/dist/esm/Image/index.native.js +174 -149
  44. package/dist/esm/Image/index.native.js.map +1 -6
  45. package/dist/esm/Image/types.native.js +2 -1
  46. package/dist/esm/Image/types.native.js.map +1 -6
  47. package/dist/esm/ImageBackground/__tests__/index-test.native.js +27 -19
  48. package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +1 -6
  49. package/dist/esm/ImageBackground/index.native.js +35 -33
  50. package/dist/esm/ImageBackground/index.native.js.map +1 -6
  51. package/dist/esm/InteractionManager/TaskQueue.native.js +46 -51
  52. package/dist/esm/InteractionManager/TaskQueue.native.js.map +1 -6
  53. package/dist/esm/InteractionManager/index.native.js +66 -60
  54. package/dist/esm/InteractionManager/index.native.js.map +1 -6
  55. package/dist/esm/Keyboard/index.native.js +13 -17
  56. package/dist/esm/Keyboard/index.native.js.map +1 -6
  57. package/dist/esm/KeyboardAvoidingView/index.native.js +34 -44
  58. package/dist/esm/KeyboardAvoidingView/index.native.js.map +1 -6
  59. package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
  60. package/dist/esm/Linking/__tests__/index-test.native.js.map +1 -6
  61. package/dist/esm/Linking/index.native.js +42 -49
  62. package/dist/esm/Linking/index.native.js.map +1 -6
  63. package/dist/esm/LogBox/index.native.js +7 -12
  64. package/dist/esm/LogBox/index.native.js.map +1 -6
  65. package/dist/esm/Modal/ModalAnimation.native.js +89 -112
  66. package/dist/esm/Modal/ModalAnimation.native.js.map +1 -6
  67. package/dist/esm/Modal/ModalContent.native.js +52 -54
  68. package/dist/esm/Modal/ModalContent.native.js.map +1 -6
  69. package/dist/esm/Modal/ModalFocusTrap.native.js +49 -52
  70. package/dist/esm/Modal/ModalFocusTrap.native.js.map +1 -6
  71. package/dist/esm/Modal/ModalPortal.native.js +9 -11
  72. package/dist/esm/Modal/ModalPortal.native.js.map +1 -6
  73. package/dist/esm/Modal/index.native.js +53 -45
  74. package/dist/esm/Modal/index.native.js.map +1 -6
  75. package/dist/esm/NativeModules/index.native.js +5 -6
  76. package/dist/esm/NativeModules/index.native.js.map +1 -6
  77. package/dist/esm/PanResponder/Alternative.js +157 -122
  78. package/dist/esm/PanResponder/Alternative.js.map +1 -6
  79. package/dist/esm/PanResponder/index.native.js +3 -5
  80. package/dist/esm/PanResponder/index.native.js.map +1 -6
  81. package/dist/esm/PixelRatio/index.native.js +48 -59
  82. package/dist/esm/PixelRatio/index.native.js.map +1 -6
  83. package/dist/esm/Pressable/index.native.js +70 -67
  84. package/dist/esm/Pressable/index.native.js.map +1 -6
  85. package/dist/esm/RefreshControl/index.native.js +4 -6
  86. package/dist/esm/RefreshControl/index.native.js.map +1 -6
  87. package/dist/esm/SafeAreaView/index.native.js +24 -21
  88. package/dist/esm/SafeAreaView/index.native.js.map +1 -6
  89. package/dist/esm/ScrollView/ScrollViewBase.native.js +61 -50
  90. package/dist/esm/ScrollView/ScrollViewBase.native.js.map +1 -6
  91. package/dist/esm/ScrollView/index.native.js +183 -211
  92. package/dist/esm/ScrollView/index.native.js.map +1 -6
  93. package/dist/esm/Share/index.native.js +29 -36
  94. package/dist/esm/Share/index.native.js.map +1 -6
  95. package/dist/esm/StatusBar/index.native.js +3 -6
  96. package/dist/esm/StatusBar/index.native.js.map +1 -6
  97. package/dist/esm/Text/index.native.js +128 -100
  98. package/dist/esm/Text/index.native.js.map +1 -6
  99. package/dist/esm/Text/types.native.js +2 -1
  100. package/dist/esm/Text/types.native.js.map +1 -6
  101. package/dist/esm/TextInput/__tests__/index-test.native.js +445 -259
  102. package/dist/esm/TextInput/__tests__/index-test.native.js.map +1 -6
  103. package/dist/esm/TextInput/index.native.js +210 -147
  104. package/dist/esm/TextInput/index.native.js.map +1 -6
  105. package/dist/esm/TextInput/types.native.js +2 -1
  106. package/dist/esm/TextInput/types.native.js.map +1 -6
  107. package/dist/esm/TouchableOpacity.native.js +63 -67
  108. package/dist/esm/TouchableOpacity.native.js.map +1 -6
  109. package/dist/esm/TouchableWithoutFeedback.native.js +49 -45
  110. package/dist/esm/TouchableWithoutFeedback.native.js.map +1 -6
  111. package/dist/esm/UnimplementedView.native.js +22 -30
  112. package/dist/esm/UnimplementedView.native.js.map +1 -6
  113. package/dist/esm/Vibration/index.native.js +14 -14
  114. package/dist/esm/Vibration/index.native.js.map +1 -6
  115. package/dist/esm/View/index.native.js +84 -55
  116. package/dist/esm/View/index.native.js.map +1 -6
  117. package/dist/esm/View/types.native.js +2 -1
  118. package/dist/esm/View/types.native.js.map +1 -6
  119. package/dist/esm/createElement/__tests__/index-test.native.js +398 -195
  120. package/dist/esm/createElement/__tests__/index-test.native.js.map +1 -6
  121. package/dist/esm/createElement/index.native.js +18 -16
  122. package/dist/esm/createElement/index.native.js.map +1 -6
  123. package/dist/esm/createReactDOMStyle.native.js +2 -4
  124. package/dist/esm/createReactDOMStyle.native.js.map +1 -6
  125. package/dist/esm/index.native.js +47 -123
  126. package/dist/esm/index.native.js.map +1 -6
  127. package/dist/esm/render/index.native.js +6 -15
  128. package/dist/esm/render/index.native.js.map +1 -6
  129. package/dist/esm/styleTypes.native.js +2 -1
  130. package/dist/esm/styleTypes.native.js.map +1 -6
  131. package/dist/esm/types.native.js +2 -1
  132. package/dist/esm/types.native.js.map +1 -6
  133. package/dist/esm/useColorScheme/index.native.js +7 -7
  134. package/dist/esm/useColorScheme/index.native.js.map +1 -6
  135. package/dist/esm/useLocaleContext/index.native.js +2 -4
  136. package/dist/esm/useLocaleContext/index.native.js.map +1 -6
  137. package/dist/esm/useWindowDimensions/index.native.js +9 -9
  138. package/dist/esm/useWindowDimensions/index.native.js.map +1 -6
  139. package/dist/esm/vendor/react-native/Animated/Animated.native.js +16 -17
  140. package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +1 -6
  141. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +72 -99
  142. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +1 -6
  143. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +465 -436
  144. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +1 -6
  145. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +97 -91
  146. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +1 -6
  147. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +2 -1
  148. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +1 -6
  149. package/dist/esm/vendor/react-native/Animated/Easing.native.js +194 -231
  150. package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +1 -6
  151. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +206 -222
  152. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +1 -6
  153. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +3 -5
  154. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +1 -6
  155. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +3 -5
  156. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +1 -6
  157. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
  158. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +1 -6
  159. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +25 -37
  160. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +1 -6
  161. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +42 -54
  162. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +1 -6
  163. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
  164. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +1 -6
  165. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +45 -60
  166. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +1 -6
  167. package/dist/esm/vendor/react-native/Animated/bezier.native.js +23 -20
  168. package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +1 -6
  169. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +4 -6
  170. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +1 -6
  171. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +12 -13
  172. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +1 -6
  173. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +4 -6
  174. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +1 -6
  175. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +4 -6
  176. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +1 -6
  177. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +17 -11
  178. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +1 -6
  179. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +39 -55
  180. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +1 -6
  181. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +180 -197
  182. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +1 -6
  183. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +39 -51
  184. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +1 -6
  185. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +42 -57
  186. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +1 -6
  187. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +99 -116
  188. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +1 -6
  189. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +37 -50
  190. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +1 -6
  191. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +39 -55
  192. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +1 -6
  193. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +61 -89
  194. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +1 -6
  195. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +52 -70
  196. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +1 -6
  197. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +50 -68
  198. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +1 -6
  199. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +39 -55
  200. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +1 -6
  201. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +41 -53
  202. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +1 -6
  203. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +44 -57
  204. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +1 -6
  205. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +70 -99
  206. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +1 -6
  207. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +64 -82
  208. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +1 -6
  209. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +40 -53
  210. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +1 -6
  211. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +50 -58
  212. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +1 -6
  213. package/dist/esm/vendor/react-native/FeatureFlags.native.js +8 -10
  214. package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +1 -6
  215. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +58 -59
  216. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +1 -6
  217. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +3 -5
  218. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +1 -6
  219. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +46 -55
  220. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +1 -6
  221. package/dist/esm/vendor/react-native/PanResponder/index.native.js +224 -219
  222. package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +1 -6
  223. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +58 -81
  224. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +1 -6
  225. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +2 -1
  226. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +1 -6
  227. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +2 -5
  228. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +1 -6
  229. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +2 -1
  230. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +1 -6
  231. package/dist/esm/vendor/react-native/Utilities/clamp.native.js +2 -4
  232. package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +1 -6
  233. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +5 -6
  234. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +1 -6
  235. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +127 -129
  236. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +1 -6
  237. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +51 -50
  238. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +1 -6
  239. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +60 -73
  240. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +1 -6
  241. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +96 -96
  242. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +1 -6
  243. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +57 -64
  244. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +1 -6
  245. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +105 -117
  246. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -6
  247. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +35 -37
  248. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +1 -6
  249. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +2 -1
  250. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +1 -6
  251. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +817 -760
  252. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +1 -6
  253. package/dist/esm/vendor/react-native/deepDiffer/index.native.js +17 -29
  254. package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +1 -6
  255. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +3 -5
  256. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +1 -6
  257. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +2 -1
  258. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +1 -6
  259. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +24 -33
  260. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +1 -6
  261. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +41 -51
  262. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +1 -6
  263. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +12 -16
  264. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +1 -6
  265. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +21 -26
  266. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +1 -6
  267. package/dist/esm/vendor/react-native/infoLog/index.native.js +3 -6
  268. package/dist/esm/vendor/react-native/infoLog/index.native.js.map +1 -6
  269. package/dist/esm/vendor/react-native/useRefEffect.native.js +4 -8
  270. package/dist/esm/vendor/react-native/useRefEffect.native.js.map +1 -6
  271. package/dist/esm/without-animated.native.js +51 -112
  272. package/dist/esm/without-animated.native.js.map +1 -6
  273. package/package.json +6 -6
  274. package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +1 -1
@@ -1,128 +1,163 @@
1
1
  import { InteractionManager } from "@tamagui/react-native-web-internals";
2
- import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index";
3
- var { currentCentroidX, currentCentroidY, currentCentroidXOfTouchesChangedAfter, currentCentroidYOfTouchesChangedAfter, previousCentroidXOfTouchesChangedAfter, previousCentroidYOfTouchesChangedAfter } = TouchHistoryMath, PanResponder = {
4
- _initializeGestureState(gestureState) {
5
- gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
6
- },
7
- /**
8
- * Take all recently moved touches, calculate how the centroid has changed just for those
9
- * recently moved touches, and append that change to an accumulator. This is
10
- * to (at least) handle the case where the user is moving three fingers, and
11
- * then one of the fingers stops but the other two continue.
12
- *
13
- * This is very different than taking all of the recently moved touches and
14
- * storing their centroid as `dx/dy`. For correctness, we must *accumulate
15
- * changes* in the centroid of recently moved touches.
16
- *
17
- * There is also some nuance with how we handle multiple moved touches in a
18
- * single event. Multiple touches generate two 'move' events, each of
19
- * them triggering `onResponderMove`. But with the way `PanResponder` works,
20
- * all of the gesture inference is performed on the first dispatch, since it
21
- * looks at all of the touches. Therefore, `PanResponder` does not call
22
- * `onResponderMove` passed the first dispatch. This diverges from the
23
- * typical responder callback pattern (without using `PanResponder`), but
24
- * avoids more dispatches than necessary.
25
- *
26
- * When moving two touches in opposite directions, the cumulative
27
- * distance is zero in each dimension. When two touches move in parallel five
28
- * pixels in the same direction, the cumulative distance is five, not ten. If
29
- * two touches start, one moves five in a direction, then stops and the other
30
- * touch moves fives in the same direction, the cumulative distance is ten.
31
- *
32
- * This logic requires a kind of processing of time "clusters" of touch events
33
- * so that two touch moves that essentially occur in parallel but move every
34
- * other frame respectively, are considered part of the same movement.
35
- *
36
- * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
37
- * recently moved "cluster" of active touches.
38
- * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
39
- * clustered together in time, moving the same direction. Only valid when
40
- * currently responder (otherwise, it only represents the drag distance below
41
- * the threshold).
42
- */
43
- _updateGestureStateOnMove(gestureState, touchHistory) {
44
- var movedAfter = gestureState._accountsForMovesUpTo, prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), prevDeltaX = gestureState.deltaX, prevDeltaY = gestureState.deltaY, x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), deltaX = prevDeltaX + (x - prevX), deltaY = prevDeltaY + (y - prevY), dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
45
- gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
46
- },
47
- /**
48
- * Enhanced versions of all of the responder callbacks that provide not only
49
- * the `ResponderEvent`, but also the `PanResponder` gesture state.
50
- *
51
- * In general, for events that have capture equivalents, we update the
52
- * gestureState once in the capture phase and can use it in the bubble phase
53
- * as well.
54
- */
55
- create(config) {
56
- var interactionState = {
57
- handle: null
58
- }, gestureState = {
59
- // Useful for debugging
60
- stateID: Math.random(),
61
- x: 0,
62
- y: 0,
63
- initialX: 0,
64
- initialY: 0,
65
- deltaX: 0,
66
- deltaY: 0,
67
- velocityX: 0,
68
- velocityY: 0,
69
- numberActiveTouches: 0,
70
- _accountsForMovesUpTo: 0
71
- }, { onStartShouldSetResponder, onStartShouldSetResponderCapture, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onPanGrant, onPanStart, onPanMove, onPanEnd, onPanRelease, onPanReject, onPanTerminate, onPanTerminationRequest } = config, panHandlers = {
72
- onStartShouldSetResponder(event) {
73
- return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
74
- },
75
- onMoveShouldSetResponder(event) {
76
- return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
77
- },
78
- onStartShouldSetResponderCapture(event) {
79
- return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
80
- },
81
- onMoveShouldSetResponderCapture(event) {
82
- var touchHistory = event.touchHistory;
83
- return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
84
- },
85
- onResponderGrant(event) {
86
- interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
87
- },
88
- onResponderReject(event) {
89
- clearInteractionHandle(interactionState, onPanReject, event, gestureState);
90
- },
91
- onResponderStart(event) {
92
- var { numberActiveTouches } = event.touchHistory;
93
- gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
94
- },
95
- onResponderMove(event) {
96
- var touchHistory = event.touchHistory;
97
- gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
98
- },
99
- onResponderEnd(event) {
100
- var { numberActiveTouches } = event.touchHistory;
101
- gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
102
- },
103
- onResponderRelease(event) {
104
- clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
105
- },
106
- onResponderTerminate(event) {
107
- clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
108
- },
109
- onResponderTerminationRequest(event) {
110
- return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
111
- }
112
- };
113
- return {
114
- panHandlers,
115
- getInteractionHandle() {
116
- return interactionState.handle;
117
- }
118
- };
119
- }
120
- };
2
+ import TouchHistoryMath from "../vendor/react-native/TouchHistoryMath/index.native.js";
3
+ var {
4
+ currentCentroidX,
5
+ currentCentroidY,
6
+ currentCentroidXOfTouchesChangedAfter,
7
+ currentCentroidYOfTouchesChangedAfter,
8
+ previousCentroidXOfTouchesChangedAfter,
9
+ previousCentroidYOfTouchesChangedAfter
10
+ } = TouchHistoryMath,
11
+ PanResponder = {
12
+ _initializeGestureState(gestureState) {
13
+ gestureState.x = 0, gestureState.y = 0, gestureState.initialX = 0, gestureState.initialY = 0, gestureState.deltaX = 0, gestureState.deltaY = 0, gestureState.velocityX = 0, gestureState.velocityY = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
14
+ },
15
+ /**
16
+ * Take all recently moved touches, calculate how the centroid has changed just for those
17
+ * recently moved touches, and append that change to an accumulator. This is
18
+ * to (at least) handle the case where the user is moving three fingers, and
19
+ * then one of the fingers stops but the other two continue.
20
+ *
21
+ * This is very different than taking all of the recently moved touches and
22
+ * storing their centroid as `dx/dy`. For correctness, we must *accumulate
23
+ * changes* in the centroid of recently moved touches.
24
+ *
25
+ * There is also some nuance with how we handle multiple moved touches in a
26
+ * single event. Multiple touches generate two 'move' events, each of
27
+ * them triggering `onResponderMove`. But with the way `PanResponder` works,
28
+ * all of the gesture inference is performed on the first dispatch, since it
29
+ * looks at all of the touches. Therefore, `PanResponder` does not call
30
+ * `onResponderMove` passed the first dispatch. This diverges from the
31
+ * typical responder callback pattern (without using `PanResponder`), but
32
+ * avoids more dispatches than necessary.
33
+ *
34
+ * When moving two touches in opposite directions, the cumulative
35
+ * distance is zero in each dimension. When two touches move in parallel five
36
+ * pixels in the same direction, the cumulative distance is five, not ten. If
37
+ * two touches start, one moves five in a direction, then stops and the other
38
+ * touch moves fives in the same direction, the cumulative distance is ten.
39
+ *
40
+ * This logic requires a kind of processing of time "clusters" of touch events
41
+ * so that two touch moves that essentially occur in parallel but move every
42
+ * other frame respectively, are considered part of the same movement.
43
+ *
44
+ * x/y: If a move event has been observed, `(x, y)` is the centroid of the most
45
+ * recently moved "cluster" of active touches.
46
+ * deltaX/deltaY: Cumulative touch distance. Accounts for touch moves that are
47
+ * clustered together in time, moving the same direction. Only valid when
48
+ * currently responder (otherwise, it only represents the drag distance below
49
+ * the threshold).
50
+ */
51
+ _updateGestureStateOnMove(gestureState, touchHistory) {
52
+ var movedAfter = gestureState._accountsForMovesUpTo,
53
+ prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
54
+ prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
55
+ prevDeltaX = gestureState.deltaX,
56
+ prevDeltaY = gestureState.deltaY,
57
+ x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
58
+ y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
59
+ deltaX = prevDeltaX + (x - prevX),
60
+ deltaY = prevDeltaY + (y - prevY),
61
+ dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
62
+ gestureState.deltaX = deltaX, gestureState.deltaY = deltaY, gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.velocityX = (deltaX - prevDeltaX) / dt, gestureState.velocityY = (deltaY - prevDeltaY) / dt, gestureState.x = x, gestureState.y = y, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
63
+ },
64
+ /**
65
+ * Enhanced versions of all of the responder callbacks that provide not only
66
+ * the `ResponderEvent`, but also the `PanResponder` gesture state.
67
+ *
68
+ * In general, for events that have capture equivalents, we update the
69
+ * gestureState once in the capture phase and can use it in the bubble phase
70
+ * as well.
71
+ */
72
+ create(config) {
73
+ var interactionState = {
74
+ handle: null
75
+ },
76
+ gestureState = {
77
+ // Useful for debugging
78
+ stateID: Math.random(),
79
+ x: 0,
80
+ y: 0,
81
+ initialX: 0,
82
+ initialY: 0,
83
+ deltaX: 0,
84
+ deltaY: 0,
85
+ velocityX: 0,
86
+ velocityY: 0,
87
+ numberActiveTouches: 0,
88
+ _accountsForMovesUpTo: 0
89
+ },
90
+ {
91
+ onStartShouldSetResponder,
92
+ onStartShouldSetResponderCapture,
93
+ onMoveShouldSetResponder,
94
+ onMoveShouldSetResponderCapture,
95
+ onPanGrant,
96
+ onPanStart,
97
+ onPanMove,
98
+ onPanEnd,
99
+ onPanRelease,
100
+ onPanReject,
101
+ onPanTerminate,
102
+ onPanTerminationRequest
103
+ } = config,
104
+ panHandlers = {
105
+ onStartShouldSetResponder(event) {
106
+ return onStartShouldSetResponder != null ? onStartShouldSetResponder(event, gestureState) : !1;
107
+ },
108
+ onMoveShouldSetResponder(event) {
109
+ return onMoveShouldSetResponder != null ? onMoveShouldSetResponder(event, gestureState) : !1;
110
+ },
111
+ onStartShouldSetResponderCapture(event) {
112
+ return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, onStartShouldSetResponderCapture != null ? onStartShouldSetResponderCapture(event, gestureState) : !1;
113
+ },
114
+ onMoveShouldSetResponderCapture(event) {
115
+ var touchHistory = event.touchHistory;
116
+ return PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onMoveShouldSetResponderCapture != null ? onMoveShouldSetResponderCapture(event, gestureState) : !1;
117
+ },
118
+ onResponderGrant(event) {
119
+ interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), gestureState.initialX = currentCentroidX(event.touchHistory), gestureState.initialY = currentCentroidY(event.touchHistory), gestureState.deltaX = 0, gestureState.deltaY = 0, onPanGrant?.(event, gestureState);
120
+ },
121
+ onResponderReject(event) {
122
+ clearInteractionHandle(interactionState, onPanReject, event, gestureState);
123
+ },
124
+ onResponderStart(event) {
125
+ var {
126
+ numberActiveTouches
127
+ } = event.touchHistory;
128
+ gestureState.numberActiveTouches = numberActiveTouches, onPanStart?.(event, gestureState);
129
+ },
130
+ onResponderMove(event) {
131
+ var touchHistory = event.touchHistory;
132
+ gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), onPanMove?.(event, gestureState));
133
+ },
134
+ onResponderEnd(event) {
135
+ var {
136
+ numberActiveTouches
137
+ } = event.touchHistory;
138
+ gestureState.numberActiveTouches = numberActiveTouches, clearInteractionHandle(interactionState, onPanEnd, event, gestureState);
139
+ },
140
+ onResponderRelease(event) {
141
+ clearInteractionHandle(interactionState, onPanRelease, event, gestureState), PanResponder._initializeGestureState(gestureState);
142
+ },
143
+ onResponderTerminate(event) {
144
+ clearInteractionHandle(interactionState, onPanTerminate, event, gestureState), PanResponder._initializeGestureState(gestureState);
145
+ },
146
+ onResponderTerminationRequest(event) {
147
+ return onPanTerminationRequest != null ? onPanTerminationRequest(event, gestureState) : !0;
148
+ }
149
+ };
150
+ return {
151
+ panHandlers,
152
+ getInteractionHandle() {
153
+ return interactionState.handle;
154
+ }
155
+ };
156
+ }
157
+ };
121
158
  function clearInteractionHandle(interactionState, callback, event, gestureState) {
122
159
  interactionState.handle && (InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
123
160
  }
124
161
  var Alternative_default = PanResponder;
125
- export {
126
- Alternative_default as default
127
- };
162
+ export { Alternative_default as default };
128
163
  //# sourceMappingURL=Alternative.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/Alternative.tsx"],
4
- "mappings": "AAqDA,SAASA,0BAA0B;AAEnC,OAAOC,sBAAsB;AAsD7B,IAAM,EACJC,kBACAC,kBACAC,uCACAC,uCACAC,wCACAC,uCAAsC,IACpCN,kBAEEO,eAAe;EACnBC,wBAAwBC,cAA0B;AAChDA,iBAAaC,IAAI,GACjBD,aAAaE,IAAI,GACjBF,aAAaG,WAAW,GACxBH,aAAaI,WAAW,GACxBJ,aAAaK,SAAS,GACtBL,aAAaM,SAAS,GACt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OxC,YAAAA;MAC5D;MAEAmD,mBAAmBX,OAAiB;AAElCO,+BAAuBzB,kBAAkBa,cAAcK,OAAOxC,YAAAA,GAC9DF,aAAaC,wBAAwBC,YAAAA;MACvC;MAEAoD,qBAAqBZ,OAAiB;AAEpCO,+BAAuBzB,kBAAkBe,gBAAgBG,OAAOxC,YAAAA,GAChEF,aAAaC,wBAAwBC,YAAAA;MACvC;MAEAqD,8BAA8Bb,OAAiB;AAC7C,eAAOF,2BAA2B,OAC9BA,wBAAwBE,OAAOxC,YAAAA,IAC/B;MACN;IACF;AACA,WAAO;MACLuC;MACAe,uBAAAA;AACE,eAAOhC,iBAAiBC;MAC1B;IACF;EACF;AACF;AAEA,SAASwB,uBACPzB,kBAGAiC,UACAf,OACAxC,cAA0B;AAE1B,EAAIsB,iBAAiBC,WACnBjC,mBAAmByD,uBAAuBzB,iBAAiBC,MAAM,GACjED,iBAAiBC,SAAS,OAExBgC,YACFA,SAASf,OAAOxC,YAAAA;AAEpB;AAEA,IAAA,sBAAeF;",
5
- "names": ["InteractionManager", "TouchHistoryMath", "currentCentroidX", "currentCentroidY", "currentCentroidXOfTouchesChangedAfter", "currentCentroidYOfTouchesChangedAfter", "previousCentroidXOfTouchesChangedAfter", "previousCentroidYOfTouchesChangedAfter", "PanResponder", "_initializeGestureState", "gestureState", "x", "y", "initialX", "initialY", "deltaX", "deltaY", "velocityX", "velocityY", "numberActiveTouches", "_accountsForMovesUpTo", "_updateGestureStateOnMove", "touchHistory", "movedAfter", "prevX", "prevY", "prevDeltaX", "prevDeltaY", "dt", "mostRecentTimeStamp", "create", "config", "interactionState", "handle", "stateID", "Math", "random", "onStartShouldSetResponder", "onStartShouldSetResponderCapture", "onMoveShouldSetResponder", "onMoveShouldSetResponderCapture", "onPanGrant", "onPanStart", "onPanMove", "onPanEnd", "onPanRelease", "onPanReject", "onPanTerminate", "onPanTerminationRequest", "panHandlers", "event", "nativeEvent", "touches", "length", "onResponderGrant", "createInteractionHandle", "onResponderReject", "clearInteractionHandle", "onResponderStart", "onResponderMove", "onResponderEnd", "onResponderRelease", "onResponderTerminate", "onResponderTerminationRequest", "getInteractionHandle", "callback"]
6
- }
1
+ {"version":3,"names":["InteractionManager","TouchHistoryMath","currentCentroidX","currentCentroidY","currentCentroidXOfTouchesChangedAfter","currentCentroidYOfTouchesChangedAfter","previousCentroidXOfTouchesChangedAfter","previousCentroidYOfTouchesChangedAfter","PanResponder","_initializeGestureState","gestureState","x","y","initialX","initialY","deltaX","deltaY","velocityX","velocityY","numberActiveTouches","_accountsForMovesUpTo","_updateGestureStateOnMove","touchHistory","movedAfter","prevX","prevY","prevDeltaX","prevDeltaY","dt","mostRecentTimeStamp","create","config","interactionState","handle","stateID","Math","random","onStartShouldSetResponder","onStartShouldSetResponderCapture","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onPanGrant","onPanStart","onPanMove","onPanEnd","onPanRelease","onPanReject","onPanTerminate","onPanTerminationRequest","panHandlers","event","nativeEvent","touches","length","onResponderGrant","createInteractionHandle","onResponderReject","clearInteractionHandle","onResponderStart","onResponderMove","onResponderEnd","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","getInteractionHandle","callback","Alternative_default"],"sources":["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/Alternative.tsx"],"sourcesContent":[null],"mappings":"AAqDA,SAASA,kBAAA,QAA0B;AAEnC,OAAOC,gBAAA,MAAsB;AAsD7B,IAAM;IACJC,gBAAA;IACAC,gBAAA;IACAC,qCAAA;IACAC,qCAAA;IACAC,sCAAA;IACAC;EAAsC,IACpCN,gBAAA;EAEEO,YAAA,GAAe;IACnBC,wBAAwBC,YAAA,EAA0B;MAChDA,YAAA,CAAaC,CAAA,GAAI,GACjBD,YAAA,CAAaE,CAAA,GAAI,GACjBF,YAAA,CAAaG,QAAA,GAAW,GACxBH,YAAA,CAAaI,QAAA,GAAW,GACxBJ,YAAA,CAAaK,MAAA,GAAS,GACtBL,YAAA,CAAaM,MAA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kBa,YAAA,EAAcK,KAAA,EAAOxC,YAAA,GAC9DF,YAAA,CAAaC,uBAAA,CAAwBC,YAAA;UACvC;UAEAoD,qBAAqBZ,KAAA,EAAiB;YAEpCO,sBAAA,CAAuBzB,gBAAA,EAAkBe,cAAA,EAAgBG,KAAA,EAAOxC,YAAA,GAChEF,YAAA,CAAaC,uBAAA,CAAwBC,YAAA;UACvC;UAEAqD,8BAA8Bb,KAAA,EAAiB;YAC7C,OAAOF,uBAAA,IAA2B,OAC9BA,uBAAA,CAAwBE,KAAA,EAAOxC,YAAA,IAC/B;UACN;QACF;MACA,OAAO;QACLuC,WAAA;QACAe,qBAAA;UACE,OAAOhC,gBAAA,CAAiBC,MAAA;QAC1B;MACF;IACF;EACF;AAEA,SAASwB,uBACPzB,gBAAA,EAGAiC,QAAA,EACAf,KAAA,EACAxC,YAAA,EAA0B;EAEtBsB,gBAAA,CAAiBC,MAAA,KACnBjC,kBAAA,CAAmByD,sBAAA,CAAuBzB,gBAAA,CAAiBC,MAAM,GACjED,gBAAA,CAAiBC,MAAA,GAAS,OAExBgC,QAAA,IACFA,QAAA,CAASf,KAAA,EAAOxC,YAAA;AAEpB;AAEA,IAAAwD,mBAAA,GAAe1D,YAAA","ignoreList":[]}
@@ -1,6 +1,4 @@
1
- import PanResponder from "../vendor/react-native/PanResponder/index";
1
+ import PanResponder from "../vendor/react-native/PanResponder/index.native.js";
2
2
  var PanResponder_default = PanResponder;
3
- export {
4
- PanResponder_default as default
5
- };
6
- //# sourceMappingURL=index.js.map
3
+ export { PanResponder_default as default };
4
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/PanResponder/index.tsx"],
4
- "mappings": "AAAA,OAAOA,kBAAkB;AACzB,IAAA,uBAAeA;",
5
- "names": ["PanResponder"]
6
- }
1
+ {"version":3,"names":["PanResponder","PanResponder_default"],"sources":["../../../src/PanResponder/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,OAAOA,YAAA,MAAkB;AACzB,IAAOC,oBAAA,GAAQD,YAAA","ignoreList":[]}
@@ -1,7 +1,6 @@
1
- import Dimensions from "../Dimensions/index";
1
+ import Dimensions from "../Dimensions/index.native.js";
2
2
  function _class_call_check(instance, Constructor) {
3
- if (!(instance instanceof Constructor))
4
- throw new TypeError("Cannot call a class as a function");
3
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
5
4
  }
6
5
  function _defineProperties(target, props) {
7
6
  for (var i = 0; i < props.length; i++) {
@@ -12,64 +11,54 @@ function _defineProperties(target, props) {
12
11
  function _create_class(Constructor, protoProps, staticProps) {
13
12
  return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
14
13
  }
15
- var PixelRatio = /* @__PURE__ */ function() {
14
+ var PixelRatio = /* @__PURE__ */function () {
16
15
  "use strict";
16
+
17
17
  function PixelRatio2() {
18
18
  _class_call_check(this, PixelRatio2);
19
19
  }
20
- return _create_class(PixelRatio2, null, [
21
- {
22
- key: "get",
23
- value: (
24
- /**
25
- * Returns the device pixel density.
26
- */
27
- function() {
28
- return Dimensions.get("window").scale;
29
- }
30
- )
31
- },
32
- {
33
- key: "getFontScale",
34
- value: (
35
- /**
36
- * No equivalent for Web
37
- */
38
- function() {
39
- return Dimensions.get("window").fontScale || PixelRatio2.get();
40
- }
41
- )
42
- },
43
- {
44
- key: "getPixelSizeForLayoutSize",
45
- value: (
46
- /**
47
- * Converts a layout size (dp) to pixel size (px).
48
- * Guaranteed to return an integer number.
49
- */
50
- function(layoutSize) {
51
- return Math.round(layoutSize * PixelRatio2.get());
52
- }
53
- )
54
- },
55
- {
56
- key: "roundToNearestPixel",
57
- value: (
58
- /**
59
- * Rounds a layout size (dp) to the nearest layout size that corresponds to
60
- * an integer number of pixels. For example, on a device with a PixelRatio
61
- * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
62
- * exactly (8.33 * 3) = 25 pixels.
63
- */
64
- function(layoutSize) {
65
- var ratio = PixelRatio2.get();
66
- return Math.round(layoutSize * ratio) / ratio;
67
- }
68
- )
69
- }
70
- ]), PixelRatio2;
20
+ return _create_class(PixelRatio2, null, [{
21
+ key: "get",
22
+ value: (
23
+ /**
24
+ * Returns the device pixel density.
25
+ */
26
+ function () {
27
+ return Dimensions.get("window").scale;
28
+ })
29
+ }, {
30
+ key: "getFontScale",
31
+ value: (
32
+ /**
33
+ * No equivalent for Web
34
+ */
35
+ function () {
36
+ return Dimensions.get("window").fontScale || PixelRatio2.get();
37
+ })
38
+ }, {
39
+ key: "getPixelSizeForLayoutSize",
40
+ value: (
41
+ /**
42
+ * Converts a layout size (dp) to pixel size (px).
43
+ * Guaranteed to return an integer number.
44
+ */
45
+ function (layoutSize) {
46
+ return Math.round(layoutSize * PixelRatio2.get());
47
+ })
48
+ }, {
49
+ key: "roundToNearestPixel",
50
+ value: (
51
+ /**
52
+ * Rounds a layout size (dp) to the nearest layout size that corresponds to
53
+ * an integer number of pixels. For example, on a device with a PixelRatio
54
+ * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to
55
+ * exactly (8.33 * 3) = 25 pixels.
56
+ */
57
+ function (layoutSize) {
58
+ var ratio = PixelRatio2.get();
59
+ return Math.round(layoutSize * ratio) / ratio;
60
+ })
61
+ }]), PixelRatio2;
71
62
  }();
72
- export {
73
- PixelRatio as default
74
- };
75
- //# sourceMappingURL=index.js.map
63
+ export { PixelRatio as default };
64
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/PixelRatio/Users/n8/tamagui/code/packages/react-native-web-lite/src/PixelRatio/index.tsx"],
4
- "mappings": "AAUA,OAAOA,gBAAgB;AAFtB,SAAA,kBAAA,UAAA,aAAA;;;;;;;;;;;;;AAOc,IAAMC,aAAN,2BAAA;;WAAMA,cAAAA;4BAAAA,WAAAA;;uBAAAA,aAAAA,MAAAA;;MAIZC,KAAAA;;;;;QAAP,WAAOA;AACL,iBAAOF,WAAWE,IAAI,QAAA,EAAUC;QAClC;;;;MAKOC,KAAAA;;;;;QAAP,WAAOA;AACL,iBAAOJ,WAAWE,IAAI,QAAA,EAAUG,aAZfJ,YAYuCC,IAAG;QAC7D;;;;MAMOI,KAAAA;;;;;;QAAP,SAAiCC,YAAkB;AACjD,iBAAOC,KAAKC,MAAMF,aApBDN,YAoByBC,IAAG,CAAA;QAC/C;;;;MAQOQ,KAAAA;;;;;;;;QAAP,SAA2BH,YAAkB;AAC3C,cAAMI,QA9BWV,YA8BQC,IAAG;AAC5B,iBAAOM,KAAKC,MAAMF,aAAaI,KAAAA,IAASA;QAC1C;;;MAhCmBV;;",
5
- "names": ["Dimensions", "PixelRatio", "get", "scale", "getFontScale", "fontScale", "getPixelSizeForLayoutSize", "layoutSize", "Math", "round", "roundToNearestPixel", "ratio"]
6
- }
1
+ {"version":3,"names":["Dimensions","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","PixelRatio","PixelRatio2","value","get","scale"],"sources":["../../../src/PixelRatio/index.tsx"],"sourcesContent":[null],"mappings":"AAUA,OAAOA,UAAA,MAAgB;AAKvB,SAAOC,iBAAyBA,CAAAC,QAAA,EAAAC,WAAA;EAAA,MAAAD,QAAA,YAAAC,WAAA,aAAAC,SAAA;AAAA;AAAA,SAIvBC,iBAAcA,CAAAC,MAAA,EAAAC,KAAA;EACnB,SAAOC,CAAA,MAAAA,CAAA,GAAWD,KAAI,CAAAE,MAAQ,EAAED,CAAA;IAClC,IAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA;IAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,QAAAD,UAAA,CAAAE,YAAA,kBAAAF,UAAA,KAAAA,UAAA,CAAAG,QAAA,QAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAI,UAAA,CAAAM,GAAA,EAAAN,UAAA;EAAA;AAAA;AAAA,SAKOO,cAAAd,WAAuB,EAAAe,UAAA,EAAAC,WAAA;EAC5B,OAAAD,UAAO,IAAWb,iBAAc,CAAAF,WAAa,CAAAiB,SAAW,EAAIF,UAAA,GAAAC,WAAA,IAAAd,iBAAA,CAAAF,WAAA,EAAAgB,WAAA,GAAAhB,WAAA;AAAA;AAC9D,IAAAkB,UAAA;EAAA;;EAAA,SAAAC,YAAA;IAAArB,iBAAA,OAAAqB,WAAA;EAMA;EACE,OAAAL,aAAkB,CAAAK,WAAA,EAAa,OACjC;IAAAN,GAAA;IAAAO,KAAA;IAAA;AAAA;AAAA;IAAA,SAAAA,CAAA;MAQO,OAAAvB,UAAA,CAAAwB,GAAoB,UAA4B,CAAAC,KAAA;IACrD;EAEF,GACF","ignoreList":[]}