Skip to content

Commit

Permalink
removed useless API & simplfied reordering frames.
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleactii committed Feb 25, 2024
1 parent 27635f9 commit ffcaeb1
Show file tree
Hide file tree
Showing 12 changed files with 27,830 additions and 27,327 deletions.
8,628 changes: 3,364 additions & 5,264 deletions docs/ast/source/frame.mjs.json

Large diffs are not rendered by default.

45,549 changes: 24,142 additions & 21,407 deletions docs/ast/source/icon.mjs.json

Large diffs are not rendered by default.

243 changes: 67 additions & 176 deletions docs/class/src/frame.mjs~Frame.html

Large diffs are not rendered by default.

182 changes: 31 additions & 151 deletions docs/class/src/icon.mjs~Icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,42 +76,7 @@ <h1 data-ice="name">Icon</h1>
</div>


<div data-ice="staticMethodSummary"><h2>Static Method Summary</h2><table class="summary" data-ice="summary">
<thead><tr><td data-ice="title" colspan="3">Static Public Methods</td></tr></thead>
<tbody>

<tr data-ice="target">
<td>
<span class="access" data-ice="access">public</span>
<span data-ice="static">static</span>


<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>



<span class="code" data-ice="name"><span><a href="class/src/icon.mjs~Icon.html#static-method-swapArrayElements">swapArrayElements</a></span></span><span class="code" data-ice="signature">(pArray: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span>, pIndex1: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span>, pIndex2: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span>): <span>void</span></span>
</p>
</div>
<div>


<div data-ice="description"><p>Swaps the positions of two elements in an array.</p>
</div>
</div>
</td>
<td>


</td>
</tr>
</tbody>
</table>
</div>

<div data-ice="constructorSummary"><h2>Constructor Summary</h2><table class="summary" data-ice="summary">
<thead><tr><td data-ice="title" colspan="3">Private Constructor</td></tr></thead>
<tbody>
Expand Down Expand Up @@ -1071,96 +1036,7 @@ <h1 data-ice="name">Icon</h1>



<div data-ice="staticMethodDetails"><h2 data-ice="title">Static Public Methods</h2>

<div class="detail" data-ice="detail">
<h3 data-ice="anchor" id="static-method-swapArrayElements">
<span class="access" data-ice="access">public</span>
<span data-ice="static">static</span>




<span class="code" data-ice="name">swapArrayElements</span><span class="code" data-ice="signature">(pArray: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span>, pIndex1: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span>, pIndex2: <span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span>): <span>void</span></span>
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber62">source</a></span></span>
</span>
</h3>




<div data-ice="description"><p>Swaps the positions of two elements in an array.</p>
</div>



<div data-ice="properties"><div data-ice="properties">
<h4 data-ice="title">Params:</h4>
<table class="params">
<thead>
<tr><td>Name</td><td>Type</td><td>Attribute</td><td>Description</td></tr>
</thead>
<tbody>

<tr data-ice="property" data-depth="0">
<td data-ice="name" class="code" data-depth="0">pArray</td>
<td data-ice="type" class="code"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a></span></td>
<td data-ice="appendix"></td>
<td data-ice="description"><p>The array in which to swap elements.</p>
</td>
</tr>
<tr data-ice="property" data-depth="0">
<td data-ice="name" class="code" data-depth="0">pIndex1</td>
<td data-ice="type" class="code"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span></td>
<td data-ice="appendix"></td>
<td data-ice="description"><p>The index of the first element to swap.</p>
</td>
</tr>
<tr data-ice="property" data-depth="0">
<td data-ice="name" class="code" data-depth="0">pIndex2</td>
<td data-ice="type" class="code"><span><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></span></td>
<td data-ice="appendix"></td>
<td data-ice="description"><p>The index of the second element to swap.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>

<div class="return-params" data-ice="returnParams">
<h4>Return:</h4>
<table>
<tbody>
<tr>
<td class="return-type code" data-ice="returnType"><span>void</span></td>

</tr>
</tbody>
</table>
<div data-ice="returnProperties">
</div>
</div>















</div>
</div>
<div data-ice="constructorDetails"><h2 data-ice="title">Private Constructors</h2>

