LinearGradientElementGradientUnitsAttribute: gradientUnits

Description Available Attribute Values Used by the Elements

Description

Governs whether to interpret the coordinates of x1, y1, x2, y2 as either objectBoundingBox or userSpaceOnUse.

Available Attribute Values

The value can be either of the one of the following:

'userSpaceOnUse'

Specifies that the gradient values for 'x1', 'y1', 'x2' and 'y2' are given in terms of the user coordinate system in effect at the time when the gradient element is referenced.

'objectBoundingBox'

Specifies that the gradient values for 'x1', 'y1', 'x2' and 'y2' are given in terms fractions (or percentages) of the bounding box of the target element to which the gradient is applied. In this case c(0, 0) is the coordinates of the upper left-hand corner of the bounding, and c(1, 0) is the coordinates of the lower right-hand corner of the bounding box.

Used by the Elements

Gradient Elements

linearGradient


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.