Skip to content

Point

reference
1 min readUpdated

Kind: Type

Source: atloria-monorepo/packages/types/src/models/screenshot-annotation.ts

Screenshot annotation model

The non-destructive overlay contract shared between the capture/emit side (screenshot-worker's annotation-emitter) and the render side (the web viewer's ScreenshotAnnotation). Every coordinate is a PERCENTAGE (0-100) of the natural image dimensions, top-left origin — so the overlay scales with a responsive image and the real screenshot pixels are never modified.

See tasks/screenshot-annotation-contract.md for the full spec.

Definition

ts
{ x: number; y: number }

Was this page helpful?

Download as PDF