feat: scale up small exports with fancy background

This commit is contained in:
Arnošt Pleskot 2023-08-15 23:41:52 +02:00
parent d27856a967
commit 4c8cf9c91c
No known key found for this signature in database
6 changed files with 64 additions and 14 deletions

View file

@ -4,6 +4,7 @@ import {
CURSOR_TYPE,
DEFAULT_VERSION,
EVENT,
EXPORT_SCALES,
FONT_FAMILY,
isDarwin,
MIME_TYPES,
@ -1002,3 +1003,7 @@ export const isRenderThrottlingEnabled = (() => {
return false;
};
})();
export const defaultExportScale = EXPORT_SCALES.includes(devicePixelRatio)
? devicePixelRatio
: 1;