Bump up version

master
Dmitry Baranovskiy 2015-04-02 22:38:56 +11:00
parent 4bac7fa6a7
commit 5051bfe2df
6 changed files with 102 additions and 92 deletions

File diff suppressed because one or more lines are too long

77
dist/snap.svg.js vendored
View File

@ -1,6 +1,6 @@
// Snap.svg 0.3.0 // Snap.svg 0.4.0
// //
// Copyright (c) 2013 2014 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 2015 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -794,7 +794,7 @@ var mina = (function (eve) {
window.mina = mina; window.mina = mina;
return mina; return mina;
})(typeof eve == "undefined" ? function () {} : eve); })(typeof eve == "undefined" ? function () {} : eve);
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 - 2015 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
@ -7271,6 +7271,7 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
} }
}); });
}); });
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@ -7315,47 +7316,43 @@ Snap.plugin(function (Snap, Element, Paper, glob) {
stopTouch = function () { stopTouch = function () {
return this.originalEvent.stopPropagation(); return this.originalEvent.stopPropagation();
}, },
addEvent = (function () { addEvent = function (obj, type, fn, element) {
if (glob.doc.addEventListener) { var realName = supportsTouch && touchMap[type] ? touchMap[type] : type,
return function (obj, type, fn, element) { f = function (e) {
var realName = supportsTouch && touchMap[type] ? touchMap[type] : type, var scrollY = getScroll("y", element),
f = function (e) { scrollX = getScroll("x", element);
var scrollY = getScroll("y", element), if (supportsTouch && touchMap[has](type)) {
scrollX = getScroll("x", element); for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) {
if (supportsTouch && touchMap[has](type)) { if (e.targetTouches[i].target == obj || obj.contains(e.targetTouches[i].target)) {
for (var i = 0, ii = e.targetTouches && e.targetTouches.length; i < ii; i++) { var olde = e;
if (e.targetTouches[i].target == obj || obj.contains(e.targetTouches[i].target)) { e = e.targetTouches[i];
var olde = e; e.originalEvent = olde;
e = e.targetTouches[i]; e.preventDefault = preventTouch;
e.originalEvent = olde; e.stopPropagation = stopTouch;
e.preventDefault = preventTouch; break;
e.stopPropagation = stopTouch;
break;
}
}
} }
var x = e.clientX + scrollX,
y = e.clientY + scrollY;
return fn.call(element, e, x, y);
};
if (type !== realName) {
obj.addEventListener(type, f, false);
}
obj.addEventListener(realName, f, false);
return function () {
if (type !== realName) {
obj.removeEventListener(type, f, false);
} }
}
obj.removeEventListener(realName, f, false); var x = e.clientX + scrollX,
return true; y = e.clientY + scrollY;
}; return fn.call(element, e, x, y);
}; };
if (type !== realName) {
obj.addEventListener(type, f, false);
} }
})(),
obj.addEventListener(realName, f, false);
return function () {
if (type !== realName) {
obj.removeEventListener(type, f, false);
}
obj.removeEventListener(realName, f, false);
return true;
};
},
drag = [], drag = [],
dragMove = function (e) { dragMove = function (e) {
var x = e.clientX, var x = e.clientX,

View File

@ -2087,15 +2087,15 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<p>Parses color string as RGB object <p>Parses color string as RGB object
</p> </p>
<div class="topcoat-list__container"> <div class="topcoat-list__container">
<h3 class="topcoat-list__header">Parameters</h3> <h3 class="topcoat-list__header">Parameters</h3>
@ -2142,15 +2142,15 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<li>#••• — shortened HTML color: (<code>#000</code>, <code>#fc0</code>, etc.)</li> <li>#••• — shortened HTML color: (<code>#000</code>, <code>#fc0</code>, etc.)</li>
<li>#•••••• — full length HTML color: (<code>#000000</code>, <code>#bd2300</code>)</li> <li>#•••••• — full length HTML color: (<code>#000000</code>, <code>#bd2300</code>)</li>
@ -2190,15 +2190,15 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<li>rgb(•••%, •••%, •••%) — same as above, but in %: (<code>rgb(100%,&nbsp;175%,&nbsp;0%)</code>)</li> <li>rgb(•••%, •••%, •••%) — same as above, but in %: (<code>rgb(100%,&nbsp;175%,&nbsp;0%)</code>)</li>
<li>rgba(•••%, •••%, •••%, •••%) — also with opacity</li> <li>rgba(•••%, •••%, •••%, •••%) — also with opacity</li>
@ -2238,15 +2238,15 @@ paper.path(Snap.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width']
<li>hsb(•••%, •••%, •••%) — same as above, but in %</li> <li>hsb(•••%, •••%, •••%) — same as above, but in %</li>
<li>hsba(•••%, •••%, •••%, •••%) — also with opacity</li> <li>hsba(•••%, •••%, •••%, •••%) — also with opacity</li>
@ -3309,8 +3309,6 @@ Parses given transform string into an array of transformations
</ol> </ol>
</div> </div>
@ -3322,6 +3320,8 @@ Parses given transform string into an array of transformations
<p class="dr-returns"> <p class="dr-returns">
<strong class="dr-title">Returns:</strong> <strong class="dr-title">Returns:</strong>
@ -3596,14 +3596,14 @@ c.node.onclick = function () {
</div> </div>
@ -3622,7 +3622,6 @@ c.node.onclick = function () {
<p>or <p>or
</p> </p>
@ -3635,6 +3634,7 @@ c.node.onclick = function () {
<p class="dr-returns"> <p class="dr-returns">
<strong class="dr-title">Returns:</strong> <strong class="dr-title">Returns:</strong>
@ -5859,8 +5859,6 @@ To create a marker you have to specify the bounding rect and reference point:
<p>Returns a set of animations that may be able to manipulate the current element <p>Returns a set of animations that may be able to manipulate the current element
</p> </p>
@ -5873,6 +5871,8 @@ To create a marker you have to specify the bounding rect and reference point:
<p class="dr-returns"> <p class="dr-returns">
<strong class="dr-title">Returns:</strong> <strong class="dr-title">Returns:</strong>
@ -6257,8 +6257,6 @@ with <code>data-</code> attributes)
</ol> </ol>
</div> </div>
@ -6266,6 +6264,8 @@ with <code>data-</code> attributes)
@ -10969,7 +10969,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.click"> <article id="Element.click">
<header> <header>
<h3 class="dr-method">Element.click(handler)<a href="#Element.click" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 147 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L147">&#x27ad;</a></h3> <h3 class="dr-method">Element.click(handler)<a href="#Element.click" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 143 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L143">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.click-extra"></div> <div class="extra" id="Element.click-extra"></div>
@ -11029,7 +11029,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unclick"> <article id="Element.unclick">
<header> <header>
<h3 class="dr-method">Element.unclick(handler)<a href="#Element.unclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 155 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L155">&#x27ad;</a></h3> <h3 class="dr-method">Element.unclick(handler)<a href="#Element.unclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 151 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L151">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unclick-extra"></div> <div class="extra" id="Element.unclick-extra"></div>
@ -11089,7 +11089,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.dblclick"> <article id="Element.dblclick">
<header> <header>
<h3 class="dr-method">Element.dblclick(handler)<a href="#Element.dblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 164 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L164">&#x27ad;</a></h3> <h3 class="dr-method">Element.dblclick(handler)<a href="#Element.dblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 160 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L160">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.dblclick-extra"></div> <div class="extra" id="Element.dblclick-extra"></div>
@ -11149,7 +11149,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.undblclick"> <article id="Element.undblclick">
<header> <header>
<h3 class="dr-method">Element.undblclick(handler)<a href="#Element.undblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 172 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L172">&#x27ad;</a></h3> <h3 class="dr-method">Element.undblclick(handler)<a href="#Element.undblclick" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 168 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L168">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.undblclick-extra"></div> <div class="extra" id="Element.undblclick-extra"></div>
@ -11209,7 +11209,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.mousedown"> <article id="Element.mousedown">
<header> <header>
<h3 class="dr-method">Element.mousedown(handler)<a href="#Element.mousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 181 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L181">&#x27ad;</a></h3> <h3 class="dr-method">Element.mousedown(handler)<a href="#Element.mousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 177 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L177">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mousedown-extra"></div> <div class="extra" id="Element.mousedown-extra"></div>
@ -11269,7 +11269,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unmousedown"> <article id="Element.unmousedown">
<header> <header>
<h3 class="dr-method">Element.unmousedown(handler)<a href="#Element.unmousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 189 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L189">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmousedown(handler)<a href="#Element.unmousedown" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 185 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L185">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmousedown-extra"></div> <div class="extra" id="Element.unmousedown-extra"></div>
@ -11329,7 +11329,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.mousemove"> <article id="Element.mousemove">
<header> <header>
<h3 class="dr-method">Element.mousemove(handler)<a href="#Element.mousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 198 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L198">&#x27ad;</a></h3> <h3 class="dr-method">Element.mousemove(handler)<a href="#Element.mousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 194 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L194">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mousemove-extra"></div> <div class="extra" id="Element.mousemove-extra"></div>
@ -11389,7 +11389,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unmousemove"> <article id="Element.unmousemove">
<header> <header>
<h3 class="dr-method">Element.unmousemove(handler)<a href="#Element.unmousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 206 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L206">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmousemove(handler)<a href="#Element.unmousemove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 202 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L202">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmousemove-extra"></div> <div class="extra" id="Element.unmousemove-extra"></div>
@ -11449,7 +11449,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.mouseout"> <article id="Element.mouseout">
<header> <header>
<h3 class="dr-method">Element.mouseout(handler)<a href="#Element.mouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 215 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L215">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseout(handler)<a href="#Element.mouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 211 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L211">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseout-extra"></div> <div class="extra" id="Element.mouseout-extra"></div>
@ -11509,7 +11509,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unmouseout"> <article id="Element.unmouseout">
<header> <header>
<h3 class="dr-method">Element.unmouseout(handler)<a href="#Element.unmouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 223 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L223">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseout(handler)<a href="#Element.unmouseout" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 219 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L219">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseout-extra"></div> <div class="extra" id="Element.unmouseout-extra"></div>
@ -11569,7 +11569,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.mouseover"> <article id="Element.mouseover">
<header> <header>
<h3 class="dr-method">Element.mouseover(handler)<a href="#Element.mouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 232 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L232">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseover(handler)<a href="#Element.mouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 228 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L228">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseover-extra"></div> <div class="extra" id="Element.mouseover-extra"></div>
@ -11629,7 +11629,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unmouseover"> <article id="Element.unmouseover">
<header> <header>
<h3 class="dr-method">Element.unmouseover(handler)<a href="#Element.unmouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 240 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L240">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseover(handler)<a href="#Element.unmouseover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 236 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L236">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseover-extra"></div> <div class="extra" id="Element.unmouseover-extra"></div>
@ -11689,7 +11689,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.mouseup"> <article id="Element.mouseup">
<header> <header>
<h3 class="dr-method">Element.mouseup(handler)<a href="#Element.mouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 249 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L249">&#x27ad;</a></h3> <h3 class="dr-method">Element.mouseup(handler)<a href="#Element.mouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 245 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L245">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.mouseup-extra"></div> <div class="extra" id="Element.mouseup-extra"></div>
@ -11749,7 +11749,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unmouseup"> <article id="Element.unmouseup">
<header> <header>
<h3 class="dr-method">Element.unmouseup(handler)<a href="#Element.unmouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 257 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L257">&#x27ad;</a></h3> <h3 class="dr-method">Element.unmouseup(handler)<a href="#Element.unmouseup" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 253 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L253">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unmouseup-extra"></div> <div class="extra" id="Element.unmouseup-extra"></div>
@ -11809,7 +11809,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.touchstart"> <article id="Element.touchstart">
<header> <header>
<h3 class="dr-method">Element.touchstart(handler)<a href="#Element.touchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 266 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L266">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchstart(handler)<a href="#Element.touchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 262 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L262">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchstart-extra"></div> <div class="extra" id="Element.touchstart-extra"></div>
@ -11869,7 +11869,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.untouchstart"> <article id="Element.untouchstart">
<header> <header>
<h3 class="dr-method">Element.untouchstart(handler)<a href="#Element.untouchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 274 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L274">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchstart(handler)<a href="#Element.untouchstart" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 270 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L270">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchstart-extra"></div> <div class="extra" id="Element.untouchstart-extra"></div>
@ -11929,7 +11929,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.touchmove"> <article id="Element.touchmove">
<header> <header>
<h3 class="dr-method">Element.touchmove(handler)<a href="#Element.touchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 283 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L283">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchmove(handler)<a href="#Element.touchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 279 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L279">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchmove-extra"></div> <div class="extra" id="Element.touchmove-extra"></div>
@ -11989,7 +11989,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.untouchmove"> <article id="Element.untouchmove">
<header> <header>
<h3 class="dr-method">Element.untouchmove(handler)<a href="#Element.untouchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 291 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L291">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchmove(handler)<a href="#Element.untouchmove" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 287 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L287">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchmove-extra"></div> <div class="extra" id="Element.untouchmove-extra"></div>
@ -12049,7 +12049,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.touchend"> <article id="Element.touchend">
<header> <header>
<h3 class="dr-method">Element.touchend(handler)<a href="#Element.touchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 300 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L300">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchend(handler)<a href="#Element.touchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 296 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L296">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchend-extra"></div> <div class="extra" id="Element.touchend-extra"></div>
@ -12109,7 +12109,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.untouchend"> <article id="Element.untouchend">
<header> <header>
<h3 class="dr-method">Element.untouchend(handler)<a href="#Element.untouchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 308 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L308">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchend(handler)<a href="#Element.untouchend" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 304 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L304">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchend-extra"></div> <div class="extra" id="Element.untouchend-extra"></div>
@ -12169,7 +12169,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.touchcancel"> <article id="Element.touchcancel">
<header> <header>
<h3 class="dr-method">Element.touchcancel(handler)<a href="#Element.touchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 317 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L317">&#x27ad;</a></h3> <h3 class="dr-method">Element.touchcancel(handler)<a href="#Element.touchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 313 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L313">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.touchcancel-extra"></div> <div class="extra" id="Element.touchcancel-extra"></div>
@ -12229,7 +12229,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.untouchcancel"> <article id="Element.untouchcancel">
<header> <header>
<h3 class="dr-method">Element.untouchcancel(handler)<a href="#Element.untouchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 325 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L325">&#x27ad;</a></h3> <h3 class="dr-method">Element.untouchcancel(handler)<a href="#Element.untouchcancel" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 321 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L321">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.untouchcancel-extra"></div> <div class="extra" id="Element.untouchcancel-extra"></div>
@ -12289,7 +12289,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.hover"> <article id="Element.hover">
<header> <header>
<h3 class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 370 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L370">&#x27ad;</a></h3> <h3 class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 366 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L366">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.hover-extra"></div> <div class="extra" id="Element.hover-extra"></div>
@ -12358,7 +12358,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.unhover"> <article id="Element.unhover">
<header> <header>
<h3 class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 382 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L382">&#x27ad;</a></h3> <h3 class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 378 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L378">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.unhover-extra"></div> <div class="extra" id="Element.unhover-extra"></div>
@ -12421,7 +12421,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.drag"> <article id="Element.drag">
<header> <header>
<h3 class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 420 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L420">&#x27ad;</a></h3> <h3 class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 416 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L416">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.drag-extra"></div> <div class="extra" id="Element.drag-extra"></div>
@ -12640,7 +12640,7 @@ the classs presence or the value of the <code>flag</code> argument.
<article id="Element.undrag"> <article id="Element.undrag">
<header> <header>
<h3 class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 469 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L469">&#x27ad;</a></h3> <h3 class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line 465 in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L465">&#x27ad;</a></h3>
</header> </header>
<section> <section>
<div class="extra" id="Element.undrag-extra"></div> <div class="extra" id="Element.undrag-extra"></div>

View File

@ -1,3 +1,16 @@
#0.4.0
* Moved class and element related code into separate plugins
* Added `Element.align()` and `Element.getAlign()` methods
* Added animation support for `viewBox`
* Added support for `<symbol>`
* Added method `Paper.toDataURL()`
* Added method `Snap.closest()`
* Added methods to work with degrees instead of radians: `Snap.sin()`, `Snap.cos()`, `Snap.tan()`, `Snap.asin()`, `Snap.acos()`, `Snap.atan()` and `Snap.atan2()`
* Added methods `Snap.len()`, `Snap.len2()` and `Snap.closestPoint()`
* Added methods `Element.children()` and `Element.toJSON()`
* Various bug fixes
#0.3.0 #0.3.0
* Added `.addClass()`, `.removeClass()`, `.toggleClass()` and `.hasClass()` APIs * Added `.addClass()`, `.removeClass()`, `.toggleClass()` and `.hasClass()` APIs

View File

@ -1,6 +1,6 @@
{ {
"name": "snapsvg", "name": "snapsvg",
"version": "0.3.0", "version": "0.4.0",
"description": "JavaScript Vector Library", "description": "JavaScript Vector Library",
"main": "./dist/snap.svg.js", "main": "./dist/snap.svg.js",
"repository": { "repository": {

View File

@ -1,6 +1,6 @@
// Snap.svg @VERSION // Snap.svg @VERSION
// //
// Copyright (c) 2013 2014 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 2015 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.