ISSUE-045 - Chyron Body - Timing improvements. More comments. Small corrections.

This commit is contained in:
Kyle Geib committed 2022-02-14 11:23:34 -05:00
1 parent e6312f67e0
commit bab056394c
4 files changed
+21 -12

No files matched your search

+10
View File
@@ -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,