master
Dmitry Baranovskiy 2017-02-05 12:17:21 +11:00
parent fa62b7b152
commit 23140bf2e1
8 changed files with 1423 additions and 1395 deletions

File diff suppressed because one or more lines are too long

16
dist/snap.svg.js vendored
View File

@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// //
// build: 2017-02-04 // build: 2017-02-05
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
@ -947,7 +947,7 @@ var has = "hasOwnProperty",
xmlns = "http://www.w3.org/2000/svg", xmlns = "http://www.w3.org/2000/svg",
hub = {}, hub = {},
/*\ /*\
* Snap.url() * Snap.url
[ method ] [ method ]
** **
* Wraps path into `"url('<path>')"`. * Wraps path into `"url('<path>')"`.
@ -1241,7 +1241,6 @@ Snap.atan2 = function (num) {
[ method ] [ method ]
** **
* Returns an angle between two or three points * Returns an angle between two or three points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -1256,7 +1255,6 @@ Snap.angle = angle;
[ method ] [ method ]
** **
* Returns distance between two points * Returns distance between two points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -1271,7 +1269,6 @@ Snap.len = function (x1, y1, x2, y2) {
[ method ] [ method ]
** **
* Returns squared distance between two points * Returns squared distance between two points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -1286,7 +1283,6 @@ Snap.len2 = function (x1, y1, x2, y2) {
[ method ] [ method ]
** **
* Returns closest point to a given one on a given path. * Returns closest point to a given one on a given path.
> Parameters
- path (Element) path element - path (Element) path element
- x (number) x coord of a point - x (number) x coord of a point
- y (number) y coord of a point - y (number) y coord of a point
@ -4116,7 +4112,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
separator = Snap._.separator, separator = Snap._.separator,
E = ""; E = "";
/*\ /*\
* Snap.deurl() * Snap.deurl
[ method ] [ method ]
** **
* Unwraps path from `"url(<path>)"`. * Unwraps path from `"url(<path>)"`.
@ -5310,7 +5306,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
var $ = Snap._.$; var $ = Snap._.$;
// gradients' helpers // gradients' helpers
/*\ /*\
* Element.stops() * Element.stops
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!
@ -5321,7 +5317,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
return this.selectAll("stop"); return this.selectAll("stop");
} }
/*\ /*\
* Element.addStop() * Element.addStop
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!
@ -5371,7 +5367,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} }
} }
/*\ /*\
* Element.setStops() * Element.setStops
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,9 @@
}, { }, {
"url": "src/element.js", "url": "src/element.js",
"link": "https://github.com/adobe-webplatform/Snap.svg/blob/master/src/element.js" "link": "https://github.com/adobe-webplatform/Snap.svg/blob/master/src/element.js"
}, {
"url": "src/attr.js",
"link": "https://github.com/adobe-webplatform/Snap.svg/blob/master/src/attr.js"
}, { }, {
"url": "src/animation.js", "url": "src/animation.js",
"link": "https://github.com/adobe-webplatform/Snap.svg/blob/master/src/animation.js" "link": "https://github.com/adobe-webplatform/Snap.svg/blob/master/src/animation.js"

View File

@ -24,7 +24,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
separator = Snap._.separator, separator = Snap._.separator,
E = ""; E = "";
/*\ /*\
* Snap.deurl() * Snap.deurl
[ method ] [ method ]
** **
* Unwraps path from `"url(<path>)"`. * Unwraps path from `"url(<path>)"`.

View File

@ -513,7 +513,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
var $ = Snap._.$; var $ = Snap._.$;
// gradients' helpers // gradients' helpers
/*\ /*\
* Element.stops() * Element.stops
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!
@ -524,7 +524,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
return this.selectAll("stop"); return this.selectAll("stop");
} }
/*\ /*\
* Element.addStop() * Element.addStop
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!
@ -574,7 +574,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} }
} }
/*\ /*\
* Element.setStops() * Element.setStops
[ method ] [ method ]
** **
* Only for gradients! * Only for gradients!

View File

@ -92,7 +92,7 @@ var has = "hasOwnProperty",
xmlns = "http://www.w3.org/2000/svg", xmlns = "http://www.w3.org/2000/svg",
hub = {}, hub = {},
/*\ /*\
* Snap.url() * Snap.url
[ method ] [ method ]
** **
* Wraps path into `"url('<path>')"`. * Wraps path into `"url('<path>')"`.
@ -386,7 +386,6 @@ Snap.atan2 = function (num) {
[ method ] [ method ]
** **
* Returns an angle between two or three points * Returns an angle between two or three points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -401,7 +400,6 @@ Snap.angle = angle;
[ method ] [ method ]
** **
* Returns distance between two points * Returns distance between two points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -416,7 +414,6 @@ Snap.len = function (x1, y1, x2, y2) {
[ method ] [ method ]
** **
* Returns squared distance between two points * Returns squared distance between two points
> Parameters
- x1 (number) x coord of first point - x1 (number) x coord of first point
- y1 (number) y coord of first point - y1 (number) y coord of first point
- x2 (number) x coord of second point - x2 (number) x coord of second point
@ -431,7 +428,6 @@ Snap.len2 = function (x1, y1, x2, y2) {
[ method ] [ method ]
** **
* Returns closest point to a given one on a given path. * Returns closest point to a given one on a given path.
> Parameters
- path (Element) path element - path (Element) path element
- x (number) x coord of a point - x (number) x coord of a point
- y (number) y coord of a point - y (number) y coord of a point

View File

@ -8,7 +8,6 @@
<link rel="shortcut icon" href="/assets/favicon.ico?v=1"> <link rel="shortcut icon" href="/assets/favicon.ico?v=1">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" href="/assets/docs/fonts/stylesheet.css?v=201311041519"> <link rel="stylesheet" href="/assets/docs/fonts/stylesheet.css?v=201311041519">
<link rel="stylesheet" href="/assets/docs/css/topcoat-desktop-light.css?v=201311041519">
<link rel="stylesheet" href="/assets/docs/css/main.css?v=201311041519"> <link rel="stylesheet" href="/assets/docs/css/main.css?v=201311041519">
<link rel="stylesheet" href="/assets/docs/css/dr.css?v=201311041519"> <link rel="stylesheet" href="/assets/docs/css/dr.css?v=201311041519">
<link rel="stylesheet" href="/assets/docs/css/prism.css?v=201311041519"> <link rel="stylesheet" href="/assets/docs/css/prism.css?v=201311041519">
@ -50,7 +49,7 @@
<a href="/docs/" class="mobile-hide selected">Docs</a> <a href="/docs/" class="mobile-hide selected">Docs</a>
<a href="/support/">Support</a> <a href="/support/">Support</a>
<a href="/demos/" class="mobile-hide">Demos</a> <a href="/demos/" class="mobile-hide">Demos</a>
<a class="bt" href="/assets/downloads/Snap.svg-0.4.2.zip" onclick="trackOutboundLink(this, 'Download', '0.4.2');return false;">Download</a> <a class="bt" href="/assets/downloads/Snap.svg-0.5.0.zip" onclick="trackOutboundLink(this, 'Download', '0.5.0');return false;">Download</a>
</nav> </nav>
</div> </div>
</header> </header>
@ -62,7 +61,7 @@
<div class="max-width"> <div class="max-width">
<div id="sideNav"> <div id="sideNav">
<div class="combo"> <div class="combo">
<input type="search" id="dr-filter" value="" placeholder="search" class="topcoat-search-input"> <input type="search" id="dr-filter" value="" placeholder="search">
</div> </div>
<div id="pageNav"> <div id="pageNav">
<ol id="dr-toc"> <ol id="dr-toc">
@ -80,7 +79,7 @@
{{~it.out :item:index}} {{~it.out :item:index}}
<article id="{{=item[0].title}}"> <article id="{{=item[0].title}}">
<header> <header>
<h3 class="{{=item[0].clas}}">{{=item[0].name}}<a href="#{{=item[0].title}}" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line {{=item[0].line}} in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L{{=item[0].line}}">&#x27ad;</a></h3> <h2 class="{{=item[0].clas}}">{{=item[0].name}}<a href="#{{=item[0].title}}" title="Link to this section" class="dr-hash">&#x2693;</a><a class="dr-sourceline" title="Go to line {{=item[0].line}} in the source" href="https://github.com/adobe-webplatform/Snap.svg/blob/master/src/svg.js#L{{=item[0].line}}">&#x27ad;</a></h2>
</header> </header>
<section> <section>
<div class="extra" id="{{=item[0].title}}-extra"></div> <div class="extra" id="{{=item[0].title}}-extra"></div>
@ -88,10 +87,10 @@
{{~item :line:i}} {{~item :line:i}}
{{ if (i > 0) { }} {{ if (i > 0) { }}
{{ if (line.text) { }}<p>{{=line.text.join("</p><p>")}}</p>{{ } }} {{ if (line.text) { }}<p>{{=line.text.join("</p><p>")}}</p>{{ } }}
{{ if (line.attr) { }}<div class="topcoat-list__container"> {{ if (line.attr) { }}<div class="params">
<h3 class="topcoat-list__header">Parameters</h3> <h3 class="params">Parameters</h3>
<ol class="topcoat-list"> <ol class="params-list">
{{~line.attr :attr:j}}<li class="topcoat-list__item"><span class="dr-param">{{=attr.name}}</span> {{~line.attr :attr:j}}<li><span class="dr-param">{{=attr.name}}</span>
<span class="dr-type">{{~attr.type :type:k}}<em class="dr-type-{{=type}}">{{=type}}</em> {{~}}</span> <span class="dr-type">{{~attr.type :type:k}}<em class="dr-type-{{=type}}">{{=type}}</em> {{~}}</span>
<span class="dr-description">{{=attr.desc}}</span></li> <span class="dr-description">{{=attr.desc}}</span></li>
{{~}} {{~}}