Skip to content

ScreenshotClipRecord

ScreenshotClipRecord = object

Defined in: clip.ts:63

A clip as recorded into renderOptions.screenshot.clip. The renderer derives the effective clip by expanding box by padding (CSS px on each side) and clamping to the captured viewport.

source drives Studio editability:

  • 'locator': box is the element’s bounding box and is locked (it re-resolves from the locator on every capture). Only padding is editable in Studio.
  • 'region': box is a free rectangle (an explicit region, with any padding already folded in) and is fully editable in Studio; padding is zero.

box: ScreenshotClip

Defined in: clip.ts:64


padding: ResolvedClipPadding

Defined in: clip.ts:65


source: "locator" | "region"

Defined in: clip.ts:66