Skip to content

Documentation / @ripl/canvas / GradientBounds

Type Alias: GradientBounds

GradientBounds = object

Defined in: canvas/src/helpers.ts:26

Bounding rectangle used to resolve gradient coordinates.

Properties

height

height: number

Defined in: canvas/src/helpers.ts:34

Height of the bounding rectangle, in pixels.


width

width: number

Defined in: canvas/src/helpers.ts:32

Width of the bounding rectangle, in pixels.


x

x: number

Defined in: canvas/src/helpers.ts:28

X coordinate of the rectangle's top-left corner.


y

y: number

Defined in: canvas/src/helpers.ts:30

Y coordinate of the rectangle's top-left corner.