Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
@@ -0,0 +1,342 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Home</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">Home</h1>








<h3> </h3>















<section>
<article><p><a href="https://travis-ci.org/BuongiornoMIP/StargateJsApps"><img src="http://img.shields.io/travis/BuongiornoMIP/StargateJsApps.svg?branch=master&amp;style=flat" alt="Travis"></a></p>
<p><a href="https://coveralls.io/github/BuongiornoMIP/StargateJsApps?branch=master"><img src="https://coveralls.io/repos/BuongiornoMIP/StargateJsApps/badge.svg?branch=master&amp;service=github" alt="Coverage Status"></a></p>
<h1>StargateJsApps</h1><p><a href="https://gitter.im/BuongiornoMIP/StargateJsApps?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge"><img src="https://badges.gitter.im/BuongiornoMIP/StargateJsApps.svg" alt="Join the chat at https://gitter.im/BuongiornoMIP/StargateJsApps"></a></p>
<p>StargateJS hybridization library for HTML5 apps</p>
<h1>Introduction</h1><p>StargateJsApps is an hybridization library for hosted apps built around ManifoldJS approach to hybrid application.</p>
<p>Hosted apps are hybrid application that have their files served remotely by a web server and that are described by a manifest (W3C specification)</p>
<p>ManifoldJS is Cordova plugin developed by Microsoft that inject all Cordova dependency after the page is loaded, decoupling the native platform implementation with the web app.</p>
<p>StargateJsApps take advantage of the manifest to store it's configuration, like features to enable or remote api information.</p>
<h1>Installation</h1><h3>manual</h3><p>use stargate.js or stargate.min.js in dist/ folder</p>
<h3>bower</h3><p>Install stargate bower package and save to dependencies (not dev dependencies):</p>
<pre class="prettyprint source"><code>$ bower install -S stargatejs-apps#~v0.2.2</code></pre><h1>API Reference</h1><h2>Stargate.initialize(configurations, callback)</h2><p>Initialization of Stargate, you have to pass a configuration object and a callback that will be called when initialization has been finished.</p>
<p>Return a promise fulfilled when initialization has been finished.</p>
<p>If initialize has already been called then it will log a warning and will just execute the callback and return a promise that will be immediately fullfilled.</p>
<p>If initialize is called when we are outside hybrid environment (see <a href="#stargateishybrid">Stargate.isHybrid</a>) then it will just execute the callback and return a promise that will be immediately fullfilled.</p>
<p>The callback is called with a boolean result indicating if we are inside hybrid environment or not (see <a href="#stargateishybrid">Stargate.isHybrid</a>). Also the promise is fullfilled with the same boolean result.</p>
<h3>Configurations parameter</h3><p>It's a javascript object with configurations.</p>
<table>
<thead>
<tr>
<th>Option</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>modules</em></td>
<td>Array of string</td>
<td>List of modules to initialize</td>
<td><code>[&quot;mfp&quot;,&quot;iapbase&quot;,&quot;appsflyer&quot;,&quot;game&quot;]</code></td>
</tr>
<tr>
<td><em>modules_conf</em></td>
<td>Object</td>
<td>Configuration of submodule</td>
<td><code>{}</code></td>
</tr>
</tbody>
</table>
<h4>modules configuration list</h4><table>
<thead>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>iap</em></td>
<td>InApp purchase module</td>
</tr>
<tr>
<td><em>iapbase</em></td>
<td>InApp purchase module without refresh on initialize</td>
</tr>
<tr>
<td><em>mfp</em></td>
<td>Mobile Fingerprint purchase module</td>
</tr>
<tr>
<td><em>appsflyer</em></td>
<td>AppsFlyer module</td>
</tr>
<tr>
<td><em>game</em></td>
<td>Offline game module</td>
</tr>
</tbody>
</table>
<h4>modules_conf configuration object</h4><table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>iap</em></td>
<td>InApp purchase configuration object</td>
<td><code>undefined</code></td>
</tr>
<tr>
<td><em>mfp</em></td>
<td>Mobile Fingerprint configuration object</td>
<td><code>undefined</code></td>
</tr>
</tbody>
</table>
<h4>modules_conf mfp configuration configuration object</h4><table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>country</em></td>
<td>Country to use for mfp</td>
<td><code>&quot;it&quot;</code></td>
</tr>
</tbody>
</table>
<p>There are two more variable needed for Mobile FingerPrint to work and these variable are retrieved from the manifest.json inside the app:</p>
<table>
<thead>
<tr>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>namespace</em></td>
<td>namespace</td>
</tr>
<tr>
<td><em>label</em></td>
<td>label</td>
</tr>
</tbody>
</table>
<h4>modules_conf iap or iapbase configuration configuration object</h4><table>
<thead>
<tr>
<th>Option</th>
<th>Description</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td><em>id</em></td>
<td>Product id as registred on store</td>
<td><code>&quot;stargate.test.spec.subscription&quot;</code></td>
</tr>
<tr>
<td><em>alias</em></td>
<td>Product alias</td>
<td><code>&quot;Stargate Test Subscription&quot;</code></td>
</tr>
<tr>
<td><em>type</em></td>
<td>Type of product; it can be: FREE_SUBSCRIPTION, PAID_SUBSCRIPTION, CONSUMABLE, NON_CONSUMABLE</td>
<td><code>&quot;PAID_SUBSCRIPTION&quot;</code></td>
</tr>
</tbody>
</table>
<h3>Example Usage</h3><pre class="prettyprint source lang-javascript"><code>
var configurations = {
modules: [&quot;mfp&quot;, &quot;appsflyer&quot;, &quot;iapbase&quot;, &quot;game&quot;],
modules_conf: {
&quot;iap&quot;: {
&quot;id&quot;: &quot;stargate.test.spec.subscription&quot;,
&quot;alias&quot;: &quot;Stargate Test Subscription&quot;,
&quot;type&quot;: &quot;PAID_SUBSCRIPTION&quot;
},
&quot;mfp&quot;: {
&quot;country&quot;: &quot;us&quot;
}
}
};

