SVG
The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
Static properties
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.
- : Corresponds to value
SVG_SPREADMETHOD_REFLECT(2)- : Corresponds to value
reflect.
- : Corresponds to value
SVG_SPREADMETHOD_REPEAT(3)- : Corresponds to value
repeat.
- : Corresponds to value
Instance properties
This interface also inherits properties from its parent, SVGElement.
- SVGGradientElement.href
- : An SVGAnimatedString corresponding to the href or xlink:href attribute of the given element.
- SVGGradientElement.gradientUnits
- : An SVGAnimatedEnumeration corresponding to the gradientUnits attribute on the given element. This property takes one of the constants defined in SVGUnitTypes.
- SVGGradientElement.gradientTransform
- : An SVGAnimatedTransformList corresponding to the gradientTransform attribute on the given element.
- SVGGradientElement.spreadMethod
- : An SVGAnimatedEnumeration corresponding to the spreadMethod 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
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
