Fix docs for bug #4
parent
67667a5491
commit
c5c57cccf6
|
@ -31,10 +31,10 @@
|
|||
</div>
|
||||
</header>
|
||||
<div id="content" class="max-width"><article id="Element" class="Element-section"><header><h2 id="Element" class="undefined">Element<a href="#Element" title="Link to this section" class="dr-hash">⚓</a></h2></header>
|
||||
<section><div class="extra" id="Element-extra"></div></section></article><article id="Element.add" class="Element-add-section"><header><h3 id="Element.add" 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 1549 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1549">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element-extra"></div></section></article><article id="Element.add" class="Element-add-section"><header><h3 id="Element.add" 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 1550 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1550">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.add-extra"></div><div class="dr-method"><p>See <a href="#Element.append" class="dr-link">Element.append</a>.
|
||||
</p>
|
||||
</div></section></article><article id="Element.after" class="Element-after-section"><header><h3 id="Element.after" 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 1602 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1602">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.after" class="Element-after-section"><header><h3 id="Element.after" 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 1603 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1603">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.after-extra"></div><div class="dr-method"><p>Inserts given element after the current one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -42,7 +42,7 @@
|
|||
<span class="dr-description">element to insert</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.animate" class="Element-animate-section"><header><h3 id="Element.animate" class="dr-method">Element.animate(attrs, ms, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1950 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1950">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.animate" class="Element-animate-section"><header><h3 id="Element.animate" class="dr-method">Element.animate(attrs, ms, [easing], [callback])<a href="#Element.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1951 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1951">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.animate-extra"></div><div class="dr-method"><p>Animate given attributes of the element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">attrs</span>
|
||||
|
@ -61,7 +61,7 @@
|
|||
<span class="dr-description"> </span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">the element</span></p>
|
||||
</div></section></article><article id="Element.append" class="Element-append-section"><header><h3 id="Element.append" 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 1543 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1543">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.append" class="Element-append-section"><header><h3 id="Element.append" 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 1544 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1544">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.append-extra"></div><div class="dr-method"><p>Appends given element to current one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -69,7 +69,7 @@
|
|||
<span class="dr-description">element to append</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.asPX" class="Element-asPX-section"><header><h3 id="Element.asPX" 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 1688 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1688">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.asPX" class="Element-asPX-section"><header><h3 id="Element.asPX" 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 1689 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1689">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.asPX-extra"></div><div class="dr-method"><p>Return given attribute of the element as a <code>px</code> value. (Not %, em, etc)
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">attr</span>
|
||||
|
@ -81,7 +81,7 @@
|
|||
<span class="dr-description">attribute value</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">result of query selection</span></p>
|
||||
</div></section></article><article id="Element.attr" class="Element-attr-section"><header><h3 id="Element.attr" 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 1401 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1401">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.attr" class="Element-attr-section"><header><h3 id="Element.attr" 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 1402 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1402">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.attr-extra"></div><div class="dr-method"><p>Gets or sets given attributes of the element
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">params</span>
|
||||
|
@ -106,7 +106,7 @@
|
|||
});
|
||||
console.log(el.attr("fill")); // “#fc0”
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Element.before" class="Element-before-section"><header><h3 id="Element.before" 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 1586 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1586">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.before" class="Element-before-section"><header><h3 id="Element.before" 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 1587 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1587">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.before-extra"></div><div class="dr-method"><p>Inserts given element before the current one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -122,11 +122,11 @@ console.log(el.attr("fill")); // “#fc0”
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.clone" class="Element-clone-section"><header><h3 id="Element.clone" 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 1730 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1730">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.clone-extra"></div><div class="dr-method"><p>Creates <code><use></code> element linked to the current element.
|
||||
</div></section></article><article id="Element.clone" class="Element-clone-section"><header><h3 id="Element.clone" 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 1731 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1731">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.clone-extra"></div><div class="dr-method"><p>Creates clone of the element and inserts it after the element.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description"><code><use></code> element</span></p>
|
||||
</div></section></article><article id="Element.data" class="Element-data-section"><header><h3 id="Element.data" 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 381 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L381">➭</a></h3></header>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">the clone</span></p>
|
||||
</div></section></article><article id="Element.data" class="Element-data-section"><header><h3 id="Element.data" 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 2022 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2022">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.data-extra"></div><div class="dr-method"><p>Adds or retrieves given value asociated with given key.
|
||||
See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
||||
</p>
|
||||
|
@ -159,7 +159,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.drag" class="Element-drag-section"><header><h3 id="Element.drag" class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 470 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L470">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.drag" class="Element-drag-section"><header><h3 id="Element.drag" class="dr-method">Element.drag(onmove, onstart, onend, [mcontext], [scontext], [econtext])<a href="#Element.drag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 414 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L414">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.drag-extra"></div><div class="dr-method"><p>Adds event handlers for drag of the element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">onmove</span>
|
||||
|
@ -207,7 +207,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<ol class="dr-json"><li><span class="dr-json-key">event</span><span class="dr-type"><em class="dr-type-object">object</em></span><span class="dr-json-description">DOM event object</span>
|
||||
</ol>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.getBBox" class="Element-getBBox-section"><header><h3 id="Element.getBBox" 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 1441 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1441">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.getBBox" class="Element-getBBox-section"><header><h3 id="Element.getBBox" 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 1442 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1442">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.getBBox-extra"></div><div class="dr-method"><p>Returns bounding box descriptor for the given element.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">bounding box descriptor:</span></p>
|
||||
|
@ -227,7 +227,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<li><span class="dr-json-key">y2:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y of the right side,</span>
|
||||
<li><span class="dr-json-key">y:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y of the left side</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Element.getPointAtLength" class="Element-getPointAtLength-section"><header><h3 id="Element.getPointAtLength" class="dr-method">Element.getPointAtLength(length)<a href="#Element.getPointAtLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1117 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1117">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.getPointAtLength" class="Element-getPointAtLength-section"><header><h3 id="Element.getPointAtLength" class="dr-method">Element.getPointAtLength(length)<a href="#Element.getPointAtLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1118 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1118">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.getPointAtLength-extra"></div><div class="dr-method"><p>Return coordinates of the point located at the given length on the given path. Only works for element of “path” type.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">length</span>
|
||||
|
@ -239,7 +239,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<li><span class="dr-json-key">y:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y coordinate</span>
|
||||
<li><span class="dr-json-key">alpha:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">angle of derivative</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Element.getSubpath" class="Element-getSubpath-section"><header><h3 id="Element.getSubpath" class="dr-method">Element.getSubpath(from, to)<a href="#Element.getSubpath" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1131 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1131">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.getSubpath" class="Element-getSubpath-section"><header><h3 id="Element.getSubpath" class="dr-method">Element.getSubpath(from, to)<a href="#Element.getSubpath" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1132 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1132">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.getSubpath-extra"></div><div class="dr-method"><p>Return subpath of a given element from given length to given length. Only works for element of “path” type.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">from</span>
|
||||
|
@ -250,11 +250,11 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<span class="dr-description">position of the end of the segment</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-string">string</em> <span class="dr-description">pathstring for the segment</span></p>
|
||||
</div></section></article><article id="Element.getTotalLength" class="Element-getTotalLength-section"><header><h3 id="Element.getTotalLength" class="dr-method">Element.getTotalLength()<a href="#Element.getTotalLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1097 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1097">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.getTotalLength" class="Element-getTotalLength-section"><header><h3 id="Element.getTotalLength" class="dr-method">Element.getTotalLength()<a href="#Element.getTotalLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1098 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1098">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.getTotalLength-extra"></div><div class="dr-method"><p>Returns length of the path in pixels. Only works for element of “path” type.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">length.</span></p>
|
||||
</div></section></article><article id="Element.hover" class="Element-hover-section"><header><h3 id="Element.hover" class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 425 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L425">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.hover" class="Element-hover-section"><header><h3 id="Element.hover" class="dr-method">Element.hover(f_in, f_out, [icontext], [ocontext])<a href="#Element.hover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 369 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L369">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.hover-extra"></div><div class="dr-method"><p>Adds event handlers for hover for the element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">f_in</span>
|
||||
|
@ -273,7 +273,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<span class="dr-description">context for hover out handler</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.inAnim" class="Element-inAnim-section"><header><h3 id="Element.inAnim" 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 1872 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1872">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.inAnim" class="Element-inAnim-section"><header><h3 id="Element.inAnim" 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 1873 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1873">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.inAnim-extra"></div><div class="dr-method"><p>Returns an array of animations element currently in
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">in format</span></p>
|
||||
|
@ -282,7 +282,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<li><span class="dr-json-key">status</span><span class="dr-type"><em class="dr-type-function">function</em></span><span class="dr-json-description">gets or sets the status of the animation,</span>
|
||||
<li><span class="dr-json-key">stop</span><span class="dr-type"><em class="dr-type-function">function</em></span><span class="dr-json-description">stops the animation</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Element.insertAfter" class="Element-insertAfter-section"><header><h3 id="Element.insertAfter" 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 1632 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1632">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.insertAfter" class="Element-insertAfter-section"><header><h3 id="Element.insertAfter" 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 1633 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1633">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.insertAfter-extra"></div><div class="dr-method"><p>Inserts the element after the given one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -290,7 +290,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<span class="dr-description">element next to whom insert to</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.insertBefore" class="Element-insertBefore-section"><header><h3 id="Element.insertBefore" 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 1617 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1617">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.insertBefore" class="Element-insertBefore-section"><header><h3 id="Element.insertBefore" 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 1618 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1618">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.insertBefore-extra"></div><div class="dr-method"><p>Inserts the element after the given one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -298,7 +298,7 @@ See also <a href="#Element.removeData" class="dr-link">Element.removeData</a>
|
|||
<span class="dr-description">element next to whom insert to</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.marker" class="Element-marker-section"><header><h3 id="Element.marker" 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 1797 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1797">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.marker" class="Element-marker-section"><header><h3 id="Element.marker" 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 1798 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1798">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.marker-extra"></div><div class="dr-method"><p>Creates <code><marker></code> element from the current element.
|
||||
To create a marker you have to specify the bounding rect and reference point:
|
||||
</p>
|
||||
|
@ -364,18 +364,18 @@ To create a marker you have to specify the bounding rect and reference point:
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.onDragOver" class="Element-onDragOver-section"><header><h3 id="Element.onDragOver" class="dr-method">Element.onDragOver(f)<a href="#Element.onDragOver" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 507 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L507">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.onDragOver" class="Element-onDragOver-section"><header><h3 id="Element.onDragOver" class="dr-method">Element.onDragOver(f)<a href="#Element.onDragOver" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 451 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L451">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.onDragOver-extra"></div><div class="dr-method"><p>Shortcut for assigning event handler for <code>drag.over.<id></code> event, where id is id of the element (see <a href="#Element.id" class="dr-link">Element.id</a>).
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">f</span>
|
||||
<span class="dr-type"><em class="dr-type-function">function</em></span>
|
||||
<span class="dr-description">handler for event, first argument would be the element you are dragging over</span></li>
|
||||
</ol></div>
|
||||
</div></section></article><article id="Element.parent" class="Element-parent-section"><header><h3 id="Element.parent" 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 1531 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1531">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.parent" class="Element-parent-section"><header><h3 id="Element.parent" 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 1532 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1532">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.parent-extra"></div><div class="dr-method"><p>Returns parent of the element
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.pattern" class="Element-pattern-section"><header><h3 id="Element.pattern" 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 1758 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1758">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.pattern" class="Element-pattern-section"><header><h3 id="Element.pattern" 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 1759 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1759">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.pattern-extra"></div><div class="dr-method"><p>Creates <code><pattern></code> element from the current element.
|
||||
To create a pattern you have to specify the pattern rect:
|
||||
</p>
|
||||
|
@ -405,7 +405,7 @@ c.attr({
|
|||
fill: p
|
||||
});
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Element.prepend" class="Element-prepend-section"><header><h3 id="Element.prepend" 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 1571 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1571">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.prepend" class="Element-prepend-section"><header><h3 id="Element.prepend" 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 1572 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1572">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.prepend-extra"></div><div class="dr-method"><p>Prepends given element to current one.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">el</span>
|
||||
|
@ -413,10 +413,10 @@ c.attr({
|
|||
<span class="dr-description">element to prepend</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">parent</span></p>
|
||||
</div></section></article><article id="Element.remove" class="Element-remove-section"><header><h3 id="Element.remove" 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 1644 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1644">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.remove" class="Element-remove-section"><header><h3 id="Element.remove" 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 1645 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1645">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.remove-extra"></div><div class="dr-method"><p>Removes element from the DOM
|
||||
</p>
|
||||
</div></section></article><article id="Element.removeData" class="Element-removeData-section"><header><h3 id="Element.removeData" 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 406 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L406">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.removeData" class="Element-removeData-section"><header><h3 id="Element.removeData" 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 2047 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2047">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.removeData-extra"></div><div class="dr-method"><p>Removes value associated with an element by given key.
|
||||
If key is not provided, removes all the data of the element.
|
||||
</p>
|
||||
|
@ -426,7 +426,7 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">key</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.select" class="Element-select-section"><header><h3 id="Element.select" 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 1658 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1658">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.select" class="Element-select-section"><header><h3 id="Element.select" 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 1659 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1659">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.select-extra"></div><div class="dr-method"><p>Applies CSS selector with the element as a parent and returns the result as an <a href="#Element" class="dr-link">Element</a>.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">query</span>
|
||||
|
@ -434,7 +434,7 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">CSS selector</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">result of query selection</span></p>
|
||||
</div></section></article><article id="Element.selectAll" class="Element-selectAll-section"><header><h3 id="Element.selectAll" 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 1670 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1670">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.selectAll" class="Element-selectAll-section"><header><h3 id="Element.selectAll" 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 1671 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1671">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.selectAll-extra"></div><div class="dr-method"><p>Applies CSS selector with the element as a parent and returns the result as a set or array of elements.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">query</span>
|
||||
|
@ -442,7 +442,7 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">CSS selector</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Set">Set</em> <em class="dr-type-array">array</em> <span class="dr-description">result of query selection</span></p>
|
||||
</div></section></article><article id="Element.stop" class="Element-stop-section"><header><h3 id="Element.stop" 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 1931 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1931">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.stop" class="Element-stop-section"><header><h3 id="Element.stop" 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 1932 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1932">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.stop-extra"></div><div class="dr-method"><p>Stops all the animations of the current element.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description">the element</span></p>
|
||||
|
@ -478,7 +478,7 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.transform" class="Element-transform-section"><header><h3 id="Element.transform" 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 1489 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1489">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.transform" class="Element-transform-section"><header><h3 id="Element.transform" 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 1490 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1490">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.transform-extra"></div><div class="dr-method"><p>Gets or sets transformation of the element
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">tstr</span>
|
||||
|
@ -513,10 +513,10 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.undrag" class="Element-undrag-section"><header><h3 id="Element.undrag" class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 516 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L516">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.undrag" class="Element-undrag-section"><header><h3 id="Element.undrag" class="dr-method">Element.undrag()<a href="#Element.undrag" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 460 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L460">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.undrag-extra"></div><div class="dr-method"><p>Removes all drag event handlers from given element.
|
||||
</p>
|
||||
</div></section></article><article id="Element.unhover" class="Element-unhover-section"><header><h3 id="Element.unhover" class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 437 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L437">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.unhover" class="Element-unhover-section"><header><h3 id="Element.unhover" class="dr-method">Element.unhover(f_in, f_out)<a href="#Element.unhover" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 381 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/mouse.js#L381">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.unhover-extra"></div><div class="dr-method"><p>Removes event handlers for hover for the element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">f_in</span>
|
||||
|
@ -599,15 +599,15 @@ If key is not provided, removes all the data of the element.
|
|||
<span class="dr-description">handler for the event</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Element" class="dr-link">Element</a></span></p>
|
||||
</div></section></article><article id="Element.use" class="Element-use-section"><header><h3 id="Element.use" 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 1702 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1702">➭</a></h3></header>
|
||||
</div></section></article><article id="Element.use" class="Element-use-section"><header><h3 id="Element.use" 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 1703 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1703">➭</a></h3></header>
|
||||
<section><div class="extra" id="Element.use-extra"></div><div class="dr-method"><p>Creates <code><use></code> element linked to the current element.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description"><code><use></code> element</span></p>
|
||||
</div></section></article><article id="Fragment" class="Fragment-section"><header><h2 id="Fragment" class="undefined">Fragment<a href="#Fragment" title="Link to this section" class="dr-hash">⚓</a></h2></header>
|
||||
<section><div class="extra" id="Fragment-extra"></div></section></article><article id="Fragment.select" class="Fragment-select-section"><header><h3 id="Fragment.select" 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 2039 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2039">➭</a></h3></header>
|
||||
<section><div class="extra" id="Fragment-extra"></div></section></article><article id="Fragment.select" class="Fragment-select-section"><header><h3 id="Fragment.select" 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 2096 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2096">➭</a></h3></header>
|
||||
<section><div class="extra" id="Fragment.select-extra"></div><div class="dr-method"><p>See <a href="#Element.select" class="dr-link">Element.select</a>
|
||||
</p>
|
||||
</div></section></article><article id="Fragment.selectAll" class="Fragment-selectAll-section"><header><h3 id="Fragment.selectAll" 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 2046 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2046">➭</a></h3></header>
|
||||
</div></section></article><article id="Fragment.selectAll" class="Fragment-selectAll-section"><header><h3 id="Fragment.selectAll" 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 2103 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2103">➭</a></h3></header>
|
||||
<section><div class="extra" id="Fragment.selectAll-extra"></div><div class="dr-method"><p>See <a href="#Element.selectAll" class="dr-link">Element.selectAll</a>
|
||||
</p>
|
||||
</div></section></article><article id="Matrix" class="Matrix-section"><header><h2 id="Matrix" class="undefined">Matrix<a href="#Matrix" title="Link to this section" class="dr-hash">⚓</a></h2></header>
|
||||
|
@ -725,7 +725,7 @@ If key is not provided, removes all the data of the element.
|
|||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">y</span></p>
|
||||
</div></section></article><article id="Paper" class="Paper-section"><header><h2 id="Paper" class="undefined">Paper<a href="#Paper" title="Link to this section" class="dr-hash">⚓</a></h2></header>
|
||||
<section><div class="extra" id="Paper-extra"></div></section></article><article id="Paper.circle" class="Paper-circle-section"><header><h3 id="Paper.circle" 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 2208 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2208">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper-extra"></div></section></article><article id="Paper.circle" class="Paper-circle-section"><header><h3 id="Paper.circle" 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 2265 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2265">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.circle-extra"></div><div class="dr-method"><p>Draws a circle.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">x</span>
|
||||
|
@ -741,7 +741,7 @@ If key is not provided, removes all the data of the element.
|
|||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Element object with type “circle”</span></p>
|
||||
<h3>Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var c = paper.circle(50, 50, 40);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.el" class="Paper-el-section"><header><h3 id="Paper.el" 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 2148 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2148">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.el" class="Paper-el-section"><header><h3 id="Paper.el" 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 2205 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2205">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.el-extra"></div><div class="dr-method"><p>Creates element on paper with a given name and no attributes.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">name</span>
|
||||
|
@ -759,7 +759,7 @@ var c = paper.el("circle").attr({
|
|||
r: 10
|
||||
});
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.ellipse" class="Paper-ellipse-section"><header><h3 id="Paper.ellipse" 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 2296 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2296">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.ellipse" class="Paper-ellipse-section"><header><h3 id="Paper.ellipse" 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 2353 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2353">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.ellipse-extra"></div><div class="dr-method"><p>Draws an ellipse.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">x</span>
|
||||
|
@ -833,7 +833,7 @@ var c = paper.el("circle").attr({
|
|||
filter: f
|
||||
});
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.g" class="Paper-g-section"><header><h3 id="Paper.g" 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 2370 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2370">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.g" class="Paper-g-section"><header><h3 id="Paper.g" 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 2427 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2427">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.g-extra"></div><div class="dr-method"><p>Makes a group element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional">varargs</span>
|
||||
|
@ -853,7 +853,7 @@ var c = paper.el("circle").attr({
|
|||
g = paper.g();
|
||||
g.add(c2, c1);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.gradient" class="Paper-gradient-section"><header><h3 id="Paper.gradient" 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 2530 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2530">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.gradient" class="Paper-gradient-section"><header><h3 id="Paper.gradient" 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 2587 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2587">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.gradient-extra"></div><div class="dr-method"><p>Creates a gradient element.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">gradient</span>
|
||||
|
@ -891,10 +891,10 @@ through red at 25% to white.
|
|||
});
|
||||
</code></pre></section>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Element object with type “gradient”</span></p>
|
||||
</div></section></article><article id="Paper.group" class="Paper-group-section"><header><h3 id="Paper.group" 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 2376 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2376">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.group" class="Paper-group-section"><header><h3 id="Paper.group" 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 2433 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2433">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.group-extra"></div><div class="dr-method"><p>See <a href="#Paper.g" class="dr-link">Paper.g</a>
|
||||
</p>
|
||||
</div></section></article><article id="Paper.image" class="Paper-image-section"><header><h3 id="Paper.image" 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 2253 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2253">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.image" class="Paper-image-section"><header><h3 id="Paper.image" 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 2310 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2310">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.image-extra"></div><div class="dr-method"><p>Embeds an image into the surface.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">src</span>
|
||||
|
@ -937,7 +937,7 @@ through red at 25% to white.
|
|||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Element object with type “image”</span></p>
|
||||
<h3>Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var c = paper.image("apple.png", 10, 10, 80, 80);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.line" class="Paper-line-section"><header><h3 id="Paper.line" 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 2432 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2432">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.line" class="Paper-line-section"><header><h3 id="Paper.line" 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 2489 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2489">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.line-extra"></div><div class="dr-method"><p>Draws a line.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">x1</span>
|
||||
|
@ -956,7 +956,7 @@ through red at 25% to white.
|
|||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description">Element object with type “line”</span></p>
|
||||
<h3>Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var t1 = paper.line(50, 50, 100, 100);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.path" class="Paper-path-section"><header><h3 id="Paper.path" 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 2340 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2340">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.path" class="Paper-path-section"><header><h3 id="Paper.path" 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 2397 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2397">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.path-extra"></div><div class="dr-method"><p>Creates a path element by given path data string.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param optional">pathString</span>
|
||||
|
@ -991,10 +991,10 @@ Note: there is a special case when path consist of just three commands: “M10,1
|
|||
// draw a diagonal line:
|
||||
// move to 10,10, line to 90,90
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.polygon" class="Paper-polygon-section"><header><h3 id="Paper.polygon" 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 2481 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2481">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.polygon" class="Paper-polygon-section"><header><h3 id="Paper.polygon" 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 2538 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2538">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.polygon-extra"></div><div class="dr-method"><p>Draws a polygon. See <a href="#Paper.polyline" class="dr-link">Paper.polyline</a>
|
||||
</p>
|
||||
</div></section></article><article id="Paper.polyline" class="Paper-polyline-section"><header><h3 id="Paper.polyline" 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 2461 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2461">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.polyline" class="Paper-polyline-section"><header><h3 id="Paper.polyline" 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 2518 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2518">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.polyline-extra"></div><div class="dr-method"><p>Draws a polyline.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">points</span>
|
||||
|
@ -1011,7 +1011,7 @@ Note: there is a special case when path consist of just three commands: “M10,1
|
|||
<h3>Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var p1 = paper.polyline([10, 10, 100, 100]);
|
||||
var p2 = paper.polyline(10, 10, 100, 100);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.rect" class="Paper-rect-section"><header><h3 id="Paper.rect" 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 2171 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2171">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.rect" class="Paper-rect-section"><header><h3 id="Paper.rect" 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 2228 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2228">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.rect-extra"></div><div class="dr-method"><p></p>
|
||||
<p>Draws a rectangle.
|
||||
</p>
|
||||
|
@ -1042,7 +1042,7 @@ var c = paper.rect(10, 10, 50, 50);
|
|||
// rectangle with rounded corners
|
||||
var c = paper.rect(40, 40, 50, 50, 10);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.text" class="Paper-text-section"><header><h3 id="Paper.text" 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 2404 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2404">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.text" class="Paper-text-section"><header><h3 id="Paper.text" 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 2461 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2461">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.text-extra"></div><div class="dr-method"><p>Draws a text string.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">x</span>
|
||||
|
@ -1059,7 +1059,7 @@ var c = paper.rect(40, 40, 50, 50, 10);
|
|||
<h3>Usage</h3><section class="code"><pre class="javascript code"><code data-language="javascript" class="language-javascript">var t1 = paper.text(50, 50, "Savage");
|
||||
var t2 = paper.text(50, 50, ["S","a","v","a","g","e"]);
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Paper.toString" class="Paper-toString-section"><header><h3 id="Paper.toString" 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 2635 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2635">➭</a></h3></header>
|
||||
</div></section></article><article id="Paper.toString" class="Paper-toString-section"><header><h3 id="Paper.toString" 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 2692 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2692">➭</a></h3></header>
|
||||
<section><div class="extra" id="Paper.toString-extra"></div><div class="dr-method"><p>Returns SVG code of the <a href="#Paper" class="dr-link">Paper</a>.
|
||||
</p>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-string">string</em> <span class="dr-description">SVG code of the <a href="#Paper" class="dr-link">Paper</a>.</span></p>
|
||||
|
@ -1094,7 +1094,7 @@ Returns matrix based on given parameters.
|
|||
<span class="dr-description"> </span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-object">object</em> <span class="dr-description"><a href="#Matrix" class="dr-link">Matrix</a></span></p>
|
||||
</div></section></article><article id="Savage.ajax" class="Savage-ajax-section"><header><h3 id="Savage.ajax" class="dr-method">Savage.ajax(…)<a href="#Savage.ajax" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2667 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2667">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.ajax" class="Savage-ajax-section"><header><h3 id="Savage.ajax" class="dr-method">Savage.ajax(…)<a href="#Savage.ajax" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2724 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2724">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.ajax-extra"></div><div class="dr-method"><p>Simple implementation of Ajax.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">url</span>
|
||||
|
@ -1125,7 +1125,7 @@ Returns matrix based on given parameters.
|
|||
<span class="dr-description">scope of callback</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-XMLHttpRequest">XMLHttpRequest</em> <span class="dr-description">XMLHttpRequest (just in case)</span></p>
|
||||
</div></section></article><article id="Savage.animate" class="Savage-animate-section"><header><h3 id="Savage.animate" class="dr-method">Savage.animate(from, to, setter, ms, [easing], [callback])<a href="#Savage.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1913 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1913">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.animate" class="Savage-animate-section"><header><h3 id="Savage.animate" class="dr-method">Savage.animate(from, to, setter, ms, [easing], [callback])<a href="#Savage.animate" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1914 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1914">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.animate-extra"></div><div class="dr-method"><p>Runs generic animation of one number into another with a caring function.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">from</span>
|
||||
|
@ -1157,7 +1157,7 @@ Returns matrix based on given parameters.
|
|||
<li><span class="dr-json-key">status</span><span class="dr-type"><em class="dr-type-function">function</em></span><span class="dr-json-description">gets or sets the status of the animation,</span>
|
||||
<li><span class="dr-json-key">stop</span><span class="dr-type"><em class="dr-type-function">function</em></span><span class="dr-json-description">stops the animation</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Savage.animation" class="Savage-animation-section"><header><h3 id="Savage.animation" class="dr-method">Savage.animation(attr, ms, [easing], [callback])<a href="#Savage.animation" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1855 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1855">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.animation" class="Savage-animation-section"><header><h3 id="Savage.animation" class="dr-method">Savage.animation(attr, ms, [easing], [callback])<a href="#Savage.animation" 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#L1856">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.animation-extra"></div><div class="dr-method"><p>Creates animation object.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">attr</span>
|
||||
|
@ -1202,7 +1202,7 @@ Returns matrix based on given parameters.
|
|||
<span class="dr-description">angle in radians</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">angle in degrees.</span></p>
|
||||
</div></section></article><article id="Savage.findDotsAtSegment" class="Savage-findDotsAtSegment-section"><header><h3 id="Savage.findDotsAtSegment" class="dr-method">Savage.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t)<a href="#Savage.findDotsAtSegment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1174 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1174">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.findDotsAtSegment" class="Savage-findDotsAtSegment-section"><header><h3 id="Savage.findDotsAtSegment" class="dr-method">Savage.findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t)<a href="#Savage.findDotsAtSegment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1175 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1175">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.findDotsAtSegment-extra"></div><div class="dr-method"><p>Utility method
|
||||
Find dot coordinates on the given cubic bezier curve at the given t.
|
||||
</p>
|
||||
|
@ -1269,7 +1269,7 @@ paper.path(Savage.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width
|
|||
}
|
||||
}));
|
||||
</code></pre></section>
|
||||
</div></section></article><article id="Savage.fragment" class="Savage-fragment-section"><header><h3 id="Savage.fragment" class="dr-method">Savage.fragment(varargs)<a href="#Savage.fragment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2056 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2056">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.fragment" class="Savage-fragment-section"><header><h3 id="Savage.fragment" class="dr-method">Savage.fragment(varargs)<a href="#Savage.fragment" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2113 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2113">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.fragment-extra"></div><div class="dr-method"><p>Creates DOM fragment from given list of elements or strings
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">varargs</span>
|
||||
|
@ -1379,7 +1379,7 @@ paper.path(Savage.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width
|
|||
<span class="dr-description">name of the type, i.e. “string”, “function”, “number”, etc.</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-boolean">boolean</em> <span class="dr-description">is given value is of given type</span></p>
|
||||
</div></section></article><article id="Savage.load" class="Savage-load-section"><header><h3 id="Savage.load" class="dr-method">Savage.load(url, callback, [scope])<a href="#Savage.load" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2713 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2713">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.load" class="Savage-load-section"><header><h3 id="Savage.load" class="dr-method">Savage.load(url, callback, [scope])<a href="#Savage.load" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2770 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2770">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.load-extra"></div><div class="dr-method"><p>Loads external SVG file as a <a href="#Fragment" class="dr-link">Fragment</a>. For more advanced AJAX see <a href="#Savage.ajax" class="dr-link">Savage.ajax</a>.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">url</span>
|
||||
|
@ -1393,7 +1393,7 @@ paper.path(Savage.format("M{x},{y}h{dim.width}v{dim.height}h{dim['negative width
|
|||
<span class="dr-type"><em class="dr-type-object">object</em></span>
|
||||
<span class="dr-description">scope of callback</span></li>
|
||||
</ol></div>
|
||||
</div></section></article><article id="Savage.parse" class="Savage-parse-section"><header><h3 id="Savage.parse" class="dr-method">Savage.parse(svg)<a href="#Savage.parse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2008 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2008">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.parse" class="Savage-parse-section"><header><h3 id="Savage.parse" class="dr-method">Savage.parse(svg)<a href="#Savage.parse" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 2065 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L2065">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.parse-extra"></div><div class="dr-method"><p>Parses SVG fragment and converts it into <a href="#Fragment" class="dr-link">Fragment</a>.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">svg</span>
|
||||
|
@ -1420,7 +1420,7 @@ Parses given path string into an array of transformations.
|
|||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-array">array</em> <span class="dr-description">array of transformations.</span></p>
|
||||
</div></section></article><article id="Savage.path" class="Savage-path-section"><header><h3 id="Savage.path" class="undefined">Savage.path<a href="#Savage.path" title="Link to this section" class="dr-hash">⚓</a></h3></header>
|
||||
<section><div class="extra" id="Savage.path-extra"></div></section></article><article id="Savage.path.bezierBBox" class="Savage-path-bezierBBox-section"><header><h4 id="Savage.path.bezierBBox" class="dr-method">Savage.path.bezierBBox(…)<a href="#Savage.path.bezierBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1204 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1204">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path-extra"></div></section></article><article id="Savage.path.bezierBBox" class="Savage-path-bezierBBox-section"><header><h4 id="Savage.path.bezierBBox" class="dr-method">Savage.path.bezierBBox(…)<a href="#Savage.path.bezierBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1205 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1205">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.bezierBBox-extra"></div><div class="dr-method"><p>Utility method
|
||||
Return bounding box of a given cubic bezier curve
|
||||
</p>
|
||||
|
@ -1461,7 +1461,7 @@ Return bounding box of a given cubic bezier curve
|
|||
</ol></li><li> }</li><li> max: {<ol class="dr-json"><li><span class="dr-json-key">x:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">x coordinate of the right point</span>
|
||||
<li><span class="dr-json-key">y:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y coordinate of the bottom point</span>
|
||||
</ol></li><li> }</li></ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Savage.path.getPointAtLength" class="Savage-path-getPointAtLength-section"><header><h4 id="Savage.path.getPointAtLength" class="dr-method">Savage.path.getPointAtLength(path, length)<a href="#Savage.path.getPointAtLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1070 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1070">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.getPointAtLength" class="Savage-path-getPointAtLength-section"><header><h4 id="Savage.path.getPointAtLength" class="dr-method">Savage.path.getPointAtLength(path, length)<a href="#Savage.path.getPointAtLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1071 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1071">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.getPointAtLength-extra"></div><div class="dr-method"><p>Return coordinates of the point located at the given length on the given path.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">path</span>
|
||||
|
@ -1476,7 +1476,7 @@ Return bounding box of a given cubic bezier curve
|
|||
<li><span class="dr-json-key">y:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">y coordinate</span>
|
||||
<li><span class="dr-json-key">alpha:</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">angle of derivative</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Savage.path.getSubpath" class="Savage-path-getSubpath-section"><header><h4 id="Savage.path.getSubpath" class="dr-method">Savage.path.getSubpath(path, from, to)<a href="#Savage.path.getSubpath" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1083 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1083">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.getSubpath" class="Savage-path-getSubpath-section"><header><h4 id="Savage.path.getSubpath" class="dr-method">Savage.path.getSubpath(path, from, to)<a href="#Savage.path.getSubpath" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1084 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1084">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.getSubpath-extra"></div><div class="dr-method"><p>Return subpath of a given path from given length to given length.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">path</span>
|
||||
|
@ -1490,7 +1490,7 @@ Return bounding box of a given cubic bezier curve
|
|||
<span class="dr-description">position of the end of the segment</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-string">string</em> <span class="dr-description">pathstring for the segment</span></p>
|
||||
</div></section></article><article id="Savage.path.getTotalLength" class="Savage-path-getTotalLength-section"><header><h4 id="Savage.path.getTotalLength" class="dr-method">Savage.path.getTotalLength(path)<a href="#Savage.path.getTotalLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1053 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1053">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.getTotalLength" class="Savage-path-getTotalLength-section"><header><h4 id="Savage.path.getTotalLength" class="dr-method">Savage.path.getTotalLength(path)<a href="#Savage.path.getTotalLength" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1054 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1054">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.getTotalLength-extra"></div><div class="dr-method"><p>Returns length of the given path in pixels.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">path</span>
|
||||
|
@ -1498,7 +1498,7 @@ Return bounding box of a given cubic bezier curve
|
|||
<span class="dr-description">SVG path string.</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-number">number</em> <span class="dr-description">length.</span></p>
|
||||
</div></section></article><article id="Savage.path.intersection" class="Savage-path-intersection-section"><header><h4 id="Savage.path.intersection" class="dr-method">Savage.path.intersection(path1, path2)<a href="#Savage.path.intersection" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1253 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1253">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.intersection" class="Savage-path-intersection-section"><header><h4 id="Savage.path.intersection" class="dr-method">Savage.path.intersection(path1, path2)<a href="#Savage.path.intersection" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1254 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1254">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.intersection-extra"></div><div class="dr-method"><p>Utility method
|
||||
Finds intersections of two paths
|
||||
</p>
|
||||
|
@ -1519,7 +1519,7 @@ Finds intersections of two paths
|
|||
<li><span class="dr-json-key">bez1:</span><span class="dr-type"><em class="dr-type-array">array</em></span><span class="dr-json-description">eight coordinates representing beziér curve for the segment of path1</span>
|
||||
<li><span class="dr-json-key">bez2:</span><span class="dr-type"><em class="dr-type-array">array</em></span><span class="dr-json-description">eight coordinates representing beziér curve for the segment of path2</span>
|
||||
</ol></li><li> }</li><li>]</ol>
|
||||
</div></section></article><article id="Savage.path.isBBoxIntersect" class="Savage-path-isBBoxIntersect-section"><header><h4 id="Savage.path.isBBoxIntersect" class="dr-method">Savage.path.isBBoxIntersect(bbox1, bbox2)<a href="#Savage.path.isBBoxIntersect" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1229 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1229">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.isBBoxIntersect" class="Savage-path-isBBoxIntersect-section"><header><h4 id="Savage.path.isBBoxIntersect" class="dr-method">Savage.path.isBBoxIntersect(bbox1, bbox2)<a href="#Savage.path.isBBoxIntersect" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1230 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1230">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.isBBoxIntersect-extra"></div><div class="dr-method"><p>Utility method
|
||||
Returns <code>true</code> if two bounding boxes intersect
|
||||
</p>
|
||||
|
@ -1531,7 +1531,7 @@ Returns <code>true</code> if two bounding boxes intersect
|
|||
<span class="dr-description">second bounding box</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-boolean">boolean</em> <span class="dr-description"><code>true</code> if they intersect</span></p>
|
||||
</div></section></article><article id="Savage.path.isPointInside" class="Savage-path-isPointInside-section"><header><h4 id="Savage.path.isPointInside" class="dr-method">Savage.path.isPointInside(path, x, y)<a href="#Savage.path.isPointInside" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1267 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1267">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.isPointInside" class="Savage-path-isPointInside-section"><header><h4 id="Savage.path.isPointInside" class="dr-method">Savage.path.isPointInside(path, x, y)<a href="#Savage.path.isPointInside" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1268 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1268">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.isPointInside-extra"></div><div class="dr-method"><p>Utility method
|
||||
Returns <code>true</code> if given point is inside a given closed path.
|
||||
</p>
|
||||
|
@ -1546,7 +1546,7 @@ Returns <code>true</code> if given point is inside a given closed path.
|
|||
<span class="dr-description">y of the point</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-boolean">boolean</em> <span class="dr-description">true, if point is inside the path</span></p>
|
||||
</div></section></article><article id="Savage.path.isPointInsideBBox" class="Savage-path-isPointInsideBBox-section"><header><h4 id="Savage.path.isPointInsideBBox" class="dr-method">Savage.path.isPointInsideBBox(bbox, x, y)<a href="#Savage.path.isPointInsideBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1217 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1217">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.isPointInsideBBox" class="Savage-path-isPointInsideBBox-section"><header><h4 id="Savage.path.isPointInsideBBox" class="dr-method">Savage.path.isPointInsideBBox(bbox, x, y)<a href="#Savage.path.isPointInsideBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1218 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1218">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.isPointInsideBBox-extra"></div><div class="dr-method"><p>Utility method
|
||||
Returns <code>true</code> if given point is inside bounding box.
|
||||
</p>
|
||||
|
@ -1561,7 +1561,7 @@ Returns <code>true</code> if given point is inside bounding box.
|
|||
<span class="dr-description">y coordinate of the point</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-boolean">boolean</em> <span class="dr-description"><code>true</code> if point inside</span></p>
|
||||
</div></section></article><article id="Savage.path.map" class="Savage-path-map-section"><header><h4 id="Savage.path.map" class="dr-method">Savage.path.map(path, matrix)<a href="#Savage.path.map" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1330 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1330">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.map" class="Savage-path-map-section"><header><h4 id="Savage.path.map" class="dr-method">Savage.path.map(path, matrix)<a href="#Savage.path.map" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1331 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1331">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.map-extra"></div><div class="dr-method"><p>Transform the path string with given matrix.
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">path</span>
|
||||
|
@ -1572,7 +1572,7 @@ Returns <code>true</code> if given point is inside bounding box.
|
|||
<span class="dr-description">see <a href="#Matrix" class="dr-link">Matrix</a></span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-string">string</em> <span class="dr-description">transformed path string</span></p>
|
||||
</div></section></article><article id="Savage.path.toAbsolute" class="Savage-path-toAbsolute-section"><header><h4 id="Savage.path.toAbsolute" class="dr-method">Savage.path.toAbsolute(path)<a href="#Savage.path.toAbsolute" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1309 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1309">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.toAbsolute" class="Savage-path-toAbsolute-section"><header><h4 id="Savage.path.toAbsolute" class="dr-method">Savage.path.toAbsolute(path)<a href="#Savage.path.toAbsolute" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1310 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1310">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.toAbsolute-extra"></div><div class="dr-method"><p>Utility method
|
||||
Converts path coordinates into absolute values.
|
||||
</p>
|
||||
|
@ -1581,7 +1581,7 @@ Converts path coordinates into absolute values.
|
|||
<span class="dr-description">path string</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-array">array</em> <span class="dr-description">path string</span></p>
|
||||
</div></section></article><article id="Savage.path.toCubic" class="Savage-path-toCubic-section"><header><h4 id="Savage.path.toCubic" class="dr-method">Savage.path.toCubic(pathString)<a href="#Savage.path.toCubic" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1320 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1320">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.toCubic" class="Savage-path-toCubic-section"><header><h4 id="Savage.path.toCubic" class="dr-method">Savage.path.toCubic(pathString)<a href="#Savage.path.toCubic" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1321 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1321">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.toCubic-extra"></div><div class="dr-method"><p>Utility method
|
||||
Converts path to a new path where all segments are cubic bezier curves.
|
||||
</p>
|
||||
|
@ -1590,7 +1590,7 @@ Converts path to a new path where all segments are cubic bezier curves.
|
|||
<span class="dr-description">path string or array of segments</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-array">array</em> <span class="dr-description">array of segments.</span></p>
|
||||
</div></section></article><article id="Savage.path.toRelative" class="Savage-path-toRelative-section"><header><h4 id="Savage.path.toRelative" class="dr-method">Savage.path.toRelative(path)<a href="#Savage.path.toRelative" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1298 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1298">➭</a></h4></header>
|
||||
</div></section></article><article id="Savage.path.toRelative" class="Savage-path-toRelative-section"><header><h4 id="Savage.path.toRelative" class="dr-method">Savage.path.toRelative(path)<a href="#Savage.path.toRelative" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1299 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1299">➭</a></h4></header>
|
||||
<section><div class="extra" id="Savage.path.toRelative-extra"></div><div class="dr-method"><p>Utility method
|
||||
Converts path coordinates into relative values.
|
||||
</p>
|
||||
|
@ -1599,7 +1599,7 @@ Converts path coordinates into relative values.
|
|||
<span class="dr-description">path string</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-array">array</em> <span class="dr-description">path string</span></p>
|
||||
</div></section></article><article id="Savage.pathBBox" class="Savage-pathBBox-section"><header><h3 id="Savage.pathBBox" class="dr-method">Savage.pathBBox(path)<a href="#Savage.pathBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1286 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1286">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.pathBBox" class="Savage-pathBBox-section"><header><h3 id="Savage.pathBBox" class="dr-method">Savage.pathBBox(path)<a href="#Savage.pathBBox" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1287 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/path.js#L1287">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.pathBBox-extra"></div><div class="dr-method"><p>Utility method
|
||||
Return bounding box of a given path
|
||||
</p>
|
||||
|
@ -1673,7 +1673,7 @@ Return bounding box of a given path
|
|||
<li><span class="dr-json-key">s</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">saturation</span>
|
||||
<li><span class="dr-json-key">l</span><span class="dr-type"><em class="dr-type-number">number</em></span><span class="dr-json-description">luminosity</span>
|
||||
</ol></li><li>}</li></ol>
|
||||
</div></section></article><article id="Savage.select" class="Savage-select-section"><header><h3 id="Savage.select" class="dr-method">Savage.select(query)<a href="#Savage.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1295 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1295">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.select" class="Savage-select-section"><header><h3 id="Savage.select" class="dr-method">Savage.select(query)<a href="#Savage.select" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1296 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1296">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.select-extra"></div><div class="dr-method"><p>Wraps DOM element specified by CSS selector as <a href="#Element" class="dr-link">Element</a>
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">query</span>
|
||||
|
@ -1681,7 +1681,7 @@ Return bounding box of a given path
|
|||
<span class="dr-description">CSS selector of the element</span></li>
|
||||
</ol></div>
|
||||
<p class="dr-returns"><strong class="dr-title">Returns:</strong> <em class="dr-type-Element">Element</em> <span class="dr-description"></span></p>
|
||||
</div></section></article><article id="Savage.selectAll" class="Savage-selectAll-section"><header><h3 id="Savage.selectAll" class="dr-method">Savage.selectAll(query)<a href="#Savage.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1306 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1306">➭</a></h3></header>
|
||||
</div></section></article><article id="Savage.selectAll" class="Savage-selectAll-section"><header><h3 id="Savage.selectAll" class="dr-method">Savage.selectAll(query)<a href="#Savage.selectAll" title="Link to this section" class="dr-hash">⚓</a><a class="dr-sourceline" title="Go to line 1307 in the source" href="https://github.com/adobe-webplatform/savage/blob/master/src/svg.js#L1307">➭</a></h3></header>
|
||||
<section><div class="extra" id="Savage.selectAll-extra"></div><div class="dr-method"><p>Wraps DOM elements specified by CSS selector as set or array of <a href="#Element" class="dr-link">Element</a>
|
||||
</p>
|
||||
<div class="topcoat-list__container"><h3 class="topcoat-list__header">Parameters</h3><ol class="topcoat-list"><li class="topcoat-list__item"><span class="dr-param">query</span>
|
||||
|
|
|
@ -1724,9 +1724,9 @@ function arrayFirstValue(arr) {
|
|||
* Element.clone
|
||||
[ method ]
|
||||
**
|
||||
* Creates `<use>` element linked to the current element.
|
||||
* Creates clone of the element and inserts it after the element.
|
||||
**
|
||||
= (Element) `<use>` element
|
||||
= (Element) the clone
|
||||
\*/
|
||||
elproto.clone = function () {
|
||||
var clone = wrap(this.node.cloneNode(true));
|
||||
|
|
Loading…
Reference in New Issue