Skip to content

Type Alias: Sizing

ts
type Sizing = "fill" | "content";

Defined in: packages/ai-image-editor/src/widgets/ai-editor/ui/UcAiImageEditor.ts:129

How the editor's own box is sized.

  • fill (default): the host is width/height: 100% — the container you give it drives everything.
  • content: fix the width (and optionally min-height / max-height) with plain CSS on the host; the editor derives its own height from the active aspect ratio within those limits, letterboxing the canvas when clamped.