parent
c58fc82583
commit
bbc1d4d7f8
File diff suppressed because one or more lines are too long
|
@ -14,7 +14,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// build: 2014-03-07
|
||||
// build: 2014-04-18
|
||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -852,6 +852,9 @@ var has = "hasOwnProperty",
|
|||
|
||||
function $(el, attr) {
|
||||
if (attr) {
|
||||
if (el == "#text") {
|
||||
el = glob.doc.createTextNode(attr.text || "");
|
||||
}
|
||||
if (typeof el == "string") {
|
||||
el = $(el);
|
||||
}
|
||||
|
@ -2051,10 +2054,6 @@ var contains = glob.doc.contains || glob.doc.compareDocumentPosition ?
|
|||
return false;
|
||||
};
|
||||
function getSomeDefs(el) {
|
||||
var cache = Snap._.someDefs;
|
||||
if (cache && contains(cache.ownerDocument.documentElement, cache)) {
|
||||
return cache;
|
||||
}
|
||||
var p = (el.node.ownerSVGElement && wrap(el.node.ownerSVGElement)) ||
|
||||
(el.node.parentNode && wrap(el.node.parentNode)) ||
|
||||
Snap.select("svg") ||
|
||||
|
@ -2064,7 +2063,6 @@ function getSomeDefs(el) {
|
|||
if (!defs) {
|
||||
defs = make("defs", p.node).node;
|
||||
}
|
||||
Snap._.someDefs = defs;
|
||||
return defs;
|
||||
}
|
||||
Snap._.getSomeDefs = getSomeDefs;
|
||||
|
@ -2099,9 +2097,9 @@ function unit2px(el, name, value) {
|
|||
}
|
||||
function set(nam, f) {
|
||||
if (name == null) {
|
||||
out[nam] = f(el.attr(nam));
|
||||
out[nam] = f(el.attr(nam) || 0);
|
||||
} else if (nam == name) {
|
||||
out = f(value == null ? el.attr(nam) : value);
|
||||
out = f(value == null ? el.attr(nam) || 0 : value);
|
||||
}
|
||||
}
|
||||
switch (el.type) {
|
||||
|
@ -2290,7 +2288,7 @@ function arrayFirstValue(arr) {
|
|||
json[params] = value;
|
||||
params = json;
|
||||
} else {
|
||||
return arrayFirstValue(eve("snap.util.getattr."+params, el));
|
||||
return arrayFirstValue(eve("snap.util.getattr." + params, el));
|
||||
}
|
||||
}
|
||||
for (var att in params) {
|
||||
|
@ -3265,7 +3263,6 @@ function make(name, parent) {
|
|||
var res = $(name);
|
||||
parent.appendChild(res);
|
||||
var el = wrap(res);
|
||||
el.type = name;
|
||||
return el;
|
||||
}
|
||||
function Paper(w, h) {
|
||||
|
@ -3478,7 +3475,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
if (ry == null) {
|
||||
ry = rx;
|
||||
}
|
||||
if (is(x, "object") && "x" in x) {
|
||||
if (is(x, "object") && x == "[object Object]") {
|
||||
attr = x;
|
||||
} else if (x != null) {
|
||||
attr = {
|
||||
|
@ -3510,7 +3507,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
\*/
|
||||
proto.circle = function (cx, cy, r) {
|
||||
var attr;
|
||||
if (is(cx, "object") && "cx" in cx) {
|
||||
if (is(cx, "object") && cx == "[object Object]") {
|
||||
attr = cx;
|
||||
} else if (cx != null) {
|
||||
attr = {
|
||||
|
@ -3585,7 +3582,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
\*/
|
||||
proto.ellipse = function (cx, cy, rx, ry) {
|
||||
var el = make("ellipse", this.node);
|
||||
if (is(cx, "object") && "cx" in cx) {
|
||||
if (is(cx, "object") && cx == "[object Object]") {
|
||||
el.attr(cx);
|
||||
} else if (cx != null) {
|
||||
el.attr({
|
||||
|
@ -3667,10 +3664,6 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
\*/
|
||||
proto.group = proto.g = function (first) {
|
||||
var el = make("g", this.node);
|
||||
el.add = add2group;
|
||||
for (var method in proto) if (proto[has](method)) {
|
||||
el[method] = proto[method];
|
||||
}
|
||||
if (arguments.length == 1 && first && !first.type) {
|
||||
el.attr(first);
|
||||
} else if (arguments.length) {
|
||||
|
@ -4470,6 +4463,7 @@ Snap.plugin = function (f) {
|
|||
glob.win.Snap = Snap;
|
||||
return Snap;
|
||||
}());
|
||||
|
||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -4977,15 +4971,15 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
},
|
||||
ellipse: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return ellipsePath(attr.cx, attr.cy, attr.rx, attr.ry);
|
||||
return ellipsePath(attr.cx || 0, attr.cy || 0, attr.rx, attr.ry);
|
||||
},
|
||||
rect: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return rectPath(attr.x, attr.y, attr.width, attr.height, attr.rx, attr.ry);
|
||||
return rectPath(attr.x || 0, attr.y || 0, attr.width, attr.height, attr.rx, attr.ry);
|
||||
},
|
||||
image: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return rectPath(attr.x, attr.y, attr.width, attr.height);
|
||||
return rectPath(attr.x || 0, attr.y || 0, attr.width, attr.height);
|
||||
},
|
||||
text: function (el) {
|
||||
var bbox = el.node.getBBox();
|
||||
|
@ -5000,7 +4994,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
|
||||
},
|
||||
line: function (el) {
|
||||
return "M" + [el.attr("x1"), el.attr("y1"), el.attr("x2"), el.attr("y2")];
|
||||
return "M" + [el.attr("x1") || 0, el.attr("y1") || 0, el.attr("x2"), el.attr("y2")];
|
||||
},
|
||||
polyline: function (el) {
|
||||
return "M" + el.attr("points");
|
||||
|
@ -5421,7 +5415,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
d.Y = path[2];
|
||||
break;
|
||||
case "A":
|
||||
path = ["C"].concat(a2c[apply](0, [d.x, d.y].concat(path.slice(1))));
|
||||
path = ["C"].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1))));
|
||||
break;
|
||||
case "S":
|
||||
if (pcom == "C" || pcom == "S") { // In "S" case we have to take into account, if the previous command is C/S.
|
||||
|
@ -5895,6 +5889,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
Snap.path.toString = toString;
|
||||
Snap.path.clone = pathClone;
|
||||
});
|
||||
|
||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
|
|
@ -861,7 +861,7 @@
|
|||
|
||||
<article id="Snap.format">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.format(token, json)<a href="#Snap.format" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.format(token, json)<a href="#Snap.format" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 184 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#184">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.format-extra"></div>
|
||||
|
@ -955,7 +955,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.rad">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.rad(deg)<a href="#Snap.rad" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.rad(deg)<a href="#Snap.rad" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.rad-extra"></div>
|
||||
|
@ -1015,7 +1015,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.deg">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.deg(rad)<a href="#Snap.deg" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.deg(rad)<a href="#Snap.deg" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.deg-extra"></div>
|
||||
|
@ -1075,7 +1075,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.angle">
|
||||
<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">⚓</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">➭</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">⚓</a><a class="dr-sourceline" title="Go to line 317 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#317">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.angle-extra"></div>
|
||||
|
@ -1161,7 +1161,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.is">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.is(o, type)<a href="#Snap.is" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.is(o, type)<a href="#Snap.is" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 327 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#327">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.is-extra"></div>
|
||||
|
@ -1224,7 +1224,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.snapTo">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.snapTo(values, value, [tolerance])<a href="#Snap.snapTo" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.snapTo(values, value, [tolerance])<a href="#Snap.snapTo" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 338 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#338">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.snapTo-extra"></div>
|
||||
|
@ -1290,7 +1290,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.add">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.add(…)<a href="#Matrix.add" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.add(…)<a href="#Matrix.add" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 400 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#400">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.add-extra"></div>
|
||||
|
@ -1377,7 +1377,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.invert">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.invert()<a href="#Matrix.invert" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.invert()<a href="#Matrix.invert" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 434 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#434">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.invert-extra"></div>
|
||||
|
@ -1419,7 +1419,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.clone">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.clone()<a href="#Matrix.clone" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.clone()<a href="#Matrix.clone" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 446 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#446">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.clone-extra"></div>
|
||||
|
@ -1461,7 +1461,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.translate">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.translate(x, y)<a href="#Matrix.translate" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.translate(x, y)<a href="#Matrix.translate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 457 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#457">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.translate-extra"></div>
|
||||
|
@ -1507,7 +1507,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.scale">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.scale(x, [y], [cx], [cy])<a href="#Matrix.scale" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.scale(x, [y], [cx], [cy])<a href="#Matrix.scale" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 471 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#471">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.scale-extra"></div>
|
||||
|
@ -1570,7 +1570,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.rotate">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.rotate(a, x, y)<a href="#Matrix.rotate" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.rotate(a, x, y)<a href="#Matrix.rotate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 487 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#487">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.rotate-extra"></div>
|
||||
|
@ -1619,7 +1619,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.x">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.x(x, y)<a href="#Matrix.x" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.x(x, y)<a href="#Matrix.x" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 505 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#505">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.x-extra"></div>
|
||||
|
@ -1682,7 +1682,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.y">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.y(x, y)<a href="#Matrix.y" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.y(x, y)<a href="#Matrix.y" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 517 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#517">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.y-extra"></div>
|
||||
|
@ -1745,7 +1745,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.determinant">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.determinant()<a href="#Matrix.determinant" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 541 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#541">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.determinant()<a href="#Matrix.determinant" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 544 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#544">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.determinant-extra"></div>
|
||||
|
@ -1787,7 +1787,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.split">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.split()<a href="#Matrix.split" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 558 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#558">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.split()<a href="#Matrix.split" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 561 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#561">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.split-extra"></div>
|
||||
|
@ -1897,7 +1897,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Matrix.toTransformString">
|
||||
<header>
|
||||
<h3 class="dr-method">Matrix.toTransformString()<a href="#Matrix.toTransformString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 604 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#604">➭</a></h3>
|
||||
<h3 class="dr-method">Matrix.toTransformString()<a href="#Matrix.toTransformString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 607 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#607">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Matrix.toTransformString-extra"></div>
|
||||
|
@ -1939,7 +1939,7 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
|
|||
|
||||
<article id="Snap.Matrix">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.Matrix(…)<a href="#Snap.Matrix" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 635 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#635">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.Matrix(…)<a href="#Snap.Matrix" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 638 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#638">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.Matrix-extra"></div>
|
||||
|
@ -2044,7 +2044,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.getRGB">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.getRGB(color)<a href="#Snap.getRGB" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 670 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#670">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.getRGB(color)<a href="#Snap.getRGB" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 673 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#673">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.getRGB-extra"></div>
|
||||
|
@ -2379,7 +2379,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.hsb">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.hsb(h, s, b)<a href="#Snap.hsb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 759 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#759">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.hsb(h, s, b)<a href="#Snap.hsb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 762 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#762">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.hsb-extra"></div>
|
||||
|
@ -2445,7 +2445,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.hsl">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.hsl(h, s, l)<a href="#Snap.hsl" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 772 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#772">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.hsl(h, s, l)<a href="#Snap.hsl" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 775 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#775">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.hsl-extra"></div>
|
||||
|
@ -2511,7 +2511,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.rgb">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.rgb(r, g, b)<a href="#Snap.rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 785 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#785">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.rgb(r, g, b)<a href="#Snap.rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 788 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#788">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.rgb-extra"></div>
|
||||
|
@ -2577,7 +2577,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.color">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.color(clr)<a href="#Snap.color" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 872 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#872">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.color(clr)<a href="#Snap.color" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 875 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#875">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.color-extra"></div>
|
||||
|
@ -2729,7 +2729,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.hsb2rgb">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.hsb2rgb(h, s, v)<a href="#Snap.hsb2rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 924 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#924">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.hsb2rgb(h, s, v)<a href="#Snap.hsb2rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 927 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#927">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.hsb2rgb-extra"></div>
|
||||
|
@ -2847,7 +2847,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.hsl2rgb">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.hsl2rgb(h, s, l)<a href="#Snap.hsl2rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 960 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#960">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.hsl2rgb(h, s, l)<a href="#Snap.hsl2rgb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 963 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#963">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.hsl2rgb-extra"></div>
|
||||
|
@ -2965,7 +2965,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.rgb2hsb">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.rgb2hsb(r, g, b)<a href="#Snap.rgb2hsb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 999 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#999">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.rgb2hsb(r, g, b)<a href="#Snap.rgb2hsb" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1002 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1002">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.rgb2hsb-extra"></div>
|
||||
|
@ -3075,7 +3075,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.rgb2hsl">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.rgb2hsl(r, g, b)<a href="#Snap.rgb2hsl" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1032 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1032">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.rgb2hsl(r, g, b)<a href="#Snap.rgb2hsl" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1035 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1035">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.rgb2hsl-extra"></div>
|
||||
|
@ -3185,7 +3185,7 @@ Returns a matrix based on the given parameters
|
|||
|
||||
<article id="Snap.parsePathString">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.parsePathString(pathString)<a href="#Snap.parsePathString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1066 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1066">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.parsePathString(pathString)<a href="#Snap.parsePathString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1069 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1069">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.parsePathString-extra"></div>
|
||||
|
@ -3246,7 +3246,7 @@ Parses given path string into an array of arrays of path segments
|
|||
|
||||
<article id="Snap.parseTransformString">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.parseTransformString(TString)<a href="#Snap.parseTransformString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1119 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1119">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.parseTransformString(TString)<a href="#Snap.parseTransformString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1122 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1122">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.parseTransformString-extra"></div>
|
||||
|
@ -3307,7 +3307,7 @@ Parses given transform string into an array of transformations
|
|||
|
||||
<article id="Snap.select">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.select(query)<a href="#Snap.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1404 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1404">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.select(query)<a href="#Snap.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1402 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1402">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.select-extra"></div>
|
||||
|
@ -3367,7 +3367,7 @@ Parses given transform string into an array of transformations
|
|||
|
||||
<article id="Snap.selectAll">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.selectAll(query)<a href="#Snap.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1415 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1415">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.selectAll(query)<a href="#Snap.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1413 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1413">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.selectAll-extra"></div>
|
||||
|
@ -3427,7 +3427,7 @@ Parses given transform string into an array of transformations
|
|||
|
||||
<article id="Element.node">
|
||||
<header>
|
||||
<h3 class="dr-property">Element.node(x, y, width, height, refX, refY)<a href="#Element.node" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1468 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1468">➭</a></h3>
|
||||
<h3 class="dr-property">Element.node(x, y, width, height, refX, refY)<a href="#Element.node" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1466 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1466">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.node-extra"></div>
|
||||
|
@ -3478,7 +3478,7 @@ c.node.onclick = function () {
|
|||
|
||||
<article id="Element.type">
|
||||
<header>
|
||||
<h3 class="dr-property">Element.type(tstr)<a href="#Element.type" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1478 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1478">➭</a></h3>
|
||||
<h3 class="dr-property">Element.type(tstr)<a href="#Element.type" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1476 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1476">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.type-extra"></div>
|
||||
|
@ -3503,7 +3503,7 @@ c.node.onclick = function () {
|
|||
|
||||
<article id="Element.attr">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.attr(…)<a href="#Element.attr" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1523 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1523">➭</a></h3>
|
||||
<h3 class="dr-method">Element.attr(…)<a href="#Element.attr" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1521 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1521">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.attr-extra"></div>
|
||||
|
@ -3648,7 +3648,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.getBBox">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.getBBox()<a href="#Element.getBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1572 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1572">➭</a></h3>
|
||||
<h3 class="dr-method">Element.getBBox()<a href="#Element.getBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1570 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1570">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.getBBox-extra"></div>
|
||||
|
@ -3830,7 +3830,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.transform">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.transform(tstr)<a href="#Element.transform" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1618 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1618">➭</a></h3>
|
||||
<h3 class="dr-method">Element.transform(tstr)<a href="#Element.transform" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1616 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1616">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.transform-extra"></div>
|
||||
|
@ -3994,7 +3994,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.parent">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.parent()<a href="#Element.parent" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Element.parent()<a href="#Element.parent" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1660 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1660">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.parent-extra"></div>
|
||||
|
@ -4036,7 +4036,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.append">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.append(el)<a href="#Element.append" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1674 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1674">➭</a></h3>
|
||||
<h3 class="dr-method">Element.append(el)<a href="#Element.append" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1672 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1672">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.append-extra"></div>
|
||||
|
@ -4096,7 +4096,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.add">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.add()<a href="#Element.add" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1680 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1680">➭</a></h3>
|
||||
<h3 class="dr-method">Element.add()<a href="#Element.add" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.add-extra"></div>
|
||||
|
@ -4121,7 +4121,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.appendTo">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.appendTo(el)<a href="#Element.appendTo" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Element.appendTo(el)<a href="#Element.appendTo" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1702 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1702">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.appendTo-extra"></div>
|
||||
|
@ -4181,7 +4181,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.prepend">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.prepend(el)<a href="#Element.prepend" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1720 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1720">➭</a></h3>
|
||||
<h3 class="dr-method">Element.prepend(el)<a href="#Element.prepend" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.prepend-extra"></div>
|
||||
|
@ -4241,7 +4241,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.prependTo">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.prependTo(el)<a href="#Element.prependTo" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Element.prependTo(el)<a href="#Element.prependTo" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1739 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1739">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.prependTo-extra"></div>
|
||||
|
@ -4301,7 +4301,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.before">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.before(el)<a href="#Element.before" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1755 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1755">➭</a></h3>
|
||||
<h3 class="dr-method">Element.before(el)<a href="#Element.before" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1753 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1753">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.before-extra"></div>
|
||||
|
@ -4361,7 +4361,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.after">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.after(el)<a href="#Element.after" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1783 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1783">➭</a></h3>
|
||||
<h3 class="dr-method">Element.after(el)<a href="#Element.after" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.after-extra"></div>
|
||||
|
@ -4421,7 +4421,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.insertBefore">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.insertBefore(el)<a href="#Element.insertBefore" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1805 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1805">➭</a></h3>
|
||||
<h3 class="dr-method">Element.insertBefore(el)<a href="#Element.insertBefore" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1803 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1803">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.insertBefore-extra"></div>
|
||||
|
@ -4481,7 +4481,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.insertAfter">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.insertAfter(el)<a href="#Element.insertAfter" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1823 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1823">➭</a></h3>
|
||||
<h3 class="dr-method">Element.insertAfter(el)<a href="#Element.insertAfter" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1821 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1821">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.insertAfter-extra"></div>
|
||||
|
@ -4541,7 +4541,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.remove">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.remove()<a href="#Element.remove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1839 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1839">➭</a></h3>
|
||||
<h3 class="dr-method">Element.remove()<a href="#Element.remove" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1837 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1837">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.remove-extra"></div>
|
||||
|
@ -4583,7 +4583,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.select">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.select(query)<a href="#Element.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1856 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1856">➭</a></h3>
|
||||
<h3 class="dr-method">Element.select(query)<a href="#Element.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1854 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1854">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.select-extra"></div>
|
||||
|
@ -4643,7 +4643,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.selectAll">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.selectAll(query)<a href="#Element.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1868 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1868">➭</a></h3>
|
||||
<h3 class="dr-method">Element.selectAll(query)<a href="#Element.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1866 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1866">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.selectAll-extra"></div>
|
||||
|
@ -4705,7 +4705,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.asPX">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.asPX(attr, [value])<a href="#Element.asPX" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1886 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1886">➭</a></h3>
|
||||
<h3 class="dr-method">Element.asPX(attr, [value])<a href="#Element.asPX" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1884 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1884">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.asPX-extra"></div>
|
||||
|
@ -4768,7 +4768,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.use">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.use()<a href="#Element.use" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1901 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1901">➭</a></h3>
|
||||
<h3 class="dr-method">Element.use()<a href="#Element.use" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1899 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1899">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.use-extra"></div>
|
||||
|
@ -4810,7 +4810,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.clone">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.clone()<a href="#Element.clone" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1930 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1930">➭</a></h3>
|
||||
<h3 class="dr-method">Element.clone()<a href="#Element.clone" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1928 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#1928">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.clone-extra"></div>
|
||||
|
@ -4852,7 +4852,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.toDefs">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.toDefs()<a href="#Element.toDefs" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2033 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2033">➭</a></h3>
|
||||
<h3 class="dr-method">Element.toDefs()<a href="#Element.toDefs" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2031 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2031">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.toDefs-extra"></div>
|
||||
|
@ -4894,7 +4894,7 @@ console.log(el.attr("fill")); // #fc0</code></pre></section>
|
|||
|
||||
<article id="Element.pattern">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.pattern(x, y, width, height)<a href="#Element.pattern" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2063 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2063">➭</a></h3>
|
||||
<h3 class="dr-method">Element.pattern(x, y, width, height)<a href="#Element.pattern" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2061 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2061">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.pattern-extra"></div>
|
||||
|
@ -4994,7 +4994,7 @@ c.attr({
|
|||
|
||||
<article id="Element.marker">
|
||||
<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">⚓</a><a class="dr-sourceline" title="Go to line 2104 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2104">➭</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">⚓</a><a class="dr-sourceline" title="Go to line 2102 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2102">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.marker-extra"></div>
|
||||
|
@ -5081,7 +5081,7 @@ To create a marker you have to specify the bounding rect and reference point:
|
|||
|
||||
<article id="Snap.animation">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.animation(attr, duration, [easing], [callback])<a href="#Snap.animation" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2162 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2162">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.animation(attr, duration, [easing], [callback])<a href="#Snap.animation" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2160 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2160">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.animation-extra"></div>
|
||||
|
@ -5150,7 +5150,7 @@ To create a marker you have to specify the bounding rect and reference point:
|
|||
|
||||
<article id="Element.inAnim">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.inAnim()<a href="#Element.inAnim" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2179 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2179">➭</a></h3>
|
||||
<h3 class="dr-method">Element.inAnim()<a href="#Element.inAnim" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2177 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2177">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.inAnim-extra"></div>
|
||||
|
@ -5244,7 +5244,7 @@ To create a marker you have to specify the bounding rect and reference point:
|
|||
|
||||
<article id="Snap.animate">
|
||||
<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">⚓</a><a class="dr-sourceline" title="Go to line 2228 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2228">➭</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">⚓</a><a class="dr-sourceline" title="Go to line 2226 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2226">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.animate-extra"></div>
|
||||
|
@ -5405,7 +5405,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
|
|||
|
||||
<article id="Element.stop">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.stop()<a href="#Element.stop" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2246 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2246">➭</a></h3>
|
||||
<h3 class="dr-method">Element.stop()<a href="#Element.stop" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2244 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2244">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.stop-extra"></div>
|
||||
|
@ -5447,7 +5447,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
|
|||
|
||||
<article id="Element.animate">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.animate(attrs, duration, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2267 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2267">➭</a></h3>
|
||||
<h3 class="dr-method">Element.animate(attrs, duration, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2265 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2265">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.animate-extra"></div>
|
||||
|
@ -5516,7 +5516,7 @@ rect.animate({x: 10}, 1000);</code></pre></section>
|
|||
|
||||
<article id="Element.data">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.data(key, [value])<a href="#Element.data" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2339 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2339">➭</a></h3>
|
||||
<h3 class="dr-method">Element.data(key, [value])<a href="#Element.data" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2337 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2337">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.data-extra"></div>
|
||||
|
@ -5638,7 +5638,7 @@ with <code>data-</code> attributes)
|
|||
|
||||
<article id="Element.removeData">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.removeData([key])<a href="#Element.removeData" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2368 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2368">➭</a></h3>
|
||||
<h3 class="dr-method">Element.removeData([key])<a href="#Element.removeData" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2366 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2366">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.removeData-extra"></div>
|
||||
|
@ -5699,7 +5699,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Element.outerSVG">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.outerSVG()<a href="#Element.outerSVG" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2385 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2385">➭</a></h3>
|
||||
<h3 class="dr-method">Element.outerSVG()<a href="#Element.outerSVG" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2383 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2383">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.outerSVG-extra"></div>
|
||||
|
@ -5742,7 +5742,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="undefined">
|
||||
<header>
|
||||
<h3 class="dr-method">undefined<a href="#undefined" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2391 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2391">➭</a></h3>
|
||||
<h3 class="dr-method">undefined<a href="#undefined" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2389 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2389">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="undefined-extra"></div>
|
||||
|
@ -5767,7 +5767,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Element.innerSVG">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.innerSVG()<a href="#Element.innerSVG" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2399 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2399">➭</a></h3>
|
||||
<h3 class="dr-method">Element.innerSVG()<a href="#Element.innerSVG" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2397 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2397">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.innerSVG-extra"></div>
|
||||
|
@ -5809,7 +5809,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Snap.parse">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.parse(svg)<a href="#Snap.parse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2438 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2438">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.parse(svg)<a href="#Snap.parse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2436 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2436">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.parse-extra"></div>
|
||||
|
@ -5869,7 +5869,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Fragment.select">
|
||||
<header>
|
||||
<h3 class="dr-method">Fragment.select()<a href="#Fragment.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2470 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2470">➭</a></h3>
|
||||
<h3 class="dr-method">Fragment.select()<a href="#Fragment.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2468 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2468">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Fragment.select-extra"></div>
|
||||
|
@ -5894,7 +5894,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Fragment.selectAll">
|
||||
<header>
|
||||
<h3 class="dr-method">Fragment.selectAll()<a href="#Fragment.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2477 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2477">➭</a></h3>
|
||||
<h3 class="dr-method">Fragment.selectAll()<a href="#Fragment.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2475 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2475">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Fragment.selectAll-extra"></div>
|
||||
|
@ -5919,7 +5919,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Snap.fragment">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.fragment(varargs)<a href="#Snap.fragment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2488 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2488">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.fragment(varargs)<a href="#Snap.fragment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2486 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2486">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.fragment-extra"></div>
|
||||
|
@ -5979,7 +5979,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Paper.el">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.el(name, attr)<a href="#Paper.el" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2695 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2695">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.el(name, attr)<a href="#Paper.el" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2692 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2692">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.el-extra"></div>
|
||||
|
@ -6075,7 +6075,7 @@ var c = paper.el("circle", {
|
|||
|
||||
<article id="Paper.rect">
|
||||
<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">⚓</a><a class="dr-sourceline" title="Go to line 2718 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2718">➭</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">⚓</a><a class="dr-sourceline" title="Go to line 2715 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2715">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.rect-extra"></div>
|
||||
|
@ -6175,7 +6175,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
|
|||
|
||||
<article id="Paper.circle">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.circle(x, y, r)<a href="#Paper.circle" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2753 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2753">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.circle(x, y, r)<a href="#Paper.circle" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2750 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2750">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.circle-extra"></div>
|
||||
|
@ -6263,7 +6263,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
|
|||
|
||||
<article id="Paper.image">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.image(src, x, y, width, height)<a href="#Paper.image" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2785 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2785">➭</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">⚓</a><a class="dr-sourceline" title="Go to line 2782 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2782">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.image-extra"></div>
|
||||
|
@ -6385,7 +6385,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
|
|||
|
||||
<article id="Paper.ellipse">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.ellipse(x, y, rx, ry)<a href="#Paper.ellipse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2828 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2828">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.ellipse(x, y, rx, ry)<a href="#Paper.ellipse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2825 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2825">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.ellipse-extra"></div>
|
||||
|
@ -6476,7 +6476,7 @@ var c = paper.rect(40, 40, 50, 50, 10);</code></pre></section>
|
|||
|
||||
<article id="Paper.path">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.path([pathString])<a href="#Paper.path" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2873 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2873">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.path([pathString])<a href="#Paper.path" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.path-extra"></div>
|
||||
|
@ -6744,7 +6744,7 @@ Note: there is a special case when a path consists of only three commands: <code
|
|||
|
||||
<article id="Paper.g">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.g([varargs])<a href="#Paper.g" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2904 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2904">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.g([varargs])<a href="#Paper.g" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2901 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2901">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.g-extra"></div>
|
||||
|
@ -6853,7 +6853,7 @@ g.add(c2, c1);</code></pre></section>
|
|||
|
||||
<article id="Paper.group">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.group()<a href="#Paper.group" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2910 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2910">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.group()<a href="#Paper.group" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2907 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2907">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.group-extra"></div>
|
||||
|
@ -6878,7 +6878,7 @@ g.add(c2, c1);</code></pre></section>
|
|||
|
||||
<article id="Paper.text">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.text(x, y, text)<a href="#Paper.text" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2943 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2943">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.text(x, y, text)<a href="#Paper.text" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2936 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2936">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.text-extra"></div>
|
||||
|
@ -6972,7 +6972,7 @@ t1.attr({textpath: pth});</code></pre></section>
|
|||
|
||||
<article id="Paper.line">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.line(x1, y1, x2, y2)<a href="#Paper.line" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2971 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2971">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.line(x1, y1, x2, y2)<a href="#Paper.line" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2964 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2964">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.line-extra"></div>
|
||||
|
@ -7063,7 +7063,7 @@ t1.attr({textpath: pth});</code></pre></section>
|
|||
|
||||
<article id="Paper.polyline">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.polyline(…)<a href="#Paper.polyline" title="Link to this section" class="dr-hash">⚓</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">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.polyline(…)<a href="#Paper.polyline" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2993 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#2993">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.polyline-extra"></div>
|
||||
|
@ -7175,7 +7175,7 @@ var p2 = paper.polyline(10, 10, 100, 100);</code></pre></section>
|
|||
|
||||
<article id="Paper.polygon">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.polygon()<a href="#Paper.polygon" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3020 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3020">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.polygon()<a href="#Paper.polygon" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3013 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3013">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.polygon-extra"></div>
|
||||
|
@ -7200,7 +7200,7 @@ var p2 = paper.polyline(10, 10, 100, 100);</code></pre></section>
|
|||
|
||||
<article id="Paper.gradient">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.gradient(gradient)<a href="#Paper.gradient" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3073 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3073">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.gradient(gradient)<a href="#Paper.gradient" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3066 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3066">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.gradient-extra"></div>
|
||||
|
@ -7398,7 +7398,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Paper.toString">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.toString()<a href="#Paper.toString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3089 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3089">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.toString()<a href="#Paper.toString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3082 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3082">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.toString-extra"></div>
|
||||
|
@ -7440,7 +7440,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Paper.clear">
|
||||
<header>
|
||||
<h3 class="dr-method">Paper.clear()<a href="#Paper.clear" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3107 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3107">➭</a></h3>
|
||||
<h3 class="dr-method">Paper.clear()<a href="#Paper.clear" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3100 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3100">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.clear-extra"></div>
|
||||
|
@ -7465,7 +7465,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Snap.ajax">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.ajax(…)<a href="#Snap.ajax" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3138 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3138">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.ajax(…)<a href="#Snap.ajax" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3131 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3131">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.ajax-extra"></div>
|
||||
|
@ -7569,7 +7569,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Snap.load">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.load(url, callback, [scope])<a href="#Snap.load" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3184 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3184">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.load(url, callback, [scope])<a href="#Snap.load" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3177 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3177">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.load-extra"></div>
|
||||
|
@ -7618,7 +7618,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Snap.getElementByPoint">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.getElementByPoint(x, y)<a href="#Snap.getElementByPoint" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3674 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3674">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.getElementByPoint(x, y)<a href="#Snap.getElementByPoint" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3667 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3667">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.getElementByPoint-extra"></div>
|
||||
|
@ -7703,7 +7703,7 @@ half the width, from black to white:
|
|||
|
||||
<article id="Snap.plugin">
|
||||
<header>
|
||||
<h3 class="dr-method">Snap.plugin(f)<a href="#Snap.plugin" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3709 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3709">➭</a></h3>
|
||||
<h3 class="dr-method">Snap.plugin(f)<a href="#Snap.plugin" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 3702 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#3702">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.plugin-extra"></div>
|
||||
|
|
|
@ -505,15 +505,15 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
},
|
||||
ellipse: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return ellipsePath(attr.cx, attr.cy, attr.rx, attr.ry);
|
||||
return ellipsePath(attr.cx || 0, attr.cy || 0, attr.rx, attr.ry);
|
||||
},
|
||||
rect: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return rectPath(attr.x, attr.y, attr.width, attr.height, attr.rx, attr.ry);
|
||||
return rectPath(attr.x || 0, attr.y || 0, attr.width, attr.height, attr.rx, attr.ry);
|
||||
},
|
||||
image: function (el) {
|
||||
var attr = unit2px(el);
|
||||
return rectPath(attr.x, attr.y, attr.width, attr.height);
|
||||
return rectPath(attr.x || 0, attr.y || 0, attr.width, attr.height);
|
||||
},
|
||||
text: function (el) {
|
||||
var bbox = el.node.getBBox();
|
||||
|
@ -528,7 +528,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
|
|||
return rectPath(bbox.x, bbox.y, bbox.width, bbox.height);
|
||||
},
|
||||
line: function (el) {
|
||||
return "M" + [el.attr("x1"), el.attr("y1"), el.attr("x2"), el.attr("y2")];
|
||||
return "M" + [el.attr("x1") || 0, el.attr("y1") || 0, el.attr("x2"), el.attr("y2")];
|
||||
},
|
||||
polyline: function (el) {
|
||||
return "M" + el.attr("points");
|
||||
|
|
20
src/svg.js
20
src/svg.js
|
@ -94,6 +94,9 @@ var has = "hasOwnProperty",
|
|||
|
||||
function $(el, attr) {
|
||||
if (attr) {
|
||||
if (el == "#text") {
|
||||
el = glob.doc.createTextNode(attr.text || "");
|
||||
}
|
||||
if (typeof el == "string") {
|
||||
el = $(el);
|
||||
}
|
||||
|
@ -1293,10 +1296,6 @@ var contains = glob.doc.contains || glob.doc.compareDocumentPosition ?
|
|||
return false;
|
||||
};
|
||||
function getSomeDefs(el) {
|
||||
var cache = Snap._.someDefs;
|
||||
if (cache && contains(cache.ownerDocument.documentElement, cache)) {
|
||||
return cache;
|
||||
}
|
||||
var p = (el.node.ownerSVGElement && wrap(el.node.ownerSVGElement)) ||
|
||||
(el.node.parentNode && wrap(el.node.parentNode)) ||
|
||||
Snap.select("svg") ||
|
||||
|
@ -1306,7 +1305,6 @@ function getSomeDefs(el) {
|
|||
if (!defs) {
|
||||
defs = make("defs", p.node).node;
|
||||
}
|
||||
Snap._.someDefs = defs;
|
||||
return defs;
|
||||
}
|
||||
Snap._.getSomeDefs = getSomeDefs;
|
||||
|
@ -1341,9 +1339,9 @@ function unit2px(el, name, value) {
|
|||
}
|
||||
function set(nam, f) {
|
||||
if (name == null) {
|
||||
out[nam] = f(el.attr(nam));
|
||||
out[nam] = f(el.attr(nam) || 0);
|
||||
} else if (nam == name) {
|
||||
out = f(value == null ? el.attr(nam) : value);
|
||||
out = f(value == null ? el.attr(nam) || 0 : value);
|
||||
}
|
||||
}
|
||||
switch (el.type) {
|
||||
|
@ -1532,7 +1530,7 @@ function arrayFirstValue(arr) {
|
|||
json[params] = value;
|
||||
params = json;
|
||||
} else {
|
||||
return arrayFirstValue(eve("snap.util.getattr."+params, el));
|
||||
return arrayFirstValue(eve("snap.util.getattr." + params, el));
|
||||
}
|
||||
}
|
||||
for (var att in params) {
|
||||
|
@ -2719,7 +2717,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
if (ry == null) {
|
||||
ry = rx;
|
||||
}
|
||||
if (is(x, "object") && "x" in x) {
|
||||
if (is(x, "object") && x == "[object Object]") {
|
||||
attr = x;
|
||||
} else if (x != null) {
|
||||
attr = {
|
||||
|
@ -2751,7 +2749,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
\*/
|
||||
proto.circle = function (cx, cy, r) {
|
||||
var attr;
|
||||
if (is(cx, "object") && "cx" in cx) {
|
||||
if (is(cx, "object") && cx == "[object Object]") {
|
||||
attr = cx;
|
||||
} else if (cx != null) {
|
||||
attr = {
|
||||
|
@ -2826,7 +2824,7 @@ function gradientRadial(defs, cx, cy, r, fx, fy) {
|
|||
\*/
|
||||
proto.ellipse = function (cx, cy, rx, ry) {
|
||||
var el = make("ellipse", this.node);
|
||||
if (is(cx, "object") && "cx" in cx) {
|
||||
if (is(cx, "object") && cx == "[object Object]") {
|
||||
el.attr(cx);
|
||||
} else if (cx != null) {
|
||||
el.attr({
|
||||
|
|
Loading…
Reference in New Issue