Skip to content

Commit

Permalink
Update to documentation, removal of faff.
Browse files Browse the repository at this point in the history
  • Loading branch information
mulshine committed Oct 19, 2024
1 parent 556bc52 commit 889cca4
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 119 deletions.
16 changes: 9 additions & 7 deletions docs/classes/Accel.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ <h1>Class Accel</h1></div>
<div class="tsd-comment tsd-typography">
<h4>Example</h4><pre><code class="language-ts"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">Chuck</span><span class="hl-1">, </span><span class="hl-0">Accel</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;webchuck&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">theChuck</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">Chuck</span><span class="hl-1">.</span><span class="hl-7">init</span><span class="hl-1">([]);</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-6">accel</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">Accel</span><span class="hl-1">.</span><span class="hl-7">init</span><span class="hl-1">(</span><span class="hl-0">theChuck</span><span class="hl-1">); </span><span class="hl-4">// Initialize Accel</span>
</code><button>Copy</button></pre>
<p>The &quot;devicemotion&quot; event gives acceleration of the device on the three axes: x, y, and z. Acceleration is expressed in m/s².
More on the &quot;devicemotion&quot; event can be found online <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/devicemotion_event">here</a>.</p>
</div></section>
<section class="tsd-panel tsd-hierarchy">
<h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">Accel</span></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L19">src/Accel.ts:19</a></li></ul></aside>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L23">src/accel/Accel.ts:23</a></li></ul></aside>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand All @@ -54,12 +56,12 @@ <h2>Properties</h2>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>the<wbr/>Chuck</span><a href="#theChuck" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">the<wbr/>Chuck</span><span class="tsd-signature-symbol">:</span> <a href="Chuck.html" class="tsd-signature-type tsd-kind-class">Chuck</a></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L21">src/Accel.ts:21</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L25">src/accel/Accel.ts:25</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-private"><a id="_accelActive" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>_accel<wbr/>Active</span><a href="#_accelActive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">_accel<wbr/>Active</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L22">src/Accel.ts:22</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L26">src/accel/Accel.ts:26</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-is-private"><a id="boundHandleMotion" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>bound<wbr/>Handle<wbr/>Motion</span><a href="#boundHandleMotion" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<div class="tsd-signature"><span class="tsd-kind-property">bound<wbr/>Handle<wbr/>Motion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div>
Expand All @@ -69,7 +71,7 @@ <h4>Type declaration</h4>
<li class="tsd-parameter-signature">
<ul class="tsd-signatures"></ul></li></ul></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L24">src/Accel.ts:24</a></li></ul></aside></section></section>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L28">src/accel/Accel.ts:28</a></li></ul></aside></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member"><a id="init" class="tsd-anchor"></a>
Expand All @@ -94,7 +96,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-0">theChuck</span
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L44">src/Accel.ts:44</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L48">src/accel/Accel.ts:48</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="enableAccel" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>enable<wbr/>Accel</span><a href="#enableAccel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -108,7 +110,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-4">// If accel is
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L93">src/Accel.ts:93</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L81">src/accel/Accel.ts:81</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="disableAccel" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>disable<wbr/>Accel</span><a href="#disableAccel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
Expand All @@ -122,7 +124,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-4">// If accel is
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/e3f3cec/src/Accel.ts#L107">src/Accel.ts:107</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/ccrma/webchuck/blob/556bc52/src/accel/Accel.ts#L95">src/accel/Accel.ts:95</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<div class="tsd-navigation settings">
Expand Down
Loading

0 comments on commit 889cca4

Please sign in to comment.