File size: 2,339 Bytes
5724388
3b81d2d
 
 
 
 
5724388
3b81d2d
 
 
 
 
 
 
5724388
 
 
 
3b81d2d
 
5724388
 
 
 
3b81d2d
 
5724388
 
 
 
3b81d2d
 
5724388
 
 
 
3b81d2d
 
5724388
 
 
 
3b81d2d
 
 
 
5724388
 
 
 
3b81d2d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { ClapImageRatio } from "@aitube/clap"

import { LayoutName } from "."

export type LayoutSettings = {
  panel: number
  orientation: ClapImageRatio
  width: number
  height: number
}

export const layouts: Record<LayoutName, LayoutSettings[]> = {
  random: [],
  Layout0: [
    { panel: 0, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
    { panel: 1, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
    { panel: 2, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
    { panel: 3, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
  ],
  Layout1: [
    { panel: 0, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
    { panel: 1, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 2, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 3, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
  ],
  Layout2: [
    { panel: 0, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 1, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 2, orientation: ClapImageRatio.PORTRAIT, width: 512, height: 1024 },
    { panel: 3, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
  ],
  Layout3: [
    { panel: 0, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
    { panel: 1, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 2, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 3, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
  ],
  Layout4: [
    { panel: 0, orientation: ClapImageRatio.PORTRAIT, width: 512, height: 1024 },
    { panel: 1, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 768 },
    { panel: 2, orientation: ClapImageRatio.PORTRAIT, width: 768, height: 1024 },
    { panel: 3, orientation: ClapImageRatio.LANDSCAPE, width: 1024, height: 512 },
  ],
}
/*
Layout5: [
  { panel: 0, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
  { panel: 1, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
  { panel: 2, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
  { panel: 3, orientation: ClapImageRatio.SQUARE, width: 1024, height: 1024 },
]
*/