Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

SVGGradientElement

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

SVG gradient interface

The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.

Interface overview

Also implement SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes
Methods None
Properties
Constants
  • SVG_SPREADMETHOD_UNKNOWN = 0
  • SVG_SPREADMETHOD_PAD = 1
  • SVG_SPREADMETHOD_REFLECT = 2
  • SVG_SPREADMETHOD_REPEAT = 3
Normative document SVG 1.1 (2nd Edition)

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.

Properties

Name Type Description
gradientUnits SVGAnimatedTransformList Corresponds to attribute gradientUnits on the given element. Takes one of the constants defined in SVGUnitTypes.
gradientTransform SVGAnimatedTransformList Corresponds to attribute gradientTransform on the given element.
spreadMethod SVGAnimatedTransformList Corresponds to attribute spreadMethod on the given element. One of the Spread Method Types defined on this interface.

Methods

The SVGGradientElement interface do not provide any specific methods.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? ? ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported ? ? ? ?

 

文档标签和贡献者

 此页面的贡献者: fscholz, kscarfone, Sheppy, pa7, Jeremie
 最后编辑者: fscholz,