var callback = function(result) {
console.log(&quot;Stargate initialized with result: &quot;+result);
};

// you can use the callback ...
Stargate.initialize(configurations, callback);

// ... or the promise interface
Stargate.initialize(configurations, function(){})
.then(function(result) {
console.log(&quot;Stargate initialized with result: &quot;+result);
})
.fail(
function(error) {
console.error(&quot;Stargate initialization error: &quot;, error);
});</code></pre><h2>Stargate.isInitialized()</h2><p>get initialization status: true when initialization is already called</p>
<p>Return boolean</p>
<h2>Stargate.isOpen()</h2><p>get initialization status: true when initialization is done</p>
<p>Return boolean</p>
<h2>Stargate.isHybrid()</h2><p>get hybrid container status: true when we're running inside the hybrid app</p>
<blockquote>
<p>Internally it check if there is an url query parameter called &quot;hybrid&quot; with value 1, or if there is a cookie or a localStorage with the same name and value. </p>
</blockquote>
<p>Return boolean</p>
<h2>Stargate.openUrl(url)</h2><p>Open external url with InApp Browser</p>
<h2>Stargate.setAnalyticsCallback(callBackFunction)</h2><p>Set the callback to call when an analytic event need to be sent.</p>
<p>Please call this before <a href="#stargateinitializeconfigurations-callback">Stargate.initialize</a>, so it can track events logged on initialize too, like MFP.</p>
<h2>Stargate.setConversionDataCallback(callBackFunction)</h2><p>Set the callback to call when converion data from AppsFlyer are received.
You may need to save the data you receive, becouse you'll only got that data the first time the app is run after installation.</p>
<p>Please call this before <a href="#stargateinitializeconfigurations-callback">Stargate.initialize</a>, so it can call you during initialize too.</p>
<h2>Stargate.checkConnection([callbackSuccess=function(){}], [callbackError=function(){}])</h2><h3>Example Usage</h3><pre class="prettyprint source lang-javascript"><code>var info = Stargate.checkConnection();
Stargate.checkConnection(function(info){ console.log(info.networkState, info.type); });
// info is equal to: {'networkState': &quot;wifi|3g|4g|none&quot;, type:&quot;online|offline&quot;}</code></pre><p>The connection info object is updated to the last connection status change
the networkState is retrieved from navigator.connection.type of cordova-plugin-network-information plugin</p>
<h2>Stargate.getDeviceID(callbackSuccess, callbackError)</h2><p>Call callbackSuccess with an object with the device id like this:
{'deviceID': deviceID}
deviceID got from uuid of device plugin</p>
<h2>Stargate.setStatusbarVisibility(visibility, callbackSuccess, callbackError)</h2><p>Show/hide device status bar</p>
<p>Parameter boolean visibility</p>
<h2>Stargate.facebookLogin(scope, callbackSuccess, callbackError)</h2><p>Facebook connect</p>
<p>Parameter string scope: scope list separeted with comma</p>
<h2>Stargate.facebookShare(url, callbackSuccess, callbackError)</h2><p>Facebook sharing</p>
<p>Parameter string url: shared url</p>
<h2>Stargate.inAppPurchaseSubscription(callbackSuccess, callbackError, subscriptionUrl, returnUrl)</h2><p>IAP subscription</p>
<h2>Stargate.inAppRestore(callbackSuccess, callbackError, subscriptionUrl, returnUrl)</h2><p>IAP restore</p>
<h2>Stargate.inAppProductInfo(productId, callbackSuccess, callbackError)</h2><p>IAP product information</p>
<p>Call callbacks with information about a product got from store</p>
<p>productId - product id about to query for information on store</p>
<p>callbackSuccess - a function that will be called when information are ready</p>
<p>callbackError - a function that will be called in case of error</p>
<pre class="prettyprint source lang-javascript"><code>// example of object sent to success callback
{
&quot;id&quot;: &quot;stargate.test.spec.product1&quot;,
&quot;alias&quot;: &quot;Test Spec Product 1&quot;,
&quot;title&quot;: &quot;Test Spec Product 1&quot;,
&quot;description&quot;: &quot;Test Spec Product 1&quot;,
&quot;currency&quot;: &quot;EUR&quot;,
&quot;price&quot;: &quot;0,99 €&quot;,
&quot;type&quot;: &quot;paid subscription&quot;,
&quot;canPurchase&quot;: true,
&quot;downloaded&quot;: false,
&quot;downloading&quot;: false,
&quot;loaded&quot;: true,
&quot;owned&quot;: false,
&quot;state&quot;: &quot;valid&quot;,
&quot;transaction&quot;: null,
&quot;valid&quot;: true
}</code></pre><h2>Stargate.getVersion()</h2><p>return current Stargate version</p>
<h2><del>Stargate.googleLogin(callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.initialize(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.createBanner(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.hideBanner(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.removeBanner(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.showBannerAtSelectedPosition(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.showBannerAtGivenXY(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.registerAdEvents(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.prepareInterstitial(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h2><del>Stargate.ad.showInterstitial(data,callbackSuccess, callbackError)</del></h2><p>not implemented</p>
<h1>Internal design</h1><h2>stargate configuration</h2><p>Inside manifest there is an object that holds all configuration options of Stargate. This configuration is loaded with ManifoldJS hostedwebapp plugin.</p>
<h2>initialization and device ready</h2><ol>
<li>Stargate.initialize() save user configuration sent as parameter and attach to the cordova deviceready event the internal function onDeviceReady()</li>
<li>onDeviceReady() request all needed data from plugin and internal async modules; wait for all request to complete, save the data received and call onPluginReady()</li>
<li>onPluginReady() is the main internal initialization function where all syncronous processing is performed</li>
</ol>
<h2>gulp tasks</h2><ul>
<li>build</li>
<li>lint</li>
<li>test</li>
<li>karma</li>
<li>watch</li>
</ul>
<h2>release process</h2><ol>
<li>npm test</li>
<li>change version in package.json</li>
<li>gulp build</li>
<li>git commit -m &quot;New revision x.x.x&quot; dist/ package.json</li>
<li>git tag -a vx.x.x -m &quot;Added xxxx. Changed xxxx. Fixed: xxxx&quot;</li>
<li>git push --tags</li>
</ol>
<p>==to automate==</p>
<h2>travis-ci</h2><p>Travis build the project on every push and check for lint and test errors. It also send the test coverage to coveralls.io</p>
<h1>Contribute</h1><ul>
<li>git clone</li>
<li>npm install</li>
<li>bower install</li>
<li>gulp build</li>
</ul></article>
</section>






</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-src_modules_File.html">src/modules/File</a></li><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.html">src/modules/Utils</a></li></ul><h3>Classes</h3><ul><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.jsonpRequest.html">jsonpRequest</a></li><li><a href="module-src_modules_Utils.Logger.html">Logger</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Fri Apr 01 2016 16:41:01 GMT+0200 (CEST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
@@ -0,0 +1,172 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Module: src/modules/File</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">Module: src/modules/File</h1>






<section>

<header>





</header>

<article>
<div class="container-overview">


<div class="description">File module</div>



















<dl class="details">


























<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="File.js.html">File.js</a>, <a href="File.js.html#line1">line 1</a>
</li></ul></dd>





<dt class="tag-see">See:</dt>
<dd class="tag-see">
<ul>
<li>cordova.file</li>
</ul>
</dd>



</dl>


















</div>




<h3 class="subsection-title">Requires</h3>

<ul>
<li>module:./Utils.js</li>
</ul>















</article>

</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-src_modules_File.html">src/modules/File</a></li><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.html">src/modules/Utils</a></li></ul><h3>Classes</h3><ul><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.jsonpRequest.html">jsonpRequest</a></li><li><a href="module-src_modules_Utils.Logger.html">Logger</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Fri Apr 01 2016 16:41:01 GMT+0200 (CEST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,238 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: jsonpRequest</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">Class: jsonpRequest</h1>






<section>

<header>

<h2>
<span class="ancestors"><a href="module-src_modules_Utils.html">src/modules/Utils</a>.</span>jsonpRequest</h2>


</header>

<article>
<div class="container-overview">





<h4 class="name" id="jsonpRequest"><span class="type-signature"></span>new jsonpRequest<span class="signature">(url)</span><span class="type-signature"> &rarr; {Promise.&lt;(Object|String)>}</span></h4>





<div class="description">
Make a jsonp request, remember only GET
The function create a tag script and append a callback param in querystring.
The promise will be reject after 3s if the url fail to respond
</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>url</code></td>


<td class="type">


<span class="param-type">String</span>



</td>





<td class="description last">the url with querystring but without &callback at the end or &function</td>
</tr>


</tbody>
</table>






<dl class="details">


























<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Utils.js.html">Utils.js</a>, <a href="Utils.js.html#line206">line 206</a>
</li></ul></dd>







</dl>













<h5>Returns:</h5>




<dl>
<dt>
Type
</dt>
<dd>

<span class="param-type">Promise.&lt;(Object|String)></span>


</dd>
</dl>




<h5>Example</h5>

<pre class="prettyprint"><code>request = new jsonpRequest("http://www.someapi.com/asd?somequery=1");
request.then(...)</code></pre>




</div>


















</article>

</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-src_modules_File.html">src/modules/File</a></li><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.html">src/modules/Utils</a></li></ul><h3>Classes</h3><ul><li><a href="module-src_modules_Game.html">src/modules/Game</a></li><li><a href="module-src_modules_Utils.jsonpRequest.html">jsonpRequest</a></li><li><a href="module-src_modules_Utils.Logger.html">Logger</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Fri Apr 01 2016 16:41:01 GMT+0200 (CEST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
@@ -0,0 +1,25 @@
/*global document */
(function() {
var source = document.getElementsByClassName('prettyprint source linenums');
var i = 0;
var lineNumber = 0;
var lineId;
var lines;
var totalLines;
var anchorHash;

if (source && source[0]) {
anchorHash = document.location.hash.substring(1);
lines = source[0].getElementsByTagName('li');
totalLines = lines.length;

for (; i < totalLines; i++) {
lineNumber++;
lineId = 'line' + lineNumber;
lines[i].id = lineId;
if (lineId === anchorHash) {
lines[i].className += ' selected';
}
}
}
})();
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,353 @@
@font-face {
font-family: 'Open Sans';
font-weight: normal;
font-style: normal;
src: url('../fonts/OpenSans-Regular-webfont.eot');
src:
local('Open Sans'),
local('OpenSans'),
url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/OpenSans-Regular-webfont.woff') format('woff'),
url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
}

@font-face {
font-family: 'Open Sans Light';
font-weight: normal;
font-style: normal;
src: url('../fonts/OpenSans-Light-webfont.eot');
src:
local('Open Sans Light'),
local('OpenSans Light'),
url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/OpenSans-Light-webfont.woff') format('woff'),
url('../fonts/OpenSans-Light-webfont.svg#open_sanslight') format('svg');
}

html
{
overflow: auto;
background-color: #fff;
font-size: 14px;
}

body
{
font-family: 'Open Sans', sans-serif;
line-height: 1.5;
color: #4d4e53;
background-color: white;
}

a, a:visited, a:active {
color: #0095dd;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

header
{
display: block;
padding: 0px 4px;
}

tt, code, kbd, samp {
font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.class-description {
font-size: 130%;
line-height: 140%;
margin-bottom: 1em;
margin-top: 1em;
}

.class-description:empty {
margin: 0;
}

#main {
float: left;
width: 70%;
}

article dl {
margin-bottom: 40px;
}

section
{
display: block;
background-color: #fff;
padding: 12px 24px;
border-bottom: 1px solid #ccc;
margin-right: 30px;
}

.variation {
display: none;
}

.signature-attributes {
font-size: 60%;
color: #aaa;
font-style: italic;
font-weight: lighter;
}

nav
{
display: block;
float: right;
margin-top: 28px;
width: 30%;
box-sizing: border-box;
border-left: 1px solid #ccc;
padding-left: 16px;
}

nav ul {
font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
font-size: 100%;
line-height: 17px;
padding: 0;
margin: 0;
list-style-type: none;
}

nav ul a, nav ul a:visited, nav ul a:active {
font-family: Consolas, Monaco, 'Andale Mono', monospace;
line-height: 18px;
color: #4D4E53;
}

nav h3 {
margin-top: 12px;
}

nav li {
margin-top: 6px;
}

footer {
display: block;
padding: 6px;
margin-top: 12px;
font-style: italic;
font-size: 90%;
}

h1, h2, h3, h4 {
font-weight: 200;
margin: 0;
}

h1
{
font-family: 'Open Sans Light', sans-serif;
font-size: 48px;
letter-spacing: -2px;
margin: 12px 24px 20px;
}

h2, h3
{
font-size: 30px;
font-weight: 700;
letter-spacing: -1px;
margin-bottom: 12px;
}

h4
{
font-size: 18px;
letter-spacing: -0.33px;
margin-bottom: 12px;
color: #4d4e53;
}

h5, .container-overview .subsection-title
{
font-size: 120%;
font-weight: bold;
letter-spacing: -0.01em;
margin: 8px 0 3px 0;
}

h6
{
font-size: 100%;
letter-spacing: -0.01em;
margin: 6px 0 3px 0;
font-style: italic;
}

.ancestors { color: #999; }
.ancestors a
{
color: #999 !important;
text-decoration: none;
}

.clear
{
clear: both;
}

.important
{
font-weight: bold;
color: #950B02;
}

.yes-def {
text-indent: -1000px;
}

.type-signature {
color: #aaa;
}

.name, .signature {
font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.details { margin-top: 14px; border-left: 2px solid #DDD; }
.details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; }
.details dd { margin-left: 70px; }
.details ul { margin: 0; }
.details ul { list-style-type: none; }
.details li { margin-left: 30px; padding-top: 6px; }
.details pre.prettyprint { margin: 0 }
.details .object-value { padding-top: 0; }

.description {
margin-bottom: 1em;
margin-top: 1em;
}

.code-caption
{
font-style: italic;
font-size: 107%;
margin: 0;
}

.prettyprint
{
border: 1px solid #ddd;
width: 80%;
overflow: auto;
}

.prettyprint.source {
width: inherit;
}

.prettyprint code
{
font-size: 100%;
line-height: 18px;
display: block;
padding: 4px 12px;
margin: 0;
background-color: #fff;
color: #4D4E53;
}

.prettyprint code span.line
{
display: inline-block;
}

.prettyprint.linenums
{
padding-left: 70px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.prettyprint.linenums ol
{
padding-left: 0;
}

.prettyprint.linenums li
{
border-left: 3px #ddd solid;
}

.prettyprint.linenums li.selected,
.prettyprint.linenums li.selected *
{
background-color: lightyellow;
}

.prettyprint.linenums li *
{
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}

.params, .props
{
border-spacing: 0;
border: 0;
border-collapse: collapse;
}

.params .name, .props .name, .name code {
color: #4D4E53;
font-family: Consolas, Monaco, 'Andale Mono', monospace;
font-size: 100%;
}

.params td, .params th, .props td, .props th
{
border: 1px solid #ddd;
margin: 0px;
text-align: left;
vertical-align: top;
padding: 4px 6px;
display: table-cell;
}

.params thead tr, .props thead tr
{
background-color: #ddd;
font-weight: bold;
}

.params .params thead tr, .props .props thead tr
{
background-color: #fff;
font-weight: bold;
}

.params th, .props th { border-right: 1px solid #aaa; }
.params thead .last, .props thead .last { border-right: 1px solid #ddd; }

.params td.description > p:first-child,
.props td.description > p:first-child
{
margin-top: 0;
padding-top: 0;
}

.params td.description > p:last-child,
.props td.description > p:last-child
{
margin-bottom: 0;
padding-bottom: 0;
}

.disabled {
color: #454545;
}
@@ -0,0 +1,111 @@
/* JSDoc prettify.js theme */

/* plain text */
.pln {
color: #000000;
font-weight: normal;
font-style: normal;
}

/* string content */
.str {
color: #006400;
font-weight: normal;
font-style: normal;
}

/* a keyword */
.kwd {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* a comment */
.com {
font-weight: normal;
font-style: italic;
}

/* a type name */
.typ {
color: #000000;
font-weight: normal;
font-style: normal;
}

/* a literal value */
.lit {
color: #006400;
font-weight: normal;
font-style: normal;
}

/* punctuation */
.pun {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* lisp open bracket */
.opn {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* lisp close bracket */
.clo {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* a markup tag name */
.tag {
color: #006400;
font-weight: normal;
font-style: normal;
}

/* a markup attribute name */
.atn {
color: #006400;
font-weight: normal;
font-style: normal;
}

/* a markup attribute value */
.atv {
color: #006400;
font-weight: normal;
font-style: normal;
}

/* a declaration */
.dec {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* a variable name */
.var {
color: #000000;
font-weight: normal;
font-style: normal;
}

/* a function name */
.fun {
color: #000000;
font-weight: bold;
font-style: normal;
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0;
}
@@ -0,0 +1,132 @@
/* Tomorrow Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
/* plain text */
.pln {
color: #4d4d4c; }

@media screen {
/* string content */
.str {
color: #718c00; }

/* a keyword */
.kwd {
color: #8959a8; }

/* a comment */
.com {
color: #8e908c; }

/* a type name */
.typ {
color: #4271ae; }

/* a literal value */
.lit {
color: #f5871f; }

/* punctuation */
.pun {
color: #4d4d4c; }

/* lisp open bracket */
.opn {
color: #4d4d4c; }

/* lisp close bracket */
.clo {
color: #4d4d4c; }

/* a markup tag name */
.tag {
color: #c82829; }

/* a markup attribute name */
.atn {
color: #f5871f; }

/* a markup attribute value */
.atv {
color: #3e999f; }

/* a declaration */
.dec {
color: #f5871f; }

/* a variable name */
.var {
color: #c82829; }

/* a function name */
.fun {
color: #4271ae; } }
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str {
color: #060; }

.kwd {
color: #006;
font-weight: bold; }

.com {
color: #600;
font-style: italic; }

.typ {
color: #404;
font-weight: bold; }

.lit {
color: #044; }

.pun, .opn, .clo {
color: #440; }

.tag {
color: #006;
font-weight: bold; }

.atn {
color: #404; }

.atv {
color: #060; } }
/* Style */
/*
pre.prettyprint {
background: white;
font-family: Consolas, Monaco, 'Andale Mono', monospace;
font-size: 12px;
line-height: 1.5;
border: 1px solid #ccc;
padding: 10px; }
*/

/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0; }

/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L4,
li.L5,
li.L6,
li.L7,
li.L8,
li.L9 {
/* */ }

/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
/* */ }