Skip to content

Documentation / @ripl/core / GradientBounds

Type Alias: GradientBounds ​

GradientBounds = object

Defined in: packages/core/src/gradient/bounds.ts:6

Bounding rectangle a gradient's coordinates are resolved against.

Properties ​

height ​

height: number

Defined in: packages/core/src/gradient/bounds.ts:14

Height of the bounding rectangle, in pixels.


width ​

width: number

Defined in: packages/core/src/gradient/bounds.ts:12

Width of the bounding rectangle, in pixels.


x ​

x: number

Defined in: packages/core/src/gradient/bounds.ts:8

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


y ​

y: number

Defined in: packages/core/src/gradient/bounds.ts:10

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