| 46 | const animationDuration = 200 |
| 47 | |
| 48 | function getSlideAnimationStartingVector(anchorSide?: AnchorSide): {x: number; y: number} { |
| 49 | if (anchorSide?.endsWith('bottom')) { |
| 50 | return {x: 0, y: -1} |
| 51 | } else if (anchorSide?.endsWith('top')) { |
| 52 | return {x: 0, y: 1} |
| 53 | } else if (anchorSide?.endsWith('right')) { |
| 54 | return {x: -1, y: 0} |
| 55 | } else if (anchorSide?.endsWith('left')) { |
| 56 | return {x: 1, y: 0} |
| 57 | } |
| 58 | |
| 59 | return {x: 0, y: 0} |
| 60 | } |
| 61 | |
| 62 | export const StyledOverlay = styled.div<StyledOverlayProps>` |
| 63 | background-color: ${get('colors.canvas.overlay')}; |