<div class="detail" data-ice="detail">
Expand Down Expand Up @@ -1550,7 +1426,7 @@ <h3 data-ice="anchor" id="instance-method-addFrame">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber272">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber262">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1624,7 +1500,7 @@ <h3 data-ice="anchor" id="instance-method-addState">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber232">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber222">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1698,7 +1574,7 @@ <h3 data-ice="anchor" id="instance-method-getDataURL">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber163">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber153">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1755,7 +1631,7 @@ <h3 data-ice="anchor" id="instance-method-getDelay">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber185">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber175">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1812,14 +1688,16 @@ <h3 data-ice="anchor" id="instance-method-getFrame">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber358">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber377">source</a></span></span>
</span>
</h3>




<div data-ice="description"><p>Gets the frame existing at pIndex.</p>
<div data-ice="description"><p>Gets the frame existing at pIndex.
Frame 0 will actually be frame &quot;1&quot; in the animation. As this icon will actually be frame 0.
If you are trying to get &quot;frame&quot; 1. Then you will need to use the icon&apos;s delay and data url. As that is frame 0.</p>
</div>


Expand Down Expand Up @@ -1886,7 +1764,7 @@ <h3 data-ice="anchor" id="instance-method-getFrames">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber370">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber388">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -1943,7 +1821,7 @@ <h3 data-ice="anchor" id="instance-method-getName">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber207">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber197">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2000,7 +1878,7 @@ <h3 data-ice="anchor" id="instance-method-getSize">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber141">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber131">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2057,7 +1935,7 @@ <h3 data-ice="anchor" id="instance-method-getState">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber390">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber408">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2131,7 +2009,7 @@ <h3 data-ice="anchor" id="instance-method-getStates">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber402">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber420">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2188,7 +2066,7 @@ <h3 data-ice="anchor" id="instance-method-removeFrame">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber294">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber284">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2269,7 +2147,7 @@ <h3 data-ice="anchor" id="instance-method-removeState">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber245">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber235">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2350,7 +2228,7 @@ <h3 data-ice="anchor" id="instance-method-rename">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber193">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber183">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2424,14 +2302,16 @@ <h3 data-ice="anchor" id="instance-method-reorderFrame">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber337">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber329">source</a></span></span>
</span>
</h3>




<div data-ice="description"><p>Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.</p>
<div data-ice="description"><p>Reorders the frame in the animation. The index of the passed frame will be swapped with the frame at pIndex.
The &quot;first&quot; frame of the animation is technically this icon&apos;s dataURL. So if you are aiming to change the order of this icon and convert it into a frame.
pCurrentIndex must be set to -1 to match this icon.</p>
</div>


Expand Down Expand Up @@ -2505,7 +2385,7 @@ <h3 data-ice="anchor" id="instance-method-setAllFrameDelays">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber215">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber205">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2579,7 +2459,7 @@ <h3 data-ice="anchor" id="instance-method-setDataURL">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber149">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber139">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2653,7 +2533,7 @@ <h3 data-ice="anchor" id="instance-method-setDelay">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber171">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber161">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2727,7 +2607,7 @@ <h3 data-ice="anchor" id="instance-method-setSize">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber129">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber119">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2810,7 +2690,7 @@ <h3 data-ice="anchor" id="instance-method-export">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber445">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber463">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2867,7 +2747,7 @@ <h3 data-ice="anchor" id="instance-method-exportAsState">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber423">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber441">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2924,7 +2804,7 @@ <h3 data-ice="anchor" id="instance-method-getFramesData">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber378">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber396">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2981,7 +2861,7 @@ <h3 data-ice="anchor" id="instance-method-getStatesData">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber410">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber428">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3038,7 +2918,7 @@ <h3 data-ice="anchor" id="instance-method-indexFrames">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber325">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber315">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3082,7 +2962,7 @@ <h3 data-ice="anchor" id="instance-method-parse">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber70">source</a></span></span>
<span data-ice="source"><span><a href="file/src/icon.mjs.html#lineNumber60">source</a></span></span>
</span>
</h3>

Expand Down
Loading

0 comments on commit ffcaeb1

Please sign in to comment.