Skip to content

Commit

Permalink
Clarify closePath() note
Browse files Browse the repository at this point in the history
Avoid mentioning moveTo() as there's no special behavior to it and rephrase things a bit.

Fixes #344.
  • Loading branch information
annevk authored Feb 5, 2018
1 parent 055e6b7 commit d95235b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -61576,15 +61576,14 @@ try {
and finally add this new subpath to the path.</p>

<p class="note">If the last subpath had more than one point in its list of points, then this is
equivalent to adding a straight line connecting the last point back to the first point, thus
"closing" the shape, and then repeating the last (possibly implied) <code
data-x="dom-context-2d-moveTo">moveTo()</code> call.</p>
equivalent to adding a straight line connecting the last point back to the first point of the last
subpath, thus "closing" the subpath.</p>

<hr>

<p>New points and the lines connecting them are added to subpaths using the methods described
below. In all cases, the methods only modify the last subpath in the object's path.</p>


<p>The <dfn><code data-x="dom-context-2d-lineTo">lineTo(<var>x</var>, <var>y</var>)</code></dfn>
method, when invoked, must run these steps:</p>

Expand Down Expand Up @@ -121350,6 +121349,7 @@ INSERT INTERFACES HERE
Yngve Nysaeter Pettersen,
Yoav Weiss,
Yonathan Randolph,
Yury Delendik,
Yuzo Fujishima,
Zhenbin Xu,
&#24352;&#26234;&#24378; (Zhiqiang Zhang),
Expand Down

0 comments on commit d95235b

Please sign in to comment.