-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove markdown jsdoc and add in html jsdoc
- Loading branch information
Mina Smart
committed
Nov 30, 2017
1 parent
6d8ee22
commit 40b0028
Showing
50 changed files
with
19,753 additions
and
506 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,387 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSDoc: Namespace: Helpers</title> | ||
|
||
<script src="scripts/prettify/prettify.js"> </script> | ||
<script src="scripts/prettify/lang-css.js"> </script> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> | ||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="main"> | ||
|
||
<h1 class="page-title">Namespace: Helpers</h1> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<section> | ||
|
||
<header> | ||
|
||
<h2>Helpers</h2> | ||
|
||
|
||
</header> | ||
|
||
<article> | ||
<div class="container-overview"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="details"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt class="tag-source">Source:</dt> | ||
<dd class="tag-source"><ul class="dummy"><li> | ||
<a href="image-helpers.js.html">image-helpers.js</a>, <a href="image-helpers.js.html#line1">line 1</a> | ||
</li></ul></dd> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h3 class="subsection-title">Methods</h3> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h4 class="name" id=".imageForSize"><span class="type-signature">(static) </span>imageForSize<span class="signature">(image, options)</span><span class="type-signature"> → {String}</span></h4> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="description"> | ||
<p>Generates the image src for a resized image with maximum dimensions <code>maxWidth</code> and <code>maxHeight</code>. | ||
Images do not scale up.</p> | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h5>Parameters:</h5> | ||
|
||
|
||
<table class="params"> | ||
<thead> | ||
<tr> | ||
|
||
<th>Name</th> | ||
|
||
|
||
<th>Type</th> | ||
|
||
|
||
|
||
|
||
|
||
<th class="last">Description</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
|
||
|
||
<tr> | ||
|
||
<td class="name"><code>image</code></td> | ||
|
||
|
||
<td class="type"> | ||
|
||
|
||
<span class="param-type">Object</span> | ||
|
||
|
||
|
||
</td> | ||
|
||
|
||
|
||
|
||
|
||
<td class="description last"><p>The original image model to generate the image src for.</p></td> | ||
</tr> | ||
|
||
|
||
|
||
<tr> | ||
|
||
<td class="name"><code>options</code></td> | ||
|
||
|
||
<td class="type"> | ||
|
||
|
||
<span class="param-type">Object</span> | ||
|
||
|
||
|
||
</td> | ||
|
||
|
||
|
||
|
||
|
||
<td class="description last"><p>An options object containing:</p> | ||
<h6>Properties</h6> | ||
|
||
|
||
<table class="params"> | ||
<thead> | ||
<tr> | ||
|
||
<th>Name</th> | ||
|
||
|
||
<th>Type</th> | ||
|
||
|
||
|
||
|
||
|
||
<th class="last">Description</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
|
||
|
||
<tr> | ||
|
||
<td class="name"><code>maxWidth</code></td> | ||
|
||
|
||
<td class="type"> | ||
|
||
|
||
<span class="param-type">Integer</span> | ||
|
||
|
||
|
||
</td> | ||
|
||
|
||
|
||
|
||
|
||
<td class="description last"><p>The maximum width for the image.</p></td> | ||
</tr> | ||
|
||
|
||
|
||
<tr> | ||
|
||
<td class="name"><code>maxHeight</code></td> | ||
|
||
|
||
<td class="type"> | ||
|
||
|
||
<span class="param-type">Integer</span> | ||
|
||
|
||
|
||
</td> | ||
|
||
|
||
|
||
|
||
|
||
<td class="description last"><p>The maximum height for the image.</p></td> | ||
</tr> | ||
|
||
|
||
</tbody> | ||
</table> | ||
|
||
</td> | ||
</tr> | ||
|
||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="details"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dt class="tag-source">Source:</dt> | ||
<dd class="tag-source"><ul class="dummy"><li> | ||
<a href="image-helpers.js.html">image-helpers.js</a>, <a href="image-helpers.js.html#line6">line 6</a> | ||
</li></ul></dd> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h5>Returns:</h5> | ||
|
||
|
||
<div class="param-desc"> | ||
<p>The image src for the resized image.</p> | ||
</div> | ||
|
||
|
||
|
||
<dl> | ||
<dt> | ||
Type | ||
</dt> | ||
<dd> | ||
|
||
<span class="param-type">String</span> | ||
|
||
|
||
</dd> | ||
</dl> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</article> | ||
|
||
</section> | ||
|
||
|
||
|
||
|
||
</div> | ||
|
||
<nav> | ||
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="CheckoutResource.html">CheckoutResource</a></li><li><a href="Client.html">Client</a></li><li><a href="CollectionResource.html">CollectionResource</a></li><li><a href="Config.html">Config</a></li><li><a href="ImageResource.html">ImageResource</a></li><li><a href="ProductResource.html">ProductResource</a></li><li><a href="ShopResource.html">ShopResource</a></li></ul><h3>Namespaces</h3><ul><li><a href="Client.Image.Helpers.html">Helpers</a></li><li><a href="Client.Product.Helpers.html">Helpers</a></li></ul><h3>Tutorials</h3><ul><li><a href="tutorial-MIGRATION_GUIDE.html">Migrating from v0 to v1</a></li></ul> | ||
</nav> | ||
|
||
<br class="clear"> | ||
|
||
<footer> | ||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 02 2017 11:05:28 GMT-0400 (EDT) | ||
</footer> | ||
|
||
<script> prettyPrint(); </script> | ||
<script src="scripts/linenumber.js"> </script> | ||
</body> | ||
</html> |
Oops, something went wrong.