feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)
This commit is contained in:
1 parent
3d81d2c717
commit
6b8990c55e
239 files changed
+9194
-1354
No files matched your search
@@ -32,11 +32,17 @@ describe('rectForRatio', () => {
|
||||
|
||||
describe('computeOutputSize', () => {
|
||||
it('never upscales past the crop width', () => {
|
||||
expect(computeOutputSize(640, 640, 1600)).toEqual({ width: 640, height: 640 })
|
||||
expect(computeOutputSize(640, 640, 1600)).toEqual({
|
||||
width: 640,
|
||||
height: 640,
|
||||
})
|
||||
})
|
||||
|
||||
it('caps to the width preset when the crop is larger', () => {
|
||||
expect(computeOutputSize(4032, 3024, 1600)).toEqual({ width: 1600, height: 1200 })
|
||||
expect(computeOutputSize(4032, 3024, 1600)).toEqual({
|
||||
width: 1600,
|
||||
height: 1200,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -177,10 +183,16 @@ describe('rotateRectBySteps', () => {
|
||||
|
||||
describe('rotatedDimensions', () => {
|
||||
it('swaps dimensions for a 90deg rotation', () => {
|
||||
expect(rotatedDimensions(4032, 3024, 90)).toEqual({ width: 3024, height: 4032 })
|
||||
expect(rotatedDimensions(4032, 3024, 90)).toEqual({
|
||||
width: 3024,
|
||||
height: 4032,
|
||||
})
|
||||
})
|
||||
|
||||
it('keeps dimensions for a 180deg rotation', () => {
|
||||
expect(rotatedDimensions(4032, 3024, 180)).toEqual({ width: 4032, height: 3024 })
|
||||
expect(rotatedDimensions(4032, 3024, 180)).toEqual({
|
||||
width: 4032,
|
||||
height: 3024,
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user