SVGGradientElement
The SVGGradient
interface is a base interface used by SVGLinearGradientElement
and SVGRadialGradientElement
.
Constants
Name | Value | Description |
---|---|---|
SVG_SPREADMETHOD_UNKNOWN |
0 | The type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. |
SVG_SPREADMETHOD_PAD |
1 | Corresponds to value pad. |
SVG_SPREADMETHOD_REFLECT |
2 | Corresponds to value reflect. |
SVG_SPREADMETHOD_REPEAT |
3 | Corresponds to value repeat. |
Instance properties
This interface also inherits properties from its parent, SVGElement
.
SVGGradientElement.href
Read only-
An
SVGAnimatedString
corresponding to thehref
orxlink:href
Deprecated attribute of the given element. SVGGradientElement.gradientUnits
Read only-
An
SVGAnimatedEnumeration
corresponding to thegradientUnits
attribute on the given element. This property takes one of the constants defined inSVGUnitTypes
. SVGGradientElement.gradientTransform
Read only-
An
SVGAnimatedTransformList
corresponding to thegradientTransform
attribute on the given element. SVGGradientElement.spreadMethod
Read only-
An
SVGAnimatedEnumeration
corresponding to thespreadMethod
attribute on the given element. One of the spread method types defined on this interface.
Instance methods
This interface does not provide any specific methods, but implements those of its parent, SVGElement
.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 2 # InterfaceSVGGradientElement |
Browser compatibility
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.