canvas.Filter Class
Class for SVG filter effects, example Drop Shadow Note! Filters will produce raster graphic, not Vector. Note! Filters are not supported by IE 9 and lower. (Support is added to IE10). Ref: http://caniuse.com/svg-filters
Constructor
Item Index
Methods
Properties
Methods
addFeMergeNode
(
canvas.Node
-
key
Adds a new feMergeNode DOM node to the feMerge node
Parameters:
-
key
String
Returns:
canvas.Node:
feMergeNode
rotateAround
(
-
el
-
rotation
-
x
-
y
Rotate around a speific point
set
(
-
el
-
key
-
value
Updates a property of a SVG DOM node
Parameters:
-
el
HTMLElement -
key
String -
value
String
setDropShadow
(
-
properties
Set drop shadow
Parameters:
-
properties
Object
Example:
filter.setDropShadow({
x: 2, y: 2, // Offset
deviation: 2, // blur
color : '#000'
});