Position

Interfacein image-optimizer@fastly/js-compute 4.0.0View source

The position of a region. Provide exactly one of x/offsetX and exactly one of y/offsetY.

Properties

x

number | PercentageoptionalView source

Absolute x position as integer pixels or percentage string.

offsetX

numberoptionalView source

X offset as a percentage number.

y

number | PercentageoptionalView source

Absolute y position as integer pixels or percentage string.

offsetY

numberoptionalView source

Y offset as a percentage number.