Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sashadev-sky committed Mar 29, 2020
1 parent 798ed06 commit f57adcd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,18 @@ img.setCorners(scaledCorners);
<ul><li>Returns the center (<a href="http://en.wikipedia.org/wiki/Centroid">centroid</a>) of the image.</li></ul>
</details>

<details><summary><code><b>getAngle()</b>: Number</code></summary>
<ul><li>Returns the image's rotation in degrees (0-360).</li></ul>
</details>

<details><summary><code><b>setAngle(<i>deg</i> &#60;number -360...360>)</b>: this</code></summary>
<ul><li>Sets the image's rotation to the given degrees.</li></ul>
</details>

<details><summary><code><b>rotateByDeg(<i>deg</i> &#60;number>)</b>: this</code></summary>
<ul><li>Rotates the image by the given degrees relative to its current rotation.</li></ul>
</details>

<details><summary><code><b>scaleBy(<i>factor</i> &#60;number>)</b>: this</code></summary>
<ul>
<li>Scales the image by the given factor and calls <code>#setCorners</code>.</li>
Expand All @@ -518,10 +530,6 @@ img.setCorners(scaledCorners);
</ul>
</details>

<details><summary><code><b>rotateBy(<i>rad</i> &#60;number>)</b>: this</code></summary>
<ul><li>Rotates the image by the given radian angle and calls <code>#setCorners</code>.</li></ul>
</details>

<details><summary><code><b>isSelected()</b>: Boolean</code></summary>
<ul><li>Returns true if the individual image instance is selected.</li></ul>
</details>
Expand Down

0 comments on commit f57adcd

Please sign in to comment.