Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

TextFit ​

Defined in: src/style/style_image.ts:37

Enumeration of possible values for StyleImageMetadata.textFitWidth and textFitHeight.

Enumeration Members ​

proportional ​

proportional: "proportional"

Defined in: src/style/style_image.ts:52

The image will be resized on the specified axis to fit the content rectangle to the target text and will resize the other axis to maintain the aspect ratio of the content rectangle.


stretchOnly ​

stretchOnly: "stretchOnly"

Defined in: src/style/style_image.ts:47

The image will be resized on the specified axis to fit the content rectangle to the target text, but will not fall below the aspect ratio of the original content rectangle if the other axis is set to proportional.


stretchOrShrink ​

stretchOrShrink: "stretchOrShrink"

Defined in: src/style/style_image.ts:42

The image will be resized on the specified axis to tightly fit the content rectangle to target text. This is the same as not being defined.