Skip to content

Worksheet Pictures ​

PixelAnchor ​

type

The two shapes WorksheetPictures.add accepts, in caller-facing pixel units.

ts
type PixelAnchor =
  | {readonly tl: AnchorPoint; readonly br: AnchorPoint; readonly editAs?: ImageEditAs}
  | {readonly tl: AnchorPoint; readonly ext: {readonly width: number; readonly height: number}};

Released under the MIT License.