SVGFilterElement

The SVGFilterElement interface provides access to the properties of <filter> elements, as well as methods to manipulate them.

Properties

SVGFilterElement.filterUnits Read only
An SVGAnimatedEnumeration that corresponds to the filterUnits attribute of the given <filter> element. Takes one of the constants defined in SVGUnitTypes.
SVGFilterElement.primitiveUnits Read only
An SVGAnimatedEnumeration that corresponds to the primitiveUnits attribute of the given <filter> element. Takes one of the constants defined in SVGUnitTypes.
SVGFilterElement.x Read only
An SVGAnimatedLength that corresponds to the x attribute on the given <filter> element.
SVGFilterElement.y Read only
An SVGAnimatedLength that corresponds to the y attribute of the given <filter> element.
SVGFilterElement.width Read only
An SVGAnimatedLength that corresponds to the width attribute of the given <filter> element.
SVGFilterElement.height Read only
An SVGAnimatedLength that corresponds to the height attribute of the given <filter> element.
SVGFilterElement.filterResX Read only This deprecated API should no longer be used, but will probably still work.
An SVGAnimatedInteger that contains the X component of the filterRes attribute of the given <filter> element.
SVGFilterElement.filterResY Read only This deprecated API should no longer be used, but will probably still work.
An SVGAnimatedInteger that contains the Y component of the filterRes attribute of the given <filter> element.

Methods

SVGFilterElement.setFilterRes() This deprecated API should no longer be used, but will probably still work.
Sets the values of the filterRes attribute.

Specifications

Browser compatibility

BCD tables only load in the browser

See also