jbilcke-hf's picture
jbilcke-hf HF staff
upgrade clap
5724388
raw
history blame
2.34 kB
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 },
]
*/