ludo.svg.Filter

ludo.svg.


new ludo.svg.Filter(attributes, config)

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

Parameters:
Name Type Description
attributes Object
config Object

options

Source:

Extends

  • canvas.NamedNode

Methods


addFeMergeNode(key) → {canvas.Node}

Adds a new feMergeNode DOM node to the feMerge node

Parameters:
Name Type Description
key String
Source:
Returns:

feMergeNode

Type
canvas.Node

setDropShadow(properties)

Set drop shadow

Parameters:
Name Type Description
properties Object
Source:
Example
filter.setDropShadow({
	 		x: 2, y: 2, // Offset
	 		deviation: 2, // blur
	 		color : '#000'
	 	});