react-native-screen-transitions 3.9.0-beta.2 → 3.9.0

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 (262) hide show
  1. package/lib/commonjs/shared/components/boundary/components/boundary-target.js +19 -14
  2. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
  3. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
  4. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  5. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +1 -0
  6. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
  7. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
  8. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  9. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +4 -3
  10. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
  11. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
  12. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
  13. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +4 -3
  14. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  15. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +2 -3
  16. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
  17. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
  18. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  19. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
  20. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
  21. package/lib/commonjs/shared/components/boundary/portal/teleport.js +2 -1
  22. package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
  23. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +4 -1
  24. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  25. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +16 -3
  26. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  27. package/lib/commonjs/shared/configs/index.js +2 -1
  28. package/lib/commonjs/shared/configs/index.js.map +1 -1
  29. package/lib/commonjs/shared/configs/specs.js +23 -1
  30. package/lib/commonjs/shared/configs/specs.js.map +1 -1
  31. package/lib/commonjs/shared/constants.js +4 -0
  32. package/lib/commonjs/shared/constants.js.map +1 -1
  33. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
  34. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  35. package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
  36. package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
  38. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
  40. package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +25 -3
  42. package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  43. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
  44. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  45. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
  46. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
  47. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
  48. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
  49. package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js +2 -0
  50. package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
  51. package/lib/commonjs/shared/providers/screen/gestures/shared/values.js +2 -0
  52. package/lib/commonjs/shared/providers/screen/gestures/shared/values.js.map +1 -1
  53. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
  54. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  55. package/lib/commonjs/shared/stores/gesture.store.js +8 -0
  56. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  57. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +24 -7
  58. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  59. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +5 -2
  60. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  61. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +184 -314
  62. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  63. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +13 -18
  64. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
  65. package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +196 -0
  66. package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
  67. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +97 -108
  68. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  69. package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +73 -0
  70. package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
  71. package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +90 -0
  72. package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
  73. package/lib/module/shared/components/boundary/components/boundary-target.js +20 -15
  74. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
  75. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
  76. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  77. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +2 -1
  78. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
  79. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
  80. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  81. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +5 -4
  82. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
  83. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
  84. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
  85. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +5 -4
  86. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  87. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +3 -4
  88. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
  89. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
  90. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  91. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
  92. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
  93. package/lib/module/shared/components/boundary/portal/teleport.js +1 -0
  94. package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
  95. package/lib/module/shared/components/boundary/portal/utils/ownership.js +4 -1
  96. package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  97. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +17 -4
  98. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  99. package/lib/module/shared/configs/index.js +3 -2
  100. package/lib/module/shared/configs/index.js.map +1 -1
  101. package/lib/module/shared/configs/specs.js +22 -0
  102. package/lib/module/shared/configs/specs.js.map +1 -1
  103. package/lib/module/shared/constants.js +4 -0
  104. package/lib/module/shared/constants.js.map +1 -1
  105. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
  106. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  107. package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
  108. package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
  109. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
  110. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  111. package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
  112. package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
  113. package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +23 -2
  114. package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  115. package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
  116. package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  117. package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
  118. package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
  119. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
  120. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
  121. package/lib/module/shared/providers/screen/gestures/shared/snapshot.js +2 -0
  122. package/lib/module/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
  123. package/lib/module/shared/providers/screen/gestures/shared/values.js +2 -0
  124. package/lib/module/shared/providers/screen/gestures/shared/values.js.map +1 -1
  125. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
  126. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  127. package/lib/module/shared/stores/gesture.store.js +8 -0
  128. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  129. package/lib/module/shared/types/bounds.types.js +26 -0
  130. package/lib/module/shared/types/bounds.types.js.map +1 -1
  131. package/lib/module/shared/utils/animation/animate-to-progress.js +24 -7
  132. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  133. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +5 -2
  134. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  135. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +188 -318
  136. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  137. package/lib/module/shared/utils/bounds/navigation/zoom/config.js +12 -17
  138. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
  139. package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +184 -0
  140. package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
  141. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +94 -102
  142. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  143. package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +68 -0
  144. package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
  145. package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +84 -0
  146. package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
  147. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +3 -1
  148. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
  149. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
  150. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -1
  151. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
  152. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +1 -3
  153. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
  154. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
  155. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
  156. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +2 -3
  157. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -1
  158. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
  159. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +2 -3
  160. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
  161. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -0
  162. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
  163. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
  164. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +1 -0
  165. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  166. package/lib/typescript/shared/configs/index.d.ts +16 -0
  167. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  168. package/lib/typescript/shared/configs/specs.d.ts +19 -0
  169. package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
  170. package/lib/typescript/shared/constants.d.ts.map +1 -1
  171. package/lib/typescript/shared/index.d.ts +17 -1
  172. package/lib/typescript/shared/index.d.ts.map +1 -1
  173. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  174. package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts +2 -0
  175. package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
  176. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts +2 -1
  177. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
  178. package/lib/typescript/shared/providers/screen/gestures/pan/use-build-pan-gesture.d.ts.map +1 -1
  179. package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -0
  180. package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
  181. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
  182. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
  183. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
  184. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
  185. package/lib/typescript/shared/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
  186. package/lib/typescript/shared/providers/screen/gestures/shared/values.d.ts.map +1 -1
  187. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +4 -0
  188. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  189. package/lib/typescript/shared/stores/gesture.store.d.ts +4 -0
  190. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  191. package/lib/typescript/shared/types/bounds.types.d.ts +115 -88
  192. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  193. package/lib/typescript/shared/types/gesture.types.d.ts +10 -0
  194. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  195. package/lib/typescript/shared/types/index.d.ts +1 -1
  196. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  197. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  198. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +3 -1
  199. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
  200. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts +1 -1
  201. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  202. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +7 -17
  203. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
  204. package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +55 -0
  205. package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -0
  206. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +33 -34
  207. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
  208. package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +27 -0
  209. package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -0
  210. package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +22 -0
  211. package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -0
  212. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts +1 -1
  213. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
  214. package/package.json +2 -2
  215. package/src/shared/components/boundary/components/boundary-target.tsx +37 -26
  216. package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +16 -13
  217. package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +6 -2
  218. package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +46 -3
  219. package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +8 -5
  220. package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +3 -2
  221. package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +5 -4
  222. package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +4 -5
  223. package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +5 -1
  224. package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +1 -4
  225. package/src/shared/components/boundary/portal/teleport.ts +1 -0
  226. package/src/shared/components/boundary/portal/utils/ownership.ts +5 -1
  227. package/src/shared/components/boundary/providers/boundary-root.provider.tsx +23 -3
  228. package/src/shared/configs/index.ts +2 -1
  229. package/src/shared/configs/specs.ts +23 -0
  230. package/src/shared/constants.ts +4 -0
  231. package/src/shared/index.ts +2 -0
  232. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +8 -0
  233. package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +16 -7
  234. package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +18 -1
  235. package/src/shared/providers/screen/gestures/pan/use-build-pan-gesture.ts +1 -0
  236. package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +40 -2
  237. package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -11
  238. package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +12 -15
  239. package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +6 -1
  240. package/src/shared/providers/screen/gestures/shared/snapshot.ts +2 -0
  241. package/src/shared/providers/screen/gestures/shared/values.ts +2 -0
  242. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -1
  243. package/src/shared/stores/gesture.store.ts +12 -0
  244. package/src/shared/types/bounds.types.ts +119 -90
  245. package/src/shared/types/gesture.types.ts +10 -0
  246. package/src/shared/types/index.ts +2 -0
  247. package/src/shared/utils/animation/animate-to-progress.ts +23 -7
  248. package/src/shared/utils/bounds/navigation/reveal/math.ts +6 -1
  249. package/src/shared/utils/bounds/navigation/zoom/build.ts +231 -411
  250. package/src/shared/utils/bounds/navigation/zoom/config.ts +16 -18
  251. package/src/shared/utils/bounds/navigation/zoom/drag.ts +327 -0
  252. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +127 -184
  253. package/src/shared/utils/bounds/navigation/zoom/mask.ts +133 -0
  254. package/src/shared/utils/bounds/navigation/zoom/targets.ts +132 -0
  255. package/src/shared/utils/bounds/navigation/zoom/types.ts +1 -1
  256. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +0 -25
  257. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
  258. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +0 -20
  259. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
  260. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +0 -8
  261. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +0 -1
  262. package/src/shared/utils/bounds/navigation/zoom/math.ts +0 -25
