diff --git a/master/paths.html b/master/paths.html index 2e25deba..7f583188 100644 --- a/master/paths.html +++ b/master/paths.html @@ -347,6 +347,25 @@
If a "closepath" is followed immediately by a "moveto", then the + "moveto" identifies the start point of the next subpath. + If a "closepath" is followed immediately by any other command, then + the next subpath starts at the same initial point as the current + subpath.
+ +When a subpath ends in a "closepath," it differs in behavior + from what happens when "manually" closing a subpath via a + "lineto" command in how ‘stroke-linejoin’ + and ‘stroke-linecap’ are implemented. With "closepath", the end of the final segment + of the subpath is "joined" with the start of the initial + segment of the subpath using the current value of ‘stroke-linejoin’. + If you instead "manually" close the subpath via a "lineto" + command, the start of the first segment and the end of the last + segment are not joined but instead are each capped using the + current value of ‘stroke-linecap’. + At the end of the command, the new current point is set to the + initial point of the current subpath.
+Command |
---|