Skip to content

Offset

Offset: number | PointLike | { [_ in PositionAnchor]: PointLike }

A pixel offset specified as:

  • a single number specifying a distance from the location
  • a PointLike specifying a constant offset
  • an object of Points specifying an offset for each anchor position

Negative offsets indicate left and up.

Source

src/ui/popup.ts:33