react-native-screen-transitions 3.4.0-beta.0 → 3.4.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +6 -5
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
- 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-pending-destination-measurement.js +28 -1
- 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-prepare-transition-measurement.js → use-pre-transition-measurement.js} +7 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/constants.js +1 -2
- package/lib/commonjs/shared/constants.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/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 +0 -5
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +0 -3
- 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/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} +9 -9
- 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 +135 -31
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +8 -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/create-boundary-component.js +6 -5
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
- 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-pending-destination-measurement.js +29 -1
- 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-prepare-transition-measurement.js → use-pre-transition-measurement.js} +5 -3
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/module/shared/constants.js +1 -2
- package/lib/module/shared/constants.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/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 +1 -6
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +1 -4
- 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/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} +7 -7
- 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 +138 -34
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +7 -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/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -0
- 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-pending-destination-measurement.d.ts +14 -0
- 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-prepare-transition-measurement.d.ts → use-pre-transition-measurement.d.ts} +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/constants.d.ts +0 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/register-bounds.provider.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/types/bounds.types.d.ts +72 -0
- 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/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 +7 -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/create-boundary-component.tsx +6 -5
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +6 -1
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +28 -13
- package/src/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.ts → use-pre-transition-measurement.ts} +8 -5
- package/src/shared/constants.ts +0 -1
- package/src/shared/index.ts +2 -0
- package/src/shared/providers/register-bounds.provider.tsx +8 -1
- 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 +1 -11
- package/src/shared/stores/bounds/internals/resolver.ts +1 -9
- package/src/shared/stores/bounds/internals/state.ts +0 -98
- package/src/shared/types/bounds.types.ts +74 -0
- package/src/shared/types/index.ts +2 -0
- 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} +9 -9
- 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 +169 -61
- package/src/shared/utils/bounds/zoom/config.ts +9 -0
- package/src/shared/utils/bounds/zoom/math.ts +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-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-prepare-transition-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-prepare-transition-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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","clearRegistry","shouldClearSnapshot","shouldClearLink","registry","modify","state","tag","tagState","snapshotKey","snapshots","snapshot","i","linkStack","length","link","splice","clearPresence","shouldClearPresence","presence","tagEntries","entryScreenKey","entry","performClear","clear","screenKey","matchesScreenKey","source","destination","clearByAncestor","ancestorKey","ancestorKeys","includes","clearByBranch","branchNavigatorKey","_snapshotKey","navigatorKey","ancestorNavigatorKeys","matchesNavigatorKey","_entryScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,UAAU,GAAIC,MAA+B,IAAK;EACvD,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAcD,MAAME,aAAa,GAAGA,CACrBC,mBAAsC,EACtCC,eAA8B,KAC1B;EACJ,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;MACx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C,kBAAgC,EAAE;EACxD,SAAS;;EACT,IAAI,CAACA,kBAAkB,EAAE;EAEzBX,YAAY,CACX,CAACY,YAAY,EAAExB,QAAQ,KAAK;IAC3B,OACCA,QAAQ,CAACyB,YAAY,KAAKF,kBAAkB,KAC3CvB,QAAQ,CAAC0B,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAAI,KAAK,CAAC;EAEzE,CAAC,EACAnB,IAAI,IAAK;IACT,OACC,IAAAuB,6BAAmB,EAACvB,IAAI,CAACY,MAAM,EAAEO,kBAAkB,CAAC,IACpD,IAAAI,6BAAmB,EAACvB,IAAI,CAACa,WAAW,EAAEM,kBAAkB,CAAC;EAE3D,CAAC,EACD,CAACK,eAAe,EAAEjB,KAAK,KAAK;IAC3B,OACCA,KAAK,CAACc,YAAY,KAAKF,kBAAkB,KACxCZ,KAAK,CAACe,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAAI,KAAK,CAAC;EAEtE,CACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -34,7 +34,6 @@ function registerBoundaryPresence(tag, screenKey, ancestorKeys, boundaryConfig,
|
|
|
34
34
|
};
|
|
35
35
|
return state;
|
|
36
36
|
});
|
|
37
|
-
(0, _state.debugStoreSizeLog)(`registerBoundaryPresence(${tag},${screenKey})`);
|
|
38
37
|
}
|
|
39
38
|
function unregisterBoundaryPresence(tag, screenKey) {
|
|
40
39
|
"worklet";
|
|
@@ -61,7 +60,6 @@ function unregisterBoundaryPresence(tag, screenKey) {
|
|
|
61
60
|
delete state[tag];
|
|
62
61
|
return state;
|
|
63
62
|
});
|
|
64
|
-
(0, _state.debugStoreSizeLog)(`unregisterBoundaryPresence(${tag},${screenKey})`);
|
|
65
63
|
}
|
|
66
64
|
function hasBoundaryPresence(tag, screenKey) {
|
|
67
65
|
"worklet";
|
|
@@ -113,7 +111,6 @@ function setGroupActiveId(group, id) {
|
|
|
113
111
|
};
|
|
114
112
|
return state;
|
|
115
113
|
});
|
|
116
|
-
(0, _state.debugStoreSizeLog)(`setGroupActiveId(${group},${id})`);
|
|
117
114
|
}
|
|
118
115
|
function getGroupActiveId(group) {
|
|
119
116
|
"worklet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","
|
|
1
|
+
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EACVC,SAAoB,EACpBC,YAA0B,EAC1BC,cAA+B,EAC/BC,YAAqB,EACrBC,qBAAgC,EAC/B;EACD,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAsB;IAC3C,IAAIE,UAAU,GAAGD,YAAY,CAACT,GAAG,CAAC;IAClC,IAAI,CAACU,UAAU,EAAE;MAChBA,UAAU,GAAG,CAAC,CAAC;MACfD,YAAY,CAACT,GAAG,CAAC,GAAGU,UAAU;IAC/B;IACA,MAAMC,YAAY,GAAGD,UAAU,CAACT,SAAS,CAAC;IAE1CS,UAAU,CAACT,SAAS,CAAC,GAAG;MACvBW,KAAK,EAAE,CAACD,YAAY,EAAEC,KAAK,IAAI,CAAC,IAAI,CAAC;MACrCV,YAAY,EAAEA,YAAY,IAAIS,YAA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B;IACzCC,YAAY,CAACkB,KAAK,CAAC,GAAG;MACrBG,QAAQ,EAAEF;IACX,CAAC;IACD,OAAOpB,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASuB,gBAAgBA,CAACJ,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOE,aAAM,CAACf,KAAK,CAACa,KAAK,CAAC,EAAEG,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASE,SAASA,CAAA,EAAG;EACpB,SAAS;;EACT,OAAOH,aAAM;AACd","ignoreList":[]}
|
|
@@ -77,7 +77,6 @@ function registerSnapshot(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
|
|
|
77
77
|
};
|
|
78
78
|
return state;
|
|
79
79
|
});
|
|
80
|
-
(0, _state.debugStoreSizeLog)(`registerSnapshot(${tag},${screenKey})`);
|
|
81
80
|
}
|
|
82
81
|
function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
|
|
83
82
|
"worklet";
|
|
@@ -108,7 +107,6 @@ function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, naviga
|
|
|
108
107
|
trimLinkHistory(tagState);
|
|
109
108
|
return state;
|
|
110
109
|
});
|
|
111
|
-
(0, _state.debugStoreSizeLog)(`setLinkSource(${tag},${screenKey})`);
|
|
112
110
|
}
|
|
113
111
|
function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
|
|
114
112
|
"worklet";
|
|
@@ -148,7 +146,6 @@ function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
|
|
|
148
146
|
};
|
|
149
147
|
return state;
|
|
150
148
|
});
|
|
151
|
-
(0, _state.debugStoreSizeLog)(`updateLinkSource(${tag},${screenKey})`);
|
|
152
149
|
}
|
|
153
150
|
const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
|
|
154
151
|
"worklet";
|
|
@@ -199,7 +196,6 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
|
|
|
199
196
|
};
|
|
200
197
|
return state;
|
|
201
198
|
});
|
|
202
|
-
(0, _state.debugStoreSizeLog)(`setLinkDestination(${tag},${screenKey})`);
|
|
203
199
|
}
|
|
204
200
|
function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
|
|
205
201
|
"worklet";
|
|
@@ -237,7 +233,6 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
|
|
|
237
233
|
};
|
|
238
234
|
return state;
|
|
239
235
|
});
|
|
240
|
-
(0, _state.debugStoreSizeLog)(`updateLinkDestination(${tag},${screenKey})`);
|
|
241
236
|
}
|
|
242
237
|
function getActiveLink(tag, screenKey) {
|
|
243
238
|
"worklet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","debugStoreSizeLog","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","findLatestSourceIndex","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAOA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;E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}
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","findLatestSourceIndex","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,GAAIC,QAAkB,IAAK;EAC/C,SAAS;;E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f,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIuB,CAAC,GAAGR,KAAK,CAACf,MAAM,GAAG,CAAC,EAAEuB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACJ,WAAW,EAAE1B,SAAS,CAAC,EAAE,OAAO,IAAI;EACnE;EAEA,OAAO,KAAK;AACb","ignoreList":[]}
|
|
@@ -73,9 +73,6 @@ function resolveTransitionPair(tag, context) {
|
|
|
73
73
|
const destinationStyles = matchedLink?.destination?.styles ?? null;
|
|
74
74
|
const sourceScreenKey = matchedLink?.source?.screenKey ?? null;
|
|
75
75
|
const destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
|
|
76
|
-
if (!sourceBounds || !destinationBounds) {
|
|
77
|
-
(0, _state.debugResolverLog)(`unresolved tag=${tag} entering=${context.entering ? 1 : 0} source=${sourceBounds ? 1 : 0} destination=${destinationBounds ? 1 : 0} pending=${usedPending ? 1 : 0}`);
|
|
78
|
-
}
|
|
79
76
|
return {
|
|
80
77
|
sourceBounds,
|
|
81
78
|
destinationBounds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey"
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACG,WAAW,EAAED,SAAS,CACpE,CAAC;AACF;AAEA,SAASG,yBAAyBA,CACjCX,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IAAK,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACM,MAAM,EAAEJ,SAAS,CACxE,CAAC;AACF;AAEA,SAASK,uBAAuBA,CAC/Bb,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAA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,uBAAuB,CACpCb,QAAQ,EACRgB,OAAO,CAACM,gBACT,CAAC;QACDF,WAAW,GAAG,CAAC,CAACD,WAAW;MAC5B;IACD;EACD;EAEA,MAAMM,YAAY,GAAGN,WAAW,EAAEP,MAAM,EAAEc,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGR,WAAW,EAAEV,WAAW,EAAEiB,MAAM,IAAI,IAAI;EAClE,MAAME,YAAY,GAAGT,WAAW,EAAEP,MAAM,EAAEiB,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGX,WAAW,EAAEV,WAAW,EAAEoB,MAAM,IAAI,IAAI;EAClE,MAAME,eAAe,GAAGZ,WAAW,EAAEP,MAAM,EAAEJ,SAAS,IAAI,IAAI;EAC9D,MAAMwB,oBAAoB,GAAGb,WAAW,EAAEV,WAAW,EAAED,SAAS,IAAI,IAAI;EAExE,OAAO;IACNiB,YAAY;IACZE,iBAAiB;IACjBC,YAAY;IACZE,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBZ;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -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":[]}
|
|
@@ -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,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMO,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMK,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,OAAO,IAAAC,0CAAoB,EAACH,IAAI,EAAEH,QAAQ,EAAEE,KAAK,CAACK,QAAQ,EAAEH,QAAQ,EAAE;MACrEH;IACD,CAAC,CAAC;EACH,CAAC;EAED,MAAMO,6BAA6B,GAAGA,CACrCT,GAAY,EACZC,QAAkC,EAClCS,SAAiB,EACjBR,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,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,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,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBN,GAAG,IAAIE,gBAAgB,GACpBK,kBAAU,CAACC,iBAAiB,CAACR,GAAG,EAAEE,gBAAgB,CAAC,GACnD,IAAI;EAER,MAAMO,QAAQ,GAAG;IAChB,GAAGC,iCAAsB;IACzB,IAAIJ,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIP,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEG,GAAG,IAAI,EAAE;IACbF;EACD,CAAC;EAED,OAAOW,QAAQ;AAChB,CAAC;AAACE,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA;AAEF,MAAMiB,qBAAqB,GAAGA,CAACd,KAAc,EAAED,EAAY,KAAK;EAC/D,SAAS;;EACT,IAAI,CAACC,KAAK,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE;EAEvC,MAAMgB,YAAY,GAAGC,MAAM,CAACjB,EAAE,CAAC;EAE/B,IAAIU,kBAAU,CAACQ,gBAAgB,CAACjB,KAAK,CAAC,KAAKe,YAAY,EAAE;EAEzDN,kBAAU,CAACS,gBAAgB,CAAClB,KAAK,EAAEe,YAAY,CAAC;AACjD,CAAC;AAEM,MAAMI,kBAAkB,GAAGA,CAA0B;EAC3DrB,KAAK;EACLsB,OAAO;EACPC,YAAY;EACZC,iBAAiB,GAAG;AACiB,CAAC,KAA6B;EACnE,SAAS;;EAET,IAAIA,iBAAiB,EAAE;IACtBR,qBAAqB,CAACM,OAAO,CAACpB,KAAK,EAAEoB,OAAO,CAACrB,EAAE,CAAC;EACjD;EAEA,MAAMY,QAAQ,GAAGd,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEqB,OAAO,CAACrB,EAAE;IACdC,KAAK,EAAEoB,OAAO,CAACpB,KAAK;IACpBC,SAAS,EAAEmB;EACZ,CAAC,CAAC;EAEF,OAAO,IAAAG,2BAAkB,EACxB;IACCxB,EAAE,EAAEY,QAAQ,CAACZ,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
|