react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.1
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/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -60
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +56 -41
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +111 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +69 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +17 -3
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/commonjs/shared/index.js +6 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +9 -3
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -7
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -51
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +14 -20
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/index.js +16 -44
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +234 -50
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +10 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -61
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +54 -39
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +114 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +64 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +10 -5
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +10 -34
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +16 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +9 -1
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +9 -3
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +19 -8
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +8 -52
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -78
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +12 -18
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/index.js +14 -42
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +238 -54
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +9 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
- package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +17 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +20 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
- 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 +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +33 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +3 -3
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
- package/lib/typescript/shared/stores/animation.store.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/presence.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.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 +0 -3
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +11 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +106 -1
- package/lib/typescript/shared/types/bounds.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 +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +28 -60
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +72 -53
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +180 -6
- package/src/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts +110 -0
- package/src/shared/components/create-boundary-component/index.tsx +10 -5
- package/src/shared/components/create-boundary-component/types.ts +1 -2
- package/src/shared/components/create-transition-aware-component.tsx +10 -47
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
- package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
- package/src/shared/components/screen-lifecycle/index.tsx +1 -4
- package/src/shared/constants.ts +11 -1
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
- package/src/shared/providers/register-bounds.provider.tsx +8 -1
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
- package/src/shared/stores/animation.store.ts +11 -2
- package/src/shared/stores/bounds/internals/clear.ts +47 -220
- package/src/shared/stores/bounds/internals/presence.ts +1 -4
- package/src/shared/stores/bounds/internals/registry.ts +25 -14
- package/src/shared/stores/bounds/internals/resolver.ts +7 -84
- package/src/shared/stores/bounds/internals/state.ts +0 -98
- package/src/shared/stores/bounds/types.ts +0 -2
- package/src/shared/types/animation.types.ts +13 -0
- package/src/shared/types/bounds.types.ts +108 -1
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/animation/animate-to-progress.ts +11 -1
- package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
- package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
- package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
- package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
- package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +10 -20
- package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
- package/src/shared/utils/bounds/index.ts +13 -53
- package/src/shared/utils/bounds/types/options.ts +3 -2
- package/src/shared/utils/bounds/zoom/build.ts +316 -95
- package/src/shared/utils/bounds/zoom/config.ts +11 -0
- package/src/shared/utils/bounds/zoom/math.ts +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
- package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
- package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
- /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
- /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
- /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.createEmptyTagState = void 0;
|
|
7
|
-
exports.debugClearLog = debugClearLog;
|
|
8
|
-
exports.debugResolverLog = debugResolverLog;
|
|
9
|
-
exports.debugStoreSizeLog = debugStoreSizeLog;
|
|
10
|
-
exports.registry = exports.presence = exports.groups = void 0;
|
|
6
|
+
exports.registry = exports.presence = exports.groups = exports.createEmptyTagState = void 0;
|
|
11
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
12
8
|
const createEmptyTagState = () => {
|
|
13
9
|
"worklet";
|
|
@@ -21,82 +17,4 @@ exports.createEmptyTagState = createEmptyTagState;
|
|
|
21
17
|
const registry = exports.registry = (0, _reactNativeReanimated.makeMutable)({});
|
|
22
18
|
const presence = exports.presence = (0, _reactNativeReanimated.makeMutable)({});
|
|
23
19
|
const groups = exports.groups = (0, _reactNativeReanimated.makeMutable)({});
|
|
24
|
-
const RESOLVER_LOG_PREFIX = "[bounds:resolver]";
|
|
25
|
-
const ENABLE_RESOLVER_DEBUG_LOGS = false;
|
|
26
|
-
const CLEAR_LOG_PREFIX = "[bounds:clear]";
|
|
27
|
-
const ENABLE_CLEAR_DEBUG_LOGS = false;
|
|
28
|
-
const SIZE_LOG_PREFIX = "[bounds:size]";
|
|
29
|
-
const ENABLE_SIZE_DEBUG_LOGS = false;
|
|
30
|
-
function debugResolverLog(message) {
|
|
31
|
-
"worklet";
|
|
32
|
-
|
|
33
|
-
if (!ENABLE_RESOLVER_DEBUG_LOGS) return;
|
|
34
|
-
console.warn(`${RESOLVER_LOG_PREFIX} ${message}`);
|
|
35
|
-
}
|
|
36
|
-
function debugClearLog(message) {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
if (!ENABLE_CLEAR_DEBUG_LOGS) return;
|
|
40
|
-
console.warn(`${CLEAR_LOG_PREFIX} ${message}`);
|
|
41
|
-
}
|
|
42
|
-
const collectBoundStoreSize = () => {
|
|
43
|
-
"worklet";
|
|
44
|
-
|
|
45
|
-
const currentRegistry = registry.value;
|
|
46
|
-
const currentPresence = presence.value;
|
|
47
|
-
const currentGroups = groups.value;
|
|
48
|
-
let tags = 0;
|
|
49
|
-
let snapshots = 0;
|
|
50
|
-
let links = 0;
|
|
51
|
-
let pendingLinks = 0;
|
|
52
|
-
let completedLinks = 0;
|
|
53
|
-
for (const tag in currentRegistry) {
|
|
54
|
-
tags++;
|
|
55
|
-
const tagState = currentRegistry[tag];
|
|
56
|
-
for (const _snapshotKey in tagState.snapshots) {
|
|
57
|
-
snapshots++;
|
|
58
|
-
}
|
|
59
|
-
for (let i = 0; i < tagState.linkStack.length; i++) {
|
|
60
|
-
links++;
|
|
61
|
-
if (tagState.linkStack[i].destination === null) {
|
|
62
|
-
pendingLinks++;
|
|
63
|
-
} else {
|
|
64
|
-
completedLinks++;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
let presenceTags = 0;
|
|
69
|
-
let presenceEntries = 0;
|
|
70
|
-
let presenceCount = 0;
|
|
71
|
-
for (const tag in currentPresence) {
|
|
72
|
-
presenceTags++;
|
|
73
|
-
const entries = currentPresence[tag];
|
|
74
|
-
for (const screenKey in entries) {
|
|
75
|
-
presenceEntries++;
|
|
76
|
-
presenceCount += entries[screenKey].count ?? 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
let groupsCount = 0;
|
|
80
|
-
for (const _group in currentGroups) {
|
|
81
|
-
groupsCount++;
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
tags,
|
|
85
|
-
snapshots,
|
|
86
|
-
links,
|
|
87
|
-
pendingLinks,
|
|
88
|
-
completedLinks,
|
|
89
|
-
presenceTags,
|
|
90
|
-
presenceEntries,
|
|
91
|
-
presenceCount,
|
|
92
|
-
groups: groupsCount
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
function debugStoreSizeLog(action) {
|
|
96
|
-
"worklet";
|
|
97
|
-
|
|
98
|
-
if (!ENABLE_SIZE_DEBUG_LOGS) return;
|
|
99
|
-
const size = collectBoundStoreSize();
|
|
100
|
-
console.warn(`${SIZE_LOG_PREFIX} ${action} tags=${size.tags} snapshots=${size.snapshots} links=${size.links} pending=${size.pendingLinks} completed=${size.completedLinks} presenceTags=${size.presenceTags} presenceEntries=${size.presenceEntries} presenceCount=${size.presenceCount} groups=${size.groups}`);
|
|
101
|
-
}
|
|
102
20
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","createEmptyTagState","snapshots","linkStack","exports","registry","makeMutable","presence","groups"
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","createEmptyTagState","snapshots","linkStack","exports","registry","makeMutable","presence","groups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAGO,MAAMC,mBAAmB,GAAGA,CAAA,KAAgB;EAClD,SAAS;;EACT,OAAO;IACNC,SAAS,EAAE,CAAC,CAAC;IACbC,SAAS,EAAE;EACZ,CAAC;AACF,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAKK,MAAMI,QAAQ,GAAAD,OAAA,CAAAC,QAAA,GAAG,IAAAC,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAMC,QAAQ,GAAAH,OAAA,CAAAG,QAAA,GAAG,IAAAD,kCAAW,EAAgB,CAAC,CAAC,CAAC;AAC/C,MAAME,MAAM,GAAAJ,OAAA,CAAAI,MAAA,GAAG,IAAAF,kCAAW,EAAc,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ const animateToProgress = ({
|
|
|
13
13
|
onAnimationFinish,
|
|
14
14
|
animations,
|
|
15
15
|
targetProgress,
|
|
16
|
+
emitWillAnimate = true,
|
|
16
17
|
initialVelocity
|
|
17
18
|
}) => {
|
|
18
19
|
"worklet";
|
|
@@ -30,10 +31,19 @@ const animateToProgress = ({
|
|
|
30
31
|
} : config;
|
|
31
32
|
const {
|
|
32
33
|
progress,
|
|
34
|
+
willAnimate,
|
|
33
35
|
animating,
|
|
34
36
|
closing,
|
|
35
37
|
entering
|
|
36
38
|
} = animations;
|
|
39
|
+
if (emitWillAnimate) {
|
|
40
|
+
willAnimate.set(_constants.TRUE);
|
|
41
|
+
requestAnimationFrame(() => {
|
|
42
|
+
"worklet";
|
|
43
|
+
|
|
44
|
+
willAnimate.set(_constants.FALSE);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
37
47
|
targetProgress.set(value);
|
|
38
48
|
if (isClosing) {
|
|
39
49
|
closing.set(_constants.TRUE);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","set","TRUE","FALSE","runOnJS","animate","finished","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","set","TRUE","requestAnimationFrame","FALSE","runOnJS","animate","finished","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAmBO,MAAMG,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,eAAe,GAAG,IAAI;EACtBC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SAAS,GACdP,MAAM,KAAK,OAAO,IAAK,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,CAAE;EACnE,MAAMQ,KAAK,GAAG,OAAOR,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAGA,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC;;EAE7E;EACA,MAAMS,MAAM,GAAGF,SAAS,GAAGN,IAAI,EAAES,KAAK,GAAGT,IAAI,EAAEU,IAAI;EAEnD,MAAMC,cAAc,GACnB,CAAC,CAACH,MAAM,IAAI,EAAE,UAAU,IAAIA,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAIA,MAAM,CAAC;EAE7D,MAAMI,eAAe,GACpBD,cAAc,IAAI,OAAON,eAAe,KAAK,QAAQ,GAClD;IAAE,GAAGG,MAAM;IAAEK,QAAQ,EAAER;EAAgB,CAAC,GACxCG,MAAM;EAEV,MAAM;IAAEM,QAAQ;IAAEC,WAAW;IAAEC,SAAS;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAGhB,UAAU;EAE1E,IAAIE,eAAe,EAAE;IACpBW,WAAW,CAACI,GAAG,CAACC,eAAI,CAAC;IACrBC,qBAAqB,CAAC,MAAM;MAC3B,SAAS;;MACTN,WAAW,CAACI,GAAG,CAACG,gBAAK,CAAC;IACvB,CAAC,CAAC;EACH;EAEAnB,cAAc,CAACgB,GAAG,CAACZ,KAAK,CAAC;EAEzB,IAAID,SAAS,EAAE;IACdW,OAAO,CAACE,GAAG,CAACC,eAAI,CAAC;IACjBF,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;EACpB,CAAC,MAAM;IACNJ,QAAQ,CAACC,GAAG,CAACC,eAAI,CAAC;EACnB;EAEA,IAAI,CAACZ,MAAM,EAAE;IACZQ,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACpBR,QAAQ,CAACK,GAAG,CAACZ,KAAK,CAAC;IACnB,IAAI,CAACD,SAAS,EAAE;MACfY,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAe,SAAS,CAACG,GAAG,CAACC,eAAI,CAAC,CAAC,CAAC;EACrBN,QAAQ,CAACK,GAAG,CACX,IAAAK,gBAAO,EAACjB,KAAK,EAAEK,eAAe,EAAGa,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAACnB,SAAS,EAAE;MACfY,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAACwB,QAAQ,CAAC;IACrC;;IAEA;IACAJ,qBAAqB,CAAC,MAAM;MAC3BL,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACI,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_BOUNDS_OPTIONS","exports","target","method","space","scaleMode","anchor","raw"],"sourceRoot":"../../../../../src","sources":["shared/utils/bounds/constants.ts"],"mappings":";;;;;;AAEO,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EACrCE,MAAM,EAAE,OAAO;EACfC,MAAM,EAAE,WAAW;EACnBC,KAAK,EAAE,UAAU;EACjBC,SAAS,EAAE,OAAO;EAClBC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE;AACN,CAAqE","ignoreList":[]}
|
package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js}
RENAMED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
const
|
|
6
|
+
exports.createBoundTag = void 0;
|
|
7
|
+
const createBoundTag = ({
|
|
8
8
|
id,
|
|
9
9
|
group
|
|
10
10
|
}) => {
|
|
11
11
|
"worklet";
|
|
12
12
|
|
|
13
|
-
if (id
|
|
13
|
+
if (id == null || id === "") return undefined;
|
|
14
14
|
const normalizedId = String(id);
|
|
15
15
|
if (!group) {
|
|
16
16
|
return normalizedId;
|
|
17
17
|
}
|
|
18
18
|
return `${group}:${normalizedId}`;
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
//# sourceMappingURL=
|
|
20
|
+
exports.createBoundTag = createBoundTag;
|
|
21
|
+
//# sourceMappingURL=create-bound-tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;;;;;AAOO,MAAMA,cAAc,GAAGA,CAAC;EAC9BC,EAAE;EACFC;AACsB,CAAC,KAAyB;EAChD,SAAS;;EAET,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAE7C,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC;AAACE,OAAA,CAAAN,cAAA,GAAAA,cAAA","ignoreList":[]}
|
package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js}
RENAMED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createInterpolators = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
7
8
|
var _constants = require("../../../constants");
|
|
8
9
|
var _bounds = require("../../../stores/bounds");
|
|
9
|
-
var
|
|
10
|
-
var _interpolateStyle = require("./interpolate-style");
|
|
10
|
+
var _interpolateLinkStyle = require("./styles/interpolate-link-style");
|
|
11
11
|
const createInterpolators = ({
|
|
12
12
|
getProps,
|
|
13
13
|
getLink
|
|
@@ -20,7 +20,7 @@ const createInterpolators = ({
|
|
|
20
20
|
const props = getProps();
|
|
21
21
|
const link = getLink(tag);
|
|
22
22
|
const entering = !props.next;
|
|
23
|
-
return (0,
|
|
23
|
+
return (0, _interpolateLinkStyle.interpolateLinkStyle)(link, property, props.progress, entering, {
|
|
24
24
|
fallback
|
|
25
25
|
});
|
|
26
26
|
};
|
|
@@ -37,7 +37,7 @@ const createInterpolators = ({
|
|
|
37
37
|
const targetSnapshot = _bounds.BoundStore.getSnapshot(normalizedTag, targetKey);
|
|
38
38
|
const currentValue = currentSnapshot?.bounds?.[property] ?? fb;
|
|
39
39
|
const targetValue = targetSnapshot?.bounds?.[property] ?? fb;
|
|
40
|
-
return (0,
|
|
40
|
+
return (0, _reactNativeReanimated.interpolate)(props.progress, range, [targetValue, currentValue], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
41
41
|
};
|
|
42
42
|
const interpolateBoundsFromLink = (tag, property, fallback) => {
|
|
43
43
|
"worklet";
|
|
@@ -49,7 +49,7 @@ const createInterpolators = ({
|
|
|
49
49
|
const fb = fallback ?? 0;
|
|
50
50
|
const sourceValue = link?.source?.bounds?.[property] ?? fb;
|
|
51
51
|
const destinationValue = link?.destination?.bounds?.[property] ?? fb;
|
|
52
|
-
return (0,
|
|
52
|
+
return (0, _reactNativeReanimated.interpolate)(props.progress, range, [sourceValue, destinationValue], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
53
53
|
};
|
|
54
54
|
const interpolateBounds = (tag, property, fallbackOrTargetKey, fallback) => {
|
|
55
55
|
"worklet";
|
|
@@ -65,4 +65,4 @@ const createInterpolators = ({
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
exports.createInterpolators = createInterpolators;
|
|
68
|
-
//# sourceMappingURL=interpolators.js.map
|
|
68
|
+
//# sourceMappingURL=create-interpolators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_interpolateLinkStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","interpolateLinkStyle","progress","interpolateBoundsFromSnapshot","targetKey","range","ENTER_RANGE","EXIT_RANGE","currentKey","current","route","key","fb","normalizedTag","String","currentSnapshot","BoundStore","getSnapshot","targetSnapshot","currentValue","bounds","targetValue","interpolate","Extrapolation","CLAMP","interpolateBoundsFromLink","sourceValue","source","destinationValue","destination","interpolateBounds","fallbackOrTargetKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-interpolators.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,qBAAA,GAAAH,OAAA;AAOO,MAAMI,mBAAmB,GAAGA,CAAC;EACnCC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,SAAS;;EAET,MAAMC,gBAAgB,GAAGA,CACxBC,GAAY,EACZC,QAAgB,EAChBC,QAAiB,KACL;IACZ,S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,yBAAyB,GAAGA,CACjC/B,GAAY,EACZC,QAAkC,EAClCC,QAAiB,KACL;IACZ,SAAS;;IAET,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMQ,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,MAAMK,KAAK,GAAGN,QAAQ,GAAGO,sBAAW,GAAGC,qBAAU;IACjD,MAAMT,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMkB,EAAE,GAAGhB,QAAQ,IAAI,CAAC;IAExB,MAAM8B,WAAW,GAAG5B,IAAI,EAAE6B,MAAM,EAAEP,MAAM,GAAGzB,QAAQ,CAAC,IAAIiB,EAAE;IAC1D,MAAMgB,gBAAgB,GAAG9B,IAAI,EAAE+B,WAAW,EAAET,MAAM,GAAGzB,QAAQ,CAAC,IAAIiB,EAAE;IAEpE,OAAO,IAAAU,kCAAW,EACjBzB,KAAK,CAACK,QAAQ,EACdG,KAAK,EACL,CAACqB,WAAW,EAAEE,gBAAgB,CAAC,EAC/BL,oCAAa,CAACC,KACf,CAAC;EACF,CAAC;EAED,MAAMM,iBAAiB,GAAGA,CACzBpC,GAAY,EACZC,QAAkC,EAClCoC,mBAAqC,EACrCnC,QAAiB,KACL;IACZ,SAAS;;IAET,IAAI,OAAOmC,mBAAmB,KAAK,QAAQ,EAAE;MAC5C,OAAO5B,6BAA6B,CACnCT,GAAG,EACHC,QAAQ,EACRoC,mBAAmB,EACnBnC,QACD,CAAC;IACF;IAEA,OAAO6B,yBAAyB,CAAC/B,GAAG,EAAEC,QAAQ,EAAEoC,mBAAmB,CAAC;EACrE,CAAC;EAED,OAAO;IACNtC,gBAAgB;IAChBqC;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAA1C,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bounds","require","createLinkAccessor","getProps","getSnapshot","tag","key","BoundStore","String","getLink","props","link","getActiveLink","current","route","source","bounds","styles","destination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAYO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY,EAAEC,GAAY,KAAsB;IACpE,SAAS;;IACT,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;IACrB,OAAOC,kBAAU,CAACH,WAAW,CAACI,MAAM,CAACH,GAAG,CAAC,EAAEC,GAAG,CAAC;EAChD,CAAC;EAED,MAAMG,OAAO,GAAIJ,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMK,KAAK,GAAGP,QAAQ,CAAC,CAAC;IACxB,MAAMQ,IAAI,GAAGJ,kBAAU,CAACK,aAAa,CACpCJ,MAAM,CAACH,GAAG,CAAC,EACXK,KAAK,CAACG,OAAO,EAAEC,KAAK,CAACR,GACtB,CAAC;IACD,IAAI,CAACK,IAAI,EAAE,OAAO,IAAI;IACtB,OAAO;MACNI,MAAM,EAAEJ,IAAI,CAACI,MAAM,GAChB;QAAEC,MAAM,EAAEL,IAAI,CAACI,MAAM,CAACC,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACI,MAAM,CAACE;MAAO,CAAC,GAC1D,IAAI;MACPC,WAAW,EAAEP,IAAI,CAACO,WAAW,GAC1B;QAAEF,MAAM,EAAEL,IAAI,CAACO,WAAW,CAACF,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACO,WAAW,CAACD;MAAO,CAAC,GACpE;IACJ,CAAC;EACF,CAAC;EAED,OAAO;IACNb,WAAW;IACXK;EACD,CAAC;AACF,CAAC;AAACU,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.prepareBoundStyles = exports.buildBoundsOptions = void 0;
|
|
7
|
+
var _bounds = require("../../../stores/bounds");
|
|
8
|
+
var _constants = require("../constants");
|
|
9
|
+
var _createBoundTag = require("./create-bound-tag");
|
|
10
|
+
var _compute = require("./styles/compute");
|
|
11
|
+
const buildBoundsOptions = ({
|
|
12
|
+
props,
|
|
13
|
+
id,
|
|
14
|
+
group,
|
|
15
|
+
overrides
|
|
16
|
+
}) => {
|
|
17
|
+
"worklet";
|
|
18
|
+
|
|
19
|
+
const tag = (0, _createBoundTag.createBoundTag)({
|
|
20
|
+
id,
|
|
21
|
+
group
|
|
22
|
+
});
|
|
23
|
+
const currentScreenKey = props.current?.route.key;
|
|
24
|
+
const boundaryConfig = tag && currentScreenKey ? _bounds.BoundStore.getBoundaryConfig(tag, currentScreenKey) : null;
|
|
25
|
+
const resolved = {
|
|
26
|
+
..._constants.DEFAULT_BOUNDS_OPTIONS,
|
|
27
|
+
...(boundaryConfig ?? {}),
|
|
28
|
+
...(overrides ?? {}),
|
|
29
|
+
id: tag ?? "",
|
|
30
|
+
group
|
|
31
|
+
};
|
|
32
|
+
return resolved;
|
|
33
|
+
};
|
|
34
|
+
exports.buildBoundsOptions = buildBoundsOptions;
|
|
35
|
+
const syncGroupActiveMember = (group, id) => {
|
|
36
|
+
"worklet";
|
|
37
|
+
|
|
38
|
+
if (!group || id == null || id === "") return;
|
|
39
|
+
const normalizedId = String(id);
|
|
40
|
+
if (_bounds.BoundStore.getGroupActiveId(group) === normalizedId) return;
|
|
41
|
+
_bounds.BoundStore.setGroupActiveId(group, normalizedId);
|
|
42
|
+
};
|
|
43
|
+
const prepareBoundStyles = ({
|
|
44
|
+
props,
|
|
45
|
+
options,
|
|
46
|
+
resolvedPair,
|
|
47
|
+
syncGroupActiveId = true
|
|
48
|
+
}) => {
|
|
49
|
+
"worklet";
|
|
50
|
+
|
|
51
|
+
if (syncGroupActiveId) {
|
|
52
|
+
syncGroupActiveMember(options.group, options.id);
|
|
53
|
+
}
|
|
54
|
+
const resolved = buildBoundsOptions({
|
|
55
|
+
props,
|
|
56
|
+
id: options.id,
|
|
57
|
+
group: options.group,
|
|
58
|
+
overrides: options
|
|
59
|
+
});
|
|
60
|
+
return (0, _compute.computeBoundStyles)({
|
|
61
|
+
id: resolved.id,
|
|
62
|
+
previous: props.previous,
|
|
63
|
+
current: props.current,
|
|
64
|
+
next: props.next,
|
|
65
|
+
progress: props.progress,
|
|
66
|
+
dimensions: props.layouts.screen
|
|
67
|
+
}, resolved, resolvedPair);
|
|
68
|
+
};
|
|
69
|
+
exports.prepareBoundStyles = prepareBoundStyles;
|
|
70
|
+
//# sourceMappingURL=prepare-bound-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bounds","require","_constants","_createBoundTag","_compute","buildBoundsOptions","props","id","group","overrides","tag","createBoundTag","currentScreenKey","current","route","key","boundaryConfig","BoundStore","getBoundaryConfig","resolved","DEFAULT_BOUNDS_OPTIONS","exports","syncGroupActiveMember","normalizedId","String","getGroupActiveId","setGroupActiveId","prepareBoundStyles","options","resolvedPair","syncGroupActiveId","computeBoundStyles","previous","next","progress","dimensions","layouts","screen"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAkBO,MAAMI,kBAAkB,GAAGA,CAAC;EAClCC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMI,gBAAgB,GAAGN,KAAK,CAACO,OAAO,EAAEC,KAAK,CAAC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,EAAE;IACfyB,QAAQ,EAAE1B,KAAK,CAAC0B,QAAQ;IACxBnB,OAAO,EAAEP,KAAK,CAACO,OAAO;IACtBoB,IAAI,EAAE3B,KAAK,CAAC2B,IAAI;IAChBC,QAAQ,EAAE5B,KAAK,CAAC4B,QAAQ;IACxBC,UAAU,EAAE7B,KAAK,CAAC8B,OAAO,CAACC;EAC3B,CAAC,EACDlB,QAAQ,EACRU,YACD,CAAC;AACF,CAAC;AAACR,OAAA,CAAAM,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -8,8 +8,8 @@ exports.composeSizeAbsolute = composeSizeAbsolute;
|
|
|
8
8
|
exports.composeSizeRelative = composeSizeRelative;
|
|
9
9
|
exports.composeTransformAbsolute = composeTransformAbsolute;
|
|
10
10
|
exports.composeTransformRelative = composeTransformRelative;
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
12
|
+
var _constants = require("../../../../constants");
|
|
13
13
|
/**
|
|
14
14
|
* Element-level (relative) params shared by size/transform composers.
|
|
15
15
|
* - start/end: absolute window bounds of the element in previous/next phases
|
|
@@ -150,10 +150,10 @@ function composeSizeAbsolute(params) {
|
|
|
150
150
|
const anchor = computeOptions.anchor ?? "center";
|
|
151
151
|
const startAnchor = getAnchorPoint(start, anchor);
|
|
152
152
|
const endAnchor = getAnchorPoint(end, anchor);
|
|
153
|
-
const width = (0,
|
|
154
|
-
const height = (0,
|
|
155
|
-
const anchorX = (0,
|
|
156
|
-
const anchorY = (0,
|
|
153
|
+
const width = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.width, end.width], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
154
|
+
const height = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.height, end.height], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
155
|
+
const anchorX = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.x, endAnchor.x], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
156
|
+
const anchorY = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.y, endAnchor.y], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
157
157
|
const anchorOffset = getAnchorOffset({
|
|
158
158
|
width,
|
|
159
159
|
height,
|
|
@@ -197,10 +197,10 @@ function composeSizeRelative(params) {
|
|
|
197
197
|
const endAnchor = getAnchorPoint(end, anchor);
|
|
198
198
|
const baseX = geometry.entering ? end.pageX : start.pageX;
|
|
199
199
|
const baseY = geometry.entering ? end.pageY : start.pageY;
|
|
200
|
-
const width = (0,
|
|
201
|
-
const height = (0,
|
|
202
|
-
const anchorX = (0,
|
|
203
|
-
const anchorY = (0,
|
|
200
|
+
const width = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.width, end.width], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
201
|
+
const height = (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.height, end.height], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
202
|
+
const anchorX = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.x, endAnchor.x], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
203
|
+
const anchorY = (0, _reactNativeReanimated.interpolate)(progress, ranges, [startAnchor.y, endAnchor.y], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
204
204
|
const anchorOffset = getAnchorOffset({
|
|
205
205
|
width,
|
|
206
206
|
height,
|
|
@@ -239,10 +239,10 @@ function composeTransformAbsolute(params) {
|
|
|
239
239
|
ranges,
|
|
240
240
|
computeOptions
|
|
241
241
|
} = params;
|
|
242
|
-
const translateX = geometry.entering ? (0,
|
|
243
|
-
const translateY = geometry.entering ? (0,
|
|
244
|
-
const scaleX = geometry.entering ? (0,
|
|
245
|
-
const scaleY = geometry.entering ? (0,
|
|
242
|
+
const translateX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageX, end.pageX], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageX, start.pageX], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
243
|
+
const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageY, end.pageY], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageY, start.pageY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
244
|
+
const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
245
|
+
const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
246
246
|
if (computeOptions.raw) {
|
|
247
247
|
return {
|
|
248
248
|
translateX,
|
|
@@ -274,10 +274,10 @@ function composeTransformRelative(params) {
|
|
|
274
274
|
progress,
|
|
275
275
|
ranges
|
|
276
276
|
} = params;
|
|
277
|
-
const translateX = geometry.entering ? (0,
|
|
278
|
-
const translateY = geometry.entering ? (0,
|
|
279
|
-
const scaleX = geometry.entering ? (0,
|
|
280
|
-
const scaleY = geometry.entering ? (0,
|
|
277
|
+
const translateX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dx], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
278
|
+
const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dy, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dy], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
279
|
+
const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
280
|
+
const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
281
281
|
if (computeOptions.raw) {
|
|
282
282
|
return {
|
|
283
283
|
translateX,
|
|
@@ -321,9 +321,9 @@ function composeContentStyle(params) {
|
|
|
321
321
|
ty,
|
|
322
322
|
entering
|
|
323
323
|
} = geometry;
|
|
324
|
-
const translateX = entering ? (0,
|
|
325
|
-
const translateY = entering ? (0,
|
|
326
|
-
const scale = entering ? (0,
|
|
324
|
+
const translateX = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [tx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, tx], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
325
|
+
const translateY = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [ty, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, ty], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
326
|
+
const scale = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [s, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, s], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
327
327
|
if (raw) {
|
|
328
328
|
return {
|
|
329
329
|
translateX,
|
|
@@ -343,4 +343,4 @@ function composeContentStyle(params) {
|
|
|
343
343
|
..._constants.VISIBLE_STYLE
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
//# sourceMappingURL=
|
|
346
|
+
//# sourceMappingURL=composers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","translateX","translateY","raw","VISIBLE_STYLE","transform","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleX","scaleY","composeTransformRelative","dx","dy","gestures","composeContentStyle","s","tx","ty","scale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK,GAAG,CAAC;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IAC1C,KAAK,aAAa;MACjB,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IACtC,KAAK,SAAS;MACb,OAAO;QAAEG,CAAC,EA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reList":[]}
|
package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js}
RENAMED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.computeBoundStyles = void 0;
|
|
7
|
-
var _constants = require("
|
|
8
|
-
var _bounds = require("
|
|
9
|
-
var _geometry = require("
|
|
10
|
-
var
|
|
11
|
-
const
|
|
7
|
+
var _constants = require("../../../../constants");
|
|
8
|
+
var _bounds = require("../../../../stores/bounds");
|
|
9
|
+
var _geometry = require("../geometry");
|
|
10
|
+
var _composers = require("./composers");
|
|
11
|
+
const resolveStartEnd = params => {
|
|
12
12
|
"worklet";
|
|
13
13
|
|
|
14
14
|
const entering = !params.next;
|
|
@@ -35,8 +35,7 @@ const resolveBounds = params => {
|
|
|
35
35
|
currentScreenKey,
|
|
36
36
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
37
37
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
38
|
-
hasTargetOverride
|
|
39
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
38
|
+
hasTargetOverride
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -49,8 +48,7 @@ const resolveBounds = params => {
|
|
|
49
48
|
currentScreenKey,
|
|
50
49
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
51
50
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
52
|
-
hasTargetOverride
|
|
53
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
51
|
+
hasTargetOverride
|
|
54
52
|
};
|
|
55
53
|
}
|
|
56
54
|
const start = sourceBounds;
|
|
@@ -69,8 +67,7 @@ const resolveBounds = params => {
|
|
|
69
67
|
currentScreenKey,
|
|
70
68
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
71
69
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
72
|
-
hasTargetOverride
|
|
73
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
70
|
+
hasTargetOverride
|
|
74
71
|
};
|
|
75
72
|
};
|
|
76
73
|
const computeBoundStyles = ({
|
|
@@ -97,10 +94,8 @@ const computeBoundStyles = ({
|
|
|
97
94
|
entering,
|
|
98
95
|
currentScreenKey,
|
|
99
96
|
sourceScreenKey,
|
|
100
|
-
destinationScreenKey
|
|
101
|
-
|
|
102
|
-
usedSnapshotDestination
|
|
103
|
-
} = resolveBounds({
|
|
97
|
+
destinationScreenKey
|
|
98
|
+
} = resolveStartEnd({
|
|
104
99
|
id,
|
|
105
100
|
previous,
|
|
106
101
|
current,
|
|
@@ -117,8 +112,7 @@ const computeBoundStyles = ({
|
|
|
117
112
|
}
|
|
118
113
|
const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
119
114
|
if (computeOptions.method === "content") {
|
|
120
|
-
const
|
|
121
|
-
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
|
|
115
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
|
|
122
116
|
const contentStart = currentOwnsSource ? end : start;
|
|
123
117
|
const contentEnd = currentOwnsSource ? start : end;
|
|
124
118
|
const geometry = (0, _geometry.computeContentTransformGeometry)({
|
|
@@ -129,7 +123,7 @@ const computeBoundStyles = ({
|
|
|
129
123
|
anchor: computeOptions.anchor,
|
|
130
124
|
scaleMode: computeOptions.scaleMode
|
|
131
125
|
});
|
|
132
|
-
return (0,
|
|
126
|
+
return (0, _composers.composeContentStyle)({
|
|
133
127
|
start: contentStart,
|
|
134
128
|
progress,
|
|
135
129
|
ranges,
|
|
@@ -155,7 +149,7 @@ const computeBoundStyles = ({
|
|
|
155
149
|
};
|
|
156
150
|
const isSize = computeOptions.method === "size";
|
|
157
151
|
const isAbsolute = computeOptions.space === "absolute";
|
|
158
|
-
return isSize ? isAbsolute ? (0,
|
|
152
|
+
return isSize ? isAbsolute ? (0, _composers.composeSizeAbsolute)(common) : (0, _composers.composeSizeRelative)(common) : isAbsolute ? (0, _composers.composeTransformAbsolute)(common) : (0, _composers.composeTransformRelative)(common);
|
|
159
153
|
};
|
|
160
154
|
exports.computeBoundStyles = computeBoundStyles;
|
|
161
|
-
//# sourceMappingURL=compute
|
|
155
|
+
//# sourceMappingURL=compute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_constants","require","_bounds","_geometry","_composers","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","NO_STYLES","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,UAAA,GAAAH,OAAA;AASA,MAAMI,eAAe,GAAIC,MASxB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB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CAAC;AAACQ,OAAA,CAAA3B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.interpolateLinkStyle = interpolateLinkStyle;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _constants = require("../../../../constants");
|
|
9
9
|
/**
|
|
10
10
|
* Interpolates a numeric style property between source and destination bounds.
|
|
11
11
|
*
|
|
@@ -25,6 +25,6 @@ function interpolateLinkStyle(link, property, progress, entering, options = {})
|
|
|
25
25
|
const sourceValue = link?.source?.styles?.[property] ?? fallback;
|
|
26
26
|
const destValue = link?.destination?.styles?.[property] ?? fallback;
|
|
27
27
|
const range = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
|
|
28
|
-
return (0,
|
|
28
|
+
return (0, _reactNativeReanimated.interpolate)(progress, range, [sourceValue, destValue], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
29
29
|
}
|
|
30
|
-
//# sourceMappingURL=interpolate-style.js.map
|
|
30
|
+
//# sourceMappingURL=interpolate-link-style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_constants","interpolateLinkStyle","link","property","progress","entering","options","fallback","sourceValue","source","styles","destValue","destination","range","ENTER_RANGE","EXIT_RANGE","interpolate","Extrapolation","CLAMP"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/interpolate-link-style.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,oBAAoBA,CACnCC,IAAuB,EACvBC,QAAgB,EAChBC,QAAgB,EAChBC,QAAiB,EACjBC,OAAgC,GAAG,CAAC,CAAC,EAC5B;EACT,SAAS;;EAET,MAAM;IAAEC,QAAQ,GAAG;EAAE,CAAC,GAAGD,OAAO;EAEhC,MAAME,WAAW,GACfN,IAAI,EAAEO,MAAM,EAAEC,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EACrE,MAAMI,SAAS,GACbT,IAAI,EAAEU,WAAW,EAAEF,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EAE1E,MAAMM,KAAK,GAAGR,QAAQ,GAAGS,sBAAW,GAAGC,qBAAU;EAEjD,OAAO,IAAAC,kCAAW,EACjBZ,QAAQ,EACRS,KAAK,EACL,CAACL,WAAW,EAAEG,SAAS,CAAC,EACxBM,oCAAa,CAACC,KACf,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","mergeStyleArrays","style","undefined","Array","isArray","merged","i","length","currentStyle","Object","assign","stripNonSerializable","value","isSharedValue","map","cleaned","key","cleanedValue","prepareStyleForBounds","flattened","serializable"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/styles.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,SAASC,gBAAgBA,CAAuBC,KAAQ,EAAK;EAC5D,SAAS;;EAET;EACA,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IACvE,OAAOA,KAAK;EACb;;EAEA;EACA,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IAC1B,OAAOA,KAAK;EACb;;EAEA;EACA,MAAMI,MAAwB,GAAG,CAAC,CAAC;EACnC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,KAAK,CAACM,MAAM,EAAED,CAAC,EAAE,EAAE;IACtC,MAAME,YAAY,GAAGR,gBAAgB,CAACC,KAAK,CAACK,CAAC,CAAe,CAAC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