mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 15:04:59 -05:00
fix(ui): aspect ratios out of order
This commit is contained in:
@@ -433,7 +433,7 @@ export type LoRA = {
|
|||||||
|
|
||||||
export type EphemeralProgressImage = { sessionId: string; image: ProgressImage };
|
export type EphemeralProgressImage = { sessionId: string; image: ProgressImage };
|
||||||
|
|
||||||
export const zAspectRatioID = z.enum(['Free', '21:9', '9:21', '16:9', '3:2', '4:3', '1:1', '3:4', '2:3', '9:16']);
|
export const zAspectRatioID = z.enum(['Free', '21:9', '16:9', '3:2', '4:3', '1:1', '3:4', '2:3', '9:16', '9:21']);
|
||||||
export type AspectRatioID = z.infer<typeof zAspectRatioID>;
|
export type AspectRatioID = z.infer<typeof zAspectRatioID>;
|
||||||
export const isAspectRatioID = (v: unknown): v is AspectRatioID => zAspectRatioID.safeParse(v).success;
|
export const isAspectRatioID = (v: unknown): v is AspectRatioID => zAspectRatioID.safeParse(v).success;
|
||||||
export const ASPECT_RATIO_MAP: Record<Exclude<AspectRatioID, 'Free'>, { ratio: number; inverseID: AspectRatioID }> = {
|
export const ASPECT_RATIO_MAP: Record<Exclude<AspectRatioID, 'Free'>, { ratio: number; inverseID: AspectRatioID }> = {
|
||||||
@@ -469,7 +469,7 @@ export const CHATGPT_ASPECT_RATIOS: Record<ChatGPT4oAspectRatio, Dimensions> = {
|
|||||||
'2:3': { width: 1024, height: 1536 },
|
'2:3': { width: 1024, height: 1536 },
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const zFluxKontextAspectRatioID = z.enum(['21:9', '4:3', '1:1', '3:4', '9:21', '16:9', '9:16']);
|
export const zFluxKontextAspectRatioID = z.enum(['21:9', '16:9', '4:3', '1:1', '3:4', '9:16', '9:21']);
|
||||||
type FluxKontextAspectRatio = z.infer<typeof zFluxKontextAspectRatioID>;
|
type FluxKontextAspectRatio = z.infer<typeof zFluxKontextAspectRatioID>;
|
||||||
export const isFluxKontextAspectRatioID = (v: unknown): v is z.infer<typeof zFluxKontextAspectRatioID> =>
|
export const isFluxKontextAspectRatioID = (v: unknown): v is z.infer<typeof zFluxKontextAspectRatioID> =>
|
||||||
zFluxKontextAspectRatioID.safeParse(v).success;
|
zFluxKontextAspectRatioID.safeParse(v).success;
|
||||||
|
|||||||
Reference in New Issue
Block a user