Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created May 2, 2021 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagda1/6eaba4e3f87847e3ace29e126d7a4981 to your computer and use it in GitHub Desktop.
Save dagda1/6eaba4e3f87847e3ace29e126d7a4981 to your computer and use it in GitHub Desktop.
export type PreserveAspectRatioAlignment =
| 'xMinYMin'
| 'xMidYMin'
| 'xMaxYMin'
| 'xMinYMid'
| 'xMidYMid'
| 'xMaxYMid'
| 'xMinYMax'
| 'xMidYMax'
| 'xMaxYMax';
export type MeetOrSlice = 'meet' | 'slice';
export type PreserveAspectRatio = `${PreserveAspectRatioAlignment} ${MeetOrSlice}`;
// distributes
// "xMinYMin meet" | "xMinYMin slice" | "xMidYMin meet" | "xMidYMin slice" etc. etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment