EDIT & COMMENT Paper.filter

master
Mike Sierra 2013-10-09 15:46:31 -04:00
parent dd416fbec5
commit 830d7afde6
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
Str = String,
$ = Snap._.$;
Snap.filter = {};
// SIERRA Paper.filter(): I don't understand the note. Does that mean an HTML should dedicate a separate SVG region for a filter definition? What's the advantage over a DEFS?
/*\
* Paper.filter
[ method ]
@ -26,7 +27,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
**
- filstr (string) SVG fragment of filter provided as a string.
= (object) @Element
* Note: It is recommended to use filters embedded into page inside empty SVG element.
* Note: It is recommended to use filters embedded into the page inside an empty SVG element.
> Usage
| var f = paper.filter('<feGaussianBlur stdDeviation="2"/>'),
| c = paper.circle(10, 10, 10).attr({