Skip to content
Browse files

Add fabric.Image.fromURL test to node tests

  • Loading branch information...
1 parent bba423a commit aaa751786828812cc3c8d03d5c756c52cb576cea @kangax committed
Showing with 919 additions and 4 deletions.
  1. +908 −0 docs/symbols/fabric.Collection.html
  2. +11 −4 test/node/index.html
View
908 docs/symbols/fabric.Collection.html
@@ -0,0 +1,908 @@
+---
+layout: doc
+title: Fabric.js API Reference - fabric.Collection
+---
+
+<style>
+ /* default.css */
+#bd-wrapper {
+ font: 13px "Open Sans", Arial, Helvetica, sans-serif;
+}
+
+.header {
+ clear: both;
+ background-color: #ccc;
+ padding: 8px;
+}
+
+h1 {
+ font-size: 150%;
+ font-weight: bold;
+ padding: 0;
+ margin: 1em 0 0 .3em;
+}
+
+hr {
+ border: none 0;
+ border-top: 1px solid #7F8FB1;
+ height: 1px;
+}
+
+pre.code {
+ display: block;
+ padding: 8px;
+ border: 1px dashed #ccc;
+}
+
+#index {
+ margin-top: 24px;
+ float: left;
+ width: 260px;
+ position: absolute;
+ left: 8px;
+ background-color: #F3F3F3;
+ padding: 8px;
+}
+
+#content {
+ margin-left: 290px;
+ width: 770px;
+}
+
+.classList {
+ list-style-type: none;
+ padding: 0;
+ margin: 0 0 0 8px;
+ font-size: 1em;
+ overflow: auto;
+}
+
+.classList li {
+ paddinging: 0;
+ margin: 0 0 8px 0;
+}
+
+.summaryTable {
+ width: 100%;
+}
+
+h1.classTitle {
+ font-size:170%;
+ line-height:130%;
+}
+
+h2 { font-size: 110%; }
+
+caption, div.sectionTitle {
+ background: #cecece; /* Old browsers */
+ background: -moz-linear-gradient(top, #cecece 0%, #8c8c8c 100%); /* FF3.6+ */
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cecece), color-stop(100%,#8c8c8c)); /* Chrome,Safari4+ */
+ background: -webkit-linear-gradient(top, #cecece 0%,#8c8c8c 100%); /* Chrome10+,Safari5.1+ */
+ background: -o-linear-gradient(top, #cecece 0%,#8c8c8c 100%); /* Opera 11.10+ */
+ background: -ms-linear-gradient(top, #cecece 0%,#8c8c8c 100%); /* IE10+ */
+ background: linear-gradient(to bottom, #cecece 0%,#8c8c8c 100%); /* W3C */
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cecece', endColorstr='#8c8c8c',GradientType=0 ); /* IE6-9 */
+
+ color: #fff;
+ font-size:130%;
+ text-align: left;
+ padding: 2px 6px 2px 6px;
+}
+
+div.sectionTitle {
+ margin-bottom: 8px;
+}
+
+.summaryTable thead {
+ display: none;
+}
+
+.summaryTable td {
+ vertical-align: top;
+ padding: 4px;
+ border-bottom: 1px #C0C8D8 solid;
+ border-right: 1px #C0C8D8 solid;
+}
+
+/*col#summaryAttributes {}*/
+.summaryTable td.attributes {
+ border-left: 1px #C0C8D8 solid;
+ width: 140px;
+ text-align: right;
+}
+
+td.attributes, .fixedFont {
+ line-height: 15px;
+ color: #002EBE;
+ font-family: "Courier New",Courier,monospace;
+ font-size: 13px;
+}
+
+.summaryTable td.nameDescription {
+ text-align: left;
+ font-size: 13px;
+ line-height: 15px;
+}
+
+.summaryTable td.nameDescription, .description {
+ line-height: 15px;
+ padding: 4px;
+ padding-left: 4px;
+}
+
+.summaryTable { margin-bottom: 8px; }
+
+ul.inheritsList {
+ list-style: square;
+ margin-left: 20px;
+ padding-left: 0;
+}
+
+.detailList {
+ margin-left: 20px;
+ line-height: 15px;
+}
+.detailList dt { margin-left: 20px; }
+
+.detailList .heading {
+ font-weight: bold;
+ padding-bottom: 6px;
+ margin-left: 0;
+}
+
+.light, td.attributes, .light a:link, .light a:visited {
+ color: #777;
+ font-style: italic;
+}
+
+.fineprint {
+ text-align: right;
+ font-size: 10px;
+}
+
+.inheritsList dd {
+ margin-left: 0;
+ margin-top: 3px;
+ margin-bottom: 8px;
+}
+</style>
+
+<!-- ============================== header ================================= -->
+<!-- begin static/header.html -->
+<div id="header">
+</div>
+<!-- end static/header.html -->
+
+<!-- ============================== classes index ============================ -->
+<div id="index">
+ <!-- begin publish.classesIndex -->
+ <div align="center"><a href="../index.html">Class Index</a>
+| <a href="../files.html">File Index</a></div>
+
+
+<script>
+(function() {
+ var cx = '001658083293066718026:dbxamnxeuku';
+ var gcse = document.createElement('script'); gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
+ '//www.google.com/cse/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+})();
+</script>
+<gcse:search></gcse:search>
+
+<hr>
+<h2>Classes</h2>
+<ul class="classList">
+
+ <li><i><a href="../symbols/_global_.html">_global_</a></i></li>
+
+ <li><a href="../symbols/Array.html">Array</a></li>
+
+ <li><a href="../symbols/fabric.html">fabric</a></li>
+
+ <li><a href="../symbols/fabric.BaseBrush.html">fabric.BaseBrush</a></li>
+
+ <li><a href="../symbols/fabric.Canvas.html">fabric.Canvas</a></li>
+
+ <li><a href="../symbols/fabric.Circle.html">fabric.Circle</a></li>
+
+ <li><a href="../symbols/fabric.CircleBrush.html">fabric.CircleBrush</a></li>
+
+ <li><a href="../symbols/fabric.Collection.html">fabric.Collection</a></li>
+
+ <li><a href="../symbols/fabric.Color.html">fabric.Color</a></li>
+
+ <li><a href="../symbols/fabric.Element.html">fabric.Element</a></li>
+
+ <li><a href="../symbols/fabric.Ellipse.html">fabric.Ellipse</a></li>
+
+ <li><a href="../symbols/fabric.Gradient.html">fabric.Gradient</a></li>
+
+ <li><a href="../symbols/fabric.Group.html">fabric.Group</a></li>
+
+ <li><a href="../symbols/fabric.Image.html">fabric.Image</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.html">fabric.Image.filters</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Brightness.html">fabric.Image.filters.Brightness</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Convolute.html">fabric.Image.filters.Convolute</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.GradientTransparency.html">fabric.Image.filters.GradientTransparency</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Grayscale.html">fabric.Image.filters.Grayscale</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Invert.html">fabric.Image.filters.Invert</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Noise.html">fabric.Image.filters.Noise</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Pixelate.html">fabric.Image.filters.Pixelate</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.RemoveWhite.html">fabric.Image.filters.RemoveWhite</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Sepia.html">fabric.Image.filters.Sepia</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Sepia2.html">fabric.Image.filters.Sepia2</a></li>
+
+ <li><a href="../symbols/fabric.Image.filters.Tint.html">fabric.Image.filters.Tint</a></li>
+
+ <li><a href="../symbols/fabric.Intersection.html">fabric.Intersection</a></li>
+
+ <li><a href="../symbols/fabric.Line.html">fabric.Line</a></li>
+
+ <li><a href="../symbols/fabric.Object.html">fabric.Object</a></li>
+
+ <li><a href="../symbols/fabric.Observable.html">fabric.Observable</a></li>
+
+ <li><a href="../symbols/fabric.Path.html">fabric.Path</a></li>
+
+ <li><a href="../symbols/fabric.PathGroup.html">fabric.PathGroup</a></li>
+
+ <li><a href="../symbols/fabric.Pattern.html">fabric.Pattern</a></li>
+
+ <li><a href="../symbols/fabric.PatternBrush.html">fabric.PatternBrush</a></li>
+
+ <li><a href="../symbols/fabric.PencilBrush.html">fabric.PencilBrush</a></li>
+
+ <li><a href="../symbols/fabric.Point.html">fabric.Point</a></li>
+
+ <li><a href="../symbols/fabric.Polygon.html">fabric.Polygon</a></li>
+
+ <li><a href="../symbols/fabric.Polyline.html">fabric.Polyline</a></li>
+
+ <li><a href="../symbols/fabric.Rect.html">fabric.Rect</a></li>
+
+ <li><a href="../symbols/fabric.Shadow.html">fabric.Shadow</a></li>
+
+ <li><a href="../symbols/fabric.SprayBrush.html">fabric.SprayBrush</a></li>
+
+ <li><a href="../symbols/fabric.StaticCanvas.html">fabric.StaticCanvas</a></li>
+
+ <li><a href="../symbols/fabric.Text.html">fabric.Text</a></li>
+
+ <li><a href="../symbols/fabric.Triangle.html">fabric.Triangle</a></li>
+
+ <li><a href="../symbols/fabric.util.html">fabric.util</a></li>
+
+ <li><a href="../symbols/fabric.util.array.html">fabric.util.array</a></li>
+
+ <li><a href="../symbols/fabric.util.ease.html">fabric.util.ease</a></li>
+
+ <li><a href="../symbols/fabric.util.object.html">fabric.util.object</a></li>
+
+ <li><a href="../symbols/fabric.util.string.html">fabric.util.string</a></li>
+
+ <li><a href="../symbols/Function.html">Function</a></li>
+
+ <li><a href="../symbols/String.html">String</a></li>
+
+</ul>
+ <!-- end publish.classesIndex -->
+</div>
+
+<div id="content">
+<!-- ============================== class title ============================ -->
+ <h1 class="classTitle">
+
+ Namespace fabric.Collection
+ </h1>
+
+<!-- ============================== class summary ========================== -->
+ <p class="description">
+
+
+
+
+
+
+ <br /><i>Defined in: </i> <a href="../symbols/src/lib_fabric.js.html">fabric.js</a>.
+
+ </p>
+
+<!-- ============================== constructor summary ==================== -->
+
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class fabric.Collection.">
+ <caption>Namespace Summary</caption>
+ <thead>
+ <tr>
+ <th scope="col">Constructor Attributes</th>
+ <th scope="col">Constructor Name and Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="attributes">&nbsp;</td>
+ <td class="nameDescription" >
+ <div class="fixedFont">
+ <b><a href="../symbols/fabric.Collection.html#constructor">fabric.Collection</a></b>
+ </div>
+ <div class="description"></div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+
+<!-- ============================== properties summary ===================== -->
+
+
+<!-- ============================== methods summary ======================== -->
+
+
+
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class fabric.Collection.">
+ <caption>Method Summary</caption>
+ <thead>
+ <tr>
+ <th scope="col">Method Attributes</th>
+ <th scope="col">Method Name and Description</th>
+ </tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.add">add</a></b>()
+ </div>
+ <div class="description">Adds objects to collection, then renders canvas (if `renderOnAddition` is not `false`)
+Objects should be instances of (or inherit from) fabric.Object</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.complexity">complexity</a></b>()
+ </div>
+ <div class="description">Returns number representation of a collection complexity</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.contains">contains</a></b>(object)
+ </div>
+ <div class="description">Returns true if collection contains an object</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.forEachObject">forEachObject</a></b>(callback, context)
+ </div>
+ <div class="description">Executes given function for each object in this group</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.insertAt">insertAt</a></b>(object, index, nonSplicing)
+ </div>
+ <div class="description">Inserts an object into collection at specified index and renders canvas
+An object should be an instance of (or inherit from) fabric.Object</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.isEmpty">isEmpty</a></b>()
+ </div>
+ <div class="description">Returns true if collection contains no objects</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.item">item</a></b>(index)
+ </div>
+ <div class="description">Returns object at specified index</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.remove">remove</a></b>(object)
+ </div>
+ <div class="description">Removes an object from a group</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.size">size</a></b>()
+ </div>
+ <div class="description">Returns a size of a collection (i.e: length of an array containing its objects)</div>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
+ <td class="nameDescription">
+ <div class="fixedFont">fabric.Collection.<b><a href="../symbols/fabric.Collection.html#.toGrayscale">toGrayscale</a></b>()
+ </div>
+ <div class="description">Makes all of the collection objects grayscale (i.e.</div>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+<!-- ============================== events summary ======================== -->
+
+
+<!-- ============================== constructor details ==================== -->
+
+ <div class="details"><a name="constructor"> </a>
+ <div class="sectionTitle">
+ Namespace Detail
+ </div>
+
+ <div class="fixedFont">
+ <b>fabric.Collection</b>
+ </div>
+
+ <div class="description">
+
+
+ </div>
+
+
+
+
+
+
+
+
+
+
+
+
+ </div>
+
+
+<!-- ============================== field details ========================== -->
+
+
+<!-- ============================== method details ========================= -->
+
+ <div class="sectionTitle">
+ Method Detail
+ </div>
+
+ <a name=".add"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+
+ <span class="light">fabric.Collection.</span><b>add</b>()
+
+ </div>
+ <div class="description">
+ Adds objects to collection, then renders canvas (if `renderOnAddition` is not `false`)
+Objects should be instances of (or inherit from) fabric.Object
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <b>...</b>
+ <i>Optional</i>
+ </dt>
+ <dd>Zero or more fabric instances</dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+ <hr />
+
+ <a name=".complexity"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{Number}</span>
+ <span class="light">fabric.Collection.</span><b>complexity</b>()
+
+ </div>
+ <div class="description">
+ Returns number representation of a collection complexity
+
+
+ </div>
+
+
+
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{Number}</span> complexity</dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".contains"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{Boolean}</span>
+ <span class="light">fabric.Collection.</span><b>contains</b>(object)
+
+ </div>
+ <div class="description">
+ Returns true if collection contains an object
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <span class="light fixedFont">{Object}</span> <b>object</b>
+
+ </dt>
+ <dd>Object to check against</dd>
+
+ </dl>
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{Boolean}</span> `true` if collection contains an object</dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".forEachObject"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+
+ <span class="light">fabric.Collection.</span><b>forEachObject</b>(callback, context)
+
+ </div>
+ <div class="description">
+ Executes given function for each object in this group
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <span class="light fixedFont">{<a href="../symbols/Function.html">Function</a>}</span> <b>callback</b>
+
+ </dt>
+ <dd>Callback invoked with current object as first argument,
+ index - as second and an array of all objects - as third.
+ Iteration happens in reverse order (for performance reasons).
+ Callback is invoked in a context of Global Object (e.g. `window`)
+ when no `context` argument is given</dd>
+
+ <dt>
+ <span class="light fixedFont">{Object}</span> <b>context</b>
+
+ </dt>
+ <dd>Context (aka thisObject)</dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+ <hr />
+
+ <a name=".insertAt"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+
+ <span class="light">fabric.Collection.</span><b>insertAt</b>(object, index, nonSplicing)
+
+ </div>
+ <div class="description">
+ Inserts an object into collection at specified index and renders canvas
+An object should be an instance of (or inherit from) fabric.Object
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <b>object</b>
+
+ </dt>
+ <dd>{Object} Object to insert</dd>
+
+ <dt>
+ <b>index</b>
+
+ </dt>
+ <dd>{Number} index to insert object at</dd>
+
+ <dt>
+ <b>nonSplicing</b>
+
+ </dt>
+ <dd>{Boolean} when `true`, no splicing (shifting) of objects occurs</dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+ <hr />
+
+ <a name=".isEmpty"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{Boolean}</span>
+ <span class="light">fabric.Collection.</span><b>isEmpty</b>()
+
+ </div>
+ <div class="description">
+ Returns true if collection contains no objects
+
+
+ </div>
+
+
+
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{Boolean}</span> true if collection is empty</dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".item"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{<a href="../symbols/fabric.Object.html">fabric.Object</a>}</span>
+ <span class="light">fabric.Collection.</span><b>item</b>(index)
+
+ </div>
+ <div class="description">
+ Returns object at specified index
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <span class="light fixedFont">{Number}</span> <b>index</b>
+
+ </dt>
+ <dd></dd>
+
+ </dl>
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{<a href="../symbols/fabric.Object.html">fabric.Object</a>}</span> </dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".remove"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{<a href="../symbols/fabric.Group.html">fabric.Group</a>}</span>
+ <span class="light">fabric.Collection.</span><b>remove</b>(object)
+
+ </div>
+ <div class="description">
+ Removes an object from a group
+
+
+ </div>
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Parameters:</dt>
+
+ <dt>
+ <span class="light fixedFont">{Object}</span> <b>object</b>
+
+ </dt>
+ <dd></dd>
+
+ </dl>
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{<a href="../symbols/fabric.Group.html">fabric.Group</a>}</span> thisArg</dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".size"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{Number}</span>
+ <span class="light">fabric.Collection.</span><b>size</b>()
+
+ </div>
+ <div class="description">
+ Returns a size of a collection (i.e: length of an array containing its objects)
+
+
+ </div>
+
+
+
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{Number}</span> Collection size</dd>
+
+ </dl>
+
+
+
+
+ <hr />
+
+ <a name=".toGrayscale"> </a>
+ <div class="fixedFont">&lt;static&gt;
+
+ <span class="light">{<a href="../symbols/fabric.Group.html">fabric.Group</a>}</span>
+ <span class="light">fabric.Collection.</span><b>toGrayscale</b>()
+
+ </div>
+ <div class="description">
+ Makes all of the collection objects grayscale (i.e. calling `toGrayscale` on them)
+
+
+ </div>
+
+
+
+
+
+
+
+
+ <dl class="detailList">
+ <dt class="heading">Returns:</dt>
+
+ <dd><span class="light fixedFont">{<a href="../symbols/fabric.Group.html">fabric.Group</a>}</span> thisArg</dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+<!-- ============================== event details ========================= -->
+
+
+ <hr>
+</div>
+
+
+<!-- ============================== footer ================================= -->
+<div class="fineprint" style="clear:both">
+
+ Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Wed Mar 20 2013 23:37:23 GMT+0100 (CET)
+</div>
View
15 test/node/index.html
@@ -18,10 +18,6 @@
<script type="text/script" id="test-template">
<div class="test">
<div class="column">
- <p>Source</p>
- <pre class="source"><code>#{code}</code></pre>
- </div>
- <div class="column">
<p>Canvas</p>
<canvas class="canvas" width="200" height="200"></canvas>
</div>
@@ -29,6 +25,10 @@
<p>Node</p>
<img class="node" src="">
</div>
+ <div class="column">
+ <p>Source</p>
+ <pre class="source"><code>#{code}</code></pre>
+ </div>
</div>
</script>
@@ -168,6 +168,13 @@
});
</pre>
+<pre class="test-source async">
+fabric.Image.fromURL('http://fabricjs.com/assets/pug.jpg', function(img){
+ canvas.add(img.set({ left: 100, top: 100 }).scale(0.2));
+ proceed();
+});
+</pre>
+
<script>
(function(){
function proceed(){ }

0 comments on commit aaa7517

Please sign in to comment.
Something went wrong with that request. Please try again.