react-native-screen-transitions 3.6.0-alpha.1 → 3.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/component-stack/components/component-screen.js +1 -7
- package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +17 -19
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +27 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +23 -51
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +3 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +75 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +15 -2
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +103 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +52 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/commonjs/shared/components/native-screen.js +2 -13
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/constants.js +2 -7
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +35 -0
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/providers/register-bounds.provider.js +48 -55
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +9 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +19 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +18 -2
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +1 -5
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +125 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +6 -12
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +143 -82
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +26 -3
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +2 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +2 -2
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +23 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +91 -199
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +15 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +155 -14
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/module/component-stack/components/component-screen.js +2 -8
- package/lib/module/component-stack/components/component-screen.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +18 -20
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +28 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +22 -50
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +3 -1
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +70 -0
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +13 -1
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +98 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +47 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/module/shared/components/native-screen.js +3 -14
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/constants.js +1 -6
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +30 -0
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/providers/register-bounds.provider.js +48 -55
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +10 -3
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +20 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/physics.js +15 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +3 -3
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +105 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +7 -13
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +14 -22
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +139 -80
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +25 -2
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +2 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +0 -4
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +0 -1
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +18 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +90 -198
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +14 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +144 -12
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +6 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +7 -7
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +11 -7
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.d.ts → utils/measured-bounds.d.ts} +3 -2
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts +16 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +0 -5
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +21 -0
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +0 -10
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +18 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +6 -12
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +13 -10
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +26 -5
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +14 -7
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +1 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +0 -18
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +8 -1
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +14 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +48 -7
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +3 -2
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component-stack/components/component-screen.tsx +3 -11
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -27
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +5 -5
- package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +25 -24
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +41 -11
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +49 -64
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +44 -83
- package/src/shared/components/create-boundary-component/index.tsx +3 -1
- package/src/shared/components/create-boundary-component/types.ts +13 -11
- package/src/shared/components/create-boundary-component/utils/destination-signals.ts +129 -0
- package/src/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.ts → utils/measured-bounds.ts} +25 -1
- package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +164 -0
- package/src/shared/components/create-boundary-component/utils/source-signals.ts +72 -0
- package/src/shared/components/native-screen.tsx +3 -12
- package/src/shared/constants.ts +1 -6
- package/src/shared/index.ts +0 -3
- package/src/shared/providers/helpers/measured-bounds-writes.ts +67 -0
- package/src/shared/providers/register-bounds.provider.tsx +68 -91
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +0 -14
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +1 -2
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -4
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +4 -1
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +18 -2
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +33 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +3 -0
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +5 -2
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/shared/physics.ts +25 -0
- package/src/shared/providers/screen/gestures/shared/policy.ts +3 -5
- package/src/shared/providers/screen/gestures/types.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +161 -0
- package/src/shared/stores/bounds/index.ts +10 -20
- package/src/shared/stores/bounds/internals/clear.ts +17 -41
- package/src/shared/stores/bounds/internals/entries.ts +56 -13
- package/src/shared/stores/bounds/internals/links.ts +222 -113
- package/src/shared/stores/bounds/internals/resolver.ts +23 -87
- package/src/shared/stores/bounds/internals/state.ts +27 -5
- package/src/shared/stores/bounds/types.ts +17 -7
- package/src/shared/stores/gesture.store.ts +3 -0
- package/src/shared/types/animation.types.ts +0 -23
- package/src/shared/types/gesture.types.ts +8 -2
- package/src/shared/types/index.ts +0 -4
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +6 -6
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +20 -11
- package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +22 -0
- package/src/shared/utils/bounds/navigation/reveal/build.ts +153 -297
- package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
- package/src/shared/utils/bounds/navigation/reveal/math.ts +234 -18
- package/src/shared/utils/bounds/types/options.ts +2 -3
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +36 -23
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -43
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -17
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -28
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -75
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -20
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -16
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +0 -86
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +0 -25
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +0 -79
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +0 -13
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +0 -102
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -38
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -23
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -68
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -15
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/module/shared/providers/layout-anchor.provider.js +0 -80
- package/lib/module/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +0 -42
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +0 -19
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +0 -23
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +0 -69
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/matching.js +0 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +0 -24
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/groups.js +0 -95
- package/lib/module/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -15
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +0 -22
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +0 -29
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -8
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +0 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +0 -39
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +0 -10
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -14
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +0 -16
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -83
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +0 -20
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +0 -48
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +0 -101
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -25
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -14
- package/src/shared/providers/layout-anchor.provider.tsx +0 -112
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +0 -55
- package/src/shared/stores/bounds/helpers/find-latest.ts +0 -22
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +0 -27
- package/src/shared/stores/bounds/helpers/link.helpers.ts +0 -131
- package/src/shared/stores/bounds/helpers/matching.ts +0 -11
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +0 -24
- package/src/shared/stores/bounds/internals/groups.ts +0 -116
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createGestureBag","normX","makeMutable","normY","scale","normScale","dismissing","dragging","settling","active","x","y","focalX","focalY","raw","direction","normalizedX","normalizedY","isDismissing","isDragging","GestureStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createGestureBag","normX","makeMutable","normY","scale","normScale","dismissing","dragging","settling","active","x","y","velocity","focalX","focalY","raw","direction","normalizedX","normalizedY","isDismissing","isDragging","GestureStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,O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ACD,GAAG,CAACpB,UAAU,CAAC;IAC/B,IAAAqB,sCAAe,EAACD,GAAG,CAACnB,QAAQ,CAAC;IAC7B,IAAAoB,sCAAe,EAACD,GAAG,CAAClB,QAAQ,CAAC;IAC7B,IAAAmB,sCAAe,EAACD,GAAG,CAACjB,MAAM,CAAC;IAC3B,IAAAkB,sCAAe,EAACD,GAAG,CAACV,SAAS,CAAC;EAC/B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let GestureActivationState = exports.
|
|
6
|
+
exports.GestureActivationState = void 0;
|
|
7
|
+
let GestureActivationState = exports.GestureActivationState = /*#__PURE__*/function (GestureActivationState) {
|
|
8
8
|
GestureActivationState[GestureActivationState["PENDING"] = 0] = "PENDING";
|
|
9
9
|
GestureActivationState[GestureActivationState["PASSED"] = 1] = "PASSED";
|
|
10
10
|
GestureActivationState[GestureActivationState["FAILED"] = 2] = "FAILED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GestureActivationState","exports"
|
|
1
|
+
{"version":3,"names":["GestureActivationState","exports"],"sourceRoot":"../../../../src","sources":["shared/types/gesture.types.ts"],"mappings":";;;;;;IA8DYA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,0BAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;AAQlC;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -39,7 +39,8 @@ const createBoundsAccessorParts = ({
|
|
|
39
39
|
});
|
|
40
40
|
const computed = (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
41
41
|
props,
|
|
42
|
-
options
|
|
42
|
+
options,
|
|
43
|
+
syncGroupActiveId: true
|
|
43
44
|
});
|
|
44
45
|
const scopedTag = tag ?? "";
|
|
45
46
|
const target = Object.isExtensible(computed) ? computed : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","computeBounds","params","props","options","id","tag","createBoundTag","group","computed","prepareBoundStyles","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AA0BA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC,WAAW;IAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sCAAkB,EAACL,QAAQ,CAAC;EAC1E,MAAM;IAAEM,gBAAgB;IAAEC;EAAkB,CAAC,GAAG,IAAAC,wCAAmB,EAAC;IACnER,QAAQ;IACRI;EACD,CAAC,CAAC;EAEF,MAAMK,aAAa,GAClBC,MAAU,IACkB;IAC5B,SAAS;;IACT,MAAMC,KAAK,GAAGX,QAAQ,CAAC,CAAC;IACxB,MAAMY,OAAO,GAAIF,MAAM,IAAI;MAAEG,EAAE,EAAE;IAAG,CAAO;IAC3C,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;MAC1BF,EAAE,EAAED,OAAO,CAACC,EAAE;MACdG,KAAK,EAAEJ,OAAO,CAACI;IAChB,CAAC,CAAC;IAEF,MAAMC,QAAQ,GAAG,IAAAC,sCAAkB,EAAC;MACnCP,KAAK;MACLC;
|
|
1
|
+
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","computeBounds","params","props","options","id","tag","createBoundTag","group","computed","prepareBoundStyles","syncGroupActiveId","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AA0BA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC,WAAW;IAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sCAAkB,EAACL,QAAQ,CAAC;EAC1E,MAAM;IAAEM,gBAAgB;IAAEC;EAAkB,CAAC,GAAG,IAAAC,wCAAmB,EAAC;IACnER,QAAQ;IACRI;EACD,CAAC,CAAC;EAEF,MAAMK,aAAa,GAClBC,MAAU,IACkB;IAC5B,SAAS;;IACT,MAAMC,KAAK,GAAGX,QAAQ,CAAC,CAAC;IACxB,MAAMY,OAAO,GAAIF,MAAM,IAAI;MAAEG,EAAE,EAAE;IAAG,CAAO;IAC3C,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;MAC1BF,EAAE,EAAED,OAAO,CAACC,EAAE;MACdG,KAAK,EAAEJ,OAAO,CAACI;IAChB,CAAC,CAAC;IAEF,MAAMC,QAAQ,GAAG,IAAAC,sCAAkB,EAAC;MACnCP,KAAK;MACLC,OAAO;MACPO,i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E;MACf;IACD,CAAC,CAAC;IAEF3B,YAAY,GAAG;MACdoB,MAAM,EAAEA,MAAgC;MACxCV,KAAK;MACLG;IACD,CAAC,CAAC;IAEF,OAAOO,MAAM;EACd,CAAmB;EAEnB,OAAO;IACNZ,aAAa;IACbP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC;AACF,CAAC;AAEM,MAAMyB,wBAAwB,GACpCtB,MAAsC,IACd;EACxB,SAAS;;EAET,MAAM;IACLD,aAAa;IACbP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC,GAAGR,yBAAyB,CAACW,MAAM,CAAC;EAErC,OAAOY,MAAM,CAACW,MAAM,CAACxB,aAAa,EAAE;IACnCP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC,CAAC;AACH,CAAC;AAAC2B,OAAA,CAAAF,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createLinkAccessor = void 0;
|
|
7
7
|
var _entries = require("../../../stores/bounds/internals/entries");
|
|
8
|
-
var
|
|
8
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
9
9
|
var _prepareBoundStyles = require("./prepare-bound-styles");
|
|
10
|
+
var _resolveBoundsPairKey = require("./resolve-bounds-pair-key");
|
|
10
11
|
const toResolvedPair = link => {
|
|
11
12
|
"worklet";
|
|
12
13
|
|
|
@@ -39,11 +40,11 @@ const createLinkAccessor = getProps => {
|
|
|
39
40
|
|
|
40
41
|
const props = getProps();
|
|
41
42
|
const stringTag = String(tag);
|
|
42
|
-
const
|
|
43
|
-
const resolved = (0,
|
|
43
|
+
const pairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
44
|
+
const resolved = pairKey ? (0, _links.getResolvedLink)(pairKey, stringTag) : {
|
|
44
45
|
tag: stringTag,
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
link: null
|
|
47
|
+
};
|
|
47
48
|
const selectedTag = resolved.tag;
|
|
48
49
|
const link = resolved.link;
|
|
49
50
|
if (!link) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","_prepareBoundStyles","_resolveBoundsPairKey","toResolvedPair","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey","createLinkAccessor","getProps","getMeasured","tag","key","entry","getEntry","String","getSnapshot","getLink","props","stringTag","pairKey","resolveBoundsPairKey","resolved","getResolvedLink","selectedTag","resolvedPair","id","initialSource","initialDestination","compute","computeOptions","prepareBoundStyles","options","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAYA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AAUA,MAAMI,cAAc,GAAIC,IAAa,IAA6B;EACjE,SAAS;;EACT,OAAO;IACNC,YAAY,EAAED,IAAI,CAACE,MAAM,CAACC,MAAM;IAChCC,iBAAiB,EAAEJ,IAAI,CAACK,WAAW,EAAEF,MAAM,IAAI,IAAI;IACnDG,YAAY,EAAEN,IAAI,CAACE,MAAM,CAACK,MAAM;IAChCC,iBAAiB,EAAER,IAAI,CAACK,WAAW,EAAEE,MAAM,IAAI,IAAI;IACnDE,eAAe,EAAET,IAAI,CAACE,MAAM,CAACQ,SAAS;IACtCC,oBAAoB,EAAEX,IAAI,CAACK,WAAW,EAAEK,SAAS,IAAI;EACtD,CAAC;AACF,CAAC;AAEM,MAAME,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY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AAM,EAAEP,IAAI,CAACK,WAAW,CAACE;MAAO,CAAC,GACpE,IAAI;MACPwB,aAAa,EAAE/B,IAAI,CAAC+B,aAAa,GAC9B;QACA5B,MAAM,EAAEH,IAAI,CAAC+B,aAAa,CAAC5B,MAAM;QACjCI,MAAM,EAAEP,IAAI,CAAC+B,aAAa,CAACxB;MAC5B,CAAC,GACA,IAAI;MACPyB,kBAAkB,EAAEhC,IAAI,CAACgC,kBAAkB,GACxC;QACA7B,MAAM,EAAEH,IAAI,CAACgC,kBAAkB,CAAC7B,MAAM;QACtCI,MAAM,EAAEP,IAAI,CAACgC,kBAAkB,CAACzB;MACjC,CAAC,GACA,IAAI;MACP0B,OAAO,EACNC,cAAiB,IAC4B;QAC7C,SAAS;;QACT,OAAO,IAAAC,sCAAkB,EAAC;UACzBb,KAAK;UACLc,OAAO,EAAE;YACR,GAAGF,cAAc;YACjBJ,EAAE,EAAEF;UACL,CAAuB;UACvBC;QACD,CAAC,CAAC;MACH;IACD,CAAC;EACF,CAAC;EAED,OAAO;IACNf,WAAW;IACXM,WAAW;IACXC;EACD,CAAC;AACF,CAAC;AAACgB,OAAA,CAAAzB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -5,9 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.prepareBoundStyles = void 0;
|
|
7
7
|
var _entries = require("../../../stores/bounds/internals/entries");
|
|
8
|
-
var
|
|
8
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
9
9
|
var _constants = require("../constants");
|
|
10
10
|
var _createBoundTag = require("./create-bound-tag");
|
|
11
|
+
var _resolveBoundsPairKey = require("./resolve-bounds-pair-key");
|
|
11
12
|
var _compute = require("./styles/compute");
|
|
12
13
|
const buildBoundsOptions = ({
|
|
13
14
|
props,
|
|
@@ -32,22 +33,34 @@ const buildBoundsOptions = ({
|
|
|
32
33
|
};
|
|
33
34
|
return resolved;
|
|
34
35
|
};
|
|
35
|
-
const
|
|
36
|
+
const syncActiveGroupId = params => {
|
|
36
37
|
"worklet";
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const {
|
|
40
|
+
props,
|
|
41
|
+
id,
|
|
42
|
+
group
|
|
43
|
+
} = params;
|
|
44
|
+
if (id == null || id === "" || !group) return;
|
|
45
|
+
const pairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
46
|
+
if (!pairKey) return;
|
|
47
|
+
(0, _links.setActiveGroupId)(pairKey, group, String(id));
|
|
42
48
|
};
|
|
43
49
|
const prepareBoundStyles = ({
|
|
44
50
|
props,
|
|
45
51
|
options,
|
|
46
|
-
resolvedPair
|
|
52
|
+
resolvedPair,
|
|
53
|
+
syncGroupActiveId = false
|
|
47
54
|
}) => {
|
|
48
55
|
"worklet";
|
|
49
56
|
|
|
50
|
-
|
|
57
|
+
if (syncGroupActiveId) {
|
|
58
|
+
syncActiveGroupId({
|
|
59
|
+
props,
|
|
60
|
+
id: options.id,
|
|
61
|
+
group: options.group
|
|
62
|
+
});
|
|
63
|
+
}
|
|
51
64
|
const resolved = buildBoundsOptions({
|
|
52
65
|
props,
|
|
53
66
|
id: options.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","_constants","_createBoundTag","_resolveBoundsPairKey","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","getEntry","resolved","DEFAULT_BOUNDS_OPTIONS","syncActiveGroupId","params","pairKey","resolveBoundsPairKey","setActiveGroupId","String","prepareBoundStyles","options","resolvedPair","syncGroupActiveId","computeBoundStyles","previous","next","progress","dimensions","layouts","screen","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,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AO;EACPC,YAAY;EACZC,iBAAiB,GAAG;AACiB,CAAC,KAA6B;EACnE,SAAS;;EAET,IAAIA,iBAAiB,EAAE;IACtBT,iBAAiB,CAAC;MACjBd,KAAK;MACLC,EAAE,EAAEoB,OAAO,CAACpB,EAAE;MACdC,KAAK,EAAEmB,OAAO,CAACnB;IAChB,CAAC,CAAC;EACH;EAEA,MAAMU,QAAQ,GAAGb,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEoB,OAAO,CAACpB,EAAE;IACdC,KAAK,EAAEmB,OAAO,CAACnB,KAAK;IACpBC,SAAS,EAAEkB;EACZ,CAAC,CAAC;EAEF,OAAO,IAAAG,2BAAkB,EACxB;IACCvB,EAAE,EAAEW,QAAQ,CAACX,EAAE;IACfwB,QAAQ,EAAEzB,KAAK,CAACyB,QAAQ;IACxBlB,OAAO,EAAEP,KAAK,CAACO,OAAO;IACtBmB,IAAI,EAAE1B,KAAK,CAAC0B,IAAI;IAChBC,QAAQ,EAAE3B,KAAK,CAAC2B,QAAQ;IACxBC,UAAU,EAAE5B,KAAK,CAAC6B,OAAO,CAACC;EAC3B,CAAC,EACDlB,QAAQ,EACRU,YACD,CAAC;AACF,CAAC;AAACS,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.resolveBoundsPairKey = void 0;
|
|
7
|
+
var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
|
|
8
|
+
const resolveBoundsPairKey = props => {
|
|
9
|
+
"worklet";
|
|
10
|
+
|
|
11
|
+
const currentScreenKey = props.current?.route.key;
|
|
12
|
+
const previousScreenKey = props.previous?.route.key;
|
|
13
|
+
const nextScreenKey = props.next?.route.key;
|
|
14
|
+
if (nextScreenKey && currentScreenKey) {
|
|
15
|
+
return (0, _linkPairs.createScreenPairKey)(currentScreenKey, nextScreenKey);
|
|
16
|
+
}
|
|
17
|
+
if (previousScreenKey && currentScreenKey) {
|
|
18
|
+
return (0, _linkPairs.createScreenPairKey)(previousScreenKey, currentScreenKey);
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
22
|
+
exports.resolveBoundsPairKey = resolveBoundsPairKey;
|
|
23
|
+
//# sourceMappingURL=resolve-bounds-pair-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","resolveBoundsPairKey","props","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","next","createScreenPairKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAIO,MAAMC,oBAAoB,GAChCC,KAA+B,IACL;EAC1B,SAAS;;EACT,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,OAAO,EAAEC,KAAK,CAACC,GAAG;EACjD,MAAMC,iBAAiB,GAAGL,KAAK,CAACM,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACnD,MAAMG,aAAa,GAAGP,KAAK,CAACQ,IAAI,EAAEL,KAAK,CAACC,GAAG;EAE3C,IAAIG,aAAa,IAAIN,gBAAgB,EAAE;IACtC,OAAO,IAAAQ,8BAAmB,EAACR,gBAAgB,EAAEM,aAAa,CAAC;EAC5D;EAEA,IAAIF,iBAAiB,IAAIJ,gBAAgB,EAAE;IAC1C,OAAO,IAAAQ,8BAAmB,EAACJ,iBAAiB,EAAEJ,gBAAgB,CAAC;EAChE;EAEA,OAAO,IAAI;AACZ,CAAC;AAACS,OAAA,CAAAX,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -7,115 +7,9 @@ exports.buildRevealStyles = buildRevealStyles;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _constants = require("../../../../constants");
|
|
9
9
|
var _createLinkAccessor = require("../../helpers/create-link-accessor");
|
|
10
|
-
var _geometry = require("../../helpers/geometry");
|
|
11
10
|
var _helpers = require("../helpers");
|
|
12
|
-
var _math = require("../math");
|
|
13
11
|
var _config = require("./config");
|
|
14
|
-
var
|
|
15
|
-
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
16
|
-
function resolveUniformScale({
|
|
17
|
-
sourceWidth,
|
|
18
|
-
sourceHeight,
|
|
19
|
-
destinationWidth,
|
|
20
|
-
destinationHeight
|
|
21
|
-
}) {
|
|
22
|
-
"worklet";
|
|
23
|
-
|
|
24
|
-
const sx = sourceWidth / destinationWidth;
|
|
25
|
-
const sy = sourceHeight / destinationHeight;
|
|
26
|
-
const sourceAspect = sourceWidth / sourceHeight;
|
|
27
|
-
const destinationAspect = destinationWidth / destinationHeight;
|
|
28
|
-
const aspectDifference = Math.abs(sourceAspect - destinationAspect);
|
|
29
|
-
return aspectDifference < 0.1 ? Math.max(sx, sy) : Math.min(sx, sy);
|
|
30
|
-
}
|
|
31
|
-
function resolveRevealGestureHandoff(rawDrag) {
|
|
32
|
-
"worklet";
|
|
33
|
-
|
|
34
|
-
const gestureSensitivity = (0, _reactNativeReanimated.interpolate)(rawDrag, [0, 1], [0.8, 0.1], "clamp");
|
|
35
|
-
const releaseBoost = (0, _reactNativeReanimated.interpolate)(rawDrag, [0, 1], [1, 1.4], "clamp");
|
|
36
|
-
const releaseSensitivity = (0, _reactNativeReanimated.interpolate)(gestureSensitivity, [0.28, 0.9], [0.7, 1], "clamp");
|
|
37
|
-
return {
|
|
38
|
-
gestureSensitivity,
|
|
39
|
-
gestureReleaseVelocityScale: releaseBoost * releaseSensitivity
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function resolveDismissScaleHandoff({
|
|
43
|
-
progress,
|
|
44
|
-
releaseScale,
|
|
45
|
-
targetScale,
|
|
46
|
-
rawDrag
|
|
47
|
-
}) {
|
|
48
|
-
"worklet";
|
|
49
|
-
|
|
50
|
-
const closeProgress = 1 - progress;
|
|
51
|
-
const scaleProgress = Math.sin(Math.PI / 2 * closeProgress);
|
|
52
|
-
const baseScale = releaseScale + (targetScale - releaseScale) * scaleProgress;
|
|
53
|
-
const orbitDepth = (0, _reactNativeReanimated.interpolate)(rawDrag, [0, 1], [0, _config.DISMISS_SCALE_ORBIT_DEPTH], "clamp");
|
|
54
|
-
const orbitScale = 1 - orbitDepth * Math.sin(Math.PI * closeProgress);
|
|
55
|
-
return baseScale * orbitScale;
|
|
56
|
-
}
|
|
57
|
-
function getBoundsCenterX(bounds) {
|
|
58
|
-
"worklet";
|
|
59
|
-
|
|
60
|
-
return bounds.pageX + bounds.width / 2;
|
|
61
|
-
}
|
|
62
|
-
function getBoundsCenterY(bounds) {
|
|
63
|
-
"worklet";
|
|
64
|
-
|
|
65
|
-
return bounds.pageY + bounds.height / 2;
|
|
66
|
-
}
|
|
67
|
-
function resolveRevealContentBaseTransform({
|
|
68
|
-
progress,
|
|
69
|
-
sourceBounds,
|
|
70
|
-
destinationBounds,
|
|
71
|
-
screenLayout
|
|
72
|
-
}) {
|
|
73
|
-
"worklet";
|
|
74
|
-
|
|
75
|
-
const geometry = (0, _geometry.computeContentTransformGeometry)({
|
|
76
|
-
start: sourceBounds,
|
|
77
|
-
end: destinationBounds,
|
|
78
|
-
entering: true,
|
|
79
|
-
dimensions: screenLayout,
|
|
80
|
-
scaleMode: "uniform"
|
|
81
|
-
});
|
|
82
|
-
return {
|
|
83
|
-
translateX: (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [geometry.tx, 0], "clamp"),
|
|
84
|
-
translateY: (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [geometry.ty, 0], "clamp"),
|
|
85
|
-
scale: (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [geometry.s, 1], "clamp")
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function resolveTrackedSourceElementTransform({
|
|
89
|
-
sourceBounds,
|
|
90
|
-
destinationBounds,
|
|
91
|
-
contentTranslateX,
|
|
92
|
-
contentTranslateY,
|
|
93
|
-
contentScale,
|
|
94
|
-
parentScale,
|
|
95
|
-
screenWidth,
|
|
96
|
-
screenHeight
|
|
97
|
-
}) {
|
|
98
|
-
"worklet";
|
|
99
|
-
|
|
100
|
-
const screenCenterX = screenWidth / 2;
|
|
101
|
-
const screenCenterY = screenHeight / 2;
|
|
102
|
-
const safeParentScale = Math.max(Math.abs(parentScale), _constants.EPSILON);
|
|
103
|
-
const safeSourceWidth = Math.max(Math.abs(sourceBounds.width), _constants.EPSILON);
|
|
104
|
-
const safeSourceHeight = Math.max(Math.abs(sourceBounds.height), _constants.EPSILON);
|
|
105
|
-
const sourceCenterX = getBoundsCenterX(sourceBounds);
|
|
106
|
-
const sourceCenterY = getBoundsCenterY(sourceBounds);
|
|
107
|
-
const destinationCenterX = getBoundsCenterX(destinationBounds);
|
|
108
|
-
const destinationCenterY = getBoundsCenterY(destinationBounds);
|
|
109
|
-
const trackedCenterX = screenCenterX + (destinationCenterX - screenCenterX) * contentScale + contentTranslateX;
|
|
110
|
-
const trackedCenterY = screenCenterY + (destinationCenterY - screenCenterY) * contentScale + contentTranslateY;
|
|
111
|
-
return {
|
|
112
|
-
translateX: (trackedCenterX - screenCenterX) / safeParentScale + screenCenterX - sourceCenterX,
|
|
113
|
-
translateY: (trackedCenterY - screenCenterY) / safeParentScale + screenCenterY - sourceCenterY,
|
|
114
|
-
scaleX: destinationBounds.width * contentScale / (safeSourceWidth * safeParentScale),
|
|
115
|
-
scaleY: destinationBounds.height * contentScale / (safeSourceHeight * safeParentScale)
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
12
|
+
var _math = require("./math");
|
|
119
13
|
/* -------------------------------------------------------------------------- */
|
|
120
14
|
/* BUILD REVEAL STYLES */
|
|
121
15
|
/* -------------------------------------------------------------------------- */
|
|
@@ -139,10 +33,6 @@ function buildRevealStyles({
|
|
|
139
33
|
screen: screenLayout
|
|
140
34
|
}
|
|
141
35
|
} = props;
|
|
142
|
-
const baseRawOptions = {
|
|
143
|
-
raw: true,
|
|
144
|
-
scaleMode: "uniform"
|
|
145
|
-
};
|
|
146
36
|
const boundsAccessor = (0, _createLinkAccessor.createLinkAccessor)(() => props);
|
|
147
37
|
const link = boundsAccessor.getLink(tag);
|
|
148
38
|
if (!link?.source?.bounds || !link.destination?.bounds) {
|
|
@@ -153,73 +43,54 @@ function buildRevealStyles({
|
|
|
153
43
|
/* --------------------------- Gesture / Drag Values ------------------------- */
|
|
154
44
|
|
|
155
45
|
const initialGesture = props.active.gesture.active ?? props.active.gesture.direction;
|
|
156
|
-
const isHorizontalDismiss = initialGesture
|
|
157
|
-
const isVerticalDismiss = initialGesture
|
|
46
|
+
const isHorizontalDismiss = initialGesture === "horizontal" || initialGesture === "horizontal-inverted";
|
|
47
|
+
const isVerticalDismiss = initialGesture === "vertical" || initialGesture === "vertical-inverted";
|
|
158
48
|
const rawDrag = isHorizontalDismiss ? Math.abs(props.active.gesture.raw.normX) : isVerticalDismiss ? Math.abs(props.active.gesture.raw.normY) : 0;
|
|
159
|
-
const dragX = (0,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
exponent: 1
|
|
165
|
-
});
|
|
166
|
-
const dragY = (0, _math2.resolveDirectionalDragTranslation)({
|
|
167
|
-
translation: props.active.gesture.y,
|
|
168
|
-
dimension: screenLayout.height,
|
|
169
|
-
negativeMax: 1,
|
|
170
|
-
positiveMax: 1,
|
|
171
|
-
exponent: 1
|
|
172
|
-
});
|
|
173
|
-
const dragXScale = isHorizontalDismiss ? (0, _math.resolveDirectionalDragScale)({
|
|
174
|
-
normalized: props.active.gesture.normX,
|
|
175
|
-
dismissDirection: initialGesture === "horizontal-inverted" ? "negative" : "positive",
|
|
176
|
-
shrinkMin: _config.DRAG_DIRECTIONAL_SCALE_MIN,
|
|
177
|
-
growMax: _config.DRAG_DIRECTIONAL_SCALE_MAX,
|
|
178
|
-
exponent: _config.DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
179
|
-
}) : IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
180
|
-
const dragYScale = isVerticalDismiss ? (0, _math.resolveDirectionalDragScale)({
|
|
181
|
-
normalized: props.active.gesture.normY,
|
|
182
|
-
dismissDirection: initialGesture === "vertical-inverted" ? "negative" : "positive",
|
|
183
|
-
shrinkMin: _config.DRAG_DIRECTIONAL_SCALE_MIN,
|
|
184
|
-
growMax: _config.DRAG_DIRECTIONAL_SCALE_MAX,
|
|
185
|
-
exponent: _config.DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
186
|
-
}) : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
187
|
-
const dragScale = (0, _math.combineScales)(dragXScale, dragYScale);
|
|
49
|
+
const dragX = props.active.gesture.x === 0 ? 0 : (0, _math.resolveUnitDragTranslation)(props.active.gesture.x, screenLayout.width);
|
|
50
|
+
const dragY = props.active.gesture.y === 0 ? 0 : (0, _math.resolveUnitDragTranslation)(props.active.gesture.y, screenLayout.height);
|
|
51
|
+
const dragXScale = isHorizontalDismiss ? (0, _math.resolveRevealDirectionalDragScale)(props.active.gesture.normX, initialGesture === "horizontal-inverted") : _config.IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
52
|
+
const dragYScale = isVerticalDismiss ? (0, _math.resolveRevealDirectionalDragScale)(props.active.gesture.normY, initialGesture === "vertical-inverted") : _config.IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
53
|
+
const dragScale = dragXScale * dragYScale;
|
|
188
54
|
const initialDestinationTarget = props.active.closing && link.initialDestination?.bounds ? link.initialDestination.bounds : undefined;
|
|
189
55
|
|
|
190
56
|
/* ----------------------------- Focused Screen ----------------------------- */
|
|
191
57
|
|
|
192
58
|
if (focused) {
|
|
193
59
|
const contentRaw = link.compute({
|
|
194
|
-
|
|
60
|
+
raw: true,
|
|
61
|
+
scaleMode: "uniform",
|
|
195
62
|
method: "content",
|
|
196
63
|
target: initialDestinationTarget
|
|
197
64
|
});
|
|
198
65
|
const maskRaw = link.compute({
|
|
199
|
-
|
|
66
|
+
raw: true,
|
|
67
|
+
scaleMode: "uniform",
|
|
200
68
|
method: "size",
|
|
201
69
|
space: "absolute",
|
|
202
70
|
target: "fullscreen"
|
|
203
71
|
});
|
|
204
|
-
const maskBorderRadius = (0,
|
|
205
|
-
const maskSizeMultiplier = props.active.closing ? (0,
|
|
72
|
+
const maskBorderRadius = (0, _math.mixUnit)(sourceBorderRadius, _config.REVEAL_BORDER_RADIUS, progress);
|
|
73
|
+
const maskSizeMultiplier = props.active.closing ? (0, _math.mixUnit)(0.9, 1, props.active.progress) : 1;
|
|
206
74
|
const maskWidth = Math.max(1, maskRaw.width * maskSizeMultiplier);
|
|
207
75
|
const maskHeight = Math.max(1, maskRaw.height * maskSizeMultiplier);
|
|
208
76
|
const contentBaseScale = contentRaw.scale;
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
77
|
+
const safeContentBaseScale = (0, _math.resolveSafeScale)(contentBaseScale);
|
|
78
|
+
let contentScale = contentBaseScale * dragScale;
|
|
79
|
+
if (props.active.gesture.dismissing) {
|
|
80
|
+
const contentTargetBounds = initialDestinationTarget ?? link.destination.bounds;
|
|
81
|
+
const sourceContentScale = (0, _math.resolveUniformScale)({
|
|
82
|
+
sourceWidth: link.source.bounds.width,
|
|
83
|
+
sourceHeight: link.source.bounds.height,
|
|
84
|
+
destinationWidth: contentTargetBounds.width,
|
|
85
|
+
destinationHeight: contentTargetBounds.height
|
|
86
|
+
});
|
|
87
|
+
contentScale = (0, _math.resolveDismissScaleHandoff)({
|
|
88
|
+
progress: props.active.progress,
|
|
89
|
+
releaseScale: dragScale,
|
|
90
|
+
targetScale: sourceContentScale,
|
|
91
|
+
velocity: props.active.gesture.velocity
|
|
92
|
+
});
|
|
93
|
+
}
|
|
223
94
|
const contentTranslateX = contentRaw.translateX + dragX;
|
|
224
95
|
const contentTranslateY = contentRaw.translateY + dragY;
|
|
225
96
|
const liveHorizontalDismissDrag = initialGesture === "horizontal-inverted" ? -props.active.gesture.normX : props.active.gesture.normX;
|
|
@@ -227,7 +98,7 @@ function buildRevealStyles({
|
|
|
227
98
|
const dismissProgressDrag = props.active.gesture.dismissing ? 1 - props.active.progress : 0;
|
|
228
99
|
const maskHeightCollapseDrag = isHorizontalDismiss || isVerticalDismiss ? Math.max(0, isHorizontalDismiss ? liveHorizontalDismissDrag * _config.HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE : 0, isVerticalDismiss ? liveVerticalDismissDrag : 0, dismissProgressDrag) : 0;
|
|
229
100
|
const minMaskHeight = Math.min(maskHeight, Math.max(maskWidth, link.source.bounds.height));
|
|
230
|
-
const renderedMaskHeight = (0,
|
|
101
|
+
const renderedMaskHeight = (0, _math.interpolateClamped)(maskHeightCollapseDrag, 0, _config.DRAG_MASK_HEIGHT_COLLAPSE_END, maskHeight, minMaskHeight);
|
|
231
102
|
const maskCenterX = maskWidth / 2;
|
|
232
103
|
const maskCenterY = renderedMaskHeight / 2;
|
|
233
104
|
const maskCenteringOffsetX = (maskRaw.width - maskWidth) / 2;
|
|
@@ -242,14 +113,47 @@ function buildRevealStyles({
|
|
|
242
113
|
const compensatedMaskTranslateX = (maskRaw.translateX - contentRaw.translateX + maskCenteringOffsetX + (1 - contentBaseScale) * (maskCenterX - contentCenterX)) / safeContentBaseScale;
|
|
243
114
|
const compensatedMaskTranslateY = (maskRaw.translateY - contentRaw.translateY + maskCenteringOffsetY + verticalCollapseOffsetY + (1 - contentBaseScale) * (maskCenterY - contentCenterY)) / safeContentBaseScale;
|
|
244
115
|
const compensatedMaskScale = 1 / safeContentBaseScale;
|
|
116
|
+
const maskBaseWidth = Math.max(1, screenLayout.width);
|
|
117
|
+
const maskBaseHeight = Math.max(1, screenLayout.height);
|
|
118
|
+
const maskScaleX = maskWidth / maskBaseWidth;
|
|
119
|
+
const maskScaleY = renderedMaskHeight / maskBaseHeight;
|
|
120
|
+
const transformMaskTranslateX = compensatedMaskTranslateX + (maskWidth - maskBaseWidth) / 2;
|
|
121
|
+
const transformMaskTranslateY = compensatedMaskTranslateY + (renderedMaskHeight - maskBaseHeight) / 2;
|
|
122
|
+
const maskElementStyle = _config.REVEAL_USES_TRANSFORM_MASK ? {
|
|
123
|
+
width: maskBaseWidth,
|
|
124
|
+
height: maskBaseHeight,
|
|
125
|
+
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
126
|
+
borderCurve: "continuous",
|
|
127
|
+
transform: [{
|
|
128
|
+
translateX: transformMaskTranslateX
|
|
129
|
+
}, {
|
|
130
|
+
translateY: transformMaskTranslateY
|
|
131
|
+
}, {
|
|
132
|
+
scaleX: maskScaleX * compensatedMaskScale
|
|
133
|
+
}, {
|
|
134
|
+
scaleY: maskScaleY * compensatedMaskScale
|
|
135
|
+
}]
|
|
136
|
+
} : {
|
|
137
|
+
width: maskWidth,
|
|
138
|
+
height: renderedMaskHeight,
|
|
139
|
+
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
140
|
+
borderCurve: "continuous",
|
|
141
|
+
transform: [{
|
|
142
|
+
translateX: compensatedMaskTranslateX
|
|
143
|
+
}, {
|
|
144
|
+
translateY: compensatedMaskTranslateY
|
|
145
|
+
}, {
|
|
146
|
+
scale: compensatedMaskScale
|
|
147
|
+
}]
|
|
148
|
+
};
|
|
245
149
|
const elementOffsetX = initialDestinationTarget ? initialDestinationTarget.pageX - link.destination.bounds.pageX : 0;
|
|
246
150
|
const elementOffsetY = initialDestinationTarget ? initialDestinationTarget.pageY - link.destination.bounds.pageY : 0;
|
|
247
|
-
const elementTX = props.active.closing ? (0,
|
|
248
|
-
const elementY = props.active.closing ? (0,
|
|
151
|
+
const elementTX = props.active.closing ? (0, _math.interpolateClamped)(props.active.progress, _config.CLOSE_SOURCE_HANDOFF_PROGRESS, 1, elementOffsetX, 0) : 0;
|
|
152
|
+
const elementY = props.active.closing ? (0, _math.interpolateClamped)(props.active.progress, _config.CLOSE_SOURCE_HANDOFF_PROGRESS, 1, elementOffsetY, 0) : 0;
|
|
249
153
|
const {
|
|
250
154
|
gestureSensitivity,
|
|
251
155
|
gestureReleaseVelocityScale
|
|
252
|
-
} = resolveRevealGestureHandoff(rawDrag);
|
|
156
|
+
} = (0, _math.resolveRevealGestureHandoff)(rawDrag);
|
|
253
157
|
return {
|
|
254
158
|
options: {
|
|
255
159
|
gestureProgressMode: "freeform",
|
|
@@ -266,30 +170,15 @@ function buildRevealStyles({
|
|
|
266
170
|
scale: contentScale
|
|
267
171
|
}],
|
|
268
172
|
shadowColor: "#000",
|
|
269
|
-
shadowOffset:
|
|
270
|
-
|
|
271
|
-
height: 2
|
|
272
|
-
},
|
|
273
|
-
shadowOpacity: (0, _reactNativeReanimated.interpolate)(props.active.progress, [0, 1], [0, 0.25]),
|
|
173
|
+
shadowOffset: _config.REVEAL_SHADOW_OFFSET,
|
|
174
|
+
shadowOpacity: (0, _reactNativeReanimated.interpolate)(props.active.progress, _config.ZERO_TO_ONE_RANGE, _config.CONTENT_SHADOW_OPACITY_OUTPUT),
|
|
274
175
|
shadowRadius: 32,
|
|
275
176
|
elevation: 5,
|
|
276
|
-
opacity: props.active.entering ? (0, _reactNativeReanimated.interpolate)(props.active.progress,
|
|
177
|
+
opacity: props.active.entering ? (0, _reactNativeReanimated.interpolate)(props.active.progress, _config.CONTENT_ENTERING_OPACITY_RANGE, _config.CONTENT_ENTERING_OPACITY_OUTPUT) : (0, _reactNativeReanimated.interpolate)(props.active.progress, _config.CONTENT_CLOSING_OPACITY_RANGE, _config.CONTENT_CLOSING_OPACITY_OUTPUT)
|
|
277
178
|
}
|
|
278
179
|
},
|
|
279
180
|
[_constants.NAVIGATION_MASK_ELEMENT_STYLE_ID]: {
|
|
280
|
-
style:
|
|
281
|
-
width: maskWidth,
|
|
282
|
-
height: renderedMaskHeight,
|
|
283
|
-
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
284
|
-
borderCurve: "continuous",
|
|
285
|
-
transform: [{
|
|
286
|
-
translateX: compensatedMaskTranslateX
|
|
287
|
-
}, {
|
|
288
|
-
translateY: compensatedMaskTranslateY
|
|
289
|
-
}, {
|
|
290
|
-
scale: compensatedMaskScale
|
|
291
|
-
}]
|
|
292
|
-
}
|
|
181
|
+
style: maskElementStyle
|
|
293
182
|
},
|
|
294
183
|
[link.id]: {
|
|
295
184
|
style: {
|
|
@@ -307,30 +196,33 @@ function buildRevealStyles({
|
|
|
307
196
|
|
|
308
197
|
/* ---------------------------- Unfocused Screen ---------------------------- */
|
|
309
198
|
|
|
310
|
-
const unfocusedScale = (0,
|
|
199
|
+
const unfocusedScale = (0, _math.mixUnit)(1, 0.9375, props.active.progress);
|
|
311
200
|
const unfocusedContentScale = props.active.logicallySettled ? 1 : unfocusedScale;
|
|
312
201
|
const trackingContentTarget = initialDestinationTarget ?? link.destination.bounds;
|
|
313
|
-
const trackingContentBaseTransform = resolveRevealContentBaseTransform({
|
|
202
|
+
const trackingContentBaseTransform = (0, _math.resolveRevealContentBaseTransform)({
|
|
314
203
|
progress: props.active.progress,
|
|
315
204
|
sourceBounds: link.source.bounds,
|
|
316
205
|
destinationBounds: trackingContentTarget,
|
|
317
206
|
screenLayout
|
|
318
207
|
});
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
208
|
+
let trackingContentScale = trackingContentBaseTransform.scale * dragScale;
|
|
209
|
+
if (props.active.gesture.dismissing) {
|
|
210
|
+
const trackingTargetScale = (0, _math.resolveUniformScale)({
|
|
211
|
+
sourceWidth: link.source.bounds.width,
|
|
212
|
+
sourceHeight: link.source.bounds.height,
|
|
213
|
+
destinationWidth: trackingContentTarget.width,
|
|
214
|
+
destinationHeight: trackingContentTarget.height
|
|
215
|
+
});
|
|
216
|
+
trackingContentScale = (0, _math.resolveDismissScaleHandoff)({
|
|
217
|
+
progress: props.active.progress,
|
|
218
|
+
releaseScale: dragScale,
|
|
219
|
+
targetScale: trackingTargetScale,
|
|
220
|
+
velocity: props.active.gesture.velocity
|
|
221
|
+
});
|
|
222
|
+
}
|
|
331
223
|
const trackingContentTranslateX = trackingContentBaseTransform.translateX + dragX;
|
|
332
224
|
const trackingContentTranslateY = trackingContentBaseTransform.translateY + dragY;
|
|
333
|
-
const trackedSourceElement = resolveTrackedSourceElementTransform({
|
|
225
|
+
const trackedSourceElement = (0, _math.resolveTrackedSourceElementTransform)({
|
|
334
226
|
sourceBounds: link.source.bounds,
|
|
335
227
|
destinationBounds: trackingContentTarget,
|
|
336
228
|
contentTranslateX: trackingContentTranslateX,
|
|
@@ -356,7 +248,7 @@ function buildRevealStyles({
|
|
|
356
248
|
},
|
|
357
249
|
[link.id]: {
|
|
358
250
|
style: {
|
|
359
|
-
opacity: props.active.closing ? 1 : (0, _reactNativeReanimated.interpolate)(props.active.progress,
|
|
251
|
+
opacity: props.active.closing ? 1 : (0, _reactNativeReanimated.interpolate)(props.active.progress, _config.ZERO_TO_ONE_RANGE, _config.UNFOCUSED_ELEMENT_OPACITY_OUTPUT),
|
|
360
252
|
zIndex: 9999,
|
|
361
253
|
elevation: 9999,
|
|
362
254
|
transform: [{
|