diff options
| author | eleanor-park <eleanor_park@brown.edu> | 2025-01-02 01:13:50 -0500 |
|---|---|---|
| committer | eleanor-park <eleanor_park@brown.edu> | 2025-01-02 01:13:50 -0500 |
| commit | 383b0487d5268bd860e514feddf09f4f3eb2fe3f (patch) | |
| tree | aacfb8877314bad5a8af850411b1373e5d0f86bd /src/client/views/smartdraw/FireflyConstants.ts | |
| parent | 9416091f902ece81f8e0b4ea9564fa260a411c88 (diff) | |
made drawing fill automatically size images
Diffstat (limited to 'src/client/views/smartdraw/FireflyConstants.ts')
| -rw-r--r-- | src/client/views/smartdraw/FireflyConstants.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/client/views/smartdraw/FireflyConstants.ts b/src/client/views/smartdraw/FireflyConstants.ts new file mode 100644 index 000000000..f51305fba --- /dev/null +++ b/src/client/views/smartdraw/FireflyConstants.ts @@ -0,0 +1,20 @@ +export enum FireflyImageDimensions { + Square = 'square', + Landscape = 'landscape', + Portrait = 'portrait', + Widescreen = 'widescreen', +} + +export const FireflyDimensionsMap = { + square: { width: 2048, height: 2048 }, + landscape: { width: 2304, height: 1792 }, + portrait: { width: 1792, height: 2304 }, + widescreen: { width: 2688, height: 1536 }, +}; + +export const AspectRatioLimits = { + square: 1, + landscape: 1.167, + portrait: 0.875, + widescreen: 1.472, +}; |
