svgen.display |
index /home/vkottler/src/vkottler/workspace/svgen/svgen/display.py |
A module for working with common display assets.
Classes | ||||||||||
|
Functions | ||
|
Data | ||
COMMON_RATIOS = ['16:9', '16:10', '4:3', '5:4', '1:1', '256:135', '32:9', '21:9', '3:2', '4:1'] COMMON_SIZES = {'1200:480': [AspectRatio(width=1200, height=480, final=True)], '16:10': [AspectRatio(width=1280, height=800, final=True), AspectRatio(width=1920, height=1200, final=True)], '16:9': [AspectRatio(width=1366, height=768, final=True), AspectRatio(width=1920, height=1080, final=True), AspectRatio(width=2560, height=1440, final=True)], '17:9': [AspectRatio(width=4096, height=2160, final=True)], '189:124': [AspectRatio(width=3024, height=1984, final=True)], '1:1': [AspectRatio(width=512, height=512, final=True), AspectRatio(width=1024, height=1024, final=True), AspectRatio(width=1920, height=1920, final=True), AspectRatio(width=16, height=16, final=True), AspectRatio(width=24, height=24, final=True), AspectRatio(width=32, height=32, final=True), AspectRatio(width=64, height=64, final=True), AspectRatio(width=128, height=128, final=True), AspectRatio(width=256, height=256, final=True)], '205:78': [AspectRatio(width=820, height=312, final=True)], '21:9': [AspectRatio(width=2560, height=1080, final=True), AspectRatio(width=3440, height=1440, final=True)], '2560:423': [AspectRatio(width=2560, height=423, final=True)], '32:9': [AspectRatio(width=3840, height=1080, final=True), AspectRatio(width=5120, height=1440, final=True)], ...} DEFAULT_DELIM = ':' ICON_SIZES = [16, 24, 32, 64, 128, 256] Iterator = typing.Iterator List = typing.List Union = typing.Union |