SVGComponentTransferFunctionElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

The SVGComponentTransferFunctionElement interface defines a base interface used by the component transfer function interfaces.

EventTarget Node Element SVGElement SVGComponentTransferFunctionElement

Constants

NameValueDescription
SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN0 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_IDENTITY1Corresponds to the value identity.
SVG_FECOMPONENTTRANSFER_TYPE_TABLE2Corresponds to the value table.
SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE3Corresponds to the value discrete.
SVG_FECOMPONENTTRANSFER_TYPE_LINEAR4Corresponds to the value linear.
SVG_FECOMPONENTTRANSFER_TYPE_GAMMA5Corresponds to the value gamma.

Instance properties

This interface also inherits properties from its parent interface, SVGElement.

SVGComponentTransferFunctionElement.typeRead only

An SVGAnimatedEnumeration corresponding to the type attribute of the given element. It takes one of the SVG_FECOMPONENTTRANSFER_TYPE_* constants defined on this interface.

SVGComponentTransferFunctionElement.tableValuesRead only

An SVGAnimatedNumberList corresponding to the tableValues attribute of the given element.

SVGComponentTransferFunctionElement.slopeRead only

An SVGAnimatedNumber corresponding to the slope attribute of the given element.

SVGComponentTransferFunctionElement.interceptRead only

An SVGAnimatedNumber corresponding to the intercept attribute of the given element.

SVGComponentTransferFunctionElement.amplitudeRead only

An SVGAnimatedNumber corresponding to the amplitude attribute of the given element.

SVGComponentTransferFunctionElement.exponentRead only

An SVGAnimatedNumber corresponding to the exponent attribute of the given element.

SVGComponentTransferFunctionElement.offsetRead only

An SVGAnimatedNumber corresponding to the offset attribute of the given element.

Instance methods

This interface does not provide any specific methods, but implements those of its parent, SVGElement.

Specifications

Specification
Filter Effects Module Level 1
# InterfaceSVGComponentTransferFunctionElement

Browser compatibility

See also