Skip to content

Commit

Permalink
JSDoc v0.2.1 4aa0693
Browse files Browse the repository at this point in the history
  • Loading branch information
Techming committed Jan 1, 2023
1 parent d512b6b commit 47659c3
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Button.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion ErrorIcon.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion MultiStreamViewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion MultiStreamViewer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
90 changes: 89 additions & 1 deletion Viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,94 @@ <h4 class="name" id="draw"><span class="type-signature"></span>draw<span class="









<h4 class="name" id="unmount"><span class="type-signature"></span>unmount<span class="signature">()</span><span class="type-signature"></span></h4>






<div class="description">
Remove interval and image src to close HTTP connection.
</div>













<dl class="details">


























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







</dl>























Expand All @@ -923,7 +1011,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
12 changes: 10 additions & 2 deletions Viewer.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1 class="page-title">Source: Viewer.js</h1>
this.changeStream(this.topic);

// call draw with the given interval or rate
setInterval(this.draw.bind(this), drawInterval);
this.timer = setInterval(this.draw.bind(this), drawInterval);
}

/**
Expand Down Expand Up @@ -169,6 +169,14 @@ <h1 class="page-title">Source: Viewer.js</h1>
// emit an event for the change
this.emit('change', topic);
}

/**
* Remove interval and image src to close HTTP connection.
*/
unmount() {
clearInterval(this.timer);
this.image.src = '';
}
}

export default Viewer;
Expand All @@ -188,7 +196,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion models_Button.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion models_ErrorIcon.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Button.ht
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue Nov 22 2022 23:29:24 GMT+0000 (Coordinated Universal Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sun Jan 01 2023 03:02:10 GMT+0000 (Coordinated Universal Time)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit 47659c3

Please sign in to comment.