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":["getEntry","
|
|
1
|
+
{"version":3,"names":["getEntry","setActiveGroupId","DEFAULT_BOUNDS_OPTIONS","createBoundTag","resolveBoundsPairKey","computeBoundStyles","buildBoundsOptions","props","id","group","overrides","tag","currentScreenKey","current","route","key","boundaryConfig","resolved","syncActiveGroupId","params","pairKey","String","prepareBoundStyles","options","resolvedPair","syncGroupActiveId","previous","next","progress","dimensions","layouts","screen"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,0CAA0C;AACnE,SAASC,gBAAgB,QAAQ,wCAAwC;AAGzE,SAASC,sBAAsB,QAAQ,cAAc;AAMrD,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,kBAAkB,QAAQ,kBAAkB;AAkBrD,MAAMC,kBAAkB,GAAGA,CAAC;EAC3BC,KAAK;EACLC,E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;EAEA,MAAMQ,QAAQ,GAAGX,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEe,OAAO,CAACf,EAAE;IACdC,KAAK,EAAEc,OAAO,CAACd,KAAK;IACpBC,SAAS,EAAEa;EACZ,CAAC,CAAC;EAEF,OAAOlB,kBAAkB,CACxB;IACCG,EAAE,EAAES,QAAQ,CAACT,EAAE;IACfkB,QAAQ,EAAEnB,KAAK,CAACmB,QAAQ;IACxBb,OAAO,EAAEN,KAAK,CAACM,OAAO;IACtBc,IAAI,EAAEpB,KAAK,CAACoB,IAAI;IAChBC,QAAQ,EAAErB,KAAK,CAACqB,QAAQ;IACxBC,UAAU,EAAEtB,KAAK,CAACuB,OAAO,CAACC;EAC3B,CAAC,EACDd,QAAQ,EACRO,YACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createScreenPairKey } from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
4
|
+
export const resolveBoundsPairKey = props => {
|
|
5
|
+
"worklet";
|
|
6
|
+
|
|
7
|
+
const currentScreenKey = props.current?.route.key;
|
|
8
|
+
const previousScreenKey = props.previous?.route.key;
|
|
9
|
+
const nextScreenKey = props.next?.route.key;
|
|
10
|
+
if (nextScreenKey && currentScreenKey) {
|
|
11
|
+
return createScreenPairKey(currentScreenKey, nextScreenKey);
|
|
12
|
+
}
|
|
13
|
+
if (previousScreenKey && currentScreenKey) {
|
|
14
|
+
return createScreenPairKey(previousScreenKey, currentScreenKey);
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=resolve-bounds-pair-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createScreenPairKey","resolveBoundsPairKey","props","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","next"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,mDAAmD;AAIvF,OAAO,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,OAAOH,mBAAmB,CAACG,gBAAgB,EAAEM,aAAa,CAAC;EAC5D;EAEA,IAAIF,iBAAiB,IAAIJ,gBAAgB,EAAE;IAC1C,OAAOH,mBAAmB,CAACO,iBAAiB,EAAEJ,gBAAgB,CAAC;EAChE;EAEA,OAAO,IAAI;AACZ,CAAC","ignoreList":[]}
|
|
@@ -1,117 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { interpolate } from "react-native-reanimated";
|
|
4
|
-
import {
|
|
4
|
+
import { NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../../constants";
|
|
5
5
|
import { createLinkAccessor } from "../../helpers/create-link-accessor";
|
|
6
|
-
import { computeContentTransformGeometry } from "../../helpers/geometry";
|
|
7
6
|
import { getSourceBorderRadius } from "../helpers";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { resolveDirectionalDragTranslation } from "./math";
|
|
11
|
-
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
12
|
-
function resolveUniformScale({
|
|
13
|
-
sourceWidth,
|
|
14
|
-
sourceHeight,
|
|
15
|
-
destinationWidth,
|
|
16
|
-
destinationHeight
|
|
17
|
-
}) {
|
|
18
|
-
"worklet";
|
|
19
|
-
|
|
20
|
-
const sx = sourceWidth / destinationWidth;
|
|
21
|
-
const sy = sourceHeight / destinationHeight;
|
|
22
|
-
const sourceAspect = sourceWidth / sourceHeight;
|
|
23
|
-
const destinationAspect = destinationWidth / destinationHeight;
|
|
24
|
-
const aspectDifference = Math.abs(sourceAspect - destinationAspect);
|
|
25
|
-
return aspectDifference < 0.1 ? Math.max(sx, sy) : Math.min(sx, sy);
|
|
26
|
-
}
|
|
27
|
-
function resolveRevealGestureHandoff(rawDrag) {
|
|
28
|
-
"worklet";
|
|
29
|
-
|
|
30
|
-
const gestureSensitivity = interpolate(rawDrag, [0, 1], [0.8, 0.1], "clamp");
|
|
31
|
-
const releaseBoost = interpolate(rawDrag, [0, 1], [1, 1.4], "clamp");
|
|
32
|
-
const releaseSensitivity = interpolate(gestureSensitivity, [0.28, 0.9], [0.7, 1], "clamp");
|
|
33
|
-
return {
|
|
34
|
-
gestureSensitivity,
|
|
35
|
-
gestureReleaseVelocityScale: releaseBoost * releaseSensitivity
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function resolveDismissScaleHandoff({
|
|
39
|
-
progress,
|
|
40
|
-
releaseScale,
|
|
41
|
-
targetScale,
|
|
42
|
-
rawDrag
|
|
43
|
-
}) {
|
|
44
|
-
"worklet";
|
|
45
|
-
|
|
46
|
-
const closeProgress = 1 - progress;
|
|
47
|
-
const scaleProgress = Math.sin(Math.PI / 2 * closeProgress);
|
|
48
|
-
const baseScale = releaseScale + (targetScale - releaseScale) * scaleProgress;
|
|
49
|
-
const orbitDepth = interpolate(rawDrag, [0, 1], [0, DISMISS_SCALE_ORBIT_DEPTH], "clamp");
|
|
50
|
-
const orbitScale = 1 - orbitDepth * Math.sin(Math.PI * closeProgress);
|
|
51
|
-
return baseScale * orbitScale;
|
|
52
|
-
}
|
|
53
|
-
function getBoundsCenterX(bounds) {
|
|
54
|
-
"worklet";
|
|
55
|
-
|
|
56
|
-
return bounds.pageX + bounds.width / 2;
|
|
57
|
-
}
|
|
58
|
-
function getBoundsCenterY(bounds) {
|
|
59
|
-
"worklet";
|
|
60
|
-
|
|
61
|
-
return bounds.pageY + bounds.height / 2;
|
|
62
|
-
}
|
|
63
|
-
function resolveRevealContentBaseTransform({
|
|
64
|
-
progress,
|
|
65
|
-
sourceBounds,
|
|
66
|
-
destinationBounds,
|
|
67
|
-
screenLayout
|
|
68
|
-
}) {
|
|
69
|
-
"worklet";
|
|
70
|
-
|
|
71
|
-
const geometry = computeContentTransformGeometry({
|
|
72
|
-
start: sourceBounds,
|
|
73
|
-
end: destinationBounds,
|
|
74
|
-
entering: true,
|
|
75
|
-
dimensions: screenLayout,
|
|
76
|
-
scaleMode: "uniform"
|
|
77
|
-
});
|
|
78
|
-
return {
|
|
79
|
-
translateX: interpolate(progress, [0, 1], [geometry.tx, 0], "clamp"),
|
|
80
|
-
translateY: interpolate(progress, [0, 1], [geometry.ty, 0], "clamp"),
|
|
81
|
-
scale: interpolate(progress, [0, 1], [geometry.s, 1], "clamp")
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function resolveTrackedSourceElementTransform({
|
|
85
|
-
sourceBounds,
|
|
86
|
-
destinationBounds,
|
|
87
|
-
contentTranslateX,
|
|
88
|
-
contentTranslateY,
|
|
89
|
-
contentScale,
|
|
90
|
-
parentScale,
|
|
91
|
-
screenWidth,
|
|
92
|
-
screenHeight
|
|
93
|
-
}) {
|
|
94
|
-
"worklet";
|
|
95
|
-
|
|
96
|
-
const screenCenterX = screenWidth / 2;
|
|
97
|
-
const screenCenterY = screenHeight / 2;
|
|
98
|
-
const safeParentScale = Math.max(Math.abs(parentScale), EPSILON);
|
|
99
|
-
const safeSourceWidth = Math.max(Math.abs(sourceBounds.width), EPSILON);
|
|
100
|
-
const safeSourceHeight = Math.max(Math.abs(sourceBounds.height), EPSILON);
|
|
101
|
-
const sourceCenterX = getBoundsCenterX(sourceBounds);
|
|
102
|
-
const sourceCenterY = getBoundsCenterY(sourceBounds);
|
|
103
|
-
const destinationCenterX = getBoundsCenterX(destinationBounds);
|
|
104
|
-
const destinationCenterY = getBoundsCenterY(destinationBounds);
|
|
105
|
-
const trackedCenterX = screenCenterX + (destinationCenterX - screenCenterX) * contentScale + contentTranslateX;
|
|
106
|
-
const trackedCenterY = screenCenterY + (destinationCenterY - screenCenterY) * contentScale + contentTranslateY;
|
|
107
|
-
return {
|
|
108
|
-
translateX: (trackedCenterX - screenCenterX) / safeParentScale + screenCenterX - sourceCenterX,
|
|
109
|
-
translateY: (trackedCenterY - screenCenterY) / safeParentScale + screenCenterY - sourceCenterY,
|
|
110
|
-
scaleX: destinationBounds.width * contentScale / (safeSourceWidth * safeParentScale),
|
|
111
|
-
scaleY: destinationBounds.height * contentScale / (safeSourceHeight * safeParentScale)
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
7
|
+
import { CLOSE_SOURCE_HANDOFF_PROGRESS, CONTENT_CLOSING_OPACITY_OUTPUT, CONTENT_CLOSING_OPACITY_RANGE, CONTENT_ENTERING_OPACITY_OUTPUT, CONTENT_ENTERING_OPACITY_RANGE, CONTENT_SHADOW_OPACITY_OUTPUT, DRAG_MASK_HEIGHT_COLLAPSE_END, HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE, IDENTITY_DRAG_SCALE_OUTPUT, REVEAL_BORDER_RADIUS, REVEAL_SHADOW_OFFSET, REVEAL_USES_TRANSFORM_MASK, UNFOCUSED_ELEMENT_OPACITY_OUTPUT, ZERO_TO_ONE_RANGE } from "./config";
|
|
8
|
+
import { interpolateClamped, mixUnit, resolveDismissScaleHandoff, resolveRevealContentBaseTransform, resolveRevealDirectionalDragScale, resolveRevealGestureHandoff, resolveSafeScale, resolveTrackedSourceElementTransform, resolveUniformScale, resolveUnitDragTranslation } from "./math";
|
|
115
9
|
/* -------------------------------------------------------------------------- */
|
|
116
10
|
/* BUILD REVEAL STYLES */
|
|
117
11
|
/* -------------------------------------------------------------------------- */
|
|
@@ -135,10 +29,6 @@ export function buildRevealStyles({
|
|
|
135
29
|
screen: screenLayout
|
|
136
30
|
}
|
|
137
31
|
} = props;
|
|
138
|
-
const baseRawOptions = {
|
|
139
|
-
raw: true,
|
|
140
|
-
scaleMode: "uniform"
|
|
141
|
-
};
|
|
142
32
|
const boundsAccessor = createLinkAccessor(() => props);
|
|
143
33
|
const link = boundsAccessor.getLink(tag);
|
|
144
34
|
if (!link?.source?.bounds || !link.destination?.bounds) {
|
|
@@ -149,73 +39,54 @@ export function buildRevealStyles({
|
|
|
149
39
|
/* --------------------------- Gesture / Drag Values ------------------------- */
|
|
150
40
|
|
|
151
41
|
const initialGesture = props.active.gesture.active ?? props.active.gesture.direction;
|
|
152
|
-
const isHorizontalDismiss = initialGesture
|
|
153
|
-
const isVerticalDismiss = initialGesture
|
|
42
|
+
const isHorizontalDismiss = initialGesture === "horizontal" || initialGesture === "horizontal-inverted";
|
|
43
|
+
const isVerticalDismiss = initialGesture === "vertical" || initialGesture === "vertical-inverted";
|
|
154
44
|
const rawDrag = isHorizontalDismiss ? Math.abs(props.active.gesture.raw.normX) : isVerticalDismiss ? Math.abs(props.active.gesture.raw.normY) : 0;
|
|
155
|
-
const dragX =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
exponent: 1
|
|
161
|
-
});
|
|
162
|
-
const dragY = resolveDirectionalDragTranslation({
|
|
163
|
-
translation: props.active.gesture.y,
|
|
164
|
-
dimension: screenLayout.height,
|
|
165
|
-
negativeMax: 1,
|
|
166
|
-
positiveMax: 1,
|
|
167
|
-
exponent: 1
|
|
168
|
-
});
|
|
169
|
-
const dragXScale = isHorizontalDismiss ? resolveDirectionalDragScale({
|
|
170
|
-
normalized: props.active.gesture.normX,
|
|
171
|
-
dismissDirection: initialGesture === "horizontal-inverted" ? "negative" : "positive",
|
|
172
|
-
shrinkMin: DRAG_DIRECTIONAL_SCALE_MIN,
|
|
173
|
-
growMax: DRAG_DIRECTIONAL_SCALE_MAX,
|
|
174
|
-
exponent: DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
175
|
-
}) : IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
176
|
-
const dragYScale = isVerticalDismiss ? resolveDirectionalDragScale({
|
|
177
|
-
normalized: props.active.gesture.normY,
|
|
178
|
-
dismissDirection: initialGesture === "vertical-inverted" ? "negative" : "positive",
|
|
179
|
-
shrinkMin: DRAG_DIRECTIONAL_SCALE_MIN,
|
|
180
|
-
growMax: DRAG_DIRECTIONAL_SCALE_MAX,
|
|
181
|
-
exponent: DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
182
|
-
}) : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
183
|
-
const dragScale = combineScales(dragXScale, dragYScale);
|
|
45
|
+
const dragX = props.active.gesture.x === 0 ? 0 : resolveUnitDragTranslation(props.active.gesture.x, screenLayout.width);
|
|
46
|
+
const dragY = props.active.gesture.y === 0 ? 0 : resolveUnitDragTranslation(props.active.gesture.y, screenLayout.height);
|
|
47
|
+
const dragXScale = isHorizontalDismiss ? resolveRevealDirectionalDragScale(props.active.gesture.normX, initialGesture === "horizontal-inverted") : IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
48
|
+
const dragYScale = isVerticalDismiss ? resolveRevealDirectionalDragScale(props.active.gesture.normY, initialGesture === "vertical-inverted") : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
49
|
+
const dragScale = dragXScale * dragYScale;
|
|
184
50
|
const initialDestinationTarget = props.active.closing && link.initialDestination?.bounds ? link.initialDestination.bounds : undefined;
|
|
185
51
|
|
|
186
52
|
/* ----------------------------- Focused Screen ----------------------------- */
|
|
187
53
|
|
|
188
54
|
if (focused) {
|
|
189
55
|
const contentRaw = link.compute({
|
|
190
|
-
|
|
56
|
+
raw: true,
|
|
57
|
+
scaleMode: "uniform",
|
|
191
58
|
method: "content",
|
|
192
59
|
target: initialDestinationTarget
|
|
193
60
|
});
|
|
194
61
|
const maskRaw = link.compute({
|
|
195
|
-
|
|
62
|
+
raw: true,
|
|
63
|
+
scaleMode: "uniform",
|
|
196
64
|
method: "size",
|
|
197
65
|
space: "absolute",
|
|
198
66
|
target: "fullscreen"
|
|
199
67
|
});
|
|
200
|
-
const maskBorderRadius =
|
|
201
|
-
const maskSizeMultiplier = props.active.closing ?
|
|
68
|
+
const maskBorderRadius = mixUnit(sourceBorderRadius, REVEAL_BORDER_RADIUS, progress);
|
|
69
|
+
const maskSizeMultiplier = props.active.closing ? mixUnit(0.9, 1, props.active.progress) : 1;
|
|
202
70
|
const maskWidth = Math.max(1, maskRaw.width * maskSizeMultiplier);
|
|
203
71
|
const maskHeight = Math.max(1, maskRaw.height * maskSizeMultiplier);
|
|
204
72
|
const contentBaseScale = contentRaw.scale;
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
73
|
+
const safeContentBaseScale = resolveSafeScale(contentBaseScale);
|
|
74
|
+
let contentScale = contentBaseScale * dragScale;
|
|
75
|
+
if (props.active.gesture.dismissing) {
|
|
76
|
+
const contentTargetBounds = initialDestinationTarget ?? link.destination.bounds;
|
|
77
|
+
const sourceContentScale = resolveUniformScale({
|
|
78
|
+
sourceWidth: link.source.bounds.width,
|
|
79
|
+
sourceHeight: link.source.bounds.height,
|
|
80
|
+
destinationWidth: contentTargetBounds.width,
|
|
81
|
+
destinationHeight: contentTargetBounds.height
|
|
82
|
+
});
|
|
83
|
+
contentScale = resolveDismissScaleHandoff({
|
|
84
|
+
progress: props.active.progress,
|
|
85
|
+
releaseScale: dragScale,
|
|
86
|
+
targetScale: sourceContentScale,
|
|
87
|
+
velocity: props.active.gesture.velocity
|
|
88
|
+
});
|
|
89
|
+
}
|
|
219
90
|
const contentTranslateX = contentRaw.translateX + dragX;
|
|
220
91
|
const contentTranslateY = contentRaw.translateY + dragY;
|
|
221
92
|
const liveHorizontalDismissDrag = initialGesture === "horizontal-inverted" ? -props.active.gesture.normX : props.active.gesture.normX;
|
|
@@ -223,7 +94,7 @@ export function buildRevealStyles({
|
|
|
223
94
|
const dismissProgressDrag = props.active.gesture.dismissing ? 1 - props.active.progress : 0;
|
|
224
95
|
const maskHeightCollapseDrag = isHorizontalDismiss || isVerticalDismiss ? Math.max(0, isHorizontalDismiss ? liveHorizontalDismissDrag * HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE : 0, isVerticalDismiss ? liveVerticalDismissDrag : 0, dismissProgressDrag) : 0;
|
|
225
96
|
const minMaskHeight = Math.min(maskHeight, Math.max(maskWidth, link.source.bounds.height));
|
|
226
|
-
const renderedMaskHeight =
|
|
97
|
+
const renderedMaskHeight = interpolateClamped(maskHeightCollapseDrag, 0, DRAG_MASK_HEIGHT_COLLAPSE_END, maskHeight, minMaskHeight);
|
|
227
98
|
const maskCenterX = maskWidth / 2;
|
|
228
99
|
const maskCenterY = renderedMaskHeight / 2;
|
|
229
100
|
const maskCenteringOffsetX = (maskRaw.width - maskWidth) / 2;
|
|
@@ -238,10 +109,43 @@ export function buildRevealStyles({
|
|
|
238
109
|
const compensatedMaskTranslateX = (maskRaw.translateX - contentRaw.translateX + maskCenteringOffsetX + (1 - contentBaseScale) * (maskCenterX - contentCenterX)) / safeContentBaseScale;
|
|
239
110
|
const compensatedMaskTranslateY = (maskRaw.translateY - contentRaw.translateY + maskCenteringOffsetY + verticalCollapseOffsetY + (1 - contentBaseScale) * (maskCenterY - contentCenterY)) / safeContentBaseScale;
|
|
240
111
|
const compensatedMaskScale = 1 / safeContentBaseScale;
|
|
112
|
+
const maskBaseWidth = Math.max(1, screenLayout.width);
|
|
113
|
+
const maskBaseHeight = Math.max(1, screenLayout.height);
|
|
114
|
+
const maskScaleX = maskWidth / maskBaseWidth;
|
|
115
|
+
const maskScaleY = renderedMaskHeight / maskBaseHeight;
|
|
116
|
+
const transformMaskTranslateX = compensatedMaskTranslateX + (maskWidth - maskBaseWidth) / 2;
|
|
117
|
+
const transformMaskTranslateY = compensatedMaskTranslateY + (renderedMaskHeight - maskBaseHeight) / 2;
|
|
118
|
+
const maskElementStyle = REVEAL_USES_TRANSFORM_MASK ? {
|
|
119
|
+
width: maskBaseWidth,
|
|
120
|
+
height: maskBaseHeight,
|
|
121
|
+
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
122
|
+
borderCurve: "continuous",
|
|
123
|
+
transform: [{
|
|
124
|
+
translateX: transformMaskTranslateX
|
|
125
|
+
}, {
|
|
126
|
+
translateY: transformMaskTranslateY
|
|
127
|
+
}, {
|
|
128
|
+
scaleX: maskScaleX * compensatedMaskScale
|
|
129
|
+
}, {
|
|
130
|
+
scaleY: maskScaleY * compensatedMaskScale
|
|
131
|
+
}]
|
|
132
|
+
} : {
|
|
133
|
+
width: maskWidth,
|
|
134
|
+
height: renderedMaskHeight,
|
|
135
|
+
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
136
|
+
borderCurve: "continuous",
|
|
137
|
+
transform: [{
|
|
138
|
+
translateX: compensatedMaskTranslateX
|
|
139
|
+
}, {
|
|
140
|
+
translateY: compensatedMaskTranslateY
|
|
141
|
+
}, {
|
|
142
|
+
scale: compensatedMaskScale
|
|
143
|
+
}]
|
|
144
|
+
};
|
|
241
145
|
const elementOffsetX = initialDestinationTarget ? initialDestinationTarget.pageX - link.destination.bounds.pageX : 0;
|
|
242
146
|
const elementOffsetY = initialDestinationTarget ? initialDestinationTarget.pageY - link.destination.bounds.pageY : 0;
|
|
243
|
-
const elementTX = props.active.closing ?
|
|
244
|
-
const elementY = props.active.closing ?
|
|
147
|
+
const elementTX = props.active.closing ? interpolateClamped(props.active.progress, CLOSE_SOURCE_HANDOFF_PROGRESS, 1, elementOffsetX, 0) : 0;
|
|
148
|
+
const elementY = props.active.closing ? interpolateClamped(props.active.progress, CLOSE_SOURCE_HANDOFF_PROGRESS, 1, elementOffsetY, 0) : 0;
|
|
245
149
|
const {
|
|
246
150
|
gestureSensitivity,
|
|
247
151
|
gestureReleaseVelocityScale
|
|
@@ -262,30 +166,15 @@ export function buildRevealStyles({
|
|
|
262
166
|
scale: contentScale
|
|
263
167
|
}],
|
|
264
168
|
shadowColor: "#000",
|
|
265
|
-
shadowOffset:
|
|
266
|
-
|
|
267
|
-
height: 2
|
|
268
|
-
},
|
|
269
|
-
shadowOpacity: interpolate(props.active.progress, [0, 1], [0, 0.25]),
|
|
169
|
+
shadowOffset: REVEAL_SHADOW_OFFSET,
|
|
170
|
+
shadowOpacity: interpolate(props.active.progress, ZERO_TO_ONE_RANGE, CONTENT_SHADOW_OPACITY_OUTPUT),
|
|
270
171
|
shadowRadius: 32,
|
|
271
172
|
elevation: 5,
|
|
272
|
-
opacity: props.active.entering ? interpolate(props.active.progress,
|
|
173
|
+
opacity: props.active.entering ? interpolate(props.active.progress, CONTENT_ENTERING_OPACITY_RANGE, CONTENT_ENTERING_OPACITY_OUTPUT) : interpolate(props.active.progress, CONTENT_CLOSING_OPACITY_RANGE, CONTENT_CLOSING_OPACITY_OUTPUT)
|
|
273
174
|
}
|
|
274
175
|
},
|
|
275
176
|
[NAVIGATION_MASK_ELEMENT_STYLE_ID]: {
|
|
276
|
-
style:
|
|
277
|
-
width: maskWidth,
|
|
278
|
-
height: renderedMaskHeight,
|
|
279
|
-
borderRadius: props.active.settled ? 0 : maskBorderRadius,
|
|
280
|
-
borderCurve: "continuous",
|
|
281
|
-
transform: [{
|
|
282
|
-
translateX: compensatedMaskTranslateX
|
|
283
|
-
}, {
|
|
284
|
-
translateY: compensatedMaskTranslateY
|
|
285
|
-
}, {
|
|
286
|
-
scale: compensatedMaskScale
|
|
287
|
-
}]
|
|
288
|
-
}
|
|
177
|
+
style: maskElementStyle
|
|
289
178
|
},
|
|
290
179
|
[link.id]: {
|
|
291
180
|
style: {
|
|
@@ -303,7 +192,7 @@ export function buildRevealStyles({
|
|
|
303
192
|
|
|
304
193
|
/* ---------------------------- Unfocused Screen ---------------------------- */
|
|
305
194
|
|
|
306
|
-
const unfocusedScale =
|
|
195
|
+
const unfocusedScale = mixUnit(1, 0.9375, props.active.progress);
|
|
307
196
|
const unfocusedContentScale = props.active.logicallySettled ? 1 : unfocusedScale;
|
|
308
197
|
const trackingContentTarget = initialDestinationTarget ?? link.destination.bounds;
|
|
309
198
|
const trackingContentBaseTransform = resolveRevealContentBaseTransform({
|
|
@@ -312,18 +201,21 @@ export function buildRevealStyles({
|
|
|
312
201
|
destinationBounds: trackingContentTarget,
|
|
313
202
|
screenLayout
|
|
314
203
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
204
|
+
let trackingContentScale = trackingContentBaseTransform.scale * dragScale;
|
|
205
|
+
if (props.active.gesture.dismissing) {
|
|
206
|
+
const trackingTargetScale = resolveUniformScale({
|
|
207
|
+
sourceWidth: link.source.bounds.width,
|
|
208
|
+
sourceHeight: link.source.bounds.height,
|
|
209
|
+
destinationWidth: trackingContentTarget.width,
|
|
210
|
+
destinationHeight: trackingContentTarget.height
|
|
211
|
+
});
|
|
212
|
+
trackingContentScale = resolveDismissScaleHandoff({
|
|
213
|
+
progress: props.active.progress,
|
|
214
|
+
releaseScale: dragScale,
|
|
215
|
+
targetScale: trackingTargetScale,
|
|
216
|
+
velocity: props.active.gesture.velocity
|
|
217
|
+
});
|
|
218
|
+
}
|
|
327
219
|
const trackingContentTranslateX = trackingContentBaseTransform.translateX + dragX;
|
|
328
220
|
const trackingContentTranslateY = trackingContentBaseTransform.translateY + dragY;
|
|
329
221
|
const trackedSourceElement = resolveTrackedSourceElementTransform({
|
|
@@ -352,7 +244,7 @@ export function buildRevealStyles({
|
|
|
352
244
|
},
|
|
353
245
|
[link.id]: {
|
|
354
246
|
style: {
|
|
355
|
-
opacity: props.active.closing ? 1 : interpolate(props.active.progress,
|
|
247
|
+
opacity: props.active.closing ? 1 : interpolate(props.active.progress, ZERO_TO_ONE_RANGE, UNFOCUSED_ELEMENT_OPACITY_OUTPUT),
|
|
356
248
|
zIndex: 9999,
|
|
357
249
|
elevation: 9999,
|
|
358
250
|
transform: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","EPSILON","NAVIGATION_MASK_ELEMENT_STYLE_ID","createLinkAccessor","computeContentTransformGeometry","getSourceBorderRadius","combineScales","resolveDirectionalDragScale","CLOSE_SOURCE_HANDOFF_PROGRESS","DISMISS_SCALE_ORBIT_DEPTH","DRAG_DIRECTIONAL_SCALE_EXPONENT","DRAG_DIRECTIONAL_SCALE_MAX","DRAG_DIRECTIONAL_SCALE_MIN","DRAG_MASK_HEIGHT_COLLAPSE_END","HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE","REVEAL_BORDER_RADIUS","resolveDirectionalDragTranslation","IDENTITY_DRAG_SCALE_OUTPUT","resolveUniformScale","sourceWidth","sourceHeight","destinationWidth","destinationHeight","sx","sy","sourceAspect","destinationAspect","aspectDifference","Math","abs","max","min","resolveRevealGestureHandoff","rawDrag","gestureSensitivity","releaseBoost","releaseSensitivity","gestureReleaseVelocityScale","resolveDismissScaleHandoff","progress","releaseScale","targetScale","closeProgress","scaleProgress","sin","PI","baseScale","orbitDepth","orbitScale","getBoundsCenterX","bounds","pageX","width","getBoundsCenterY","pageY","height","resolveRevealContentBaseTransform","sourceBounds","destinationBounds","screenLayout","geometry","start","end","entering","dimensions","scaleMode","translateX","tx","translateY","ty","scale","s","resolveTrackedSourceElementTransform","contentTranslateX","contentTranslateY","contentScale","parentScale","screenWidth","screenHeight","screenCenterX","screenCenterY","safeParentScale","safeSourceWidth","safeSourceHeight","sourceCenterX","sourceCenterY","destinationCenterX","destinationCenterY","trackedCenterX","trackedCenterY","scaleX","scaleY","buildRevealStyles","tag","props","focused","layouts","screen","baseRawOptions","raw","boundsAccessor","link","getLink","source","destination","sourceBorderRadius","initialGesture","active","gesture","direction","isHorizontalDismiss","includes","isVerticalDismiss","normX","normY","dragX","translation","x","dimension","negativeMax","positiveMax","exponent","dragY","y","dragXScale","normalized","dismissDirection","shrinkMin","growMax","dragYScale","dragScale","initialDestinationTarget","closing","initialDestination","undefined","contentRaw","compute","method","target","maskRaw","space","maskBorderRadius","maskSizeMultiplier","maskWidth","maskHeight","contentBaseScale","contentTargetBounds","sourceContentScale","safeContentBaseScale","dismissing","liveHorizontalDismissDrag","liveVerticalDismissDrag","dismissProgressDrag","maskHeightCollapseDrag","minMaskHeight","renderedMaskHeight","maskCenterX","maskCenterY","maskCenteringOffsetX","maskCenteringOffsetY","verticalCollapseOffsetY","contentCenterX","contentCenterY","compensatedMaskTranslateX","compensatedMaskTranslateY","compensatedMaskScale","elementOffsetX","elementOffsetY","elementTX","elementY","options","gestureProgressMode","content","style","transform","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","opacity","borderRadius","settled","borderCurve","id","position","zIndex","unfocusedScale","unfocusedContentScale","logicallySettled","trackingContentTarget","trackingContentBaseTransform","trackingTargetScale","trackingContentScale","trackingContentTranslateX","trackingContentTranslateY","trackedSourceElement","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/reveal/build.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAiC,yBAAyB;AAC9E,SACCC,OAAO,EACPC,gCAAgC,QAC1B,uBAAuB;AAC9B,SAASC,kBAAkB,QAAQ,oCAAoC;AACvE,SAASC,+BAA+B,QAAQ,wBAAwB;AACxE,SAASC,qBAAqB,QAAQ,YAAY;AAClD,SAASC,aAAa,EAAEC,2BAA2B,QAAQ,SAAS;AACpE,SACCC,6BAA6B,EAC7BC,yBAAyB,EACzBC,+BAA+B,EAC/BC,0BAA0B,EAC1BC,0BAA0B,EAC1BC,6BAA6B,EAC7BC,mCAAmC,EACnCC,oBAAoB,QACd,UAAU;AACjB,SAASC,iCAAiC,QAAQ,QAAQ;AAG1D,MAAMC,0BAA0B,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;AAElD,S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AAK,EAAE;QACNO,OAAO,EAAEtF,KAAK,CAACa,MAAM,CAACyB,OAAO,GAC1B,CAAC,GACDpI,WAAW,CAAC8F,KAAK,CAACa,MAAM,CAACpE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC;QAE9DmJ,MAAM,EAAE,IAAI;QACZP,SAAS,EAAE,IAAI;QACfL,SAAS,EAAE,CACV;UACC5G,UAAU,EAAE4B,KAAK,CAACa,MAAM,CAACkF,gBAAgB,GACtC,CAAC,GACDO,oBAAoB,CAAClI;QACzB,CAAC,EACD;UACCE,UAAU,EAAE0B,KAAK,CAACa,MAAM,CAACkF,gBAAgB,GACtC,CAAC,GACDO,oBAAoB,CAAChI;QACzB,CAAC,EACD;UACCsB,MAAM,EAAEI,KAAK,CAACa,MAAM,CAACkF,gBAAgB,GAClC,CAAC,GACDO,oBAAoB,CAAC1G;QACzB,CAAC,EACD;UACCC,MAAM,EAAEG,KAAK,CAACa,MAAM,CAACkF,gBAAgB,GAClC,CAAC,GACDO,oBAAoB,CAACzG;QACzB,CAAC;MAEH;IACD;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["interpolate","NAVIGATION_MASK_ELEMENT_STYLE_ID","createLinkAccessor","getSourceBorderRadius","CLOSE_SOURCE_HANDOFF_PROGRESS","CONTENT_CLOSING_OPACITY_OUTPUT","CONTENT_CLOSING_OPACITY_RANGE","CONTENT_ENTERING_OPACITY_OUTPUT","CONTENT_ENTERING_OPACITY_RANGE","CONTENT_SHADOW_OPACITY_OUTPUT","DRAG_MASK_HEIGHT_COLLAPSE_END","HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE","IDENTITY_DRAG_SCALE_OUTPUT","REVEAL_BORDER_RADIUS","REVEAL_SHADOW_OFFSET","REVEAL_USES_TRANSFORM_MASK","UNFOCUSED_ELEMENT_OPACITY_OUTPUT","ZERO_TO_ONE_RANGE","interpolateClamped","mixUnit","resolveDismissScaleHandoff","resolveRevealContentBaseTransform","resolveRevealDirectionalDragScale","resolveRevealGestureHandoff","resolveSafeScale","resolveTrackedSourceElementTransform","resolveUniformScale","resolveUnitDragTranslation","buildRevealStyles","tag","props","focused","progress","layouts","screen","screenLayout","boundsAccessor","link","getLink","source","bounds","destination","sourceBorderRadius","initialGesture","active","gesture","direction","isHorizontalDismiss","isVerticalDismiss","rawDrag","Math","abs","raw","normX","normY","dragX","x","width","dragY","y","height","dragXScale","dragYScale","dragScale","initialDestinationTarget","closing","initialDestination","undefined","contentRaw","compute","scaleMode","method","target","maskRaw","space","maskBorderRadius","maskSizeMultiplier","maskWidth","max","maskHeight","contentBaseScale","scale","safeContentBaseScale","contentScale","dismissing","contentTargetBounds","sourceContentScale","sourceWidth","sourceHeight","destinationWidth","destinationHeight","releaseScale","targetScale","velocity","contentTranslateX","translateX","contentTranslateY","translateY","liveHorizontalDismissDrag","liveVerticalDismissDrag","dismissProgressDrag","maskHeightCollapseDrag","minMaskHeight","min","renderedMaskHeight","maskCenterX","maskCenterY","maskCenteringOffsetX","maskCenteringOffsetY","verticalCollapseOffsetY","contentCenterX","contentCenterY","compensatedMaskTranslateX","compensatedMaskTranslateY","compensatedMaskScale","maskBaseWidth","maskBaseHeight","maskScaleX","maskScaleY","transformMaskTranslateX","transformMaskTranslateY","maskElementStyle","borderRadius","settled","borderCurve","transform","scaleX","scaleY","elementOffsetX","pageX","elementOffsetY","pageY","elementTX","elementY","gestureSensitivity","gestureReleaseVelocityScale","options","gestureProgressMode","content","style","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","opacity","entering","id","position","zIndex","unfocusedScale","unfocusedContentScale","logicallySettled","trackingContentTarget","trackingContentBaseTransform","sourceBounds","destinationBounds","trackingContentScale","trackingTargetScale","trackingContentTranslateX","trackingContentTranslateY","trackedSourceElement","parentScale","screenWidth","screenHeight","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation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AAC;UAAE5C,KAAK,EAAEsE;QAAsB,CAAC;MAC7C,CAAC;MACDzH,KAAK,EAAE;QACNuI,aAAa,EACZvI,KAAK,CAACc,MAAM,CAACZ,QAAQ,IAAI5B,6BAA6B,GACnD,MAAM,GACN;MACL;IACD,CAAC;IACD,CAACiC,IAAI,CAAC8G,EAAE,GAAG;MACVR,KAAK,EAAE;QACNM,OAAO,EAAEnH,KAAK,CAACc,MAAM,CAACqB,OAAO,GAC1B,CAAC,GACDjE,WAAW,CACX8B,KAAK,CAACc,MAAM,CAACZ,QAAQ,EACrBf,iBAAiB,EACjBD,gCACD,CAAC;QAEHqI,MAAM,EAAE,IAAI;QACZL,SAAS,EAAE,IAAI;QACfnB,SAAS,EAAE,CACV;UACC9B,UAAU,EAAEjE,KAAK,CAACc,MAAM,CAAC4G,gBAAgB,GACtC,CAAC,GACDS,oBAAoB,CAAClE;QACzB,CAAC,EACD;UACCE,UAAU,EAAEnE,KAAK,CAACc,MAAM,CAAC4G,gBAAgB,GACtC,CAAC,GACDS,oBAAoB,CAAChE;QACzB,CAAC,EACD;UACC6B,MAAM,EAAEhG,KAAK,CAACc,MAAM,CAAC4G,gBAAgB,GAClC,CAAC,GACDS,oBAAoB,CAACnC;QACzB,CAAC,EACD;UACCC,MAAM,EAAEjG,KAAK,CAACc,MAAM,CAAC4G,gBAAgB,GAClC,CAAC,GACDS,oBAAoB,CAAClC;QACzB,CAAC;MAEH;IACD;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -6,11 +6,24 @@ export const REVEAL_BORDER_RADIUS = Platform.select({
|
|
|
6
6
|
android: 36,
|
|
7
7
|
default: 36
|
|
8
8
|
});
|
|
9
|
+
export const REVEAL_USES_TRANSFORM_MASK = Platform.OS === "android";
|
|
9
10
|
export const DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
|
|
10
11
|
export const DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
11
12
|
export const DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
12
13
|
export const DRAG_MASK_HEIGHT_COLLAPSE_END = 0.7;
|
|
13
14
|
export const HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE = 0.5;
|
|
14
|
-
export const DISMISS_SCALE_ORBIT_DEPTH = 0.
|
|
15
|
+
export const DISMISS_SCALE_ORBIT_DEPTH = 0.5;
|
|
15
16
|
export const CLOSE_SOURCE_HANDOFF_PROGRESS = 0.25;
|
|
17
|
+
export const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
18
|
+
export const ZERO_TO_ONE_RANGE = [0, 1];
|
|
19
|
+
export const CONTENT_ENTERING_OPACITY_RANGE = [0, CLOSE_SOURCE_HANDOFF_PROGRESS];
|
|
20
|
+
export const CONTENT_CLOSING_OPACITY_RANGE = [0, CLOSE_SOURCE_HANDOFF_PROGRESS, 1];
|
|
21
|
+
export const CONTENT_ENTERING_OPACITY_OUTPUT = [0, 1];
|
|
22
|
+
export const CONTENT_CLOSING_OPACITY_OUTPUT = [0, 1, 1];
|
|
23
|
+
export const CONTENT_SHADOW_OPACITY_OUTPUT = [0, 0.25];
|
|
24
|
+
export const UNFOCUSED_ELEMENT_OPACITY_OUTPUT = [1, 0];
|
|
25
|
+
export const REVEAL_SHADOW_OFFSET = {
|
|
26
|
+
width: 0,
|
|
27
|
+
height: 2
|
|
28
|
+
};
|
|
16
29
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","REVEAL_BORDER_RADIUS","select","ios","android","default","DRAG_DIRECTIONAL_SCALE_MIN","DRAG_DIRECTIONAL_SCALE_MAX","DRAG_DIRECTIONAL_SCALE_EXPONENT","DRAG_MASK_HEIGHT_COLLAPSE_END","HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE","DISMISS_SCALE_ORBIT_DEPTH","CLOSE_SOURCE_HANDOFF_PROGRESS"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/reveal/config.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,oBAAoB,GAAGD,QAAQ,CAACE,MAAM,CAAC;EACnDC,GAAG,EAAE,EAAE;EACPC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE;AACV,CAAC,CAAC;AAEF,OAAO,MAAMC,0BAA0B,GAAG,IAAI;AAC9C,OAAO,MAAMC,0BAA0B,GAAG,IAAI;AAC9C,OAAO,MAAMC,+BAA+B,GAAG,CAAC;AAChD,OAAO,MAAMC,6BAA6B,GAAG,GAAG;AAChD,OAAO,MAAMC,mCAAmC,GAAG,GAAG;AACtD,OAAO,MAAMC,yBAAyB,GAAG,GAAG;AAC5C,OAAO,MAAMC,6BAA6B,GAAG,IAAI","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Platform","REVEAL_BORDER_RADIUS","select","ios","android","default","REVEAL_USES_TRANSFORM_MASK","OS","DRAG_DIRECTIONAL_SCALE_MIN","DRAG_DIRECTIONAL_SCALE_MAX","DRAG_DIRECTIONAL_SCALE_EXPONENT","DRAG_MASK_HEIGHT_COLLAPSE_END","HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE","DISMISS_SCALE_ORBIT_DEPTH","CLOSE_SOURCE_HANDOFF_PROGRESS","IDENTITY_DRAG_SCALE_OUTPUT","ZERO_TO_ONE_RANGE","CONTENT_ENTERING_OPACITY_RANGE","CONTENT_CLOSING_OPACITY_RANGE","CONTENT_ENTERING_OPACITY_OUTPUT","CONTENT_CLOSING_OPACITY_OUTPUT","CONTENT_SHADOW_OPACITY_OUTPUT","UNFOCUSED_ELEMENT_OPACITY_OUTPUT","REVEAL_SHADOW_OFFSET","width","height"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/reveal/config.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,oBAAoB,GAAGD,QAAQ,CAACE,MAAM,CAAC;EACnDC,GAAG,EAAE,EAAE;EACPC,OAAO,EAAE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