react-native-screen-transitions 3.9.0-beta.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +19 -14
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +4 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +4 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +2 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +2 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +4 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +16 -3
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/configs/index.js +2 -1
- package/lib/commonjs/shared/configs/index.js.map +1 -1
- package/lib/commonjs/shared/configs/specs.js +23 -1
- package/lib/commonjs/shared/configs/specs.js.map +1 -1
- package/lib/commonjs/shared/constants.js +4 -0
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +25 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +8 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +5 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +184 -314
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +13 -18
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +196 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +97 -108
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +73 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +90 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/module/shared/components/boundary/components/boundary-target.js +20 -15
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +2 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +5 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +5 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +3 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +1 -0
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +4 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +17 -4
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/configs/index.js +3 -2
- package/lib/module/shared/configs/index.js.map +1 -1
- package/lib/module/shared/configs/specs.js +22 -0
- package/lib/module/shared/configs/specs.js.map +1 -1
- package/lib/module/shared/constants.js +4 -0
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +23 -2
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +8 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/bounds.types.js +26 -0
- package/lib/module/shared/types/bounds.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +5 -2
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +188 -318
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +12 -17
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +184 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +94 -102
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +68 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +84 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +3 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +1 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/configs/index.d.ts +16 -0
- package/lib/typescript/shared/configs/index.d.ts.map +1 -1
- package/lib/typescript/shared/configs/specs.d.ts +19 -0
- package/lib/typescript/shared/configs/specs.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +17 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-build-pan-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/values.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +4 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +115 -88
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +10 -0
- 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/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +3 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +7 -17
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +55 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +33 -34
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +27 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +22 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/shared/components/boundary/components/boundary-target.tsx +37 -26
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +16 -13
- package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +6 -2
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +46 -3
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +8 -5
- package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +3 -2
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +5 -4
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +4 -5
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +5 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +1 -4
- package/src/shared/components/boundary/portal/teleport.ts +1 -0
- package/src/shared/components/boundary/portal/utils/ownership.ts +5 -1
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +23 -3
- package/src/shared/configs/index.ts +2 -1
- package/src/shared/configs/specs.ts +23 -0
- package/src/shared/constants.ts +4 -0
- package/src/shared/index.ts +2 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +8 -0
- package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +16 -7
- package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +18 -1
- package/src/shared/providers/screen/gestures/pan/use-build-pan-gesture.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +40 -2
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -11
- package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +12 -15
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +6 -1
- package/src/shared/providers/screen/gestures/shared/snapshot.ts +2 -0
- package/src/shared/providers/screen/gestures/shared/values.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -1
- package/src/shared/stores/gesture.store.ts +12 -0
- package/src/shared/types/bounds.types.ts +119 -90
- package/src/shared/types/gesture.types.ts +10 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/animation/animate-to-progress.ts +23 -7
- package/src/shared/utils/bounds/navigation/reveal/math.ts +6 -1
- package/src/shared/utils/bounds/navigation/zoom/build.ts +231 -411
- package/src/shared/utils/bounds/navigation/zoom/config.ts +16 -18
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +327 -0
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +127 -184
- package/src/shared/utils/bounds/navigation/zoom/mask.ts +133 -0
- package/src/shared/utils/bounds/navigation/zoom/targets.ts +132 -0
- package/src/shared/utils/bounds/navigation/zoom/types.ts +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +0 -25
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +0 -20
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +0 -8
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +0 -1
- package/src/shared/utils/bounds/navigation/zoom/math.ts +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
2
|
import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../constants";
|
|
3
3
|
import type { BoundsLink } from "../stores/bounds/types";
|
|
4
4
|
import type { BoundsComputeOptions, BoundsIdentityInput, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsStyleResult, BoundsValuesResult } from "../utils/bounds/types/options";
|
|
@@ -13,78 +13,138 @@ export type { BoundsLink, BoundsLinkStatus } from "../stores/bounds/types";
|
|
|
13
13
|
* so the target bound matches the source at progress start
|
|
14
14
|
*/
|
|
15
15
|
export type BoundsMethod = "transform" | "size" | "content";
|
|
16
|
+
/**
|
|
17
|
+
* Axis-specific response intensity used by {@linkcode BoundsNavigationZoomDragOptions}.
|
|
18
|
+
*
|
|
19
|
+
* `0` disables the response on an axis, `1` preserves the native zoom preset,
|
|
20
|
+
* and values above `1` exaggerate it.
|
|
21
|
+
*/
|
|
22
|
+
export type BoundsNavigationZoomAxisResponse = {
|
|
23
|
+
/** Horizontal gesture response multiplier. @default 1 */
|
|
24
|
+
horizontal?: number;
|
|
25
|
+
/** Vertical gesture response multiplier. @default 1 */
|
|
26
|
+
vertical?: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Adjusts the intensity of zoom's native drag behavior without replacing its
|
|
30
|
+
* built-in curves.
|
|
31
|
+
*
|
|
32
|
+
* @see {@linkcode BoundsNavigationZoomOptions.drag}
|
|
33
|
+
*/
|
|
34
|
+
export type BoundsNavigationZoomDragOptions = {
|
|
35
|
+
/**
|
|
36
|
+
* Multiplies the native rendered translation.
|
|
37
|
+
*
|
|
38
|
+
* @default { horizontal: 1, vertical: 1 }
|
|
39
|
+
*/
|
|
40
|
+
translation?: BoundsNavigationZoomAxisResponse;
|
|
41
|
+
/**
|
|
42
|
+
* Multiplies the native scale displacement from `1`.
|
|
43
|
+
*
|
|
44
|
+
* @default { horizontal: 1, vertical: 1 }
|
|
45
|
+
*/
|
|
46
|
+
scale?: BoundsNavigationZoomAxisResponse;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Legacy zoom opacity interpolation tuple.
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Zoom opacity ownership now follows the native preset.
|
|
52
|
+
*/
|
|
53
|
+
export type BoundsNavigationZoomOpacityRange = readonly [
|
|
54
|
+
inputStart: number,
|
|
55
|
+
inputEnd: number,
|
|
56
|
+
outputStart?: number,
|
|
57
|
+
outputEnd?: number
|
|
58
|
+
];
|
|
59
|
+
/**
|
|
60
|
+
* Legacy opening and closing zoom opacity ranges.
|
|
61
|
+
*
|
|
62
|
+
* @deprecated Zoom opacity ownership now follows the native preset.
|
|
63
|
+
*/
|
|
64
|
+
export type BoundsNavigationZoomOpacityRanges = {
|
|
65
|
+
open?: BoundsNavigationZoomOpacityRange;
|
|
66
|
+
close?: BoundsNavigationZoomOpacityRange;
|
|
67
|
+
};
|
|
16
68
|
export type BoundsNavigationZoomOptions = {
|
|
17
|
-
target?: "bound" | "fullscreen" | MeasuredDimensions;
|
|
18
|
-
debug?: boolean;
|
|
19
|
-
borderRadius?: number;
|
|
20
69
|
/**
|
|
21
|
-
*
|
|
70
|
+
* Geometry that the zoomed content should resolve against.
|
|
71
|
+
*
|
|
72
|
+
* `"bound"` uses the paired destination boundary. `"fullscreen"` uses the
|
|
73
|
+
* screen, and measured dimensions provide an explicit target rectangle.
|
|
74
|
+
* When omitted, zoom keeps its native full-width aspect-ratio target.
|
|
75
|
+
*/
|
|
76
|
+
target?: BoundsComputeOptions["target"];
|
|
77
|
+
/**
|
|
78
|
+
* Keeps the focused screen content visible throughout the zoom.
|
|
22
79
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
80
|
+
* Enable this for handed-off or live content that should not use zoom's
|
|
81
|
+
* built-in focused-content opacity fade.
|
|
25
82
|
*
|
|
26
|
-
*
|
|
27
|
-
* - `inputStart`: transition progress start
|
|
28
|
-
* - `inputEnd`: transition progress end
|
|
29
|
-
* - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
|
|
30
|
-
* - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
|
|
83
|
+
* @default false
|
|
31
84
|
*/
|
|
32
|
-
|
|
85
|
+
keepFocusedVisible?: boolean;
|
|
33
86
|
/**
|
|
34
|
-
*
|
|
87
|
+
* Expanded transition clipping radius.
|
|
35
88
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
89
|
+
* Zoom interpolates from the measured source radius to this value while the
|
|
90
|
+
* screen is animating. This controls the visible clipping result regardless
|
|
91
|
+
* of whether a navigation mask is enabled.
|
|
38
92
|
*
|
|
39
|
-
*
|
|
40
|
-
* - `inputStart`: transition progress start
|
|
41
|
-
* - `inputEnd`: transition progress end
|
|
42
|
-
* - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
|
|
43
|
-
* - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
|
|
93
|
+
* @default 64
|
|
44
94
|
*/
|
|
45
|
-
|
|
95
|
+
borderRadius?: number;
|
|
46
96
|
/**
|
|
47
|
-
* Scale applied to the unfocused
|
|
48
|
-
*
|
|
97
|
+
* Scale applied to the unfocused screen while the zoom runs above it.
|
|
98
|
+
*
|
|
99
|
+
* @default 0.9375
|
|
49
100
|
*/
|
|
50
101
|
backgroundScale?: number;
|
|
51
102
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* Zoom lowers gesture sensitivity as the drag gets deeper so the content
|
|
55
|
-
* handoff stays stable. This value controls the starting/highest sensitivity
|
|
56
|
-
* in that curve.
|
|
103
|
+
* Color rendered behind the focused zoom content.
|
|
57
104
|
*
|
|
58
|
-
* @default
|
|
105
|
+
* @default "black"
|
|
59
106
|
*/
|
|
60
|
-
|
|
107
|
+
backdropColor?: ColorValue;
|
|
61
108
|
/**
|
|
62
|
-
*
|
|
109
|
+
* Maximum opacity reached by the zoom backdrop.
|
|
63
110
|
*
|
|
64
|
-
*
|
|
65
|
-
* to `0` to remove the velocity depth effect.
|
|
111
|
+
* Values are clamped between `0` and `1`.
|
|
66
112
|
*
|
|
67
|
-
* @default 0.
|
|
113
|
+
* @default 0.45
|
|
114
|
+
*/
|
|
115
|
+
backdropOpacity?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Native drag-response intensity controls.
|
|
118
|
+
*/
|
|
119
|
+
drag?: BoundsNavigationZoomDragOptions;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Ignored. Zoom no longer exposes a transition-specific debug
|
|
122
|
+
* overlay.
|
|
123
|
+
*/
|
|
124
|
+
debug?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Ignored. Zoom opacity ownership now follows the native preset.
|
|
127
|
+
*/
|
|
128
|
+
focusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Ignored. Zoom opacity ownership now follows the native preset.
|
|
131
|
+
*/
|
|
132
|
+
unfocusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated Ignored. Zoom now owns its gesture sensitivity curve.
|
|
135
|
+
*/
|
|
136
|
+
maxSensitivity?: number;
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated Ignored. Zoom now owns its velocity-depth behavior.
|
|
68
139
|
*/
|
|
69
140
|
velocityDepth?: number;
|
|
70
141
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* Gesture movement now always contributes to `progress`; use `transitionProgress`
|
|
74
|
-
* when a recipe needs transition progress without live gesture contribution.
|
|
75
|
-
* The zoom helper no longer reads this option.
|
|
76
|
-
*
|
|
77
|
-
* @deprecated Use `transitionProgress` from interpolation state instead.
|
|
142
|
+
* @deprecated Ignored. Gesture movement always contributes to `progress`.
|
|
78
143
|
*/
|
|
79
144
|
gestureProgressMode?: GestureProgressMode;
|
|
80
145
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* Tuple order:
|
|
85
|
-
* - `shrinkMin`: minimum scale when dragging toward dismissal
|
|
86
|
-
* - `growMax`: maximum scale when dragging opposite dismissal
|
|
87
|
-
* - `exponent`: curve exponent controlling how quickly scaling ramps
|
|
146
|
+
* @deprecated Ignored. Use `drag.scale.horizontal` to adjust response
|
|
147
|
+
* intensity without replacing the native curve.
|
|
88
148
|
*/
|
|
89
149
|
horizontalDragScale?: readonly [
|
|
90
150
|
shrinkMin: number,
|
|
@@ -92,13 +152,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
92
152
|
exponent?: number
|
|
93
153
|
];
|
|
94
154
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* Tuple order:
|
|
99
|
-
* - `shrinkMin`: minimum scale when dragging toward dismissal
|
|
100
|
-
* - `growMax`: maximum scale when dragging opposite dismissal
|
|
101
|
-
* - `exponent`: curve exponent controlling how quickly scaling ramps
|
|
155
|
+
* @deprecated Ignored. Use `drag.scale.vertical` to adjust response intensity
|
|
156
|
+
* without replacing the native curve.
|
|
102
157
|
*/
|
|
103
158
|
verticalDragScale?: readonly [
|
|
104
159
|
shrinkMin: number,
|
|
@@ -106,17 +161,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
106
161
|
exponent?: number
|
|
107
162
|
];
|
|
108
163
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* Tuple order:
|
|
112
|
-
* - `negativeMax`: multiplier when dragging left / negative
|
|
113
|
-
* - `positiveMax`: multiplier when dragging right / positive
|
|
114
|
-
* - `exponent`: curve exponent controlling how quickly translation ramps
|
|
115
|
-
*
|
|
116
|
-
* Examples:
|
|
117
|
-
* - `[0, 0]` disables horizontal drag translation
|
|
118
|
-
* - `[0.5, 0.5]` halves horizontal drag travel
|
|
119
|
-
* - `[1.2, 1.2]` amplifies horizontal drag travel
|
|
164
|
+
* @deprecated Ignored. Use `drag.translation.horizontal` to adjust response
|
|
165
|
+
* intensity without replacing the native curve.
|
|
120
166
|
*/
|
|
121
167
|
horizontalDragTranslation?: readonly [
|
|
122
168
|
negativeMax: number,
|
|
@@ -124,17 +170,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
124
170
|
exponent?: number
|
|
125
171
|
];
|
|
126
172
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* Tuple order:
|
|
130
|
-
* - `negativeMax`: multiplier when dragging up / negative
|
|
131
|
-
* - `positiveMax`: multiplier when dragging down / positive
|
|
132
|
-
* - `exponent`: curve exponent controlling how quickly translation ramps
|
|
133
|
-
*
|
|
134
|
-
* Examples:
|
|
135
|
-
* - `[0, 0]` disables vertical drag translation
|
|
136
|
-
* - `[0.5, 0.5]` halves vertical drag travel
|
|
137
|
-
* - `[1.2, 1.2]` amplifies vertical drag travel
|
|
173
|
+
* @deprecated Ignored. Use `drag.translation.vertical` to adjust response
|
|
174
|
+
* intensity without replacing the native curve.
|
|
138
175
|
*/
|
|
139
176
|
verticalDragTranslation?: readonly [
|
|
140
177
|
negativeMax: number,
|
|
@@ -142,16 +179,6 @@ export type BoundsNavigationZoomOptions = {
|
|
|
142
179
|
exponent?: number
|
|
143
180
|
];
|
|
144
181
|
};
|
|
145
|
-
export type BoundsNavigationZoomOpacityRange = readonly [
|
|
146
|
-
inputStart: number,
|
|
147
|
-
inputEnd: number,
|
|
148
|
-
outputStart?: number,
|
|
149
|
-
outputEnd?: number
|
|
150
|
-
];
|
|
151
|
-
export type BoundsNavigationZoomOpacityRanges = {
|
|
152
|
-
open?: BoundsNavigationZoomOpacityRange;
|
|
153
|
-
close?: BoundsNavigationZoomOpacityRange;
|
|
154
|
-
};
|
|
155
182
|
export type BoundsNavigationZoomStyle = TransitionInterpolatedStyle & {
|
|
156
183
|
content?: TransitionSlotStyle;
|
|
157
184
|
[NAVIGATION_MASK_CONTAINER_STYLE_ID]?: TransitionSlotStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,mBAAmB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,MAAM,YAAY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B,EACxB,QAAQ,GAAG,YAAY,CACvB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -110,6 +110,8 @@ export type GestureHandoffValues = {
|
|
|
110
110
|
normScale: number;
|
|
111
111
|
focalX: number;
|
|
112
112
|
focalY: number;
|
|
113
|
+
pinchOriginX: number;
|
|
114
|
+
pinchOriginY: number;
|
|
113
115
|
rotation: number;
|
|
114
116
|
raw: RawGestureValues;
|
|
115
117
|
/**
|
|
@@ -161,6 +163,14 @@ export type GestureValues = {
|
|
|
161
163
|
* The live pinch focal point y-position in screen coordinates.
|
|
162
164
|
*/
|
|
163
165
|
focalY: number;
|
|
166
|
+
/**
|
|
167
|
+
* The pinch focal point x-position captured when the gesture activated.
|
|
168
|
+
*/
|
|
169
|
+
pinchOriginX: number;
|
|
170
|
+
/**
|
|
171
|
+
* The pinch focal point y-position captured when the gesture activated.
|
|
172
|
+
*/
|
|
173
|
+
pinchOriginY: number;
|
|
164
174
|
/**
|
|
165
175
|
* The live two-finger rotation in radians.
|
|
166
176
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/gesture.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAChD,mBAAmB,EACnB,eAAe,CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,2BAA2B,GAAG,qBAAqB,CAAC;AAEhF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjE,MAAM,MAA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;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,EAAE,gBAAgB,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAC9C;;;;;;OAMG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FALSE, TRUE } from "../constants";
|
|
2
2
|
export type { AnimatedViewStyle, AnimationConfig, BoundaryTeleportControl, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionAccessor, ScreenTransitionDepthTarget, ScreenTransitionOptions, ScreenTransitionState, ScreenTransitionTarget, TransitionInterpolatedStyle, TransitionInterpolatorOptions, TransitionSlotProps, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
|
|
3
|
-
export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
3
|
+
export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomAxisResponse, BoundsNavigationZoomDragOptions, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
4
4
|
export type { ActivationArea, GestureActivationArea, GestureDirection, GestureDirectionActivationArea, GestureDirectionConfig, GestureDirectionEntry, GestureDirectionOption, GestureHandoffValues, GestureValues, PanGestureDirection, PinchGestureDirection, RawGestureValues, ScrollGestureAxis, ScrollGestureAxisState, ScrollGestureState, ScrollMetadataState, SideActivation, } from "./gesture.types";
|
|
5
5
|
export type { OverlayProps } from "./overlay.types";
|
|
6
6
|
export type { GestureTracking, InactiveBehavior, Layout, ScreenBackdropComponent, ScreenBackdropComponentProps, ScreenContentComponent, ScreenContentComponentProps, ScreenKey, ScreenLayerComponentProps, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,SAyGxB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
2
|
import type { Layout } from "../../../../types/screen.types";
|
|
3
|
+
import type { BoundsAnchor } from "../../types/options";
|
|
3
4
|
export declare function mixUnit(from: number, to: number, progress: number): number;
|
|
4
5
|
export declare function interpolateClamped(value: number, inputStart: number, inputEnd: number, outputStart: number, outputEnd: number): number;
|
|
5
6
|
export declare function resolveSafeScale(scale: number): number;
|
|
@@ -31,11 +32,12 @@ export declare function resolveAspectRatioMaskHeight({ maskWidth, maskHeight, ta
|
|
|
31
32
|
targetWidth: number;
|
|
32
33
|
targetHeight: number;
|
|
33
34
|
}): number;
|
|
34
|
-
export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, }: {
|
|
35
|
+
export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, anchor, }: {
|
|
35
36
|
progress: number;
|
|
36
37
|
sourceBounds: MeasuredDimensions;
|
|
37
38
|
destinationBounds: MeasuredDimensions;
|
|
38
39
|
screenLayout: Layout;
|
|
40
|
+
anchor?: BoundsAnchor;
|
|
39
41
|
}): {
|
|
40
42
|
translateX: number;
|
|
41
43
|
translateY: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM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MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB,UAWA;AAYD,wBAAgB,iCAAiC,CAAC,EACjD,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,MAAM,GACN,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB;;;;EAiBA;AAED,wBAAgB,oCAAoC,CAAC,EACpD,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;;;;;EAuCA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
|
|
2
|
-
export declare function buildZoomStyles({ tag,
|
|
2
|
+
export declare function buildZoomStyles({ tag, props, zoomOptions, }: BuildZoomStylesParams): ZoomInterpolatedStyle;
|
|
3
3
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE5E,wBAAgB,eAAe,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,WAAW,GACX,EAAE,qBAAqB,GAAG,qBAAqB,CAuR/C"}
|
|
@@ -2,22 +2,12 @@ export declare const ZOOM_SHARED_OPTIONS: Readonly<{
|
|
|
2
2
|
anchor: "top";
|
|
3
3
|
scaleMode: "uniform";
|
|
4
4
|
}>;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
7
|
-
export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
8
|
-
export declare const ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX = 1;
|
|
9
|
-
export declare const ZOOM_DRAG_TRANSLATION_POSITIVE_MAX = 1;
|
|
10
|
-
export declare const ZOOM_DRAG_TRANSLATION_EXPONENT = 1;
|
|
11
|
-
export declare const ZOOM_DISMISS_SCALE_ORBIT_DEPTH = 0.5;
|
|
5
|
+
export declare const ZOOM_DISMISS_VELOCITY_DEPTH = 1;
|
|
12
6
|
export declare const ZOOM_BACKGROUND_SCALE = 0.9375;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
right: 0;
|
|
20
|
-
bottom: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
}>;
|
|
7
|
+
export declare const ZOOM_BACKDROP_MAX_OPACITY = 0.45;
|
|
8
|
+
export declare const ZOOM_SCREEN_A_FADE_END = 0.54;
|
|
9
|
+
export declare const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [0, 0.28, 0, 1];
|
|
10
|
+
export declare const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [1.08, 1.32, 1, 0];
|
|
11
|
+
export declare const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [0.13, 0.7, 0, 1];
|
|
12
|
+
export declare const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [1.7, 2, 1, 0];
|
|
23
13
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,2BAA2B,IAAM,CAAC;AAC/C,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAG3C,eAAO,MAAM,uCAAuC,0BAA2B,CAAC;AAChF,eAAO,MAAM,yCAAyC,6BAE5C,CAAC;AAEX,eAAO,MAAM,wCAAwC,4BAE3C,CAAC;AACX,eAAO,MAAM,0CAA0C,yBAE7C,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { BoundsInterpolationProps, BoundsNavigationZoomDragOptions } from "../../../../types/bounds.types";
|
|
3
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
+
type ZoomGesture = BoundsInterpolationProps["active"]["gesture"];
|
|
5
|
+
export type ZoomDragState = {
|
|
6
|
+
collapsesMask: boolean;
|
|
7
|
+
dismissContentScale: number;
|
|
8
|
+
dismissNorm: number;
|
|
9
|
+
dismissProgress: number;
|
|
10
|
+
dragX: number;
|
|
11
|
+
dragY: number;
|
|
12
|
+
gestureScale: number;
|
|
13
|
+
isDismissing: boolean;
|
|
14
|
+
isVerticalInverted: boolean;
|
|
15
|
+
rotation: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function resolveZoomDismissContentScale({ transitionRemaining, releaseScale, targetScale, velocity, velocityDepth, }: {
|
|
18
|
+
transitionRemaining: number;
|
|
19
|
+
releaseScale: number;
|
|
20
|
+
targetScale: number;
|
|
21
|
+
velocity: number;
|
|
22
|
+
velocityDepth: number;
|
|
23
|
+
}): number;
|
|
24
|
+
export declare function resolveZoomPrimaryDragTranslation({ translation, dimension, }: {
|
|
25
|
+
translation: number;
|
|
26
|
+
dimension: number;
|
|
27
|
+
}): number;
|
|
28
|
+
export declare function resolveZoomHorizontalDragTranslation({ translation, dimension, }: {
|
|
29
|
+
translation: number;
|
|
30
|
+
dimension: number;
|
|
31
|
+
}): number;
|
|
32
|
+
export declare function resolveZoomCrossAxisDragTranslation({ translation, dimension, }: {
|
|
33
|
+
translation: number;
|
|
34
|
+
dimension: number;
|
|
35
|
+
}): number;
|
|
36
|
+
export declare function resolveZoomDragScale(normalized: number): number;
|
|
37
|
+
export declare function resolveZoomPinchScale(scale: number): number;
|
|
38
|
+
export declare function resolveZoomDismissalNorm(normalized: number, isInverted: boolean): number;
|
|
39
|
+
export declare function resolveZoomDragState({ gesture, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, dragOptions, }: {
|
|
40
|
+
gesture: ZoomGesture;
|
|
41
|
+
activeTransitionProgress: number;
|
|
42
|
+
screenLayout: Layout;
|
|
43
|
+
sourceBounds: MeasuredDimensions;
|
|
44
|
+
trackingContentTarget: MeasuredDimensions;
|
|
45
|
+
dragOptions?: BoundsNavigationZoomDragOptions;
|
|
46
|
+
}): ZoomDragState;
|
|
47
|
+
export declare function resolveZoomTrackedGestureScale({ drag, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, }: {
|
|
48
|
+
drag: ZoomDragState;
|
|
49
|
+
activeTransitionProgress: number;
|
|
50
|
+
screenLayout: Layout;
|
|
51
|
+
sourceBounds: MeasuredDimensions;
|
|
52
|
+
trackingContentTarget: MeasuredDimensions;
|
|
53
|
+
}): number;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=drag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/drag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAe7D,KAAK,WAAW,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,EAC9C,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,GACb,EAAE;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,UAkBA;AAED,wBAAgB,iCAAiC,CAAC,EACjD,WAAW,EAC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edPanGestureDirection } from "../../../../types/gesture.types";
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
3
2
|
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
-
import type {
|
|
5
|
-
export declare function
|
|
6
|
-
|
|
3
|
+
import type { BoundsAnchor } from "../../types/options";
|
|
4
|
+
export declare function resolveZoomBackdropOpacity({ transitionProgress, dismissalDrag, fadeEnd, maxOpacity, }: {
|
|
5
|
+
transitionProgress: number;
|
|
6
|
+
dismissalDrag: number;
|
|
7
|
+
fadeEnd: number;
|
|
8
|
+
maxOpacity: number;
|
|
9
|
+
}): number;
|
|
10
|
+
export declare function resolveZoomPinchFocalOffset({ gestureScale, pinchOriginX, pinchOriginY, progress, rotation, screenLayout, }: {
|
|
11
|
+
gestureScale: number;
|
|
12
|
+
pinchOriginX: number;
|
|
13
|
+
pinchOriginY: number;
|
|
14
|
+
progress: number;
|
|
15
|
+
rotation: number;
|
|
7
16
|
screenLayout: Layout;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare function resolveDragScaleTuple(value: readonly [shrinkMin: number, growMax: number, exponent?: number] | undefined): {
|
|
12
|
-
shrinkMin: number;
|
|
13
|
-
growMax: number;
|
|
14
|
-
exponent: number;
|
|
15
|
-
};
|
|
16
|
-
export declare function resolveDragTranslationTuple(value: readonly [negativeMax: number, positiveMax: number, exponent?: number] | undefined): {
|
|
17
|
-
negativeMax: number;
|
|
18
|
-
positiveMax: number;
|
|
19
|
-
exponent: number;
|
|
17
|
+
}): {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
20
|
};
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function resolveZoomPanGestureDirection({ active, direction, normX, normY, rawNormX, rawNormY, }: {
|
|
23
|
-
active: ActiveGesture | null | undefined;
|
|
24
|
-
direction: ActiveGesture | null | undefined;
|
|
25
|
-
normX: number;
|
|
26
|
-
normY: number;
|
|
27
|
-
rawNormX: number;
|
|
28
|
-
rawNormY: number;
|
|
29
|
-
}): ResolvedPanGestureDirection | null;
|
|
30
|
-
export declare function interpolateOpacityRange(params: {
|
|
21
|
+
export declare function resolveZoomTrackedSourceTransform({ progress, sourceBounds, destinationBounds, screenLayout, dragX, dragY, gestureScale, parentScale, rotation, anchor, }: {
|
|
31
22
|
progress: number;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
sourceBounds: MeasuredDimensions;
|
|
24
|
+
destinationBounds: MeasuredDimensions;
|
|
25
|
+
screenLayout: Layout;
|
|
26
|
+
dragX: number;
|
|
27
|
+
dragY: number;
|
|
28
|
+
gestureScale: number;
|
|
29
|
+
parentScale: number;
|
|
30
|
+
rotation?: number;
|
|
31
|
+
anchor?: BoundsAnchor;
|
|
32
|
+
}): {
|
|
33
|
+
scaleX: number;
|
|
34
|
+
scaleY: number;
|
|
35
|
+
translateX: number;
|
|
36
|
+
translateY: number;
|
|
37
|
+
};
|
|
39
38
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMxD,wBAAgB,0BAA0B,CAAC,EAC1C,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,UAAU,GACV,EAAE;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACnB,UAUA;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACrB;;;EAmBA;AAED,wBAAgB,iCAAiC,CAAC,EACjD,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAY,EACZ,MAAM,GACN,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB;;;;;EAkEA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { ScreenTransitionState, TransitionSlotStyle } from "../../../../types/animation.types";
|
|
3
|
+
import type { BoundsLink, BoundsScopedAccessor } from "../../../../types/bounds.types";
|
|
4
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
5
|
+
import type { BoundsAnchor } from "../../types/options";
|
|
6
|
+
import type { ZoomDragState } from "./drag";
|
|
7
|
+
export declare const ZOOM_NAVIGATION_MASK_BORDER_RADIUS = 64;
|
|
8
|
+
interface ZoomNavigationMaskStyleProps {
|
|
9
|
+
scopedBounds: BoundsScopedAccessor;
|
|
10
|
+
link: BoundsLink;
|
|
11
|
+
sourceBounds: MeasuredDimensions;
|
|
12
|
+
screenLayout: Layout;
|
|
13
|
+
transitionProgress: number;
|
|
14
|
+
drag: ZoomDragState;
|
|
15
|
+
contentTransform: {
|
|
16
|
+
translateX: number;
|
|
17
|
+
translateY: number;
|
|
18
|
+
scale: number;
|
|
19
|
+
};
|
|
20
|
+
sourceBorderRadius: number;
|
|
21
|
+
expandedBorderRadius: number;
|
|
22
|
+
active: ScreenTransitionState;
|
|
23
|
+
anchor: BoundsAnchor;
|
|
24
|
+
}
|
|
25
|
+
export declare function resolveZoomNavigationMaskStyle({ scopedBounds, link, sourceBounds, screenLayout, transitionProgress, drag, contentTransform, sourceBorderRadius, expandedBorderRadius, active, anchor, }: ZoomNavigationMaskStyleProps): TransitionSlotStyle;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=mask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAGrD,UAAU,4BAA4B;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,EACN,MAAM,GACN,EAAE,4BAA4B,GAAG,mBAAmB,CA8EpD"}
|