@@ -1,4 +1,4 @@
1
- import type { MeasuredDimensions } from "react-native-reanimated";
1
+ import type { ColorValue } from "react-native";
2
2
  import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../constants";
3
3
  import type { BoundsLink } from "../stores/bounds/types";
4
4
  import type { BoundsComputeOptions, BoundsIdentityInput, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsStyleResult, BoundsValuesResult } from "../utils/bounds/types/options";
@@ -13,78 +13,138 @@ export type { BoundsLink, BoundsLinkStatus } from "../stores/bounds/types";
13
13
  * so the target bound matches the source at progress start
14
14
  */
15
15
  export type BoundsMethod = "transform" | "size" | "content";
16
+ /**
17
+ * Axis-specific response intensity used by {@linkcode BoundsNavigationZoomDragOptions}.
18
+ *
19
+ * `0` disables the response on an axis, `1` preserves the native zoom preset,
20
+ * and values above `1` exaggerate it.
21
+ */
22
+ export type BoundsNavigationZoomAxisResponse = {
23
+ /** Horizontal gesture response multiplier. @default 1 */
24
+ horizontal?: number;
25
+ /** Vertical gesture response multiplier. @default 1 */
26
+ vertical?: number;
27
+ };
28
+ /**
29
+ * Adjusts the intensity of zoom's native drag behavior without replacing its
30
+ * built-in curves.
31
+ *
32
+ * @see {@linkcode BoundsNavigationZoomOptions.drag}
33
+ */
34
+ export type BoundsNavigationZoomDragOptions = {
35
+ /**
36
+ * Multiplies the native rendered translation.
37
+ *
38
+ * @default { horizontal: 1, vertical: 1 }
39
+ */
40
+ translation?: BoundsNavigationZoomAxisResponse;
41
+ /**
42
+ * Multiplies the native scale displacement from `1`.
43
+ *
44
+ * @default { horizontal: 1, vertical: 1 }
45
+ */
46
+ scale?: BoundsNavigationZoomAxisResponse;
47
+ };
48
+ /**
49
+ * Legacy zoom opacity interpolation tuple.
50
+ *
51
+ * @deprecated Zoom opacity ownership now follows the native preset.
52
+ */
53
+ export type BoundsNavigationZoomOpacityRange = readonly [
54
+ inputStart: number,
55
+ inputEnd: number,
56
+ outputStart?: number,
57
+ outputEnd?: number
58
+ ];
59
+ /**
60
+ * Legacy opening and closing zoom opacity ranges.
61
+ *
62
+ * @deprecated Zoom opacity ownership now follows the native preset.
63
+ */
64
+ export type BoundsNavigationZoomOpacityRanges = {
65
+ open?: BoundsNavigationZoomOpacityRange;
66
+ close?: BoundsNavigationZoomOpacityRange;
67
+ };
16
68
  export type BoundsNavigationZoomOptions = {
17
- target?: "bound" | "fullscreen" | MeasuredDimensions;
18
- debug?: boolean;
19
- borderRadius?: number;
20
69
  /**
21
- * Focused-screen element opacity curve.
70
+ * Geometry that the zoomed content should resolve against.
71
+ *
72
+ * `"bound"` uses the paired destination boundary. `"fullscreen"` uses the
73
+ * screen, and measured dimensions provide an explicit target rectangle.
74
+ * When omitted, zoom keeps its native full-width aspect-ratio target.
75
+ */
76
+ target?: BoundsComputeOptions["target"];
77
+ /**
78
+ * Keeps the focused screen content visible throughout the zoom.
22
79
  *
23
- * `open` is used while presenting the destination screen.
24
- * `close` is used while returning to the source screen.
80
+ * Enable this for handed-off or live content that should not use zoom's
81
+ * built-in focused-content opacity fade.
25
82
  *
26
- * Tuple order:
27
- * - `inputStart`: transition progress start
28
- * - `inputEnd`: transition progress end
29
- * - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
30
- * - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
83
+ * @default false
31
84
  */
32
- focusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
85
+ keepFocusedVisible?: boolean;
33
86
  /**
34
- * Unfocused-screen matched element opacity curve.
87
+ * Expanded transition clipping radius.
35
88
  *
36
- * `open` is used while the previous screen animates out during present.
37
- * `close` is used while the previous screen animates back in during dismiss.
89
+ * Zoom interpolates from the measured source radius to this value while the
90
+ * screen is animating. This controls the visible clipping result regardless
91
+ * of whether a navigation mask is enabled.
38
92
  *
39
- * Tuple order:
40
- * - `inputStart`: transition progress start
41
- * - `inputEnd`: transition progress end
42
- * - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
43
- * - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
93
+ * @default 64
44
94
  */
45
- unfocusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
95
+ borderRadius?: number;
46
96
  /**
47
- * Scale applied to the unfocused background content while the focused bound
48
- * animates above it.
97
+ * Scale applied to the unfocused screen while the zoom runs above it.
98
+ *
99
+ * @default 0.9375
49
100
  */
50
101
  backgroundScale?: number;
51
102
  /**
52
- * Maximum dynamic gesture sensitivity applied by zoom.
53
- *
54
- * Zoom lowers gesture sensitivity as the drag gets deeper so the content
55
- * handoff stays stable. This value controls the starting/highest sensitivity
56
- * in that curve.
103
+ * Color rendered behind the focused zoom content.
57
104
  *
58
- * @default 0.8
105
+ * @default "black"
59
106
  */
60
- maxSensitivity?: number;
107
+ backdropColor?: ColorValue;
61
108
  /**
62
- * Velocity-driven depth applied to the dismiss scale handoff.
109
+ * Maximum opacity reached by the zoom backdrop.
63
110
  *
64
- * Higher values make fast releases orbit farther around the final scale. Set
65
- * to `0` to remove the velocity depth effect.
111
+ * Values are clamped between `0` and `1`.
66
112
  *
67
- * @default 0.5
113
+ * @default 0.45
114
+ */
115
+ backdropOpacity?: number;
116
+ /**
117
+ * Native drag-response intensity controls.
118
+ */
119
+ drag?: BoundsNavigationZoomDragOptions;
120
+ /**
121
+ * @deprecated Ignored. Zoom no longer exposes a transition-specific debug
122
+ * overlay.
123
+ */
124
+ debug?: boolean;
125
+ /**
126
+ * @deprecated Ignored. Zoom opacity ownership now follows the native preset.
127
+ */
128
+ focusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
129
+ /**
130
+ * @deprecated Ignored. Zoom opacity ownership now follows the native preset.
131
+ */
132
+ unfocusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
133
+ /**
134
+ * @deprecated Ignored. Zoom now owns its gesture sensitivity curve.
135
+ */
136
+ maxSensitivity?: number;
137
+ /**
138
+ * @deprecated Ignored. Zoom now owns its velocity-depth behavior.
68
139
  */
69
140
  velocityDepth?: number;
70
141
  /**
71
- * Deprecated compatibility option.
72
- *
73
- * Gesture movement now always contributes to `progress`; use `transitionProgress`
74
- * when a recipe needs transition progress without live gesture contribution.
75
- * The zoom helper no longer reads this option.
76
- *
77
- * @deprecated Use `transitionProgress` from interpolation state instead.
142
+ * @deprecated Ignored. Gesture movement always contributes to `progress`.
78
143
  */
79
144
  gestureProgressMode?: GestureProgressMode;
80
145
  /**
81
- * Horizontal gesture drag scaling curve, applied when the active dismiss
82
- * direction is horizontal.
83
- *
84
- * Tuple order:
85
- * - `shrinkMin`: minimum scale when dragging toward dismissal
86
- * - `growMax`: maximum scale when dragging opposite dismissal
87
- * - `exponent`: curve exponent controlling how quickly scaling ramps
146
+ * @deprecated Ignored. Use `drag.scale.horizontal` to adjust response
147
+ * intensity without replacing the native curve.
88
148
  */
89
149
  horizontalDragScale?: readonly [
90
150
  shrinkMin: number,
@@ -92,13 +152,8 @@ export type BoundsNavigationZoomOptions = {
92
152
  exponent?: number
93
153
  ];
94
154
  /**
95
- * Vertical gesture drag scaling curve, applied when the active dismiss
96
- * direction is vertical.
97
- *
98
- * Tuple order:
99
- * - `shrinkMin`: minimum scale when dragging toward dismissal
100
- * - `growMax`: maximum scale when dragging opposite dismissal
101
- * - `exponent`: curve exponent controlling how quickly scaling ramps
155
+ * @deprecated Ignored. Use `drag.scale.vertical` to adjust response intensity
156
+ * without replacing the native curve.
102
157
  */
103
158
  verticalDragScale?: readonly [
104
159
  shrinkMin: number,
@@ -106,17 +161,8 @@ export type BoundsNavigationZoomOptions = {
106
161
  exponent?: number
107
162
  ];
108
163
  /**
109
- * Horizontal gesture drag translation curve.
110
- *
111
- * Tuple order:
112
- * - `negativeMax`: multiplier when dragging left / negative
113
- * - `positiveMax`: multiplier when dragging right / positive
114
- * - `exponent`: curve exponent controlling how quickly translation ramps
115
- *
116
- * Examples:
117
- * - `[0, 0]` disables horizontal drag translation
118
- * - `[0.5, 0.5]` halves horizontal drag travel
119
- * - `[1.2, 1.2]` amplifies horizontal drag travel
164
+ * @deprecated Ignored. Use `drag.translation.horizontal` to adjust response
165
+ * intensity without replacing the native curve.
120
166
  */
121
167
  horizontalDragTranslation?: readonly [
122
168
  negativeMax: number,
@@ -124,17 +170,8 @@ export type BoundsNavigationZoomOptions = {
124
170
  exponent?: number
125
171
  ];
126
172
  /**
127
- * Vertical gesture drag translation curve.
128
- *
129
- * Tuple order:
130
- * - `negativeMax`: multiplier when dragging up / negative
131
- * - `positiveMax`: multiplier when dragging down / positive
132
- * - `exponent`: curve exponent controlling how quickly translation ramps
133
- *
134
- * Examples:
135
- * - `[0, 0]` disables vertical drag translation
136
- * - `[0.5, 0.5]` halves vertical drag travel
137
- * - `[1.2, 1.2]` amplifies vertical drag travel
173
+ * @deprecated Ignored. Use `drag.translation.vertical` to adjust response
174
+ * intensity without replacing the native curve.
138
175
  */
139
176
  verticalDragTranslation?: readonly [
140
177
  negativeMax: number,
@@ -142,16 +179,6 @@ export type BoundsNavigationZoomOptions = {
142
179
  exponent?: number
143
180
  ];
144
181
  };
145
- export type BoundsNavigationZoomOpacityRange = readonly [
146
- inputStart: number,
147
- inputEnd: number,
148
- outputStart?: number,
149
- outputEnd?: number
150
- ];
151
- export type BoundsNavigationZoomOpacityRanges = {
152
- open?: BoundsNavigationZoomOpacityRange;
153
- close?: BoundsNavigationZoomOpacityRange;
154
- };
155
182
  export type BoundsNavigationZoomStyle = TransitionInterpolatedStyle & {
156
183
  content?: TransitionSlotStyle;
157
184
  [NAVIGATION_MASK_CONTAINER_STYLE_ID]?: TransitionSlotStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OA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AC,SAAS,oBAAoB,GAAG,oBAAoB,EAC7D,OAAO,CAAC,EAAE,CAAC,KACP,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,EAC3D,OAAO,CAAC,EAAE,CAAC,KACP,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,mBAAmB,KAAK,UAAU,GAAG,IAAI,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAC5B,OAAO,EAAE,mBAAmB,KACxB,oBAAoB,CAAC;AAE1B,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAC1C,wBAAwB,EACxB,QAAQ,GAAG,YAAY,CACvB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -110,6 +110,8 @@ export type GestureHandoffValues = {
110
110
  normScale: number;
111
111
  focalX: number;
112
112
  focalY: number;
113
+ pinchOriginX: number;
114
+ pinchOriginY: number;
113
115
  rotation: number;
114
116
  raw: RawGestureValues;
115
117
  /**
@@ -161,6 +163,14 @@ export type GestureValues = {
161
163
  * The live pinch focal point y-position in screen coordinates.
162
164
  */
163
165
  focalY: number;
166
+ /**
167
+ * The pinch focal point x-position captured when the gesture activated.
168
+ */
169
+ pinchOriginX: number;
170
+ /**
171
+ * The pinch focal point y-position captured when the gesture activated.
172
+ */
173
+ pinchOriginY: number;
164
174
  /**
165
175
  * The live two-finger rotation in radians.
166
176
  */
@@ -1 +1 @@
1
- {"version":3,"file":"gesture.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/gesture.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAChD,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ryTeleportControl, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionAccessor, ScreenTransitionDepthTarget, ScreenTransitionOptions, ScreenTransitionState, ScreenTransitionTarget, TransitionInterpolatedStyle, TransitionInterpolatorOptions, TransitionSlotProps, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
3
- export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
3
+ export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomAxisResponse, BoundsNavigationZoomDragOptions, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
4
4
  export type { ActivationArea, GestureActivationArea, GestureDirection, GestureDirectionActivationArea, GestureDirectionConfig, GestureDirectionEntry, GestureDirectionOption, GestureHandoffValues, GestureValues, PanGestureDirection, PinchGestureDirection, RawGestureValues, ScrollGestureAxis, ScrollGestureAxisState, ScrollGestureState, ScrollMetadataState, SideActivation, } from "./gesture.types";
5
5
  export type { OverlayProps } from "./overlay.types";
6
6
  export type { GestureTracking, InactiveBehavior, Layout, ScreenBackdropComponent, ScreenBackdropComponentProps, ScreenContentComponent, ScreenContentComponentProps, ScreenKey, ScreenLayerComponentProps, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,SAyFxB,CAAC"}
1
+ {"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,SAyGxB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { MeasuredDimensions } from "react-native-reanimated";
2
2
  import type { Layout } from "../../../../types/screen.types";
3
+ import type { BoundsAnchor } from "../../types/options";
3
4
  export declare function mixUnit(from: number, to: number, progress: number): number;
4
5
  export declare function interpolateClamped(value: number, inputStart: number, inputEnd: number, outputStart: number, outputEnd: number): number;
5
6
  export declare function resolveSafeScale(scale: number): number;
@@ -31,11 +32,12 @@ export declare function resolveAspectRatioMaskHeight({ maskWidth, maskHeight, ta
31
32
  targetWidth: number;
32
33
  targetHeight: number;
33
34
  }): number;
34
- export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, }: {
35
+ export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, anchor, }: {
35
36
  progress: number;
36
37
  sourceBounds: MeasuredDimensions;
37
38
  destinationBounds: MeasuredDimensions;
38
39
  screenLayout: Layout;
40
+ anchor?: BoundsAnchor;
39
41
  }): {
40
42
  translateX: number;
41
43
  translateY: number;
@@ -1 +1 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAa7D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE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kB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;CACrB;;;;EAgBA;AAED,wBAAgB,oCAAoC,CAAC,EACpD,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;;;;;EAuCA"}
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYxD,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,UAQjB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,eAAO,MAAM,0BAA0B,GACtC,aAAa,MAAM,EACnB,WAAW,MAAM,WAejB,CAAC;AAEF,wBAAgB,iCAAiC,CAChD,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,UAajB;AA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EACX,WAAW,EACX,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;;;;;EAuCA"}
@@ -1,3 +1,3 @@
1
1
  import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
2
- export declare function buildZoomStyles({ tag, zoomOptions, props, }: BuildZoomStylesParams): ZoomInterpolatedStyle;
2
+ export declare function buildZoomStyles({ tag, props, zoomOptions, }: BuildZoomStylesParams): ZoomInterpolatedStyle;
3
3
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA6B5E,wBAAgB,eAAe,CAAC,EAC/B,GAAG,EACH,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CA2a/C"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE5E,wBAAgB,eAAe,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,WAAW,GACX,EAAE,qBAAqB,GAAG,qBAAqB,CAuR/C"}
@@ -2,22 +2,12 @@ export declare const ZOOM_SHARED_OPTIONS: Readonly<{
2
2
  anchor: "top";
3
3
  scaleMode: "uniform";
4
4
  }>;
5
- export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
6
- export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
7
- export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
8
- export declare const ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX = 1;
9
- export declare const ZOOM_DRAG_TRANSLATION_POSITIVE_MAX = 1;
10
- export declare const ZOOM_DRAG_TRANSLATION_EXPONENT = 1;
11
- export declare const ZOOM_DISMISS_SCALE_ORBIT_DEPTH = 0.5;
5
+ export declare const ZOOM_DISMISS_VELOCITY_DEPTH = 1;
12
6
  export declare const ZOOM_BACKGROUND_SCALE = 0.9375;
13
- export declare const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [0, 0.5, 0, 1];
14
- export declare const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [0.6, 1, 0, 1];
15
- export declare const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [1, 2, 1, 0];
16
- export declare const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [1.9, 2, 1, 0];
17
- export declare const ZOOM_MASK_OUTSET: Readonly<{
18
- top: 0;
19
- right: 0;
20
- bottom: 0;
21
- left: 0;
22
- }>;
7
+ export declare const ZOOM_BACKDROP_MAX_OPACITY = 0.45;
8
+ export declare const ZOOM_SCREEN_A_FADE_END = 0.54;
9
+ export declare const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [0, 0.28, 0, 1];
10
+ export declare const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [1.08, 1.32, 1, 0];
11
+ export declare const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [0.13, 0.7, 0, 1];
12
+ export declare const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [1.7, 2, 1, 0];
23
13
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAClD,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,eAAO,MAAM,uCAAuC,yBAA0B,CAAC;AAC/E,eAAO,MAAM,wCAAwC,yBAA0B,CAAC;AAChF,eAAO,MAAM,yCAAyC,uBAAwB,CAAC;AAC/E,eAAO,MAAM,0CAA0C,yBAE7C,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,2BAA2B,IAAM,CAAC;AAC/C,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAG3C,eAAO,MAAM,uCAAuC,0BAA2B,CAAC;AAChF,eAAO,MAAM,yCAAyC,6BAE5C,CAAC;AAEX,eAAO,MAAM,wCAAwC,4BAE3C,CAAC;AACX,eAAO,MAAM,0CAA0C,yBAE7C,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { MeasuredDimensions } from "react-native-reanimated";
2
+ import type { BoundsInterpolationProps, BoundsNavigationZoomDragOptions } from "../../../../types/bounds.types";
3
+ import type { Layout } from "../../../../types/screen.types";
4
+ type ZoomGesture = BoundsInterpolationProps["active"]["gesture"];
5
+ export type ZoomDragState = {
6
+ collapsesMask: boolean;
7
+ dismissContentScale: number;
8
+ dismissNorm: number;
9
+ dismissProgress: number;
10
+ dragX: number;
11
+ dragY: number;
12
+ gestureScale: number;
13
+ isDismissing: boolean;
14
+ isVerticalInverted: boolean;
15
+ rotation: number;
16
+ };
17
+ export declare function resolveZoomDismissContentScale({ transitionRemaining, releaseScale, targetScale, velocity, velocityDepth, }: {
18
+ transitionRemaining: number;
19
+ releaseScale: number;
20
+ targetScale: number;
21
+ velocity: number;
22
+ velocityDepth: number;
23
+ }): number;
24
+ export declare function resolveZoomPrimaryDragTranslation({ translation, dimension, }: {
25
+ translation: number;
26
+ dimension: number;
27
+ }): number;
28
+ export declare function resolveZoomHorizontalDragTranslation({ translation, dimension, }: {
29
+ translation: number;
30
+ dimension: number;
31
+ }): number;
32
+ export declare function resolveZoomCrossAxisDragTranslation({ translation, dimension, }: {
33
+ translation: number;
34
+ dimension: number;
35
+ }): number;
36
+ export declare function resolveZoomDragScale(normalized: number): number;
37
+ export declare function resolveZoomPinchScale(scale: number): number;
38
+ export declare function resolveZoomDismissalNorm(normalized: number, isInverted: boolean): number;
39
+ export declare function resolveZoomDragState({ gesture, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, dragOptions, }: {
40
+ gesture: ZoomGesture;
41
+ activeTransitionProgress: number;
42
+ screenLayout: Layout;
43
+ sourceBounds: MeasuredDimensions;
44
+ trackingContentTarget: MeasuredDimensions;
45
+ dragOptions?: BoundsNavigationZoomDragOptions;
46
+ }): ZoomDragState;
47
+ export declare function resolveZoomTrackedGestureScale({ drag, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, }: {
48
+ drag: ZoomDragState;
49
+ activeTransitionProgress: number;
50
+ screenLayout: Layout;
51
+ sourceBounds: MeasuredDimensions;
52
+ trackingContentTarget: MeasuredDimensions;
53
+ }): number;
54
+ export {};
55
+ //# sourceMappingURL=drag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/drag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAe7D,KAAK,WAAW,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,EAC9C,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,GACb,EAAE;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,UAkBA;AAED,wBAAgB,iCAAiC,CAAC,EACjD,WAAW,EACX,SAAS,GACT,EAAE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB,UAoBA;AAED,wBAAgB,oCAAoC,CAAC,EACpD,WAAW,EACX,SAAS,GACT,EAAE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB,UAOA;AAED,wBAAgB,mCAAmC,CAAC,EACnD,WAAW,EACX,SAAS,GACT,EAAE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB,UAoBA;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,UAatD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,UAGlD;AAED,wBAAgB,wBAAwB,CACvC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,OAAO,UAInB;AAED,wBAAgB,oBAAoB,CAAC,EACpC,OAAO,EACP,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,WAAW,GACX,EAAE;IACF,OAAO,EAAE,WAAW,CAAC;IACrB,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,kBAAkB,CAAC;IACjC,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,WAAW,CAAC,EAAE,+BAA+B,CAAC;CAC9C,GAAG,aAAa,CAoHhB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,IAAI,EACJ,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,qBAAqB,GACrB,EAAE;IACF,IAAI,EAAE,aAAa,CAAC;IACpB,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,kBAAkB,CAAC;IACjC,qBAAqB,EAAE,kBAAkB,CAAC;CAC1C,UAeA"}
@@ -1,39 +1,38 @@
1
- import type { BoundsLink } from "../../../../types/bounds.types";
2
- import type { ActiveGesture, ResolvedPanGestureDirection } from "../../../../types/gesture.types";
1
+ import type { MeasuredDimensions } from "react-native-reanimated";
3
2
  import type { Layout } from "../../../../types/screen.types";
4
- import type { BoundsOptions } from "../../types/options";
5
- export declare function getZoomContentTarget({ explicitTarget, screenLayout, anchor, link, }: {
6
- explicitTarget: BoundsOptions["target"] | undefined;
3
+ import type { BoundsAnchor } from "../../types/options";
4
+ export declare function resolveZoomBackdropOpacity({ transitionProgress, dismissalDrag, fadeEnd, maxOpacity, }: {
5
+ transitionProgress: number;
6
+ dismissalDrag: number;
7
+ fadeEnd: number;
8
+ maxOpacity: number;
9
+ }): number;
10
+ export declare function resolveZoomPinchFocalOffset({ gestureScale, pinchOriginX, pinchOriginY, progress, rotation, screenLayout, }: {
11
+ gestureScale: number;
12
+ pinchOriginX: number;
13
+ pinchOriginY: number;
14
+ progress: number;
15
+ rotation: number;
7
16
  screenLayout: Layout;
8
- anchor: BoundsOptions["anchor"] | undefined;
9
- link: BoundsLink;
10
- }): import("react-native-reanimated").MeasuredDimensions | "bound" | "fullscreen";
11
- export declare function resolveDragScaleTuple(value: readonly [shrinkMin: number, growMax: number, exponent?: number] | undefined): {
12
- shrinkMin: number;
13
- growMax: number;
14
- exponent: number;
15
- };
16
- export declare function resolveDragTranslationTuple(value: readonly [negativeMax: number, positiveMax: number, exponent?: number] | undefined): {
17
- negativeMax: number;
18
- positiveMax: number;
19
- exponent: number;
17
+ }): {
18
+ x: number;
19
+ y: number;
20
20
  };
21
- export declare function resolveBackgroundScale(value: number | undefined): number;
22
- export declare function resolveZoomPanGestureDirection({ active, direction, normX, normY, rawNormX, rawNormY, }: {
23
- active: ActiveGesture | null | undefined;
24
- direction: ActiveGesture | null | undefined;
25
- normX: number;
26
- normY: number;
27
- rawNormX: number;
28
- rawNormY: number;
29
- }): ResolvedPanGestureDirection | null;
30
- export declare function interpolateOpacityRange(params: {
21
+ export declare function resolveZoomTrackedSourceTransform({ progress, sourceBounds, destinationBounds, screenLayout, dragX, dragY, gestureScale, parentScale, rotation, anchor, }: {
31
22
  progress: number;
32
- range: {
33
- inputStart: number;
34
- inputEnd: number;
35
- outputStart: number;
36
- outputEnd: number;
37
- };
38
- }): number;
23
+ sourceBounds: MeasuredDimensions;
24
+ destinationBounds: MeasuredDimensions;
25
+ screenLayout: Layout;
26
+ dragX: number;
27
+ dragY: number;
28
+ gestureScale: number;
29
+ parentScale: number;
30
+ rotation?: number;
31
+ anchor?: BoundsAnchor;
32
+ }): {
33
+ scaleX: number;
34
+ scaleY: number;
35
+ translateX: number;
36
+ translateY: number;
37
+ };
39
38
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EACX,aAAa,EACb,2BAA2B,EAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAWzD,wBAAgB,oBAAoB,CAAC,EACpC,cAAc,EACd,YAAY,EACZ,MAAM,EACN,IAAI,GACJ,EAAE;IACF,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAC5C,IAAI,EAAE,UAAU,CAAC;CACjB,iFAoCA;AAED,wBAAgB,qBAAqB,CACpC,KAAK,EACF,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,GAChE,SAAS;;;;EASZ;AAED,wBAAgB,2BAA2B,CAC1C,KAAK,EACF,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,GACtE,SAAS;;;;EASZ;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,UAI/D;AA4CD,wBAAgB,8BAA8B,CAAC,EAC9C,MAAM,EACN,SAAS,EACT,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,GACR,EAAE;IACF,MAAM,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACjB,GAAG,2BAA2B,GAAG,IAAI,CAiCrC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;CACF,UAWA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD,wBAAgB,0BAA0B,CAAC,EAC1C,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,UAAU,GACV,EAAE;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACnB,UAUA;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACrB;;;EAmBA;AAED,wBAAgB,iCAAiC,CAAC,EACjD,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAY,EACZ,MAAM,GACN,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB;;;;;EAkEA"}
@@ -0,0 +1,27 @@
1
+ import type { MeasuredDimensions } from "react-native-reanimated";
2
+ import type { ScreenTransitionState, TransitionSlotStyle } from "../../../../types/animation.types";
3
+ import type { BoundsLink, BoundsScopedAccessor } from "../../../../types/bounds.types";
4
+ import type { Layout } from "../../../../types/screen.types";
5
+ import type { BoundsAnchor } from "../../types/options";
6
+ import type { ZoomDragState } from "./drag";
7
+ export declare const ZOOM_NAVIGATION_MASK_BORDER_RADIUS = 64;
8
+ interface ZoomNavigationMaskStyleProps {
9
+ scopedBounds: BoundsScopedAccessor;
10
+ link: BoundsLink;
11
+ sourceBounds: MeasuredDimensions;
12
+ screenLayout: Layout;
13
+ transitionProgress: number;
14
+ drag: ZoomDragState;
15
+ contentTransform: {
16
+ translateX: number;
17
+ translateY: number;
18
+ scale: number;
19
+ };
20
+ sourceBorderRadius: number;
21
+ expandedBorderRadius: number;
22
+ active: ScreenTransitionState;
23
+ anchor: BoundsAnchor;
24
+ }
25
+ export declare function resolveZoomNavigationMaskStyle({ scopedBounds, link, sourceBounds, screenLayout, transitionProgress, drag, contentTransform, sourceBorderRadius, expandedBorderRadius, active, anchor, }: ZoomNavigationMaskStyleProps): TransitionSlotStyle;
26
+ export {};
27
+ //# sourceMappingURL=mask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAGrD,UAAU,4BAA4B;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,EACN,MAAM,GACN,EAAE,4BAA4B,GAAG,mBAAmB,CA8EpD"}