Skip to content

Commit

Permalink
feat: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshunnn committed Jan 7, 2025
1 parent 4ea37af commit 9405585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const _PickerViewColumnItem: React.FC<PickerColumnItemProps> = ({
return {
opacity: interpolate(offsetYShared.value, inputRange, facesShared.value.map((x) => x.opacity), Extrapolation.CLAMP),
transform: [
{ rotateX: interpolate(offsetYShared.value, inputRange, facesShared.value.map((x) => x.deg), Extrapolation.CLAMP) + 'deg' },
{ translateY: interpolate(offsetYShared.value, inputRange, facesShared.value.map((x) => x.offsetY), Extrapolation.EXTEND) },
{ rotateX: interpolate(offsetYShared.value, inputRange, facesShared.value.map((x) => x.deg), Extrapolation.CLAMP) + 'deg' },
{ scale: interpolate(offsetYShared.value, inputRange, facesShared.value.map((x) => x.scale), Extrapolation.EXTEND) }
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ export const createFaces = (
for (let i = 0; i < index; i++) {
offset += freeSpaces[i]
}
if (index === 0) {
offset *= 0.6
}
return offset
}) as unknown as T
return [screenHeights, offsets]
Expand All @@ -67,9 +64,7 @@ export const createFaces = (
const map: Record<number, number> = {
0: 0,
1: 0.8,
2: 0.9 // 0.35
// 3: 0.45, // 0.45
// 4: 0.5 // 0.5
2: 0.9
}
return map[index] ?? Math.min(1, map[2] + index * 0.05)
}
Expand Down

0 comments on commit 9405585

Please sign in to comment.