W3C home > Mailing lists > Public > www-svg@w3.org > June 2018

SVG 1.1SE - does the elliptical arc command re-position the "current point"?

From: Smailus (US), Thomas O <Thomas.O.Smailus@boeing.com>
Date: Wed, 6 Jun 2018 23:16:39 +0000
To: "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <83054fb756bb4a75a4290630f759a453@XCH15-05-07.nw.nos.boeing.com>
In creating a closed shape that gets filled, I'm wondering if an elliptical arc path command "a" or "A" moves the current point to where the arc ends.
It 'appears' to be the case that the current point is not moved by the IE and Firefox implementations, in that the interior fill is happening with respect to the starting point of the elliptical arc, not its ending point.
The spec is not clear on the current point in this case. For Bezier curves, and lines, the spec is clear that the final coordinate becomes the new current point.

<?xml version="1.0" standalone="no"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
                viewBox="-0.02 -0.02 1.04 1.04" preserveAspectRatio="xMidYMid" xml:space="preserve"
                zoomAndPan="magnify" fill-rule="evenodd"  >
                Arc path command and what is inside the path shape produced
                Does the elliptical arc command move the current point

<g id="cgm-objects" transform=" scale( 1,-1) translate(0,-1.000000)">

<g id="cgmFig1" figID="cgmFigId420" cgmType="figure" >
                <path fill="rgb(0,0,0)" stroke="none" stroke-width="0"  d="
                                M 0.6,0.216 a0.144,0.144  0  0,1 0.101823,0.245823
                                M0.76,0.68 A0.08,0.16  -90 0,1 0.6,0.76
 " />


<circle fill="red" cx="0.6" cy="0.216" r="0.005" /> <!-- starting point of arc -->
<circle fill="blue" cx="0.701823" cy="0.461823" r="0.005" /> <!-- ending point of arc -->

<circle fill="red" cx="0.76" cy="0.68" r="0.005" /> <!-- starting point of arc -->
<circle fill="blue" cx="0.6" cy="0.76" r="0.005" /> <!-- ending point of arc -->


Received on Wednesday, 6 June 2018 23:17:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:14 UTC