Skip to content

Media

  • screenshot(options?)
  • captureViewport(options?)
  • captureElement(selector, options?)
  • captureRegion(x, y, width, height, options?)

Capture the visible area of the page.

Capture the bounds of a single element.

Capture an arbitrary rectangle on the page.

The current capture layer does not expose a dedicated full-page screenshot API. If you need a single page-long image, capture multiple viewport slices and stitch them externally.

The media layer keeps capture behavior focused on fast screenshots and clipped captures.