Skip to content

Commit

Permalink
Manual/Meters/Shape/Arc: Fixed interactive arc shape example
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Feb 4, 2025
1 parent 3e81690 commit a1db838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/manual/meters/shape/arc.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<input id="ry" type="range" min="0" max="200" orient="vertical" />
<p class="arc_pos">Angle: <input id="angle" type="range" min="0" max="359" value="0" style="width:120px;" /></p>
<p class="arc_pos" style="text-align:right;">Large Arc flag: <input id="large" type="checkbox" /></p>
<p class="arc_pos" style="text-align:right;">Sweep flag: <input id="sweep" type="checkbox" /></p>
<p class="arc_pos" style="text-align:right;">Large Arc flag: <input id="large" type="checkbox" /></p>

<p style="float:left">Arc javascript inspired by: <a href="https://www.sitepoint.com/">SitePoint.com</a>.</p><br/>
<script type="text/javascript" src="arc.js"></script>
2 changes: 1 addition & 1 deletion source/manual/meters/shape/arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
if (code) {
var d1 = point.p1.x + "," + point.p1.y + "," + point.p2.x +
"," + point.p2.y + "," + rx + "," + ry + "," + angle + "," +
large + "," + sweep + "," +
sweep + "," + large + "," +
(fill ? "1" : "0");
code.textContent = 'Shape=Arc '+ d1;
}
Expand Down

0 comments on commit a1db838

Please sign in to comment.