Added support for text path

master
Dmitry Baranovskiy 2013-12-23 12:26:40 +11:00
parent c3134f596b
commit 5ff0d9bd4d
10 changed files with 371 additions and 196 deletions

10
dist/snap.svg-min.js vendored

File diff suppressed because one or more lines are too long

148
dist/snap.svg.js vendored
View File

@ -1,4 +1,4 @@
// Snap.svg 0.1.1 // Snap.svg 0.2.0
// //
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// //
// build: 2013-11-27 // build: 2013-12-23
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@ -761,7 +761,7 @@ var mina = (function (eve) {
// limitations under the License. // limitations under the License.
var Snap = (function() { var Snap = (function() {
Snap.version = "0.1.1"; Snap.version = "0.2.0";
/*\ /*\
* Snap * Snap
[ method ] [ method ]
@ -835,7 +835,10 @@ var has = "hasOwnProperty",
}, },
xlink = "http://www.w3.org/1999/xlink", xlink = "http://www.w3.org/1999/xlink",
xmlns = "http://www.w3.org/2000/svg", xmlns = "http://www.w3.org/2000/svg",
hub = {}; hub = {},
URL = Snap.url = function (url) {
return "url('#" + url + "')";
};
function $(el, attr) { function $(el, attr) {
if (attr) { if (attr) {
@ -1872,7 +1875,7 @@ var parseTransformString = Snap.parseTransformString = function (TString) {
function svgTransform2string(tstr) { function svgTransform2string(tstr) {
var res = []; var res = [];
tstr = tstr.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g, function (all, name, params) { tstr = tstr.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g, function (all, name, params) {
params = params.split(/\s*,\s*/); params = params.split(/\s*,\s*|\s+/);
if (name == "rotate" && params.length == 1) { if (name == "rotate" && params.length == 1) {
params.push(0, 0); params.push(0, 0);
} }
@ -1912,7 +1915,9 @@ function transform2matrix(tstr, bbox) {
x2, x2,
y2, y2,
bb; bb;
if (command == "t" && tlen == 3) { if (command == "t" && tlen == 2){
m.translate(t[1], 0);
} else if (command == "t" && tlen == 3) {
if (absolute) { if (absolute) {
x1 = inver.x(0, 0); x1 = inver.x(0, 0);
y1 = inver.y(0, 0); y1 = inver.y(0, 0);
@ -2205,7 +2210,6 @@ function arrayFirstValue(arr) {
} }
} }
(function (elproto) { (function (elproto) {
// SIERRA Element.attr(): There appear to be two possible return values, one of which is blank. (Search the doc for _Returns:_ to identify problems.)
/*\ /*\
* Element.attr * Element.attr
[ method ] [ method ]
@ -2651,7 +2655,7 @@ function arrayFirstValue(arr) {
if (val) { if (val) {
uses[val] = (uses[val] || []).concat(function (id) { uses[val] = (uses[val] || []).concat(function (id) {
var attr = {}; var attr = {};
attr[name] = "url(#" + id + ")"; attr[name] = URL(id);
$(it.node, attr); $(it.node, attr);
}); });
} }
@ -3614,6 +3618,11 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
> Usage > Usage
| var t1 = paper.text(50, 50, "Snap"); | var t1 = paper.text(50, 50, "Snap");
| var t2 = paper.text(50, 50, ["S","n","a","p"]); | var t2 = paper.text(50, 50, ["S","n","a","p"]);
| // Text path usage
| t1.attr({textpath: "M10,10L100,100"});
| // or
| var pth = paper.path("M10,10L100,100");
| t1.attr({textpath: pth});
\*/ \*/
proto.text = function (x, y, text) { proto.text = function (x, y, text) {
var el = make("text", this.node); var el = make("text", this.node);
@ -3882,7 +3891,7 @@ eve.on("snap.util.attr.mask", function (value) {
}); });
} }
$(this.node, { $(this.node, {
mask: "url(#" + mask.id + ")" mask: URL(mask.id)
}); });
} }
}); });
@ -3903,7 +3912,7 @@ eve.on("snap.util.attr.mask", function (value) {
}); });
} }
$(this.node, { $(this.node, {
"clip-path": "url(#" + clip.id + ")" "clip-path": URL(clip.id)
}); });
} }
})); }));
@ -3926,7 +3935,7 @@ function fillStroke(name) {
id: value.id id: value.id
}); });
} }
var fill = "url(#" + value.node.id + ")"; var fill = URL(value.node.id);
} else { } else {
fill = value.attr(name); fill = value.attr(name);
} }
@ -3940,7 +3949,7 @@ function fillStroke(name) {
id: grad.id id: grad.id
}); });
} }
fill = "url(#" + grad.node.id + ")"; fill = URL(grad.node.id);
} else { } else {
fill = value; fill = value;
} }
@ -4041,6 +4050,53 @@ eve.on("snap.util.attr.r", function (value) {
}); });
} }
})(-1); })(-1);
eve.on("snap.util.attr.textpath", function (value) {
eve.stop();
if (this.type == "text") {
var id, tp, node;
if (!value && this.textPath) {
tp = this.textPath;
while (tp.node.firstChild) {
this.node.appendChild(tp.node.firstChild);
}
tp.remove();
delete this.textPath;
return;
}
if (is(value, "string")) {
var defs = getSomeDefs(this),
path = wrap(defs.parentNode).path(value);
defs.appendChild(path.node);
id = path.id;
path.attr({id: id});
} else {
value = wrap(value);
if (value instanceof Element) {
id = value.attr("id");
if (!id) {
id = value.id;
value.attr({id: id});
}
}
}
if (id) {
tp = this.textPath;
node = this.node;
if (tp) {
tp.attr({"xlink:href": "#" + id});
} else {
tp = $("textPath", {
"xlink:href": "#" + id
});
while (node.firstChild) {
tp.appendChild(node.firstChild);
}
node.appendChild(tp);
this.textPath = wrap(tp);
}
}
}
})(-1);
eve.on("snap.util.attr.text", function (value) { eve.on("snap.util.attr.text", function (value) {
if (this.type == "text") { if (this.type == "text") {
var i = 0, var i = 0,
@ -4153,6 +4209,10 @@ eve.on("snap.util.getattr.transform", function () {
eve.stop(); eve.stop();
return this.transform(); return this.transform();
})(-1); })(-1);
eve.on("snap.util.getattr.textpath", function () {
eve.stop();
return this.textPath;
})(-1);
// Markers // Markers
(function () { (function () {
function getter(end) { function getter(end) {
@ -4179,7 +4239,7 @@ eve.on("snap.util.getattr.transform", function () {
if (!id) { if (!id) {
$(value.node, {id: value.id}); $(value.node, {id: value.id});
} }
this.node.style[name] = "url(#" + id + ")"; this.node.style[name] = URL(id);
return; return;
} }
}; };
@ -6109,27 +6169,37 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
if (glob.doc.addEventListener) { if (glob.doc.addEventListener) {
return function (obj, type, fn, element) { return function (obj, type, fn, element) {
var realName = supportsTouch && touchMap[type] ? touchMap[type] : type, var realName = supportsTouch && touchMap[type] ? touchMap[type] : type,
f = function (e) { f = function (e) {
var scrollY = getScroll("y"), var scrollY = getScroll("y"),
scrollX = getScroll("x"), scrollX = getScroll("x");
x = e.clientX + scrollX, if (supportsTouch && touchMap[has](type)) {
y = e.clientY + scrollY; for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {
if (supportsTouch && touchMap[has](type)) { if (e.targetTouches[i].target == obj || obj.contains(e.targetTouches[i].target)) {
for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) { var olde = e;
if (e.targetTouches[i].target == obj) { e = e.targetTouches[i];
var olde = e; e.originalEvent = olde;
e = e.targetTouches[i]; e.preventDefault = preventTouch;
e.originalEvent = olde; e.stopPropagation = stopTouch;
e.preventDefault = preventTouch; break;
e.stopPropagation = stopTouch; }
break; }
}
} }
} var x = e.clientX + scrollX,
return fn.call(element, e, x, y); y = e.clientY + scrollY;
}; return fn.call(element, e, x, y);
};
if (type !== realName) {
obj.addEventListener(type, f, false);
}
obj.addEventListener(realName, f, false); obj.addEventListener(realName, f, false);
return function () { return function () {
if (type !== realName) {
obj.removeEventListener(type, f, false);
}
obj.removeEventListener(realName, f, false); obj.removeEventListener(realName, f, false);
return true; return true;
}; };
@ -6166,11 +6236,11 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
while (j--) { while (j--) {
dragi = drag[j]; dragi = drag[j];
if (supportsTouch) { if (supportsTouch) {
var i = e.touches.length, var i = e.touches && e.touches.length,
touch; touch;
while (i--) { while (i--) {
touch = e.touches[i]; touch = e.touches[i];
if (touch.identifier == dragi.el._drag.id) { if (touch.identifier == dragi.el._drag.id || dragi.el.node.contains(touch.target)) {
x = touch.clientX; x = touch.clientX;
y = touch.clientY; y = touch.clientY;
(e.originalEvent ? e.originalEvent : e).preventDefault(); (e.originalEvent ? e.originalEvent : e).preventDefault();
@ -6494,19 +6564,17 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
origTransform = this.transform().local; origTransform = this.transform().local;
}); });
} }
function start(e) { function start(e, x, y) {
(e.originalEvent || e).preventDefault(); (e.originalEvent || e).preventDefault();
var scrollY = getScroll("y"), this._drag.x = x;
scrollX = getScroll("x"); this._drag.y = y;
this._drag.x = e.clientX + scrollX;
this._drag.y = e.clientY + scrollY;
this._drag.id = e.identifier; this._drag.id = e.identifier;
!drag.length && Snap.mousemove(dragMove).mouseup(dragUp); !drag.length && Snap.mousemove(dragMove).mouseup(dragUp);
drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope}); drag.push({el: this, move_scope: move_scope, start_scope: start_scope, end_scope: end_scope});
onstart && eve.on("snap.drag.start." + this.id, onstart); onstart && eve.on("snap.drag.start." + this.id, onstart);
onmove && eve.on("snap.drag.move." + this.id, onmove); onmove && eve.on("snap.drag.move." + this.id, onmove);
onend && eve.on("snap.drag.end." + this.id, onend); onend && eve.on("snap.drag.end." + this.id, onend);
eve("snap.drag.start." + this.id, start_scope || move_scope || this, e.clientX + scrollX, e.clientY + scrollY, e); eve("snap.drag.start." + this.id, start_scope || move_scope || this, x, y, e);
} }
this._drag = {}; this._drag = {};
draggable.push({el: this, start: start}); draggable.push({el: this, start: start});
@ -6612,7 +6680,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
id = value.id; id = value.id;
} }
$(this.node, { $(this.node, {
filter: "url(#" + id + ")" filter: Snap.url(id)
}); });
} }
if (!value || value == "none") { if (!value || value == "none") {
@ -6620,8 +6688,6 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
this.node.removeAttribute("filter"); this.node.removeAttribute("filter");
} }
}); });
// SIERRA Would help to clarify when various Snap.filter.* matches the behavior of CSS filter property keyword functions. E.g., I don't think CSS's blur() accepts a second parameter for y axis.
// SIERRA Would also be useful to illustrate a chain of >1 filter as a code snippet.
/*\ /*\
* Snap.filter.blur * Snap.filter.blur
[ method ] [ method ]

View File

@ -849,7 +849,7 @@
<article id="Snap.format"> <article id="Snap.format">
<header> <header>
<h3 class="dr-method">Snap.format(token, json)<a href="#Snap.format" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 178 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#178">&#x27ad;</a></h3> <h3 class="dr-method">Snap.format(token, json)<a href="#Snap.format" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 181 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#181">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.format-extra"></div> <div class="extra" id="Snap.format-extra"></div>
@ -943,7 +943,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.rad"> <article id="Snap.rad">
<header> <header>
<h3 class="dr-method">Snap.rad(deg)<a href="#Snap.rad" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 286 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#286">&#x27ad;</a></h3> <h3 class="dr-method">Snap.rad(deg)<a href="#Snap.rad" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 289 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#289">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.rad-extra"></div> <div class="extra" id="Snap.rad-extra"></div>
@ -1003,7 +1003,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.deg"> <article id="Snap.deg">
<header> <header>
<h3 class="dr-method">Snap.deg(rad)<a href="#Snap.deg" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 295 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#295">&#x27ad;</a></h3> <h3 class="dr-method">Snap.deg(rad)<a href="#Snap.deg" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 298 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#298">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.deg-extra"></div> <div class="extra" id="Snap.deg-extra"></div>
@ -1063,7 +1063,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.angle"> <article id="Snap.angle">
<header> <header>
<h3 class="dr-method">Snap.angle(x1, y1, x2, y2, [x3], [y3])<a href="#Snap.angle" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 311 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#311">&#x27ad;</a></h3> <h3 class="dr-method">Snap.angle(x1, y1, x2, y2, [x3], [y3])<a href="#Snap.angle" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 314 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#314">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.angle-extra"></div> <div class="extra" id="Snap.angle-extra"></div>
@ -1149,7 +1149,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.is"> <article id="Snap.is">
<header> <header>
<h3 class="dr-method">Snap.is(o, type)<a href="#Snap.is" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 321 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#321">&#x27ad;</a></h3> <h3 class="dr-method">Snap.is(o, type)<a href="#Snap.is" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 324 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#324">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.is-extra"></div> <div class="extra" id="Snap.is-extra"></div>
@ -1212,7 +1212,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.snapTo"> <article id="Snap.snapTo">
<header> <header>
<h3 class="dr-method">Snap.snapTo(values, value, [tolerance])<a href="#Snap.snapTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 332 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#332">&#x27ad;</a></h3> <h3 class="dr-method">Snap.snapTo(values, value, [tolerance])<a href="#Snap.snapTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 335 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#335">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.snapTo-extra"></div> <div class="extra" id="Snap.snapTo-extra"></div>
@ -1278,7 +1278,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.add"> <article id="Matrix.add">
<header> <header>
<h3 class="dr-method">Matrix.add(…)<a href="#Matrix.add" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 394 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#394">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.add(…)<a href="#Matrix.add" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 397 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#397">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.add-extra"></div> <div class="extra" id="Matrix.add-extra"></div>
@ -1365,7 +1365,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.invert"> <article id="Matrix.invert">
<header> <header>
<h3 class="dr-method">Matrix.invert()<a href="#Matrix.invert" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 428 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#428">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.invert()<a href="#Matrix.invert" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 431 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#431">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.invert-extra"></div> <div class="extra" id="Matrix.invert-extra"></div>
@ -1407,7 +1407,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.clone"> <article id="Matrix.clone">
<header> <header>
<h3 class="dr-method">Matrix.clone()<a href="#Matrix.clone" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 440 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#440">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.clone()<a href="#Matrix.clone" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 443 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#443">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.clone-extra"></div> <div class="extra" id="Matrix.clone-extra"></div>
@ -1449,7 +1449,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.translate"> <article id="Matrix.translate">
<header> <header>
<h3 class="dr-method">Matrix.translate(x, y)<a href="#Matrix.translate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 451 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#451">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.translate(x, y)<a href="#Matrix.translate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 454 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#454">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.translate-extra"></div> <div class="extra" id="Matrix.translate-extra"></div>
@ -1495,7 +1495,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.scale"> <article id="Matrix.scale">
<header> <header>
<h3 class="dr-method">Matrix.scale(x, [y], [cx], [cy])<a href="#Matrix.scale" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 465 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#465">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.scale(x, [y], [cx], [cy])<a href="#Matrix.scale" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 468 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#468">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.scale-extra"></div> <div class="extra" id="Matrix.scale-extra"></div>
@ -1558,7 +1558,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.rotate"> <article id="Matrix.rotate">
<header> <header>
<h3 class="dr-method">Matrix.rotate(a, x, y)<a href="#Matrix.rotate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 481 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#481">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.rotate(a, x, y)<a href="#Matrix.rotate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 484 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#484">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.rotate-extra"></div> <div class="extra" id="Matrix.rotate-extra"></div>
@ -1607,7 +1607,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.x"> <article id="Matrix.x">
<header> <header>
<h3 class="dr-method">Matrix.x(x, y)<a href="#Matrix.x" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 499 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#499">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.x(x, y)<a href="#Matrix.x" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 502 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#502">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.x-extra"></div> <div class="extra" id="Matrix.x-extra"></div>
@ -1670,7 +1670,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.y"> <article id="Matrix.y">
<header> <header>
<h3 class="dr-method">Matrix.y(x, y)<a href="#Matrix.y" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 511 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#511">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.y(x, y)<a href="#Matrix.y" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 514 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#514">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.y-extra"></div> <div class="extra" id="Matrix.y-extra"></div>
@ -1733,7 +1733,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.split"> <article id="Matrix.split">
<header> <header>
<h3 class="dr-method">Matrix.split()<a href="#Matrix.split" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 545 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#545">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.split()<a href="#Matrix.split" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 548 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#548">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.split-extra"></div> <div class="extra" id="Matrix.split-extra"></div>
@ -1843,7 +1843,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Matrix.toTransformString"> <article id="Matrix.toTransformString">
<header> <header>
<h3 class="dr-method">Matrix.toTransformString()<a href="#Matrix.toTransformString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 587 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#587">&#x27ad;</a></h3> <h3 class="dr-method">Matrix.toTransformString()<a href="#Matrix.toTransformString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 590 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#590">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Matrix.toTransformString-extra"></div> <div class="extra" id="Matrix.toTransformString-extra"></div>
@ -1885,7 +1885,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<article id="Snap.Matrix"> <article id="Snap.Matrix">
<header> <header>
<h3 class="dr-method">Snap.Matrix(…)<a href="#Snap.Matrix" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 618 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#618">&#x27ad;</a></h3> <h3 class="dr-method">Snap.Matrix(…)<a href="#Snap.Matrix" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 621 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#621">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.Matrix-extra"></div> <div class="extra" id="Snap.Matrix-extra"></div>
@ -1990,7 +1990,7 @@ Returns a matrix based on the given parameters
<article id="Snap.getRGB"> <article id="Snap.getRGB">
<header> <header>
<h3 class="dr-method">Snap.getRGB(color)<a href="#Snap.getRGB" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 653 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#653">&#x27ad;</a></h3> <h3 class="dr-method">Snap.getRGB(color)<a href="#Snap.getRGB" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 656 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#656">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.getRGB-extra"></div> <div class="extra" id="Snap.getRGB-extra"></div>
@ -2325,7 +2325,7 @@ Returns a matrix based on the given parameters
<article id="Snap.hsb"> <article id="Snap.hsb">
<header> <header>
<h3 class="dr-method">Snap.hsb(h, s, b)<a href="#Snap.hsb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 742 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#742">&#x27ad;</a></h3> <h3 class="dr-method">Snap.hsb(h, s, b)<a href="#Snap.hsb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 745 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#745">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.hsb-extra"></div> <div class="extra" id="Snap.hsb-extra"></div>
@ -2391,7 +2391,7 @@ Returns a matrix based on the given parameters
<article id="Snap.hsl"> <article id="Snap.hsl">
<header> <header>
<h3 class="dr-method">Snap.hsl(h, s, l)<a href="#Snap.hsl" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 755 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#755">&#x27ad;</a></h3> <h3 class="dr-method">Snap.hsl(h, s, l)<a href="#Snap.hsl" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 758 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#758">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.hsl-extra"></div> <div class="extra" id="Snap.hsl-extra"></div>
@ -2457,7 +2457,7 @@ Returns a matrix based on the given parameters
<article id="Snap.rgb"> <article id="Snap.rgb">
<header> <header>
<h3 class="dr-method">Snap.rgb(r, g, b)<a href="#Snap.rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 768 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#768">&#x27ad;</a></h3> <h3 class="dr-method">Snap.rgb(r, g, b)<a href="#Snap.rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 771 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#771">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.rgb-extra"></div> <div class="extra" id="Snap.rgb-extra"></div>
@ -2523,7 +2523,7 @@ Returns a matrix based on the given parameters
<article id="Snap.color"> <article id="Snap.color">
<header> <header>
<h3 class="dr-method">Snap.color(clr)<a href="#Snap.color" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 855 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#855">&#x27ad;</a></h3> <h3 class="dr-method">Snap.color(clr)<a href="#Snap.color" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 858 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#858">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.color-extra"></div> <div class="extra" id="Snap.color-extra"></div>
@ -2675,7 +2675,7 @@ Returns a matrix based on the given parameters
<article id="Snap.hsb2rgb"> <article id="Snap.hsb2rgb">
<header> <header>
<h3 class="dr-method">Snap.hsb2rgb(h, s, v)<a href="#Snap.hsb2rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 907 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#907">&#x27ad;</a></h3> <h3 class="dr-method">Snap.hsb2rgb(h, s, v)<a href="#Snap.hsb2rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 910 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#910">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.hsb2rgb-extra"></div> <div class="extra" id="Snap.hsb2rgb-extra"></div>
@ -2793,7 +2793,7 @@ Returns a matrix based on the given parameters
<article id="Snap.hsl2rgb"> <article id="Snap.hsl2rgb">
<header> <header>
<h3 class="dr-method">Snap.hsl2rgb(h, s, l)<a href="#Snap.hsl2rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 943 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#943">&#x27ad;</a></h3> <h3 class="dr-method">Snap.hsl2rgb(h, s, l)<a href="#Snap.hsl2rgb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 946 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#946">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.hsl2rgb-extra"></div> <div class="extra" id="Snap.hsl2rgb-extra"></div>
@ -2911,7 +2911,7 @@ Returns a matrix based on the given parameters
<article id="Snap.rgb2hsb"> <article id="Snap.rgb2hsb">
<header> <header>
<h3 class="dr-method">Snap.rgb2hsb(r, g, b)<a href="#Snap.rgb2hsb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 982 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#982">&#x27ad;</a></h3> <h3 class="dr-method">Snap.rgb2hsb(r, g, b)<a href="#Snap.rgb2hsb" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 985 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#985">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.rgb2hsb-extra"></div> <div class="extra" id="Snap.rgb2hsb-extra"></div>
@ -3021,7 +3021,7 @@ Returns a matrix based on the given parameters
<article id="Snap.rgb2hsl"> <article id="Snap.rgb2hsl">
<header> <header>
<h3 class="dr-method">Snap.rgb2hsl(r, g, b)<a href="#Snap.rgb2hsl" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1015 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1015">&#x27ad;</a></h3> <h3 class="dr-method">Snap.rgb2hsl(r, g, b)<a href="#Snap.rgb2hsl" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1018 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1018">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.rgb2hsl-extra"></div> <div class="extra" id="Snap.rgb2hsl-extra"></div>
@ -3131,7 +3131,7 @@ Returns a matrix based on the given parameters
<article id="Snap.parsePathString"> <article id="Snap.parsePathString">
<header> <header>
<h3 class="dr-method">Snap.parsePathString(pathString)<a href="#Snap.parsePathString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1049 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1049">&#x27ad;</a></h3> <h3 class="dr-method">Snap.parsePathString(pathString)<a href="#Snap.parsePathString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1052 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1052">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.parsePathString-extra"></div> <div class="extra" id="Snap.parsePathString-extra"></div>
@ -3192,7 +3192,7 @@ Parses given path string into an array of arrays of path segments
<article id="Snap.parseTransformString"> <article id="Snap.parseTransformString">
<header> <header>
<h3 class="dr-method">Snap.parseTransformString(TString)<a href="#Snap.parseTransformString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1102 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1102">&#x27ad;</a></h3> <h3 class="dr-method">Snap.parseTransformString(TString)<a href="#Snap.parseTransformString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1105 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1105">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.parseTransformString-extra"></div> <div class="extra" id="Snap.parseTransformString-extra"></div>
@ -3253,7 +3253,7 @@ Parses given transform string into an array of transformations
<article id="Snap.select"> <article id="Snap.select">
<header> <header>
<h3 class="dr-method">Snap.select(query)<a href="#Snap.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1381 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1381">&#x27ad;</a></h3> <h3 class="dr-method">Snap.select(query)<a href="#Snap.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1386 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1386">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.select-extra"></div> <div class="extra" id="Snap.select-extra"></div>
@ -3313,7 +3313,7 @@ Parses given transform string into an array of transformations
<article id="Snap.selectAll"> <article id="Snap.selectAll">
<header> <header>
<h3 class="dr-method">Snap.selectAll(query)<a href="#Snap.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1392 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1392">&#x27ad;</a></h3> <h3 class="dr-method">Snap.selectAll(query)<a href="#Snap.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1397 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1397">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.selectAll-extra"></div> <div class="extra" id="Snap.selectAll-extra"></div>
@ -3373,7 +3373,7 @@ Parses given transform string into an array of transformations
<article id="Element.attr"> <article id="Element.attr">
<header> <header>
<h3 class="dr-method">Element.attr(…)<a href="#Element.attr" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1482 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1482">&#x27ad;</a></h3> <h3 class="dr-method">Element.attr(…)<a href="#Element.attr" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1487 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1487">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.attr-extra"></div> <div class="extra" id="Element.attr-extra"></div>
@ -3518,7 +3518,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.getBBox"> <article id="Element.getBBox">
<header> <header>
<h3 class="dr-method">Element.getBBox()<a href="#Element.getBBox" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1531 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1531">&#x27ad;</a></h3> <h3 class="dr-method">Element.getBBox()<a href="#Element.getBBox" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1536 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1536">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.getBBox-extra"></div> <div class="extra" id="Element.getBBox-extra"></div>
@ -3700,7 +3700,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.transform"> <article id="Element.transform">
<header> <header>
<h3 class="dr-method">Element.transform(tstr)<a href="#Element.transform" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1575 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1575">&#x27ad;</a></h3> <h3 class="dr-method">Element.transform(tstr)<a href="#Element.transform" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1580 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1580">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.transform-extra"></div> <div class="extra" id="Element.transform-extra"></div>
@ -3864,7 +3864,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.parent"> <article id="Element.parent">
<header> <header>
<h3 class="dr-method">Element.parent()<a href="#Element.parent" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1620 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1620">&#x27ad;</a></h3> <h3 class="dr-method">Element.parent()<a href="#Element.parent" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1625 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1625">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.parent-extra"></div> <div class="extra" id="Element.parent-extra"></div>
@ -3906,7 +3906,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.append"> <article id="Element.append">
<header> <header>
<h3 class="dr-method">Element.append(el)<a href="#Element.append" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1632 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1632">&#x27ad;</a></h3> <h3 class="dr-method">Element.append(el)<a href="#Element.append" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1637 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1637">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.append-extra"></div> <div class="extra" id="Element.append-extra"></div>
@ -3966,7 +3966,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.add"> <article id="Element.add">
<header> <header>
<h3 class="dr-method">Element.add()<a href="#Element.add" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1638 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1638">&#x27ad;</a></h3> <h3 class="dr-method">Element.add()<a href="#Element.add" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1643 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1643">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.add-extra"></div> <div class="extra" id="Element.add-extra"></div>
@ -3991,7 +3991,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.appendTo"> <article id="Element.appendTo">
<header> <header>
<h3 class="dr-method">Element.appendTo(el)<a href="#Element.appendTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1662 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1662">&#x27ad;</a></h3> <h3 class="dr-method">Element.appendTo(el)<a href="#Element.appendTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1667 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1667">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.appendTo-extra"></div> <div class="extra" id="Element.appendTo-extra"></div>
@ -4051,7 +4051,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.prepend"> <article id="Element.prepend">
<header> <header>
<h3 class="dr-method">Element.prepend(el)<a href="#Element.prepend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1678 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1678">&#x27ad;</a></h3> <h3 class="dr-method">Element.prepend(el)<a href="#Element.prepend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1683 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1683">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.prepend-extra"></div> <div class="extra" id="Element.prepend-extra"></div>
@ -4111,7 +4111,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.prependTo"> <article id="Element.prependTo">
<header> <header>
<h3 class="dr-method">Element.prependTo(el)<a href="#Element.prependTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1699 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1699">&#x27ad;</a></h3> <h3 class="dr-method">Element.prependTo(el)<a href="#Element.prependTo" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1704 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1704">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.prependTo-extra"></div> <div class="extra" id="Element.prependTo-extra"></div>
@ -4171,7 +4171,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.before"> <article id="Element.before">
<header> <header>
<h3 class="dr-method">Element.before(el)<a href="#Element.before" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1713 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1713">&#x27ad;</a></h3> <h3 class="dr-method">Element.before(el)<a href="#Element.before" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1718 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1718">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.before-extra"></div> <div class="extra" id="Element.before-extra"></div>
@ -4231,7 +4231,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.after"> <article id="Element.after">
<header> <header>
<h3 class="dr-method">Element.after(el)<a href="#Element.after" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1741 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1741">&#x27ad;</a></h3> <h3 class="dr-method">Element.after(el)<a href="#Element.after" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1746 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1746">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.after-extra"></div> <div class="extra" id="Element.after-extra"></div>
@ -4291,7 +4291,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.insertBefore"> <article id="Element.insertBefore">
<header> <header>
<h3 class="dr-method">Element.insertBefore(el)<a href="#Element.insertBefore" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1763 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1763">&#x27ad;</a></h3> <h3 class="dr-method">Element.insertBefore(el)<a href="#Element.insertBefore" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1768 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1768">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.insertBefore-extra"></div> <div class="extra" id="Element.insertBefore-extra"></div>
@ -4351,7 +4351,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.insertAfter"> <article id="Element.insertAfter">
<header> <header>
<h3 class="dr-method">Element.insertAfter(el)<a href="#Element.insertAfter" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1781 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1781">&#x27ad;</a></h3> <h3 class="dr-method">Element.insertAfter(el)<a href="#Element.insertAfter" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1786 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1786">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.insertAfter-extra"></div> <div class="extra" id="Element.insertAfter-extra"></div>
@ -4411,7 +4411,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.remove"> <article id="Element.remove">
<header> <header>
<h3 class="dr-method">Element.remove()<a href="#Element.remove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1797 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1797">&#x27ad;</a></h3> <h3 class="dr-method">Element.remove()<a href="#Element.remove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1802 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1802">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.remove-extra"></div> <div class="extra" id="Element.remove-extra"></div>
@ -4453,7 +4453,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.select"> <article id="Element.select">
<header> <header>
<h3 class="dr-method">Element.select(query)<a href="#Element.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1814 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1814">&#x27ad;</a></h3> <h3 class="dr-method">Element.select(query)<a href="#Element.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1819 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1819">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.select-extra"></div> <div class="extra" id="Element.select-extra"></div>
@ -4513,7 +4513,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.selectAll"> <article id="Element.selectAll">
<header> <header>
<h3 class="dr-method">Element.selectAll(query)<a href="#Element.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1826 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1826">&#x27ad;</a></h3> <h3 class="dr-method">Element.selectAll(query)<a href="#Element.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1831 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1831">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.selectAll-extra"></div> <div class="extra" id="Element.selectAll-extra"></div>
@ -4575,7 +4575,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.asPX"> <article id="Element.asPX">
<header> <header>
<h3 class="dr-method">Element.asPX(attr, [value])<a href="#Element.asPX" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1844 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1844">&#x27ad;</a></h3> <h3 class="dr-method">Element.asPX(attr, [value])<a href="#Element.asPX" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1849 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1849">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.asPX-extra"></div> <div class="extra" id="Element.asPX-extra"></div>
@ -4638,7 +4638,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.use"> <article id="Element.use">
<header> <header>
<h3 class="dr-method">Element.use()<a href="#Element.use" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1859 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1859">&#x27ad;</a></h3> <h3 class="dr-method">Element.use()<a href="#Element.use" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1864 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1864">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.use-extra"></div> <div class="extra" id="Element.use-extra"></div>
@ -4680,7 +4680,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.clone"> <article id="Element.clone">
<header> <header>
<h3 class="dr-method">Element.clone()<a href="#Element.clone" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1888 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1888">&#x27ad;</a></h3> <h3 class="dr-method">Element.clone()<a href="#Element.clone" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1893 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1893">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.clone-extra"></div> <div class="extra" id="Element.clone-extra"></div>
@ -4722,7 +4722,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.toDefs"> <article id="Element.toDefs">
<header> <header>
<h3 class="dr-method">Element.toDefs()<a href="#Element.toDefs" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1968 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1968">&#x27ad;</a></h3> <h3 class="dr-method">Element.toDefs()<a href="#Element.toDefs" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1973 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1973">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.toDefs-extra"></div> <div class="extra" id="Element.toDefs-extra"></div>
@ -4764,7 +4764,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
<article id="Element.pattern"> <article id="Element.pattern">
<header> <header>
<h3 class="dr-method">Element.pattern(x, y, width, height)<a href="#Element.pattern" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 1998 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1998">&#x27ad;</a></h3> <h3 class="dr-method">Element.pattern(x, y, width, height)<a href="#Element.pattern" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2003 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2003">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.pattern-extra"></div> <div class="extra" id="Element.pattern-extra"></div>
@ -4864,7 +4864,7 @@ c.attr({
<article id="Element.marker"> <article id="Element.marker">
<header> <header>
<h3 class="dr-method">Element.marker(x, y, width, height, refX, refY)<a href="#Element.marker" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2039 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2039">&#x27ad;</a></h3> <h3 class="dr-method">Element.marker(x, y, width, height, refX, refY)<a href="#Element.marker" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2044 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2044">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.marker-extra"></div> <div class="extra" id="Element.marker-extra"></div>
@ -4951,7 +4951,7 @@ To create a marker you have to specify the bounding rect and reference point:
<article id="Snap.animation"> <article id="Snap.animation">
<header> <header>
<h3 class="dr-method">Snap.animation(attr, duration, [easing], [callback])<a href="#Snap.animation" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2098 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2098">&#x27ad;</a></h3> <h3 class="dr-method">Snap.animation(attr, duration, [easing], [callback])<a href="#Snap.animation" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2103 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2103">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.animation-extra"></div> <div class="extra" id="Snap.animation-extra"></div>
@ -5020,7 +5020,7 @@ To create a marker you have to specify the bounding rect and reference point:
<article id="Element.inAnim"> <article id="Element.inAnim">
<header> <header>
<h3 class="dr-method">Element.inAnim()<a href="#Element.inAnim" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2115 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2115">&#x27ad;</a></h3> <h3 class="dr-method">Element.inAnim()<a href="#Element.inAnim" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2120 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2120">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.inAnim-extra"></div> <div class="extra" id="Element.inAnim-extra"></div>
@ -5114,7 +5114,7 @@ To create a marker you have to specify the bounding rect and reference point:
<article id="Snap.animate"> <article id="Snap.animate">
<header> <header>
<h3 class="dr-method">Snap.animate(from, to, setter, duration, [easing], [callback])<a href="#Snap.animate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2164 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2164">&#x27ad;</a></h3> <h3 class="dr-method">Snap.animate(from, to, setter, duration, [easing], [callback])<a href="#Snap.animate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2169 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2169">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.animate-extra"></div> <div class="extra" id="Snap.animate-extra"></div>
@ -5275,7 +5275,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
<article id="Element.stop"> <article id="Element.stop">
<header> <header>
<h3 class="dr-method">Element.stop()<a href="#Element.stop" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2182 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2182">&#x27ad;</a></h3> <h3 class="dr-method">Element.stop()<a href="#Element.stop" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2187 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2187">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.stop-extra"></div> <div class="extra" id="Element.stop-extra"></div>
@ -5317,7 +5317,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
<article id="Element.animate"> <article id="Element.animate">
<header> <header>
<h3 class="dr-method">Element.animate(attrs, duration, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2203 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2203">&#x27ad;</a></h3> <h3 class="dr-method">Element.animate(attrs, duration, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2208 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2208">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.animate-extra"></div> <div class="extra" id="Element.animate-extra"></div>
@ -5386,7 +5386,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
<article id="Element.data"> <article id="Element.data">
<header> <header>
<h3 class="dr-method">Element.data(key, [value])<a href="#Element.data" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2275 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2275">&#x27ad;</a></h3> <h3 class="dr-method">Element.data(key, [value])<a href="#Element.data" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2280 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2280">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.data-extra"></div> <div class="extra" id="Element.data-extra"></div>
@ -5508,7 +5508,7 @@ with <code>data-</code> attributes)
<article id="Element.removeData"> <article id="Element.removeData">
<header> <header>
<h3 class="dr-method">Element.removeData([key])<a href="#Element.removeData" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2300 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2300">&#x27ad;</a></h3> <h3 class="dr-method">Element.removeData([key])<a href="#Element.removeData" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2305 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2305">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.removeData-extra"></div> <div class="extra" id="Element.removeData-extra"></div>
@ -5569,7 +5569,7 @@ If key is not provided, removes all the data of the element.
<article id="Element.outerSVG"> <article id="Element.outerSVG">
<header> <header>
<h3 class="dr-method">Element.outerSVG()<a href="#Element.outerSVG" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2317 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2317">&#x27ad;</a></h3> <h3 class="dr-method">Element.outerSVG()<a href="#Element.outerSVG" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2322 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2322">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.outerSVG-extra"></div> <div class="extra" id="Element.outerSVG-extra"></div>
@ -5612,7 +5612,7 @@ If key is not provided, removes all the data of the element.
<article id="undefined"> <article id="undefined">
<header> <header>
<h3 class="dr-method">undefined<a href="#undefined" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2323 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2323">&#x27ad;</a></h3> <h3 class="dr-method">undefined<a href="#undefined" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2328 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2328">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="undefined-extra"></div> <div class="extra" id="undefined-extra"></div>
@ -5637,7 +5637,7 @@ If key is not provided, removes all the data of the element.
<article id="Element.innerSVG"> <article id="Element.innerSVG">
<header> <header>
<h3 class="dr-method">Element.innerSVG()<a href="#Element.innerSVG" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2331 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2331">&#x27ad;</a></h3> <h3 class="dr-method">Element.innerSVG()<a href="#Element.innerSVG" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2336 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2336">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.innerSVG-extra"></div> <div class="extra" id="Element.innerSVG-extra"></div>
@ -5679,7 +5679,7 @@ If key is not provided, removes all the data of the element.
<article id="Snap.parse"> <article id="Snap.parse">
<header> <header>
<h3 class="dr-method">Snap.parse(svg)<a href="#Snap.parse" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2370 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2370">&#x27ad;</a></h3> <h3 class="dr-method">Snap.parse(svg)<a href="#Snap.parse" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2375 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2375">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.parse-extra"></div> <div class="extra" id="Snap.parse-extra"></div>
@ -5739,7 +5739,7 @@ If key is not provided, removes all the data of the element.
<article id="Fragment.select"> <article id="Fragment.select">
<header> <header>
<h3 class="dr-method">Fragment.select()<a href="#Fragment.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2402 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2402">&#x27ad;</a></h3> <h3 class="dr-method">Fragment.select()<a href="#Fragment.select" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2407 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2407">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Fragment.select-extra"></div> <div class="extra" id="Fragment.select-extra"></div>
@ -5764,7 +5764,7 @@ If key is not provided, removes all the data of the element.
<article id="Fragment.selectAll"> <article id="Fragment.selectAll">
<header> <header>
<h3 class="dr-method">Fragment.selectAll()<a href="#Fragment.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2409 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2409">&#x27ad;</a></h3> <h3 class="dr-method">Fragment.selectAll()<a href="#Fragment.selectAll" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2414 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2414">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Fragment.selectAll-extra"></div> <div class="extra" id="Fragment.selectAll-extra"></div>
@ -5789,7 +5789,7 @@ If key is not provided, removes all the data of the element.
<article id="Snap.fragment"> <article id="Snap.fragment">
<header> <header>
<h3 class="dr-method">Snap.fragment(varargs)<a href="#Snap.fragment" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2420 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2420">&#x27ad;</a></h3> <h3 class="dr-method">Snap.fragment(varargs)<a href="#Snap.fragment" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2425 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2425">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.fragment-extra"></div> <div class="extra" id="Snap.fragment-extra"></div>
@ -5849,7 +5849,7 @@ If key is not provided, removes all the data of the element.
<article id="Paper.el"> <article id="Paper.el">
<header> <header>
<h3 class="dr-method">Paper.el(name, attr)<a href="#Paper.el" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2627 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2627">&#x27ad;</a></h3> <h3 class="dr-method">Paper.el(name, attr)<a href="#Paper.el" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2632 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2632">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.el-extra"></div> <div class="extra" id="Paper.el-extra"></div>
@ -5945,7 +5945,7 @@ var c = paper.el("circle", {
<article id="Paper.rect"> <article id="Paper.rect">
<header> <header>
<h3 class="dr-method">Paper.rect(x, y, width, height, [rx], [ry])<a href="#Paper.rect" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2650 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2650">&#x27ad;</a></h3> <h3 class="dr-method">Paper.rect(x, y, width, height, [rx], [ry])<a href="#Paper.rect" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2655 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2655">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.rect-extra"></div> <div class="extra" id="Paper.rect-extra"></div>
@ -6045,7 +6045,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
<article id="Paper.circle"> <article id="Paper.circle">
<header> <header>
<h3 class="dr-method">Paper.circle(x, y, r)<a href="#Paper.circle" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2685 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2685">&#x27ad;</a></h3> <h3 class="dr-method">Paper.circle(x, y, r)<a href="#Paper.circle" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2690 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2690">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.circle-extra"></div> <div class="extra" id="Paper.circle-extra"></div>
@ -6133,7 +6133,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
<article id="Paper.image"> <article id="Paper.image">
<header> <header>
<h3 class="dr-method">Paper.image(src, x, y, width, height)<a href="#Paper.image" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2717 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2717">&#x27ad;</a></h3> <h3 class="dr-method">Paper.image(src, x, y, width, height)<a href="#Paper.image" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2722 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2722">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.image-extra"></div> <div class="extra" id="Paper.image-extra"></div>
@ -6255,7 +6255,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
<article id="Paper.ellipse"> <article id="Paper.ellipse">
<header> <header>
<h3 class="dr-method">Paper.ellipse(x, y, rx, ry)<a href="#Paper.ellipse" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2760 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2760">&#x27ad;</a></h3> <h3 class="dr-method">Paper.ellipse(x, y, rx, ry)<a href="#Paper.ellipse" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2765 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2765">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.ellipse-extra"></div> <div class="extra" id="Paper.ellipse-extra"></div>
@ -6346,7 +6346,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
<article id="Paper.path"> <article id="Paper.path">
<header> <header>
<h3 class="dr-method">Paper.path([pathString])<a href="#Paper.path" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2805 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2805">&#x27ad;</a></h3> <h3 class="dr-method">Paper.path([pathString])<a href="#Paper.path" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2810 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2810">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.path-extra"></div> <div class="extra" id="Paper.path-extra"></div>
@ -6614,7 +6614,7 @@ Note: there is a special case when a path consists of only three commands: <code
<article id="Paper.g"> <article id="Paper.g">
<header> <header>
<h3 class="dr-method">Paper.g([varargs])<a href="#Paper.g" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2836 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2836">&#x27ad;</a></h3> <h3 class="dr-method">Paper.g([varargs])<a href="#Paper.g" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2841 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2841">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.g-extra"></div> <div class="extra" id="Paper.g-extra"></div>
@ -6723,7 +6723,7 @@ g.add(c2, c1);</code></pre></section>
<article id="Paper.group"> <article id="Paper.group">
<header> <header>
<h3 class="dr-method">Paper.group()<a href="#Paper.group" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2842 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2842">&#x27ad;</a></h3> <h3 class="dr-method">Paper.group()<a href="#Paper.group" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2847 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2847">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.group-extra"></div> <div class="extra" id="Paper.group-extra"></div>
@ -6748,7 +6748,7 @@ g.add(c2, c1);</code></pre></section>
<article id="Paper.text"> <article id="Paper.text">
<header> <header>
<h3 class="dr-method">Paper.text(x, y, text)<a href="#Paper.text" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2870 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2870">&#x27ad;</a></h3> <h3 class="dr-method">Paper.text(x, y, text)<a href="#Paper.text" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2875 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2875">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.text-extra"></div> <div class="extra" id="Paper.text-extra"></div>
@ -6837,7 +6837,7 @@ var t2 = paper.text(50, 50, ["S","n","a","p"]);</code></pre></section>
<article id="Paper.line"> <article id="Paper.line">
<header> <header>
<h3 class="dr-method">Paper.line(x1, y1, x2, y2)<a href="#Paper.line" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2898 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2898">&#x27ad;</a></h3> <h3 class="dr-method">Paper.line(x1, y1, x2, y2)<a href="#Paper.line" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2903 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2903">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.line-extra"></div> <div class="extra" id="Paper.line-extra"></div>
@ -6928,7 +6928,7 @@ var t2 = paper.text(50, 50, ["S","n","a","p"]);</code></pre></section>
<article id="Paper.polyline"> <article id="Paper.polyline">
<header> <header>
<h3 class="dr-method">Paper.polyline(…)<a href="#Paper.polyline" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2927 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2927">&#x27ad;</a></h3> <h3 class="dr-method">Paper.polyline(…)<a href="#Paper.polyline" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2932 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2932">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.polyline-extra"></div> <div class="extra" id="Paper.polyline-extra"></div>
@ -7040,7 +7040,7 @@ var p2 = paper.polyline(10, 10, 100, 100);</code></pre></section>
<article id="Paper.polygon"> <article id="Paper.polygon">
<header> <header>
<h3 class="dr-method">Paper.polygon()<a href="#Paper.polygon" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2947 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2947">&#x27ad;</a></h3> <h3 class="dr-method">Paper.polygon()<a href="#Paper.polygon" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 2952 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2952">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.polygon-extra"></div> <div class="extra" id="Paper.polygon-extra"></div>
@ -7065,7 +7065,7 @@ var p2 = paper.polyline(10, 10, 100, 100);</code></pre></section>
<article id="Paper.gradient"> <article id="Paper.gradient">
<header> <header>
<h3 class="dr-method">Paper.gradient(gradient)<a href="#Paper.gradient" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3000 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3000">&#x27ad;</a></h3> <h3 class="dr-method">Paper.gradient(gradient)<a href="#Paper.gradient" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3005 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3005">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.gradient-extra"></div> <div class="extra" id="Paper.gradient-extra"></div>
@ -7263,7 +7263,7 @@ half the width, from black to white:
<article id="Paper.toString"> <article id="Paper.toString">
<header> <header>
<h3 class="dr-method">Paper.toString()<a href="#Paper.toString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3016 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3016">&#x27ad;</a></h3> <h3 class="dr-method">Paper.toString()<a href="#Paper.toString" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3021 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3021">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.toString-extra"></div> <div class="extra" id="Paper.toString-extra"></div>
@ -7305,7 +7305,7 @@ half the width, from black to white:
<article id="Paper.clear"> <article id="Paper.clear">
<header> <header>
<h3 class="dr-method">Paper.clear()<a href="#Paper.clear" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3034 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3034">&#x27ad;</a></h3> <h3 class="dr-method">Paper.clear()<a href="#Paper.clear" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3039 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3039">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Paper.clear-extra"></div> <div class="extra" id="Paper.clear-extra"></div>
@ -7330,7 +7330,7 @@ half the width, from black to white:
<article id="Snap.ajax"> <article id="Snap.ajax">
<header> <header>
<h3 class="dr-method">Snap.ajax(…)<a href="#Snap.ajax" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3065 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3065">&#x27ad;</a></h3> <h3 class="dr-method">Snap.ajax(…)<a href="#Snap.ajax" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3070 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3070">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.ajax-extra"></div> <div class="extra" id="Snap.ajax-extra"></div>
@ -7434,7 +7434,7 @@ half the width, from black to white:
<article id="Snap.load"> <article id="Snap.load">
<header> <header>
<h3 class="dr-method">Snap.load(url, callback, [scope])<a href="#Snap.load" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3111 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3111">&#x27ad;</a></h3> <h3 class="dr-method">Snap.load(url, callback, [scope])<a href="#Snap.load" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3116 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3116">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.load-extra"></div> <div class="extra" id="Snap.load-extra"></div>
@ -7483,7 +7483,7 @@ half the width, from black to white:
<article id="Snap.getElementByPoint"> <article id="Snap.getElementByPoint">
<header> <header>
<h3 class="dr-method">Snap.getElementByPoint(x, y)<a href="#Snap.getElementByPoint" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3540 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3540">&#x27ad;</a></h3> <h3 class="dr-method">Snap.getElementByPoint(x, y)<a href="#Snap.getElementByPoint" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3596 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3596">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.getElementByPoint-extra"></div> <div class="extra" id="Snap.getElementByPoint-extra"></div>
@ -7568,7 +7568,7 @@ half the width, from black to white:
<article id="Snap.plugin"> <article id="Snap.plugin">
<header> <header>
<h3 class="dr-method">Snap.plugin(f)<a href="#Snap.plugin" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3575 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3575">&#x27ad;</a></h3> <h3 class="dr-method">Snap.plugin(f)<a href="#Snap.plugin" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 3631 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3631">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.plugin-extra"></div> <div class="extra" id="Snap.plugin-extra"></div>
@ -8522,7 +8522,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.blur"> <article id="Snap.filter.blur">
<header> <header>
<h3 class="dr-method">Snap.filter.blur(x, [y])<a href="#Snap.filter.blur" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 98 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#98">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.blur(x, [y])<a href="#Snap.filter.blur" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 96 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#96">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.blur-extra"></div> <div class="extra" id="Snap.filter.blur-extra"></div>
@ -8610,7 +8610,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.shadow"> <article id="Snap.filter.shadow">
<header> <header>
<h3 class="dr-method">Snap.filter.shadow(dx, dy, [blur], [color])<a href="#Snap.filter.shadow" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 127 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#127">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.shadow(dx, dy, [blur], [color])<a href="#Snap.filter.shadow" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 125 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#125">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.shadow-extra"></div> <div class="extra" id="Snap.filter.shadow-extra"></div>
@ -8704,7 +8704,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.grayscale"> <article id="Snap.filter.grayscale">
<header> <header>
<h3 class="dr-method">Snap.filter.grayscale(amount)<a href="#Snap.filter.grayscale" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 163 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#163">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.grayscale(amount)<a href="#Snap.filter.grayscale" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 161 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#161">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.grayscale-extra"></div> <div class="extra" id="Snap.filter.grayscale-extra"></div>
@ -8764,7 +8764,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.sepia"> <article id="Snap.filter.sepia">
<header> <header>
<h3 class="dr-method">Snap.filter.sepia(amount)<a href="#Snap.filter.sepia" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 190 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#190">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.sepia(amount)<a href="#Snap.filter.sepia" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 188 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#188">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.sepia-extra"></div> <div class="extra" id="Snap.filter.sepia-extra"></div>
@ -8824,7 +8824,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.saturate"> <article id="Snap.filter.saturate">
<header> <header>
<h3 class="dr-method">Snap.filter.saturate(amount)<a href="#Snap.filter.saturate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 218 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#218">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.saturate(amount)<a href="#Snap.filter.saturate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 216 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#216">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.saturate-extra"></div> <div class="extra" id="Snap.filter.saturate-extra"></div>
@ -8884,7 +8884,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.hueRotate"> <article id="Snap.filter.hueRotate">
<header> <header>
<h3 class="dr-method">Snap.filter.hueRotate(angle)<a href="#Snap.filter.hueRotate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 238 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#238">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.hueRotate(angle)<a href="#Snap.filter.hueRotate" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 236 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#236">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.hueRotate-extra"></div> <div class="extra" id="Snap.filter.hueRotate-extra"></div>
@ -8944,7 +8944,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.invert"> <article id="Snap.filter.invert">
<header> <header>
<h3 class="dr-method">Snap.filter.invert(amount)<a href="#Snap.filter.invert" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 256 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#256">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.invert(amount)<a href="#Snap.filter.invert" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 254 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#254">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.invert-extra"></div> <div class="extra" id="Snap.filter.invert-extra"></div>
@ -9004,7 +9004,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.brightness"> <article id="Snap.filter.brightness">
<header> <header>
<h3 class="dr-method">Snap.filter.brightness(amount)<a href="#Snap.filter.brightness" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 277 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#277">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.brightness(amount)<a href="#Snap.filter.brightness" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 275 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#275">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.brightness-extra"></div> <div class="extra" id="Snap.filter.brightness-extra"></div>
@ -9064,7 +9064,7 @@ prototypes). This allow you to extend anything you want.
<article id="Snap.filter.contrast"> <article id="Snap.filter.contrast">
<header> <header>
<h3 class="dr-method">Snap.filter.contrast(amount)<a href="#Snap.filter.contrast" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 297 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#297">&#x27ad;</a></h3> <h3 class="dr-method">Snap.filter.contrast(amount)<a href="#Snap.filter.contrast" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 295 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#295">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Snap.filter.contrast-extra"></div> <div class="extra" id="Snap.filter.contrast-extra"></div>
@ -9124,7 +9124,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.click"> <article id="Element.click">
<header> <header>
<h3 class="dr-method">Element.click(handler)<a href="#Element.click" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 155 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#155">&#x27ad;</a></h3> <h3 class="dr-method">Element.click(handler)<a href="#Element.click" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 165 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#165">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.click-extra"></div> <div class="extra" id="Element.click-extra"></div>
@ -9184,7 +9184,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unclick"> <article id="Element.unclick">
<header> <header>
<h3 class="dr-method">Element.unclick(handler)<a href="#Element.unclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 163 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#163">&#x27ad;</a></h3> <h3 class="dr-method">Element.unclick(handler)<a href="#Element.unclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 173 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#173">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unclick-extra"></div> <div class="extra" id="Element.unclick-extra"></div>
@ -9244,7 +9244,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.dblclick"> <article id="Element.dblclick">
<header> <header>
<h3 class="dr-method">Element.dblclick(handler)<a href="#Element.dblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 172 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#172">&#x27ad;</a></h3> <h3 class="dr-method">Element.dblclick(handler)<a href="#Element.dblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 182 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#182">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.dblclick-extra"></div> <div class="extra" id="Element.dblclick-extra"></div>
@ -9304,7 +9304,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.undblclick"> <article id="Element.undblclick">
<header> <header>
<h3 class="dr-method">Element.undblclick(handler)<a href="#Element.undblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 180 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#180">&#x27ad;</a></h3> <h3 class="dr-method">Element.undblclick(handler)<a href="#Element.undblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 190 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#190">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.undblclick-extra"></div> <div class="extra" id="Element.undblclick-extra"></div>
@ -9364,7 +9364,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.mousedown"> <article id="Element.mousedown">
<header> <header>
<h3 class="dr-method">Element.mousedown(handler)<a href="#Element.mousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 189 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#189">&#x27ad;</a></h3> <h3 class="dr-method">Element.mousedown(handler)<a href="#Element.mousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 199 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#199">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mousedown-extra"></div> <div class="extra" id="Element.mousedown-extra"></div>
@ -9424,7 +9424,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unmousedown"> <article id="Element.unmousedown">
<header> <header>
<h3 class="dr-method">Element.unmousedown(handler)<a href="#Element.unmousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 197 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#197">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmousedown(handler)<a href="#Element.unmousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 207 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#207">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmousedown-extra"></div> <div class="extra" id="Element.unmousedown-extra"></div>
@ -9484,7 +9484,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.mousemove"> <article id="Element.mousemove">
<header> <header>
<h3 class="dr-method">Element.mousemove(handler)<a href="#Element.mousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 206 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#206">&#x27ad;</a></h3> <h3 class="dr-method">Element.mousemove(handler)<a href="#Element.mousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 216 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#216">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mousemove-extra"></div> <div class="extra" id="Element.mousemove-extra"></div>
@ -9544,7 +9544,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unmousemove"> <article id="Element.unmousemove">
<header> <header>
<h3 class="dr-method">Element.unmousemove(handler)<a href="#Element.unmousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 214 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#214">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmousemove(handler)<a href="#Element.unmousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 224 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#224">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmousemove-extra"></div> <div class="extra" id="Element.unmousemove-extra"></div>
@ -9604,7 +9604,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.mouseout"> <article id="Element.mouseout">
<header> <header>
<h3 class="dr-method">Element.mouseout(handler)<a href="#Element.mouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 223 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#223">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseout(handler)<a href="#Element.mouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 233 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#233">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseout-extra"></div> <div class="extra" id="Element.mouseout-extra"></div>
@ -9664,7 +9664,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unmouseout"> <article id="Element.unmouseout">
<header> <header>
<h3 class="dr-method">Element.unmouseout(handler)<a href="#Element.unmouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 231 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#231">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseout(handler)<a href="#Element.unmouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 241 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#241">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseout-extra"></div> <div class="extra" id="Element.unmouseout-extra"></div>
@ -9724,7 +9724,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.mouseover"> <article id="Element.mouseover">
<header> <header>
<h3 class="dr-method">Element.mouseover(handler)<a href="#Element.mouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 240 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#240">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseover(handler)<a href="#Element.mouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 250 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#250">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseover-extra"></div> <div class="extra" id="Element.mouseover-extra"></div>
@ -9784,7 +9784,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unmouseover"> <article id="Element.unmouseover">
<header> <header>
<h3 class="dr-method">Element.unmouseover(handler)<a href="#Element.unmouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 248 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#248">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseover(handler)<a href="#Element.unmouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 258 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#258">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseover-extra"></div> <div class="extra" id="Element.unmouseover-extra"></div>
@ -9844,7 +9844,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.mouseup"> <article id="Element.mouseup">
<header> <header>
<h3 class="dr-method">Element.mouseup(handler)<a href="#Element.mouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 257 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#257">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseup(handler)<a href="#Element.mouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 267 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#267">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseup-extra"></div> <div class="extra" id="Element.mouseup-extra"></div>
@ -9904,7 +9904,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unmouseup"> <article id="Element.unmouseup">
<header> <header>
<h3 class="dr-method">Element.unmouseup(handler)<a href="#Element.unmouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 265 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#265">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseup(handler)<a href="#Element.unmouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 275 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#275">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseup-extra"></div> <div class="extra" id="Element.unmouseup-extra"></div>
@ -9964,7 +9964,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.touchstart"> <article id="Element.touchstart">
<header> <header>
<h3 class="dr-method">Element.touchstart(handler)<a href="#Element.touchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 274 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#274">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchstart(handler)<a href="#Element.touchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 284 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#284">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchstart-extra"></div> <div class="extra" id="Element.touchstart-extra"></div>
@ -10024,7 +10024,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.untouchstart"> <article id="Element.untouchstart">
<header> <header>
<h3 class="dr-method">Element.untouchstart(handler)<a href="#Element.untouchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 282 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#282">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchstart(handler)<a href="#Element.untouchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 292 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#292">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchstart-extra"></div> <div class="extra" id="Element.untouchstart-extra"></div>
@ -10084,7 +10084,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.touchmove"> <article id="Element.touchmove">
<header> <header>
<h3 class="dr-method">Element.touchmove(handler)<a href="#Element.touchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 291 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#291">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchmove(handler)<a href="#Element.touchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 301 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#301">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchmove-extra"></div> <div class="extra" id="Element.touchmove-extra"></div>
@ -10144,7 +10144,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.untouchmove"> <article id="Element.untouchmove">
<header> <header>
<h3 class="dr-method">Element.untouchmove(handler)<a href="#Element.untouchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 299 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#299">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchmove(handler)<a href="#Element.untouchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 309 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#309">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchmove-extra"></div> <div class="extra" id="Element.untouchmove-extra"></div>
@ -10204,7 +10204,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.touchend"> <article id="Element.touchend">
<header> <header>
<h3 class="dr-method">Element.touchend(handler)<a href="#Element.touchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 308 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#308">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchend(handler)<a href="#Element.touchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 318 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#318">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchend-extra"></div> <div class="extra" id="Element.touchend-extra"></div>
@ -10264,7 +10264,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.untouchend"> <article id="Element.untouchend">
<header> <header>
<h3 class="dr-method">Element.untouchend(handler)<a href="#Element.untouchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 316 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#316">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchend(handler)<a href="#Element.untouchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 326 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#326">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchend-extra"></div> <div class="extra" id="Element.untouchend-extra"></div>
@ -10324,7 +10324,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.touchcancel"> <article id="Element.touchcancel">
<header> <header>
<h3 class="dr-method">Element.touchcancel(handler)<a href="#Element.touchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 325 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#325">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchcancel(handler)<a href="#Element.touchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 335 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#335">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchcancel-extra"></div> <div class="extra" id="Element.touchcancel-extra"></div>
@ -10384,7 +10384,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.untouchcancel"> <article id="Element.untouchcancel">
<header> <header>
<h3 class="dr-method">Element.untouchcancel(handler)<a href="#Element.untouchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 333 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#333">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchcancel(handler)<a href="#Element.untouchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 343 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#343">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchcancel-extra"></div> <div class="extra" id="Element.untouchcancel-extra"></div>
@ -10444,7 +10444,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.hover"> <article id="Element.hover">
<header> <header>
<h3 class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 372 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#372">&#x27ad;</a></h3> <h3 class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 382 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#382">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.hover-extra"></div> <div class="extra" id="Element.hover-extra"></div>
@ -10513,7 +10513,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.unhover"> <article id="Element.unhover">
<header> <header>
<h3 class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 384 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#384">&#x27ad;</a></h3> <h3 class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 394 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#394">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unhover-extra"></div> <div class="extra" id="Element.unhover-extra"></div>
@ -10576,7 +10576,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.drag"> <article id="Element.drag">
<header> <header>
<h3 class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 422 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#422">&#x27ad;</a></h3> <h3 class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 432 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#432">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.drag-extra"></div> <div class="extra" id="Element.drag-extra"></div>
@ -10795,7 +10795,7 @@ prototypes). This allow you to extend anything you want.
<article id="Element.undrag"> <article id="Element.undrag">
<header> <header>
<h3 class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 468 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#468">&#x27ad;</a></h3> <h3 class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 476 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#476">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.undrag-extra"></div> <div class="extra" id="Element.undrag-extra"></div>

View File

@ -1,6 +1,6 @@
{ {
"name": "snapsvg", "name": "snapsvg",
"version": "0.1.1", "version": "0.2.0",
"description": "JavaScript Vector Library", "description": "JavaScript Vector Library",
"main": "Gruntfile.js", "main": "Gruntfile.js",
"repository": { "repository": {

View File

@ -70,7 +70,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
id = value.id; id = value.id;
} }
$(this.node, { $(this.node, {
filter: "url(#" + id + ")" filter: Snap.url(id)
}); });
} }
if (!value || value == "none") { if (!value || value == "none") {
@ -78,8 +78,6 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
this.node.removeAttribute("filter"); this.node.removeAttribute("filter");
} }
}); });
// SIERRA Would help to clarify when various Snap.filter.* matches the behavior of CSS filter property keyword functions. E.g., I don't think CSS's blur() accepts a second parameter for y axis.
// SIERRA Would also be useful to illustrate a chain of >1 filter as a code snippet.
/*\ /*\
* Snap.filter.blur * Snap.filter.blur
[ method ] [ method ]

View File

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
var Snap = (function() { var Snap = (function() {
Snap.version = "0.1.1"; Snap.version = "0.2.0";
/*\ /*\
* Snap * Snap
[ method ] [ method ]
@ -87,7 +87,10 @@ var has = "hasOwnProperty",
}, },
xlink = "http://www.w3.org/1999/xlink", xlink = "http://www.w3.org/1999/xlink",
xmlns = "http://www.w3.org/2000/svg", xmlns = "http://www.w3.org/2000/svg",
hub = {}; hub = {},
URL = Snap.url = function (url) {
return "url('#" + url + "')";
};
function $(el, attr) { function $(el, attr) {
if (attr) { if (attr) {
@ -1164,7 +1167,9 @@ function transform2matrix(tstr, bbox) {
x2, x2,
y2, y2,
bb; bb;
if (command == "t" && tlen == 3) { if (command == "t" && tlen == 2){
m.translate(t[1], 0);
} else if (command == "t" && tlen == 3) {
if (absolute) { if (absolute) {
x1 = inver.x(0, 0); x1 = inver.x(0, 0);
y1 = inver.y(0, 0); y1 = inver.y(0, 0);
@ -1457,7 +1462,6 @@ function arrayFirstValue(arr) {
} }
} }
(function (elproto) { (function (elproto) {
// SIERRA Element.attr(): There appear to be two possible return values, one of which is blank. (Search the doc for _Returns:_ to identify problems.)
/*\ /*\
* Element.attr * Element.attr
[ method ] [ method ]
@ -1903,7 +1907,7 @@ function arrayFirstValue(arr) {
if (val) { if (val) {
uses[val] = (uses[val] || []).concat(function (id) { uses[val] = (uses[val] || []).concat(function (id) {
var attr = {}; var attr = {};
attr[name] = "url(#" + id + ")"; attr[name] = URL(id);
$(it.node, attr); $(it.node, attr);
}); });
} }
@ -2866,6 +2870,11 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
> Usage > Usage
| var t1 = paper.text(50, 50, "Snap"); | var t1 = paper.text(50, 50, "Snap");
| var t2 = paper.text(50, 50, ["S","n","a","p"]); | var t2 = paper.text(50, 50, ["S","n","a","p"]);
| // Text path usage
| t1.attr({textpath: "M10,10L100,100"});
| // or
| var pth = paper.path("M10,10L100,100");
| t1.attr({textpath: pth});
\*/ \*/
proto.text = function (x, y, text) { proto.text = function (x, y, text) {
var el = make("text", this.node); var el = make("text", this.node);
@ -3134,7 +3143,7 @@ eve.on("snap.util.attr.mask", function (value) {
}); });
} }
$(this.node, { $(this.node, {
mask: "url(#" + mask.id + ")" mask: URL(mask.id)
}); });
} }
}); });
@ -3155,7 +3164,7 @@ eve.on("snap.util.attr.mask", function (value) {
}); });
} }
$(this.node, { $(this.node, {
"clip-path": "url(#" + clip.id + ")" "clip-path": URL(clip.id)
}); });
} }
})); }));
@ -3178,7 +3187,7 @@ function fillStroke(name) {
id: value.id id: value.id
}); });
} }
var fill = "url(#" + value.node.id + ")"; var fill = URL(value.node.id);
} else { } else {
fill = value.attr(name); fill = value.attr(name);
} }
@ -3192,7 +3201,7 @@ function fillStroke(name) {
id: grad.id id: grad.id
}); });
} }
fill = "url(#" + grad.node.id + ")"; fill = URL(grad.node.id);
} else { } else {
fill = value; fill = value;
} }
@ -3293,6 +3302,53 @@ eve.on("snap.util.attr.r", function (value) {
}); });
} }
})(-1); })(-1);
eve.on("snap.util.attr.textpath", function (value) {
eve.stop();
if (this.type == "text") {
var id, tp, node;
if (!value && this.textPath) {
tp = this.textPath;
while (tp.node.firstChild) {
this.node.appendChild(tp.node.firstChild);
}
tp.remove();
delete this.textPath;
return;
}
if (is(value, "string")) {
var defs = getSomeDefs(this),
path = wrap(defs.parentNode).path(value);
defs.appendChild(path.node);
id = path.id;
path.attr({id: id});
} else {
value = wrap(value);
if (value instanceof Element) {
id = value.attr("id");
if (!id) {
id = value.id;
value.attr({id: id});
}
}
}
if (id) {
tp = this.textPath;
node = this.node;
if (tp) {
tp.attr({"xlink:href": "#" + id});
} else {
tp = $("textPath", {
"xlink:href": "#" + id
});
while (node.firstChild) {
tp.appendChild(node.firstChild);
}
node.appendChild(tp);
this.textPath = wrap(tp);
}
}
}
})(-1);
eve.on("snap.util.attr.text", function (value) { eve.on("snap.util.attr.text", function (value) {
if (this.type == "text") { if (this.type == "text") {
var i = 0, var i = 0,
@ -3405,6 +3461,10 @@ eve.on("snap.util.getattr.transform", function () {
eve.stop(); eve.stop();
return this.transform(); return this.transform();
})(-1); })(-1);
eve.on("snap.util.getattr.textpath", function () {
eve.stop();
return this.textPath;
})(-1);
// Markers // Markers
(function () { (function () {
function getter(end) { function getter(end) {
@ -3431,7 +3491,7 @@ eve.on("snap.util.getattr.transform", function () {
if (!id) { if (!id) {
$(value.node, {id: value.id}); $(value.node, {id: value.id});
} }
this.node.style[name] = "url(#" + id + ")"; this.node.style[name] = URL(id);
return; return;
} }
}; };

View File

@ -42,6 +42,13 @@ describe("Element methods", function () {
expect(s.node.lastChild).to.be(rect.node); expect(s.node.lastChild).to.be(rect.node);
expect(result).to.be(s); expect(result).to.be(s);
}); });
it("Element.appendTo (for Element)", function () {
var rect = s.rect(10, 20, 30, 40);
var result = rect.appendTo(s);
expect(rect.node.parentNode).to.be(s.node);
expect(s.node.lastChild).to.be(rect.node);
expect(result).to.be(rect);
});
it("Element.append (for Set)", function () { it("Element.append (for Set)", function () {
var rect1 = s.rect(10, 20, 30, 40); var rect1 = s.rect(10, 20, 30, 40);
var rect2 = s.rect(10, 20, 30, 40); var rect2 = s.rect(10, 20, 30, 40);
@ -51,13 +58,6 @@ describe("Element methods", function () {
expect(rect2.node.parentNode).to.be(s.node); expect(rect2.node.parentNode).to.be(s.node);
expect(result).to.be(s); expect(result).to.be(s);
}); });
it("Element.appendTo", function() {
var rect = s.rect(10, 20, 30, 40);
var result = rect.appendTo(s);
expect(rect.node.parentNode).to.be(s.node);
expect(s.node.lastChild).to.be(rect.node);
expect(result).to.be(rect);
});
it("Element.after", function() { it("Element.after", function() {
var circle = s.circle(10, 20, 30); var circle = s.circle(10, 20, 30);
var rect = s.rect(10, 20, 30, 40); var rect = s.rect(10, 20, 30, 40);
@ -171,6 +171,17 @@ describe("Element methods", function () {
group.attr({'class': 'myclass'}); group.attr({'class': 'myclass'});
expect(group.node.getAttribute('class')).to.be('myclass'); expect(group.node.getAttribute('class')).to.be('myclass');
}); });
it("Element.attr - textPath", function() {
var txt = s.text(20, 20, "test");
txt.attr({textpath: "M10,20L100,100"});
expect(txt.node.firstChild.tagName).to.be("textPath");
});
it("Element.attr - textPath", function() {
var txt = s.text(20, 20, "test"),
pth = s.path("M10,20L100,100");
txt.attr({textpath: pth});
expect(txt.node.firstChild.tagName).to.be("textPath");
});
it("Element.data", function() { it("Element.data", function() {
var circle = s.circle(10, 20, 30); var circle = s.circle(10, 20, 30);
circle.data("foo", "bar"); circle.data("foo", "bar");
@ -204,15 +215,17 @@ describe("Element methods", function () {
expect(circle.data("my-number")).to.be(undefined); expect(circle.data("my-number")).to.be(undefined);
}); });
it("Element.asPX - from %", function() { it("Element.asPX - from %", function() {
s.attr({width: "200"}); // NOTE: This is only working with "200" as string, fails as number s.attr({width: 200});
var rect = s.rect(0, 0, '100%', 10); var rect = s.rect(0, 0, "100%", 10);
var widthAsPx = rect.asPX("width"); var widthAsPx = rect.asPX("width");
expect(widthAsPx).to.be(200); expect(widthAsPx).to.be(200);
}); });
it("Element.getBBox", function() { it("Element.getBBox", function() {
var rect = s.rect(10, 20, 30, 40); var rect = s.rect(10, 20, 30, 40),
var bbox = rect.getBBox(); bbox = rect.getBBox(),
line = s.line(10, 20, 40, 60),
lbbx = line.getBBox();
expect(bbox.x).to.eql(10); expect(bbox.x).to.eql(10);
expect(bbox.y).to.eql(20); expect(bbox.y).to.eql(20);
expect(bbox.w).to.eql(30); expect(bbox.w).to.eql(30);
@ -223,6 +236,7 @@ describe("Element methods", function () {
expect(bbox.cx).to.eql(10 + 30 / 2); expect(bbox.cx).to.eql(10 + 30 / 2);
expect(bbox.cy).to.eql(20 + 40 / 2); expect(bbox.cy).to.eql(20 + 40 / 2);
expect(bbox.y2).to.eql(20 + 40); expect(bbox.y2).to.eql(20 + 40);
expect(bbox).to.eql(lbbx);
}); });
it("Element.getPointAtLength", function() { it("Element.getPointAtLength", function() {
@ -417,7 +431,12 @@ describe("Element methods", function () {
it("Element.marker", function() { it("Element.marker", function() {
var line = s.line(0, 0, 10, 10); var line = s.line(0, 0, 10, 10);
var marker = line.marker(0, 0, 5, 5, 0, 0); var marker = line.marker(0, 0, 5, 5, 0, 0);
expect(marker.node.nodeName).to.be('marker'); expect(marker.node.nodeName).to.be("marker");
expect(marker.node.getAttribute("viewBox")).to.be("0 0 5 5");
expect(marker.node.getAttribute("markerWidth")).to.be("5");
expect(marker.node.getAttribute("markerHeight")).to.be("5");
expect(marker.node.getAttribute("refX")).to.be("0");
expect(marker.node.getAttribute("refY")).to.be("0");
}); });
it("Element.pattern", function() { it("Element.pattern", function() {
var circle = s.circle(10, 20, 30); var circle = s.circle(10, 20, 30);
@ -442,6 +461,12 @@ describe("Element methods", function () {
transform = circle.transform(); transform = circle.transform();
expect(transform.local).to.be("r90,0,0"); expect(transform.local).to.be("r90,0,0");
expect(result).to.be(circle); expect(result).to.be(circle);
circle.transform("translate(10)");
matrix = {
a: 1, b: 0, c: 0, d: 1, e: 10, f: 0
};
transform = circle.transform();
expect(transform.globalMatrix).to.eql(matrix);
}); });
it("Element.use", function() { it("Element.use", function() {
var circle = s.circle(10, 20, 30); var circle = s.circle(10, 20, 30);
@ -679,5 +704,11 @@ describe("Element methods", function () {
expect(eventOut).to.be(1); expect(eventOut).to.be(1);
expect(result2).to.be(circle); expect(result2).to.be(circle);
}); });
it("Snap.getElementByPoint", function() {
var rect = s.rect(10, 10, 30, 30).attr({id: "id"});
var res1 = Snap.getElementByPoint(15, 15);
var res2 = Snap.getElementByPoint(45, 45);
expect(res1.node.id).to.be("id");
expect(res2.node.id).to.not.be("id");
});
}); });

View File

@ -103,4 +103,12 @@ describe("Paper methods", function () {
var str = paper.toString(); var str = paper.toString();
expect(str).to.match(/.*?<svg.*?>.*?<circle.*?<\/svg>/); expect(str).to.match(/.*?<svg.*?>.*?<circle.*?<\/svg>/);
}); });
it("Paper.getBBox", function() {
paper.circle(50, 50, 30);
var bb = paper.getBBox();
expect(bb.x).to.be(20);
expect(bb.y).to.be(20);
expect(bb.width).to.be(60);
expect(bb.height).to.be(60);
});
}); });

View File

@ -27,6 +27,18 @@ describe("Set methods", function () {
expect(set.length).to.be(2); expect(set.length).to.be(2);
expect(excluded).to.be(false); expect(excluded).to.be(false);
}); });
it("Set.remove", function() {
var rect1 = s.rect(10, 20, 30, 40);
var rect2 = s.rect(10, 20, 30, 40);
var rect3 = s.rect(10, 20, 30, 40);
var set = Snap.set(rect1, rect2, rect3);
expect(set.length).to.be(3);
set.remove();
expect(set.length).to.be(0);
expect(rect1.removed).to.be(true);
expect(rect2.removed).to.be(true);
expect(rect3.removed).to.be(true);
});
it("Set.forEach", function() { it("Set.forEach", function() {
var rect1 = s.rect(10, 20, 30, 40); var rect1 = s.rect(10, 20, 30, 40);
var rect2 = s.rect(10, 20, 30, 40); var rect2 = s.rect(10, 20, 30, 40);

View File

@ -19,8 +19,8 @@
<style media="screen"> <style media="screen">
svg { svg {
position: absolute; position: absolute;
top: -999em; top: 0;
left: -999em; left: 0;
} }
</style> </style>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css"> <link rel="stylesheet" href="../node_modules/mocha/mocha.css">