SVGComponentTransferFunctionElement
The SVGComponentTransferFunctionElement interface defines a base interface used by the component transfer function interfaces.
Constants
| Name | Value | Description |
|---|---|---|
SVG_FECOMPONENTTRANSFER_TYPE_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_FECOMPONENTTRANSFER_TYPE_IDENTITY | 1 | Corresponds to the value identity. |
SVG_FECOMPONENTTRANSFER_TYPE_TABLE | 2 | Corresponds to the value table. |
SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE | 3 | Corresponds to the value discrete. |
SVG_FECOMPONENTTRANSFER_TYPE_LINEAR | 4 | Corresponds to the value linear. |
SVG_FECOMPONENTTRANSFER_TYPE_GAMMA | 5 | Corresponds to the value gamma. |
Properties
This interface also inherits properties from its parent interface, SVGElement.
-
SVGComponentTransferFunctionElement.typeRead only -
An
SVGAnimatedEnumerationcorresponding to thetypeattribute of the given element. It takes one of theSVG_FECOMPONENTTRANSFER_TYPE_*constants defined on this interface. -
SVGComponentTransferFunctionElement.tableValuesRead only -
An
SVGAnimatedNumberListcorresponding to thetableValuesattribute of the given element. -
SVGComponentTransferFunctionElement.slopeRead only -
An
SVGAnimatedNumbercorresponding to theslopeattribute of the given element. -
SVGComponentTransferFunctionElement.interceptRead only -
An
SVGAnimatedNumbercorresponding to theinterceptattribute of the given element. -
SVGComponentTransferFunctionElement.amplitudeRead only -
An
SVGAnimatedNumbercorresponding to theamplitudeattribute of the given element. -
SVGComponentTransferFunctionElement.exponentRead only -
An
SVGAnimatedNumbercorresponding to theexponentattribute of the given element. -
SVGComponentTransferFunctionElement.offsetRead only -
An
SVGAnimatedNumbercorresponding to theoffsetattribute of the given element.
Methods
This interface does not provide any specific methods, but implements those of its parent, SVGElement.
Specifications
| Specification |
|---|
| Filter Effects Module Level 2 (Filter Effects 2) # InterfaceSVGComponentTransferFunctionElement |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGComponentTransferFunctionElement |
5 |
≤18 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
amplitude |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
exponent |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
intercept |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
offset |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
slope |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
tableValues |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
type |
5 |
12 |
21 |
10 |
≤12.1 |
6 |
≤37 |
18 |
21 |
≤12.1 |
6 |
1.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement