SVG Filter DOM interface
The SVGFilterElement
interface provides access to the properties of {{ SVGElement("filter") }} elements, as well as methods to manipulate them.
Interface overview
Also implement |
{{ domxref("SVGElement") }}, {{ domxref("SVGURIReference") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGUnitTypes") }} |
Methods |
void setFilterRes(in unsigned long filterResX, in unsigned long filterResY)
|
Properties |
- readonly {{ domxref("SVGAnimatedEnumeration") }}
filterUnits
- readonly {{ domxref("SVGAnimatedEnumeration") }}
primitiveUnits
- readonly {{ domxref("SVGAnimatedLength") }}
x
- readonly {{ domxref("SVGAnimatedLength") }}
y
- readonly {{ domxref("SVGAnimatedLength") }}
width
- readonly {{ domxref("SVGAnimatedLength") }}
height
- readonly {{ domxref("SVGAnimatedInteger") }}
filterResX
- readonly {{ domxref("SVGAnimatedInteger") }}
filterResY
|
Normative document |
SVG 1.1 (2nd Edition) |
Properties
Name |
Type |
Description |
filterUnits |
{{ domxref("SVGAnimatedEnumeration") }} |
Corresponds to attribute {{ SVGAttr("filterUnits") }} on the given {{ SVGElement("filter") }} element. Takes one of the constants defined in {{ domxref("SVGUnitTypes") }}. |
primitiveUnits |
{{ domxref("SVGAnimatedEnumeration") }} |
Corresponds to attribute {{ SVGAttr("primitiveUnits") }} on the given {{ SVGElement("filter") }} element. Takes one of the constants defined in {{ domxref("SVGUnitTypes") }}. |
x |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("x") }} on the given {{ SVGElement("filter") }} element. |
y |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("y") }} on the given {{ SVGElement("filter") }} element. |
width |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("width") }} on the given {{ SVGElement("filter") }} element. |
height |
{{ domxref("SVGAnimatedLength") }} |
Corresponds to attribute {{ SVGAttr("height") }} on the given {{ SVGElement("filter") }} element. |
filterResX |
{{ domxref("SVGAnimatedInteger") }} |
Contains the X component of attribute {{ SVGAttr("filterRes") }} on the given {{ SVGElement("filter") }} element. |
filterResY |
{{ domxref("SVGAnimatedInteger") }} |
Contains the Y component of attribute {{ SVGAttr("filterRes") }} on the given {{ SVGElement("filter") }} element. |
Methods
Name & Arguments |
Return |
Description |
setFilterRes( in unsigned long filterResX, in unsigned long filterResY ) |
void |
Sets the values for attribute {{ SVGAttr("filterRes") }}. |
Browser compatibility
{{ CompatibilityTable() }}
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari (WebKit) |
Basic support |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
Basic support |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
{{ CompatUnknown() }} |
See also
- {{ SVGElement("filter") }} SVG Element