Fix for prepend of set. Keeping order intact.
parent
d1f8db5f6e
commit
20adda5829
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-05-15
|
||||
// build: 2014-05-16
|
||||
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
@ -2207,9 +2207,15 @@ function arrayFirstValue(arr) {
|
|||
elproto.prepend = function (el) {
|
||||
if (el) {
|
||||
if (el.type == "set") {
|
||||
var it = this;
|
||||
var it = this,
|
||||
first;
|
||||
el.forEach(function (el) {
|
||||
it.prepend(el);
|
||||
if (first) {
|
||||
first.after(el);
|
||||
} else {
|
||||
it.prepend(el);
|
||||
}
|
||||
first = el;
|
||||
});
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -3506,7 +3506,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1477 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1477">➭</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 1483 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1483">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.prependTo-extra"></div>
|
||||
|
@ -3566,7 +3566,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1491 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1491">➭</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 1497 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1497">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.before-extra"></div>
|
||||
|
@ -3626,7 +3626,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1519 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1519">➭</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 1525 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1525">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.after-extra"></div>
|
||||
|
@ -3686,7 +3686,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1541 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1541">➭</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 1547 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1547">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.insertBefore-extra"></div>
|
||||
|
@ -3746,7 +3746,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1559 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1559">➭</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 1565 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1565">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.insertAfter-extra"></div>
|
||||
|
@ -3806,7 +3806,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1575 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1575">➭</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 1581 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1581">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.remove-extra"></div>
|
||||
|
@ -3848,7 +3848,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1592 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1592">➭</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 1598 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1598">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.select-extra"></div>
|
||||
|
@ -3908,7 +3908,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1604 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1604">➭</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 1610 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1610">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.selectAll-extra"></div>
|
||||
|
@ -3970,7 +3970,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1622 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1622">➭</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 1628 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1628">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.asPX-extra"></div>
|
||||
|
@ -4033,7 +4033,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1637 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1637">➭</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 1643 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1643">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.use-extra"></div>
|
||||
|
@ -4075,7 +4075,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1666 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1666">➭</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 1672 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1672">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.clone-extra"></div>
|
||||
|
@ -4117,7 +4117,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<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 1837 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1837">➭</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 1843 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1843">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.toDefs-extra"></div>
|
||||
|
@ -4159,7 +4159,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<article id="Element.pattern">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.pattern()<a href="#Element.pattern" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1848 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1848">➭</a></h3>
|
||||
<h3 class="dr-method">Element.pattern()<a href="#Element.pattern" 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/Snap.svg/blob/master/src/svg.js#L1854">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.pattern-extra"></div>
|
||||
|
@ -4184,7 +4184,7 @@ and <code>-</code>: <code>"+=2em"</code>.
|
|||
|
||||
<article id="Element.toPattern">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.toPattern(x, y, width, height)<a href="#Element.toPattern" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1871 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1871">➭</a></h3>
|
||||
<h3 class="dr-method">Element.toPattern(x, y, width, height)<a href="#Element.toPattern" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1877 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1877">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.toPattern-extra"></div>
|
||||
|
@ -4284,7 +4284,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 1912 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1912">➭</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 1918 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1918">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.marker-extra"></div>
|
||||
|
@ -4371,7 +4371,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 1971 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1971">➭</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 1977 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1977">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.animation-extra"></div>
|
||||
|
@ -4440,7 +4440,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 1989 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1989">➭</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 1995 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L1995">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.inAnim-extra"></div>
|
||||
|
@ -4542,7 +4542,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 2039 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2039">➭</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 2045 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2045">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.animate-extra"></div>
|
||||
|
@ -4703,7 +4703,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 2057 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2057">➭</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 2063 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2063">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.stop-extra"></div>
|
||||
|
@ -4745,7 +4745,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 2076 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2076">➭</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 2082 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2082">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.animate-extra"></div>
|
||||
|
@ -4814,7 +4814,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 2149 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2149">➭</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 2155 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2155">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.data-extra"></div>
|
||||
|
@ -4936,7 +4936,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 2178 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2178">➭</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 2184 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2184">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.removeData-extra"></div>
|
||||
|
@ -4997,7 +4997,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 2195 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2195">➭</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 2201 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2201">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.outerSVG-extra"></div>
|
||||
|
@ -5040,7 +5040,7 @@ If key is not provided, removes all the data of the element.
|
|||
|
||||
<article id="Element.toString">
|
||||
<header>
|
||||
<h3 class="dr-method">Element.toString()<a href="#Element.toString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2201 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2201">➭</a></h3>
|
||||
<h3 class="dr-method">Element.toString()<a href="#Element.toString" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2207 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2207">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.toString-extra"></div>
|
||||
|
@ -5065,7 +5065,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 2209 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2209">➭</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 2215 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2215">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Element.innerSVG-extra"></div>
|
||||
|
@ -5107,7 +5107,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 2247 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2247">➭</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 2253 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2253">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.parse-extra"></div>
|
||||
|
@ -5167,7 +5167,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 2279 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2279">➭</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 2285 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2285">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Fragment.select-extra"></div>
|
||||
|
@ -5192,7 +5192,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 2286 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2286">➭</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 2292 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2292">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Fragment.selectAll-extra"></div>
|
||||
|
@ -5217,7 +5217,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 2297 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2297">➭</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 2303 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2303">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.fragment-extra"></div>
|
||||
|
@ -5277,7 +5277,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 2400 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2400">➭</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 2406 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2406">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Paper.el-extra"></div>
|
||||
|
@ -5373,7 +5373,7 @@ var c = paper.el("circle", {
|
|||
|
||||
<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 2518 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2518">➭</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 2524 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2524">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.ajax-extra"></div>
|
||||
|
@ -5477,7 +5477,7 @@ var c = paper.el("circle", {
|
|||
|
||||
<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 2564 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2564">➭</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 2570 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2570">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.load-extra"></div>
|
||||
|
@ -5526,7 +5526,7 @@ var c = paper.el("circle", {
|
|||
|
||||
<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 2595 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2595">➭</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 2601 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2601">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.getElementByPoint-extra"></div>
|
||||
|
@ -5611,7 +5611,7 @@ var c = paper.el("circle", {
|
|||
|
||||
<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 2630 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2630">➭</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 2636 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L2636">➭</a></h3>
|
||||
</header>
|
||||
<section>
|
||||
<div class="extra" id="Snap.plugin-extra"></div>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* Mask & pattern elements are sharing paper methods (just like group)
|
||||
* Added `Set.bind()` method
|
||||
* Added syncronisation for `Set.animate()`
|
||||
* Added method `Set.animateEach`
|
||||
* Added opacity to the shadow filter
|
||||
* Added ability to specify attributes as `"+=10"` or `"-=1em"` or `"*=2"`
|
||||
* Fix negative scale
|
||||
|
|
10
src/svg.js
10
src/svg.js
|
@ -1449,9 +1449,15 @@ function arrayFirstValue(arr) {
|
|||
elproto.prepend = function (el) {
|
||||
if (el) {
|
||||
if (el.type == "set") {
|
||||
var it = this;
|
||||
var it = this,
|
||||
first;
|
||||
el.forEach(function (el) {
|
||||
it.prepend(el);
|
||||
if (first) {
|
||||
first.after(el);
|
||||
} else {
|
||||
it.prepend(el);
|
||||
}
|
||||
first = el;
|
||||
});
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue