react-native-screen-transitions 3.9.0-beta.3 → 3.10.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/animation/snap-to.js +2 -0
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +19 -20
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +16 -2
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/index.js +4 -3
- package/lib/commonjs/shared/components/boundary/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +47 -187
- 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 +21 -13
- 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 +1 -12
- 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 +42 -35
- 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/helpers/offset-style.js +3 -4
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +46 -130
- 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 +45 -9
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +2 -29
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/handoff-target.js +33 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +1 -10
- package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +18 -36
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/resolve-boundary-target.js +29 -0
- package/lib/commonjs/shared/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/commonjs/shared/components/masked-view.js +9 -1
- package/lib/commonjs/shared/components/masked-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +9 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.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/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/commonjs/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +37 -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 +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js +42 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/commonjs/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +4 -4
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/scroll.store.js +20 -2
- package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +2 -0
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +23 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate.js +14 -2
- package/lib/commonjs/shared/utils/animation/animate.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/spring/spring.js +22 -2
- package/lib/commonjs/shared/utils/animation/spring/spring.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/spring/springUtils.js +96 -0
- package/lib/commonjs/shared/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/state.js +4 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +20 -6
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +51 -20
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +4 -3
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +2 -31
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +2 -13
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +3 -2
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +36 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +2 -0
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/boundary/components/boundary-target.js +19 -20
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +17 -3
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -3
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/index.js +3 -2
- package/lib/module/shared/components/boundary/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +49 -189
- 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 +21 -13
- 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 +2 -13
- 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 +45 -38
- 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/helpers/offset-style.js +3 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +50 -134
- 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 +44 -9
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -27
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/handoff-target.js +28 -0
- package/lib/module/shared/components/boundary/portal/utils/handoff-target.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +19 -15
- package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +0 -8
- package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +19 -37
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/refresh-signals.js +7 -0
- package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/resolve-boundary-target.js +24 -0
- package/lib/module/shared/components/boundary/utils/resolve-boundary-target.js.map +1 -0
- package/lib/module/shared/components/masked-view.js +10 -2
- package/lib/module/shared/components/masked-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +10 -2
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.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/providers/helpers/measured-bounds-writes.js +4 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js +2 -8
- package/lib/module/shared/providers/screen/gestures/gestures.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +35 -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 +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/types.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js +35 -0
- package/lib/module/shared/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js +11 -5
- package/lib/module/shared/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +4 -4
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/scroll.store.js +17 -0
- package/lib/module/shared/stores/scroll.store.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +2 -0
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +21 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/animation/animate.js +14 -2
- package/lib/module/shared/utils/animation/animate.js.map +1 -1
- package/lib/module/shared/utils/animation/spring/spring.js +23 -3
- package/lib/module/shared/utils/animation/spring/spring.js.map +1 -1
- package/lib/module/shared/utils/animation/spring/springUtils.js +95 -0
- package/lib/module/shared/utils/animation/spring/springUtils.js.map +1 -1
- package/lib/module/shared/utils/animation/state.js +2 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +19 -6
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +54 -23
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +4 -3
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +2 -30
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +3 -14
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +3 -2
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +35 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +3 -4
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/index.d.ts +6 -9
- package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +1 -3
- 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.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/helpers/offset-style.d.ts +1 -10
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +1 -3
- 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 -2
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -10
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/handoff-target.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/utils/handoff-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +0 -4
- package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +8 -12
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/resolve-boundary-target.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/utils/resolve-boundary-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/masked-view.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-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.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/index.d.ts +16 -0
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -1
- 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.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +1 -9
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts +18 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/scroll.store.d.ts +7 -0
- package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +5 -0
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +6 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate.d.ts +2 -2
- package/lib/typescript/shared/utils/animation/animate.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/spring/spring.d.ts +2 -2
- package/lib/typescript/shared/utils/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/spring/springUtils.d.ts +3 -0
- package/lib/typescript/shared/utils/animation/spring/springUtils.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/state.d.ts +6 -0
- package/lib/typescript/shared/utils/animation/state.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +12 -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.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +2 -2
- 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 +2 -11
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +7 -2
- 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 +3 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +6 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/shared/animation/snap-to.ts +5 -0
- package/src/shared/components/boundary/components/boundary-target.tsx +37 -23
- package/src/shared/components/boundary/create-boundary-component.tsx +29 -3
- package/src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +11 -0
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +3 -9
- package/src/shared/components/boundary/index.tsx +4 -8
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +73 -275
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +2 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +66 -64
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +2 -9
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +73 -186
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +72 -12
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts +0 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +2 -39
- package/src/shared/components/boundary/portal/utils/handoff-target.ts +48 -0
- package/src/shared/components/boundary/portal/utils/resolve-portal.ts +26 -18
- package/src/shared/components/boundary/portal/utils/teleport-control.ts +0 -12
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +28 -80
- package/src/shared/components/boundary/utils/refresh-signals.ts +8 -0
- package/src/shared/components/boundary/utils/resolve-boundary-target.tsx +39 -0
- package/src/shared/components/masked-view.tsx +20 -4
- package/src/shared/components/screen-container/layers/backdrop.tsx +3 -1
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
- package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +2 -0
- package/src/shared/configs/index.ts +2 -1
- package/src/shared/configs/specs.ts +23 -0
- package/src/shared/providers/helpers/measured-bounds-writes.ts +1 -0
- package/src/shared/providers/screen/gestures/gestures.provider.tsx +2 -10
- package/src/shared/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-release.ts +2 -4
- package/src/shared/providers/screen/gestures/types.ts +0 -14
- package/src/shared/providers/screen/styles/helpers/transition-visual-state.ts +44 -0
- package/src/shared/providers/screen/styles/helpers/visibility-gate.ts +17 -7
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +30 -15
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -13
- package/src/shared/stores/bounds/internals/links.ts +13 -2
- package/src/shared/stores/scroll.store.ts +23 -0
- package/src/shared/stores/system.store.ts +8 -0
- package/src/shared/utils/animation/animate-to-progress.ts +59 -28
- package/src/shared/utils/animation/animate.ts +18 -2
- package/src/shared/utils/animation/spring/spring.ts +36 -1
- package/src/shared/utils/animation/spring/springUtils.ts +130 -0
- package/src/shared/utils/animation/state.ts +8 -0
- package/src/shared/utils/bounds/navigation/reveal/math.ts +25 -5
- package/src/shared/utils/bounds/navigation/zoom/build.ts +85 -23
- package/src/shared/utils/bounds/navigation/zoom/config.ts +4 -3
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +3 -42
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +9 -18
- package/src/shared/utils/bounds/navigation/zoom/mask.ts +4 -1
- package/src/shared/utils/bounds/navigation/zoom/targets.ts +59 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +0 -32
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -51
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +0 -217
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +0 -29
- package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +0 -25
- package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -64
- package/lib/commonjs/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -21
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -29
- package/lib/commonjs/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -38
- package/lib/commonjs/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js +0 -32
- package/lib/commonjs/shared/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/module/shared/components/boundary/hooks/use-register-target.js +0 -27
- package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -46
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +0 -210
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +0 -24
- package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js +0 -20
- package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -59
- package/lib/module/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -15
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -24
- package/lib/module/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
- package/lib/module/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -33
- package/lib/module/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js +0 -26
- package/lib/module/shared/providers/screen/styles/helpers/opening-phase.js.map +0 -1
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +0 -10
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +0 -13
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +0 -34
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts +0 -15
- package/lib/typescript/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts +0 -4
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts +0 -5
- package/lib/typescript/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts +0 -9
- package/lib/typescript/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts +0 -16
- package/lib/typescript/shared/providers/screen/styles/helpers/opening-phase.d.ts.map +0 -1
- package/src/shared/components/boundary/hooks/use-register-target.ts +0 -43
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +0 -79
- package/src/shared/components/boundary/portal/utils/ownership.ts +0 -315
- package/src/shared/components/boundary/portal/utils/shallow-equal.ts +0 -25
- package/src/shared/components/boundary/portal/utils/visible-host.ts +0 -24
- package/src/shared/providers/screen/gestures/rotation/activation/use-rotation-activation.ts +0 -88
- package/src/shared/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts +0 -19
- package/src/shared/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts +0 -47
- package/src/shared/providers/screen/gestures/rotation/use-build-rotation-gesture.ts +0 -50
- package/src/shared/providers/screen/styles/helpers/opening-phase.ts +0 -25
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { interpolate } from "react-native-reanimated";
|
|
4
4
|
import { EPSILON, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../../constants";
|
|
5
|
+
import { getVisualScrollAxisDelta } from "../../../../stores/scroll.store";
|
|
5
6
|
import { createBoundsAccessorCore } from "../../helpers/create-bounds-accessor-core";
|
|
7
|
+
import { computeContentTransformGeometry } from "../../helpers/geometry";
|
|
6
8
|
import { getSourceBorderRadius } from "../helpers";
|
|
7
|
-
import {
|
|
9
|
+
import { resolveRevealContentBaseTransformFromGeometry } from "../reveal/math";
|
|
8
10
|
import { ZOOM_BACKDROP_MAX_OPACITY, ZOOM_BACKGROUND_SCALE, ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE, ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE, ZOOM_SCREEN_A_FADE_END, ZOOM_SHARED_OPTIONS, ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE, ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE } from "./config";
|
|
9
|
-
import { resolveZoomDragState
|
|
11
|
+
import { resolveZoomDragState } from "./drag";
|
|
10
12
|
import { resolveZoomBackdropOpacity, resolveZoomPinchFocalOffset, resolveZoomTrackedSourceTransform } from "./helpers";
|
|
11
13
|
import { resolveZoomNavigationMaskStyle, ZOOM_NAVIGATION_MASK_BORDER_RADIUS } from "./mask";
|
|
12
|
-
import { getZoomContentTarget, resolveZoomTrackingContentTarget } from "./targets";
|
|
14
|
+
import { getZoomContentAnchor, getZoomContentTarget, resolveZoomTrackingContentTarget } from "./targets";
|
|
13
15
|
export function buildZoomStyles({
|
|
14
16
|
tag,
|
|
15
17
|
props,
|
|
@@ -59,6 +61,11 @@ export function buildZoomStyles({
|
|
|
59
61
|
screenLayout,
|
|
60
62
|
link
|
|
61
63
|
});
|
|
64
|
+
const zoomContentAnchor = getZoomContentAnchor({
|
|
65
|
+
explicitTarget: target,
|
|
66
|
+
screenLayout,
|
|
67
|
+
link
|
|
68
|
+
});
|
|
62
69
|
const trackingContentTarget = resolveZoomTrackingContentTarget({
|
|
63
70
|
contentTarget: zoomContentTarget,
|
|
64
71
|
link,
|
|
@@ -67,25 +74,30 @@ export function buildZoomStyles({
|
|
|
67
74
|
if (!trackingContentTarget) {
|
|
68
75
|
return {};
|
|
69
76
|
}
|
|
77
|
+
const isDismissing = active.gesture.dismissing === 1;
|
|
78
|
+
const dismissalTrackingGeometry = isDismissing ? computeContentTransformGeometry({
|
|
79
|
+
start: sourceBounds,
|
|
80
|
+
end: trackingContentTarget,
|
|
81
|
+
entering: true,
|
|
82
|
+
dimensions: screenLayout,
|
|
83
|
+
anchor: zoomContentAnchor,
|
|
84
|
+
scaleMode: "uniform"
|
|
85
|
+
}) : null;
|
|
86
|
+
const dismissalCollapsedContentScale = dismissalTrackingGeometry ? resolveRevealContentBaseTransformFromGeometry({
|
|
87
|
+
geometry: dismissalTrackingGeometry,
|
|
88
|
+
progress: 0
|
|
89
|
+
}).scale : 1;
|
|
70
90
|
const drag = resolveZoomDragState({
|
|
71
91
|
gesture: active.gesture,
|
|
72
92
|
activeTransitionProgress,
|
|
73
93
|
screenLayout,
|
|
74
|
-
|
|
75
|
-
trackingContentTarget,
|
|
94
|
+
collapsedContentScale: dismissalCollapsedContentScale,
|
|
76
95
|
dragOptions: zoomOptions?.drag
|
|
77
96
|
});
|
|
78
|
-
const trackedGestureScale = resolveZoomTrackedGestureScale({
|
|
79
|
-
drag,
|
|
80
|
-
activeTransitionProgress,
|
|
81
|
-
screenLayout,
|
|
82
|
-
sourceBounds,
|
|
83
|
-
trackingContentTarget
|
|
84
|
-
});
|
|
85
97
|
const focalGesture = drag.isDismissing ? active.gesture.handoff : active.gesture;
|
|
86
98
|
const focalProgress = drag.isDismissing ? activeTransitionProgress : 1;
|
|
87
99
|
const pinchFocalOffset = active.gesture.handoff.active === "pinch-in" ? resolveZoomPinchFocalOffset({
|
|
88
|
-
gestureScale: drag.isDismissing ? focalGesture.scale :
|
|
100
|
+
gestureScale: drag.isDismissing ? focalGesture.scale : drag.gestureScale,
|
|
89
101
|
pinchOriginX: focalGesture.pinchOriginX,
|
|
90
102
|
pinchOriginY: focalGesture.pinchOriginY,
|
|
91
103
|
progress: focalProgress,
|
|
@@ -96,6 +108,11 @@ export function buildZoomStyles({
|
|
|
96
108
|
y: 0
|
|
97
109
|
};
|
|
98
110
|
if (focused) {
|
|
111
|
+
const capturedSourceScroll = sourceBounds.scroll;
|
|
112
|
+
const liveSourceScroll = props.inactive?.layouts.scroll;
|
|
113
|
+
const sourceScrollWeight = keepFocusedVisible && (active.entering || active.closing) ? 1 - Math.min(Math.max(activeTransitionProgress, 0), 1) : 0;
|
|
114
|
+
const sourceScrollDeltaX = getVisualScrollAxisDelta(liveSourceScroll, capturedSourceScroll, "horizontal") * sourceScrollWeight;
|
|
115
|
+
const sourceScrollDeltaY = getVisualScrollAxisDelta(liveSourceScroll, capturedSourceScroll, "vertical") * sourceScrollWeight;
|
|
99
116
|
const sourceBorderRadius = getSourceBorderRadius(link);
|
|
100
117
|
const navigationMaskEnabled = current.options.navigationMaskEnabled;
|
|
101
118
|
const backdropOpacity = resolveZoomBackdropOpacity({
|
|
@@ -106,7 +123,7 @@ export function buildZoomStyles({
|
|
|
106
123
|
});
|
|
107
124
|
const contentRaw = scopedBounds.values({
|
|
108
125
|
scaleMode: ZOOM_SHARED_OPTIONS.scaleMode,
|
|
109
|
-
anchor:
|
|
126
|
+
anchor: zoomContentAnchor,
|
|
110
127
|
method: "content",
|
|
111
128
|
target: zoomContentTarget,
|
|
112
129
|
progress: transitionProgress
|
|
@@ -116,8 +133,8 @@ export function buildZoomStyles({
|
|
|
116
133
|
const contentBaseTranslateX = contentRaw.translateX;
|
|
117
134
|
const contentBaseTranslateY = contentRaw.translateY;
|
|
118
135
|
const contentBaseScale = contentRaw.scale;
|
|
119
|
-
const contentTranslateX = contentBaseTranslateX + drag.dragX + pinchFocalOffset.x * contentBaseScale;
|
|
120
|
-
const contentTranslateY = contentBaseTranslateY + drag.dragY + pinchFocalOffset.y * contentBaseScale;
|
|
136
|
+
const contentTranslateX = contentBaseTranslateX + drag.dragX + pinchFocalOffset.x * contentBaseScale - sourceScrollDeltaX;
|
|
137
|
+
const contentTranslateY = contentBaseTranslateY + drag.dragY + pinchFocalOffset.y * contentBaseScale - sourceScrollDeltaY;
|
|
121
138
|
const contentScale = drag.isDismissing ? drag.dismissContentScale : contentBaseScale * drag.gestureScale;
|
|
122
139
|
return {
|
|
123
140
|
options: {
|
|
@@ -157,7 +174,8 @@ export function buildZoomStyles({
|
|
|
157
174
|
contentTransform: contentRaw,
|
|
158
175
|
sourceBorderRadius,
|
|
159
176
|
expandedBorderRadius,
|
|
160
|
-
active
|
|
177
|
+
active,
|
|
178
|
+
anchor: zoomContentAnchor
|
|
161
179
|
}) : {}
|
|
162
180
|
};
|
|
163
181
|
}
|
|
@@ -195,16 +213,29 @@ export function buildZoomStyles({
|
|
|
195
213
|
}
|
|
196
214
|
};
|
|
197
215
|
}
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
screenLayout
|
|
216
|
+
const trackingGeometry = dismissalTrackingGeometry ?? computeContentTransformGeometry({
|
|
217
|
+
start: sourceBounds,
|
|
218
|
+
end: trackingContentTarget,
|
|
219
|
+
entering: true,
|
|
220
|
+
dimensions: screenLayout,
|
|
221
|
+
anchor: zoomContentAnchor,
|
|
222
|
+
scaleMode: "uniform"
|
|
223
|
+
});
|
|
224
|
+
const trackedContentBaseTransform = resolveRevealContentBaseTransformFromGeometry({
|
|
225
|
+
geometry: trackingGeometry,
|
|
226
|
+
progress: activeTransitionProgress
|
|
227
|
+
});
|
|
228
|
+
const collapsedContentScale = drag.isDismissing ? dismissalCollapsedContentScale : resolveRevealContentBaseTransformFromGeometry({
|
|
229
|
+
geometry: trackingGeometry,
|
|
230
|
+
progress: 0
|
|
203
231
|
}).scale;
|
|
232
|
+
const trackedGestureScale = drag.isDismissing ? drag.dismissContentScale / trackedContentBaseTransform.scale : drag.gestureScale;
|
|
233
|
+
const trackedContentBaseScale = trackedContentBaseTransform.scale;
|
|
204
234
|
const trackedDragX = drag.dragX + pinchFocalOffset.x * trackedContentBaseScale;
|
|
205
235
|
const trackedDragY = drag.dragY + pinchFocalOffset.y * trackedContentBaseScale;
|
|
206
236
|
const trackedSourceElement = resolveZoomTrackedSourceTransform({
|
|
207
|
-
|
|
237
|
+
contentBaseTransform: trackedContentBaseTransform,
|
|
238
|
+
collapsedContentScale,
|
|
208
239
|
sourceBounds,
|
|
209
240
|
destinationBounds: trackingContentTarget,
|
|
210
241
|
screenLayout,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","EPSILON","NAVIGATION_MASK_ELEMENT_STYLE_ID","createBoundsAccessorCore","getSourceBorderRadius","resolveRevealContentBaseTransform","ZOOM_BACKDROP_MAX_OPACITY","ZOOM_BACKGROUND_SCALE","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_SCREEN_A_FADE_END","ZOOM_SHARED_OPTIONS","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","resolveZoomDragState","resolveZoomTrackedGestureScale","resolveZoomBackdropOpacity","resolveZoomPinchFocalOffset","resolveZoomTrackedSourceTransform","resolveZoomNavigationMaskStyle","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","getZoomContentTarget","resolveZoomTrackingContentTarget","buildZoomStyles","tag","props","zoomOptions","target","keepFocusedVisible","expandedBorderRadius","Math","max","borderRadius","backgroundScale","backdropColor","maxBackdropOpacity","backdropOpacity","active","current","focused","transitionProgress","layouts","screen","screenLayout","activeTransitionProgress","bounds","getProps","scopedBounds","link","sourceBounds","source","values","scaleMode","anchor","method","progress","zoomContentTarget","explicitTarget","trackingContentTarget","contentTarget","drag","gesture","dragOptions","trackedGestureScale","focalGesture","isDismissing","handoff","focalProgress","pinchFocalOffset","gestureScale","scale","pinchOriginX","pinchOriginY","rotation","x","y","sourceBorderRadius","navigationMaskEnabled","options","dismissalDrag","dismissNorm","fadeEnd","maxOpacity","contentRaw","focusedOpacityRange","closing","focusedFade","contentBaseTranslateX","translateX","contentBaseTranslateY","translateY","contentBaseScale","contentTranslateX","dragX","contentTranslateY","dragY","contentScale","dismissContentScale","gestureReleaseVelocityScale","backdrop","style","backgroundColor","opacity","content","transform","rotateZ","animating","overflow","contentTransform","unfocusedOpacityRange","unfocusedFade","unfocusedScale","shouldHideSource","unfocusedContentScale","settled","unfocusedContent","id","scaleX","scaleY","trackedContentBaseScale","destinationBounds","trackedDragX","trackedDragY","trackedSourceElement","parentScale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/build.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,yBAAyB;AACrD,SACCC,OAAO,EACPC,gCAAgC,QAC1B,uBAAuB;AAC9B,SAASC,wBAAwB,QAAQ,2CAA2C;AACpF,SAASC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AC/C;UAAEE,UAAU,EAAEiC,oBAAoB,CAACjC;QAAW,CAAC,EAC/C;UAAEe,OAAO,EAAE,GAAG7C,IAAI,CAACa,QAAQ;QAAM,CAAC,EAClC;UAAE4C,MAAM,EAAEM,oBAAoB,CAACN;QAAO,CAAC,EACvC;UAAEC,MAAM,EAAEK,oBAAoB,CAACL;QAAO,CAAC,CACvC;QACDhB,OAAO,EAAEQ;MACV;IACD;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["interpolate","EPSILON","NAVIGATION_MASK_ELEMENT_STYLE_ID","getVisualScrollAxisDelta","createBoundsAccessorCore","computeContentTransformGeometry","getSourceBorderRadius","resolveRevealContentBaseTransformFromGeometry","ZOOM_BACKDROP_MAX_OPACITY","ZOOM_BACKGROUND_SCALE","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_SCREEN_A_FADE_END","ZOOM_SHARED_OPTIONS","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","resolveZoomDragState","resolveZoomBackdropOpacity","resolveZoomPinchFocalOffset","resolveZoomTrackedSourceTransform","resolveZoomNavigationMaskStyle","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","getZoomContentAnchor","getZoomContentTarget","resolveZoomTrackingContentTarget","buildZoomStyles","tag","props","zoomOptions","target","keepFocusedVisible","expandedBorderRadius","Math","max","borderRadius","backgroundScale","backdropColor","maxBackdropOpacity","backdropOpacity","active","current","focused","transitionProgress","layouts","screen","screenLayout","activeTransitionProgress","bounds","getProps","scopedBounds","link","sourceBounds","source","values","scaleMode","anchor","method","progress","zoomContentTarget","explicitTarget","zoomContentAnchor","trackingContentTarget","contentTarget","isDismissing","gesture","dismissing","dismissalTrackingGeometry","start","end","entering","dimensions","dismissalCollapsedContentScale","geometry","scale","drag","collapsedContentScale","dragOptions","focalGesture","handoff","focalProgress","pinchFocalOffset","gestureScale","pinchOriginX","pinchOriginY","rotation","x","y","capturedSourceScroll","scroll","liveSourceScroll","inactive","sourceScrollWeight","closing","min","sourceScrollDeltaX","sourceScrollDeltaY","sourceBorderRadius","navigationMaskEnabled","options","dismissalDrag","dismissNorm","fadeEnd","maxOpacity","contentRaw","focusedOpacityRange","focusedFade","contentBaseTranslateX","translateX","contentBaseTranslateY","translateY","contentBaseScale","contentTranslateX","dragX","contentTranslateY","dragY","contentScale","dismissContentScale","gestureReleaseVelocityScale","backdrop","style","backgroundColor","opacity","content","transform","rotateZ","animating","overflow","contentTransform","unfocusedOpacityRange","unfocusedFade","unfocusedScale","shouldHideSource","unfocusedContentScale","settled","unfocusedContent","id","scaleX","scaleY","trackingGeometry","trackedContentBaseTransform","trackedGestureScale","trackedContentBaseScale","trackedDragX","trackedDragY","trackedSourceElement","contentBaseTransform","destinationBounds","parentScale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/build.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,yBAAyB;AACrD,SACCC,OAAO,EACPC,gCAAgC,QAC1B,uBAAuB;AAC9B,SAASC,wBAAwB,QAAQ,iCAAiC;AAE1E,SAASC,wBAAwB,QAAQ,2CAA2C;AACpF,SAASC,+BAA+B,QAAQ,wBAAwB;AACxE,SAASC,qBAAqB,QAAQ,YAAY;AAClD,SAASC,6CAA6C,QAAQ,gBAAgB;AAC9E,SACCC,yBAAyB,EACzBC,qBAAqB,EACrBC,wCAAwC,EACxCC,uCAAuC,EACvCC,sBAAsB,EACtBC,mBAAmB,EACnBC,0CAA0C,EAC1CC,yCAAyC,QACnC,UAAU;AACjB,SAASC,oBAAoB,QAAQ,QAAQ;AAC7C,SACCC,0BAA0B,EAC1BC,2BAA2B,EAC3BC,iCAAiC,QAC3B,WAAW;AAClB,SACCC,8BAA8B,EAC9BC,kCAAkC,QAC5B,QAAQ;AACf,SACCC,oBAAoB,EAC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qC,oBAAoB,CAACrC;QAAW,CAAC,EAC/C;UAAEE,UAAU,EAAEmC,oBAAoB,CAACnC;QAAW,CAAC,EAC/C;UAAEe,OAAO,EAAE,GAAGlD,IAAI,CAACU,QAAQ;QAAM,CAAC,EAClC;UAAEoD,MAAM,EAAEQ,oBAAoB,CAACR;QAAO,CAAC,EACvC;UAAEC,MAAM,EAAEO,oBAAoB,CAACP;QAAO,CAAC,CACvC;QACDhB,OAAO,EAAEQ;MACV;IACD;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -10,9 +10,10 @@ export const ZOOM_BACKGROUND_SCALE = 0.9375;
|
|
|
10
10
|
export const ZOOM_BACKDROP_MAX_OPACITY = 0.45;
|
|
11
11
|
// Geometry-aligned native frames reach their darkest point around here.
|
|
12
12
|
export const ZOOM_SCREEN_A_FADE_END = 0.54;
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
export const
|
|
13
|
+
// Native starts revealing the destination immediately while the source begins
|
|
14
|
+
// handing ownership over in the first tenth of the opening travel.
|
|
15
|
+
export const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE = [0, 0.28, 0, 1];
|
|
16
|
+
export const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE = [1.08, 1.32, 1, 0];
|
|
16
17
|
// On close, red is prepared behind opaque blue before blue fades away.
|
|
17
18
|
export const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE = [0.13, 0.7, 0, 1];
|
|
18
19
|
export const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE = [1.7, 2, 1, 0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ZOOM_SHARED_OPTIONS","Object","freeze","anchor","scaleMode","ZOOM_DISMISS_VELOCITY_DEPTH","ZOOM_BACKGROUND_SCALE","ZOOM_BACKDROP_MAX_OPACITY","ZOOM_SCREEN_A_FADE_END","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/config.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,MAAMC,2BAA2B,GAAG,GAAG;AAC9C,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AAC3C;AACA,OAAO,MAAMC,yBAAyB,GAAG,IAAI;AAC7C;AACA,OAAO,MAAMC,sBAAsB,GAAG,IAAI;AAC1C;AACA,OAAO,MAAMC,uCAAuC,GAAG,CAAC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"names":["ZOOM_SHARED_OPTIONS","Object","freeze","anchor","scaleMode","ZOOM_DISMISS_VELOCITY_DEPTH","ZOOM_BACKGROUND_SCALE","ZOOM_BACKDROP_MAX_OPACITY","ZOOM_SCREEN_A_FADE_END","ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE","ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE","ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/config.ts"],"mappings":";;AAAA,OAAO,MAAMA,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,MAAMC,2BAA2B,GAAG,GAAG;AAC9C,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AAC3C;AACA,OAAO,MAAMC,yBAAyB,GAAG,IAAI;AAC7C;AACA,OAAO,MAAMC,sBAAsB,GAAG,IAAI;AAC1C;AACA;AACA,OAAO,MAAMC,uCAAuC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAU;AAC/E,OAAO,MAAMC,yCAAyC,GAAG,CACxD,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CACP;AACV;AACA,OAAO,MAAMC,wCAAwC,GAAG,CACvD,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CACN;AACV,OAAO,MAAMC,0CAA0C,GAAG,CACzD,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CACH","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { EPSILON } from "../../../../constants";
|
|
4
|
-
import { resolveRevealContentBaseTransform } from "../reveal/math";
|
|
5
4
|
import { ZOOM_DISMISS_VELOCITY_DEPTH } from "./config";
|
|
6
5
|
const ZOOM_DRAG_SCALE_EXPONENT = 2;
|
|
7
6
|
const ZOOM_DRAG_SCALE_FLOOR = 0.5;
|
|
@@ -92,8 +91,7 @@ export function resolveZoomDragState({
|
|
|
92
91
|
gesture,
|
|
93
92
|
activeTransitionProgress,
|
|
94
93
|
screenLayout,
|
|
95
|
-
|
|
96
|
-
trackingContentTarget,
|
|
94
|
+
collapsedContentScale,
|
|
97
95
|
dragOptions
|
|
98
96
|
}) {
|
|
99
97
|
"worklet";
|
|
@@ -134,16 +132,10 @@ export function resolveZoomDragState({
|
|
|
134
132
|
const rotation = isPinchIn ? isDismissing ? gestureHandoff.rotation * activeTransitionProgress : gesture.rotation : 0;
|
|
135
133
|
let dismissContentScale = gestureScale;
|
|
136
134
|
if (isDismissing) {
|
|
137
|
-
const targetContentScale = resolveRevealContentBaseTransform({
|
|
138
|
-
progress: 0,
|
|
139
|
-
sourceBounds,
|
|
140
|
-
destinationBounds: trackingContentTarget,
|
|
141
|
-
screenLayout
|
|
142
|
-
}).scale;
|
|
143
135
|
dismissContentScale = resolveZoomDismissContentScale({
|
|
144
136
|
transitionRemaining: activeTransitionProgress,
|
|
145
137
|
releaseScale: gestureScale,
|
|
146
|
-
targetScale:
|
|
138
|
+
targetScale: collapsedContentScale,
|
|
147
139
|
velocity: gestureHandoff.velocity,
|
|
148
140
|
velocityDepth: ZOOM_DISMISS_VELOCITY_DEPTH * (isPinchIn ? ZOOM_PINCH_VELOCITY_DEPTH_MULTIPLIER : 1)
|
|
149
141
|
});
|
|
@@ -161,24 +153,4 @@ export function resolveZoomDragState({
|
|
|
161
153
|
rotation
|
|
162
154
|
};
|
|
163
155
|
}
|
|
164
|
-
export function resolveZoomTrackedGestureScale({
|
|
165
|
-
drag,
|
|
166
|
-
activeTransitionProgress,
|
|
167
|
-
screenLayout,
|
|
168
|
-
sourceBounds,
|
|
169
|
-
trackingContentTarget
|
|
170
|
-
}) {
|
|
171
|
-
"worklet";
|
|
172
|
-
|
|
173
|
-
if (!drag.isDismissing) {
|
|
174
|
-
return drag.gestureScale;
|
|
175
|
-
}
|
|
176
|
-
const trackedContentBaseScale = resolveRevealContentBaseTransform({
|
|
177
|
-
progress: activeTransitionProgress,
|
|
178
|
-
sourceBounds,
|
|
179
|
-
destinationBounds: trackingContentTarget,
|
|
180
|
-
screenLayout
|
|
181
|
-
}).scale;
|
|
182
|
-
return drag.dismissContentScale / trackedContentBaseScale;
|
|
183
|
-
}
|
|
184
156
|
//# sourceMappingURL=drag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EPSILON","
|
|
1
|
+
{"version":3,"names":["EPSILON","ZOOM_DISMISS_VELOCITY_DEPTH","ZOOM_DRAG_SCALE_EXPONENT","ZOOM_DRAG_SCALE_FLOOR","ZOOM_COUNTER_DRAG_SCALE_INTENSITY","ZOOM_PRIMARY_DRAG_TRANSLATION_SCALE","ZOOM_PRIMARY_DRAG_RESISTANCE","ZOOM_HORIZONTAL_DRAG_DISTANCE_SCALE","ZOOM_CROSS_AXIS_DRAG_TRANSLATION_SCALE","ZOOM_CROSS_AXIS_DRAG_RESISTANCE","ZOOM_PINCH_SCALE_RESPONSE","ZOOM_PINCH_VELOCITY_DEPTH_MULTIPLIER","resolveZoomDismissContentScale","transitionRemaining","releaseScale","targetScale","velocity","velocityDepth","closeProgress","depth","scaleDelta","controlScale1","linearControlScale2","controlScale2","Math","max","remaining","resolveZoomPrimaryDragTranslation","translation","dimension","direction","translationDistance","abs","baseDistance","normalizedTranslation","effectiveResistance","resistedTranslation","exp","min","resolveZoomHorizontalDragTranslation","resolveZoomCrossAxisDragTranslation","resolveZoomDragScale","normalized","scaleInput","progress","rawMinimumScale","rawScale","resolveZoomPinchScale","scale","resolveZoomDismissalNorm","isInverted","resolveZoomDragState","gesture","activeTransitionProgress","screenLayout","collapsedContentScale","dragOptions","gestureHandoff","handoff","isDismissing","dismissing","activeGesture","active","isHorizontalInverted","isHorizontal","isVerticalInverted","isVertical","isPinchIn","translationResponse","horizontal","vertical","scaleResponse","handoffPrimaryNorm","normScale","normX","normY","livePrimaryNorm","dismissNorm","nativeDragX","x","width","nativeDragY","y","height","dragX","dragY","scaleNorm","nativeGestureScale","gestureScale","rotation","dismissContentScale","collapsesMask","dismissProgress"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/drag.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,uBAAuB;AAM/C,SAASC,2BAA2B,QAAQ,UAAU;AAEtD,MAAMC,wBAAwB,GAAG,CAAC;AAClC,MAAMC,qBAAqB,GAAG,GAAG;AACjC,MAAMC,iCAAiC,GAAG,GAAG;AAC7C,MAAMC,mCAAmC,GAAG,GAAG;AAC/C,MAAMC,4BAA4B,GAAG,CAAC;AACtC,MAAMC,mCAAmC,GAAG,GAAG;AAC/C,MAAMC,sCAAsC,GAAG,IAAI;AACnD,MAAMC,+BAA+B,GAAG,IAAI;AAC5C,MAAMC,yBAAyB,GAAG,CAAC;AACnC,MAAMC,oCAAoC,GAA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@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { EPSILON } from "../../../../constants";
|
|
4
|
-
import {
|
|
4
|
+
import { resolveTrackedSourceElementTransform } from "../reveal/math";
|
|
5
5
|
export function resolveZoomBackdropOpacity({
|
|
6
6
|
transitionProgress,
|
|
7
7
|
dismissalDrag,
|
|
@@ -46,10 +46,11 @@ export function resolveZoomPinchFocalOffset({
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export function resolveZoomTrackedSourceTransform({
|
|
49
|
-
progress,
|
|
50
49
|
sourceBounds,
|
|
51
50
|
destinationBounds,
|
|
52
51
|
screenLayout,
|
|
52
|
+
contentBaseTransform,
|
|
53
|
+
collapsedContentScale,
|
|
53
54
|
dragX,
|
|
54
55
|
dragY,
|
|
55
56
|
gestureScale,
|
|
@@ -58,18 +59,6 @@ export function resolveZoomTrackedSourceTransform({
|
|
|
58
59
|
}) {
|
|
59
60
|
"worklet";
|
|
60
61
|
|
|
61
|
-
const contentBaseTransform = resolveRevealContentBaseTransform({
|
|
62
|
-
progress,
|
|
63
|
-
sourceBounds,
|
|
64
|
-
destinationBounds,
|
|
65
|
-
screenLayout
|
|
66
|
-
});
|
|
67
|
-
const collapsedContentScale = resolveRevealContentBaseTransform({
|
|
68
|
-
progress: 0,
|
|
69
|
-
sourceBounds,
|
|
70
|
-
destinationBounds,
|
|
71
|
-
screenLayout
|
|
72
|
-
}).scale;
|
|
73
62
|
const contentScale = contentBaseTransform.scale * gestureScale;
|
|
74
63
|
const safeCollapsedContentScale = Math.max(Math.abs(collapsedContentScale), EPSILON);
|
|
75
64
|
const safeParentScale = Math.max(Math.abs(parentScale), EPSILON);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EPSILON","
|
|
1
|
+
{"version":3,"names":["EPSILON","resolveTrackedSourceElementTransform","resolveZoomBackdropOpacity","transitionProgress","dismissalDrag","fadeEnd","maxOpacity","clampedProgress","Math","min","max","clampedDrag","safeFadeEnd","transitionOpacity","clampedMaxOpacity","resolveZoomPinchFocalOffset","gestureScale","pinchOriginX","pinchOriginY","progress","rotation","screenLayout","abs","x","y","offsetX","width","offsetY","height","cosine","cos","sine","sin","transformedOffsetX","transformedOffsetY","resolveZoomTrackedSourceTransform","sourceBounds","destinationBounds","contentBaseTransform","collapsedContentScale","dragX","dragY","parentScale","contentScale","scale","safeCollapsedContentScale","safeParentScale","uniformSourceScale","trackedTransform","contentTranslateX","translateX","contentTranslateY","translateY","screenWidth","screenHeight","scaleX","scaleY","screenCenterX","screenCenterY","destinationCenterX","pageX","destinationCenterY","pageY","scaledOffsetX","scaledOffsetY","rotatedOffsetX","rotatedOffsetY"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/helpers.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,oCAAoC,QAAQ,gBAAgB;AAErE,OAAO,SAASC,0BAA0BA,CAAC;EAC1CC,kBAAkB;EAClBC,aAAa;EACbC,OAAO;EACPC;AAMD,CAAC,EAAE;EACF,SAAS;;EAET,MAAMC,eAAe,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEP,kBAAkB,CAAC,CAAC;EACpE,MAAMQ,WAAW,GAAGH,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEN,aAAa,CAAC,CAAC;EAC3D,MAAMQ,WAAW,GAAGJ,IAAI,CAACE,GAAG,CAACV,OAAO,EAAEK,OAAO,CAAC;EAC9C,MAAMQ,iBAAiB,GAAGL,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEF,eAAe,GAAGK,WAAW,CAAC;EACpE,MAAME,iBAAiB,GAAGN,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEJ,UAAU,CAAC,CAAC;EAE9D,OAA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ACyB,KAAK,GAAGzB,iBAAiB,CAACT,MAAM,GAAG,CAAC;EACvD,MAAMmC,aAAa,GAAG,CAACJ,kBAAkB,GAAGF,aAAa,IAAId,YAAY;EACzE,MAAMqB,aAAa,GAAG,CAACH,kBAAkB,GAAGH,aAAa,IAAIf,YAAY;EACzE,MAAMd,MAAM,GAAGrB,IAAI,CAACsB,GAAG,CAACV,QAAQ,CAAC;EACjC,MAAMW,IAAI,GAAGvB,IAAI,CAACwB,GAAG,CAACZ,QAAQ,CAAC;EAC/B,MAAM6C,cAAc,GAAGF,aAAa,GAAGlC,MAAM,GAAGmC,aAAa,GAAGjC,IAAI;EACpE,MAAMmC,cAAc,GAAGH,aAAa,GAAGhC,IAAI,GAAGiC,aAAa,GAAGnC,MAAM;EAEpE,OAAO;IACN,GAAGmB,gBAAgB;IACnBE,UAAU,EACTF,gBAAgB,CAACE,UAAU,GAC3B,CAACe,cAAc,GAAGF,aAAa,IAAIjB,eAAe;IACnDM,UAAU,EACTJ,gBAAgB,CAACI,UAAU,GAC3B,CAACc,cAAc,GAAGF,aAAa,IAAIlB;EACrC,CAAC;AACF","ignoreList":[]}
|
|
@@ -17,13 +17,14 @@ export function resolveZoomNavigationMaskStyle({
|
|
|
17
17
|
contentTransform,
|
|
18
18
|
sourceBorderRadius,
|
|
19
19
|
expandedBorderRadius,
|
|
20
|
-
active
|
|
20
|
+
active,
|
|
21
|
+
anchor
|
|
21
22
|
}) {
|
|
22
23
|
"worklet";
|
|
23
24
|
|
|
24
25
|
const maskRaw = scopedBounds.values({
|
|
25
26
|
scaleMode: ZOOM_SHARED_OPTIONS.scaleMode,
|
|
26
|
-
anchor
|
|
27
|
+
anchor,
|
|
27
28
|
method: "size",
|
|
28
29
|
space: "absolute",
|
|
29
30
|
target: "fullscreen",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","toNumber","DRAG_MASK_HEIGHT_COLLAPSE_END","interpolateClamped","resolveAspectRatioMaskHeight","ZOOM_SHARED_OPTIONS","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","maskRaw","values","scaleMode","
|
|
1
|
+
{"version":3,"names":["interpolate","toNumber","DRAG_MASK_HEIGHT_COLLAPSE_END","interpolateClamped","resolveAspectRatioMaskHeight","ZOOM_SHARED_OPTIONS","ZOOM_NAVIGATION_MASK_BORDER_RADIUS","ZOOM_VERTICAL_DRAG_MASK_COLLAPSE_SCALE","resolveZoomNavigationMaskStyle","scopedBounds","link","sourceBounds","screenLayout","transitionProgress","drag","contentTransform","sourceBorderRadius","expandedBorderRadius","active","anchor","maskRaw","values","scaleMode","method","space","target","progress","maskWidth","width","maskHeight","height","maskAspectBounds","initialSource","bounds","minMaskHeight","targetWidth","targetHeight","maskHeightCollapseDrag","collapsesMask","Math","max","dismissNorm","dismissProgress","renderedMaskHeight","maskCenterX","maskCenterY","contentCenterX","contentCenterY","maskOriginOffsetY","isVerticalInverted","compensatedMaskTranslateX","translateX","scale","compensatedMaskTranslateY","translateY","initialSourceBorderRadius","styles","borderRadius","style","animating","borderCurve","transform"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/mask.ts"],"mappings":";;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAWrD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,6BAA6B,QAAQ,kBAAkB;AAChE,SACCC,kBAAkB,EAClBC,4BAA4B,QACtB,gBAAgB;AACvB,SAASC,mBAAmB,QAAQ,UAAU;AAG9C,OAAO,MAAMC,kCAAkC,GAAG,EAAE;AACpD,MAAMC,sCAAsC,GAAG,GAAG;AAoBlD,OAAO,SAASC,8BAA8BA,CAAC;EAC9CC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,YAAY;EACZC,kBAAkB;EAClBC,IAAI;E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kB,GAC/B,CAAC;EACJ,MAAMO,yBAAyB,GAC9B,CAAC9B,OAAO,CAAC+B,UAAU,GAClBpC,gBAAgB,CAACoC,UAAU,GAC3B,CAAC,CAAC,GAAGpC,gBAAgB,CAACqC,KAAK,KAAKR,WAAW,GAAGE,cAAc,CAAC,IAC9D/B,gBAAgB,CAACqC,KAAK;EACvB,MAAMC,yBAAyB,GAC9B,CAACjC,OAAO,CAACkC,UAAU,GAClBvC,gBAAgB,CAACuC,UAAU,GAC3BN,iBAAiB,GACjB,CAAC,CAAC,GAAGjC,gBAAgB,CAACqC,KAAK,KAAKP,WAAW,GAAGE,cAAc,CAAC,IAC9DhC,gBAAgB,CAACqC,KAAK;EACvB,MAAMG,yBAAyB,GAAGtD,QAAQ,CACzCS,IAAI,CAACsB,aAAa,EAAEwB,MAAM,CAACC,YAAY,EACvCzC,kBACD,CAAC;EAED,OAAO;IACN0C,KAAK,EAAE;MACN9B,KAAK,EAAED,SAAS;MAChBG,MAAM,EAAEa,kBAAkB;MAC1Bc,YAAY,EAAEzD,WAAW,CACxBa,kBAAkB,EAClB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CACC0C,yBAAyB,EACzBrC,MAAM,CAACyC,SAAS,GAAG1C,oBAAoB,GAAG,CAAC,CAC3C,EACD,OACD,CAAC;MACD2C,WAAW,EAAE,YAAY;MACzBC,SAAS,EAAE,CACV;QAAEV,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAEI,UAAU,EAAED;MAA0B,CAAC,EACzC;QAAED,KAAK,EAAE,CAAC,GAAGrC,gBAAgB,CAACqC;MAAM,CAAC;IAEvC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -12,9 +12,27 @@ export function getZoomContentTarget({
|
|
|
12
12
|
}
|
|
13
13
|
const sourceBounds = link.source?.bounds;
|
|
14
14
|
const screenWidth = screenLayout.width;
|
|
15
|
-
|
|
15
|
+
const screenHeight = screenLayout.height;
|
|
16
|
+
if (!sourceBounds || sourceBounds.width <= 0 || sourceBounds.height <= 0 || screenWidth <= 0 || screenHeight <= 0) {
|
|
16
17
|
return "fullscreen";
|
|
17
18
|
}
|
|
19
|
+
const sourceAspectRatio = sourceBounds.width / sourceBounds.height;
|
|
20
|
+
const screenAspectRatio = screenWidth / screenHeight;
|
|
21
|
+
|
|
22
|
+
// Zoom keeps one edge of the virtual destination attached to the source.
|
|
23
|
+
// A wide source fills the destination width and follows its top edge. A
|
|
24
|
+
// narrow source fills the destination height instead, so it follows the
|
|
25
|
+
// destination's leading edge rather than taking a long vertical path.
|
|
26
|
+
if (sourceAspectRatio < screenAspectRatio) {
|
|
27
|
+
return {
|
|
28
|
+
x: 0,
|
|
29
|
+
y: 0,
|
|
30
|
+
pageX: 0,
|
|
31
|
+
pageY: 0,
|
|
32
|
+
width: sourceBounds.width / sourceBounds.height * screenHeight,
|
|
33
|
+
height: screenHeight
|
|
34
|
+
};
|
|
35
|
+
}
|
|
18
36
|
const height = sourceBounds.height / sourceBounds.width * screenWidth;
|
|
19
37
|
return {
|
|
20
38
|
x: 0,
|
|
@@ -25,6 +43,22 @@ export function getZoomContentTarget({
|
|
|
25
43
|
height
|
|
26
44
|
};
|
|
27
45
|
}
|
|
46
|
+
export function getZoomContentAnchor({
|
|
47
|
+
explicitTarget,
|
|
48
|
+
screenLayout,
|
|
49
|
+
link
|
|
50
|
+
}) {
|
|
51
|
+
"worklet";
|
|
52
|
+
|
|
53
|
+
if (explicitTarget !== undefined) {
|
|
54
|
+
return explicitTarget === "bound" ? "center" : "top";
|
|
55
|
+
}
|
|
56
|
+
const sourceBounds = link.source?.bounds;
|
|
57
|
+
if (!sourceBounds || sourceBounds.width <= 0 || sourceBounds.height <= 0 || screenLayout.width <= 0 || screenLayout.height <= 0) {
|
|
58
|
+
return "top";
|
|
59
|
+
}
|
|
60
|
+
return sourceBounds.width / sourceBounds.height < screenLayout.width / screenLayout.height ? "leading" : "top";
|
|
61
|
+
}
|
|
28
62
|
export function resolveZoomTrackingContentTarget({
|
|
29
63
|
contentTarget,
|
|
30
64
|
link,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getZoomContentTarget","explicitTarget","screenLayout","link","undefined","sourceBounds","source","bounds","screenWidth","width","height","x","y","pageX","pageY","resolveZoomTrackingContentTarget","contentTarget","destination"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/targets.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["getZoomContentTarget","explicitTarget","screenLayout","link","undefined","sourceBounds","source","bounds","screenWidth","width","screenHeight","height","sourceAspectRatio","screenAspectRatio","x","y","pageX","pageY","getZoomContentAnchor","resolveZoomTrackingContentTarget","contentTarget","destination"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/zoom/targets.ts"],"mappings":";;AAaA,OAAO,SAASA,oBAAoBA,CAAC;EACpCC,cAAc;EACdC,YAAY;EACZC;AAKD,CAAC,EAAqB;EACrB,SAAS;;EAET,IAAIF,cAAc,KAAKG,SAAS,EAAE;IACjC,OAAOH,cAAc;EACtB;EAEA,MAAMI,YAAY,GAAGF,IAAI,CAACG,MAAM,EAAEC,MAAM;EACxC,MAAMC,WAAW,GAAGN,YAAY,CAACO,KAAK;EACtC,MAAMC,YAAY,GAAGR,YAAY,CAACS,MAAM;EAExC,IACC,CAACN,YAAY,IACbA,YAAY,CAACI,KAAK,IAAI,CAAC,IACvBJ,YAAY,CAACM,MAAM,IAAI,CAAC,IACxBH,WAAW,IAAI,CAAC,IAChBE,YAAY,IAAI,CAAC,EAChB;IACD,OAAO,YAAY;EACpB;EAEA,MAAME,iBAAiB,GAAGP,YAAY,CAACI,KAAK,GAAGJ,YAAY,CAACM,MAAM;EAClE,MAAME,iBAAiB,GAAGL,WAAW,GAAGE,YAAY;;EAEpD;EACA;EACA;EACA;EACA,IAAIE,iBAAiB,GAAGC,iBAAiB,EAAE;IAC1C,OAAO;MACNC,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJC,KAAK,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;EAChC;EAEA,OAAO;IACNO,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJC,KAAK,EAAE,CAAC;IACRC,KAAK,EAAE,CAAC;IACRR,KAAK,EAAEP,YAAY,CAACO,KAAK;IACzBE,MAAM,EAAET,YAAY,CAACS;EACtB,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snap-to.d.ts","sourceRoot":"","sources":["../../../../src/shared/animation/snap-to.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA0B5D,wBAAgB,qBAAqB,CACpC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,EACtC,KAAK,EAAE,MAAM,GACX,OAAO,
|
|
1
|
+
{"version":3,"file":"snap-to.d.ts","sourceRoot":"","sources":["../../../../src/shared/animation/snap-to.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AA0B5D,wBAAgB,qBAAqB,CACpC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,EACtC,KAAK,EAAE,MAAM,GACX,OAAO,CA0CT;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAS1C"}
|
|
@@ -3,6 +3,7 @@ import Animated from "react-native-reanimated";
|
|
|
3
3
|
type BoundaryTargetProps = Omit<React.ComponentProps<typeof Animated.View>, "children"> & {
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const BOUNDARY_TARGET_ACTIVE_PROP: "__boundaryTargetActive";
|
|
7
|
+
export declare const BoundaryTarget: React.NamedExoticComponent<BoundaryTargetProps>;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=boundary-target.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-target.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/boundary/components/boundary-target.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"boundary-target.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/boundary/components/boundary-target.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAgB/C,KAAK,mBAAmB,GAAG,IAAI,CAC9B,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,EAC1C,UAAU,CACV,GAAG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAG,wBAAiC,CAAC;AA2E7E,eAAO,MAAM,cAAc,EAEtB,KAAK,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/boundary/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/boundary/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAKlB,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD,UAAU,8BAA8B;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACvD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,8BAAmC,GAgFX,KAAK,CAAC,mBAAmB,CACzD,KAAK,CAAC,yBAAyB,CAC9B,sBAAsB,CAAC,CAAC,CAAC,GACxB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CACxD,CACD,CACD"}
|
package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,UAAU,wBAAwB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,GAAI,yCAIhC,wBAAwB,SA6E1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { View } from "react-native";
|
|
2
|
-
import type { AnimatedRef
|
|
2
|
+
import type { AnimatedRef } from "react-native-reanimated";
|
|
3
3
|
import type { BoundTag } from "../../../stores/bounds/types";
|
|
4
4
|
import type { BoundaryConfigProps } from "../types";
|
|
5
5
|
interface UseBoundaryMeasurementParams {
|
|
@@ -11,9 +11,8 @@ interface UseBoundaryMeasurementParams {
|
|
|
11
11
|
currentScreenKey: string;
|
|
12
12
|
/** Surface to measure: a nested target's placeholder, else the root. */
|
|
13
13
|
measuredRef: AnimatedRef<View>;
|
|
14
|
-
/**
|
|
14
|
+
/** Style belonging to the selected measurement surface. */
|
|
15
15
|
style?: unknown;
|
|
16
|
-
targetPreparedStyles?: StyleProps;
|
|
17
16
|
handoff: boolean;
|
|
18
17
|
escapeClipping: boolean;
|
|
19
18
|
config: BoundaryConfigProps;
|
|
@@ -23,6 +22,6 @@ interface UseBoundaryMeasurementParams {
|
|
|
23
22
|
* registers presence, runs the initial source/destination + refresh reactions,
|
|
24
23
|
* and keeps the component itself away from the measurer.
|
|
25
24
|
*/
|
|
26
|
-
export declare const useBoundaryMeasurement: ({ boundTag, enabled, runtimeEnabled, currentScreenKey, measuredRef, style,
|
|
25
|
+
export declare const useBoundaryMeasurement: ({ boundTag, enabled, runtimeEnabled, currentScreenKey, measuredRef, style, handoff, escapeClipping, config, }: UseBoundaryMeasurementParams) => void;
|
|
27
26
|
export {};
|
|
28
27
|
//# sourceMappingURL=use-boundary-measurement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAOpD,UAAU,4BAA4B;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,+GAUpC,4BAA4B,SAgD9B,CAAC"}
|