diff --git a/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx b/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx index 11cb258..0526663 100644 --- a/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx +++ b/src/components/BroadcastGraphics/Chyrons/Driver/ChyronDriver.tsx @@ -219,16 +219,16 @@ export function ChyronDriver({ > ` - position: relative; - width: ${({ width }) => `${width}px`}; - height: ${({ height }) => `${height}px`}; - `, -); +export const AnimatedBaseContainer = animated(styled.div` + position: relative; + width: ${({ width }) => `${width}px`}; + height: ${({ height }) => `${height}px`}; +`); AnimatedBaseContainer.displayName = "AnimatedBaseContainer"; const BaseShape = styled.div` @@ -87,6 +85,7 @@ export const BaseLayout = styled(BaseShape)` ${({ transitionProps }) => commonTransition(transitionProps)} `; +BaseLayout.displayName = "BaseLayout"; type TeamColorBarProps = { color: string, diff --git a/src/components/Workspaces/WorkspaceControls/WorkspaceControls.tsx b/src/components/Workspaces/WorkspaceControls/WorkspaceControls.tsx index 2d8b767..26062db 100644 --- a/src/components/Workspaces/WorkspaceControls/WorkspaceControls.tsx +++ b/src/components/Workspaces/WorkspaceControls/WorkspaceControls.tsx @@ -41,7 +41,7 @@ export const WorkspaceControls = ( /> {showAnimationSpeedSelector && ( `x${value}`} onChange={index => diff --git a/src/utils/styling.ts b/src/utils/styling.ts index 8ddfcd3..de184de 100644 --- a/src/utils/styling.ts +++ b/src/utils/styling.ts @@ -71,6 +71,16 @@ export function commonTransition(propsArray: TransitionArgs[]) { ); } +/** + * Provides the x, y coordinates of a six point polygon for use in a clip-path + * mask. By taking a fraction to indicate the progress through the animation it + * will return the six coordinates that will generate a wipe effect. + * @param width element width in pixels + * @param height element height in pixels + * @param progress fraction from 0 to 1 + * @param outlineThickness the expected max width of the outline + * @returns + */ export function outlineClipPath( width: Px, height: Px,