<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9740</bug_id>
          
          <creation_ts>2010-05-15 10:16:03 +0000</creation_ts>
          <short_desc>arcTo() -&gt; should be &quot;Adds a point to the current [subpath]...&quot;</short_desc>
          <delta_ts>2010-10-05 12:59:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML Canvas 2D Context (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#complex-shapes-(paths)</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>chrilith</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35711</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-05-15 10:16:03 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#complex-shapes-(paths)

Comment:
arcTo() -&gt; should be &quot;Adds a point to the current [subpath]...&quot;

Posted from: 82.231.169.179</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35712</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Apers">chrilith</who>
    <bug_when>2010-05-15 10:24:49 +0000</bug_when>
    <thetext>Also, the explanation doesn&apos;t seem correct. In fact the two points (in current implementations) seem more like control points. And effective points are the ones at intersections between tangents an the circle.

--
Adds two control points defining, using last point of previous subpath, 2 tangents to the circle defined by arguments. Resulting subpath is an arc starting at intersection point with the first tangent and ending at intersection point with the second tangent.
--

Illustrated by the following example where the black disc is the previous subpath and gray ones control points.


context.fillStyle = &quot;gray&quot;;

context.beginPath();
context.translate(125, 25);
context.moveTo(20,18);
context.arcTo(40, 20, 10, 100, 100);
context.lineTo(100, 100);
context.stroke();

context.beginPath();
context.arc(40, 20, 4, 0, 2 * Math.PI, 1);
context.arc(10, 100, 4, 0, 2 * Math.PI, 1);
context.fill();
context.beginPath();
context.fillStyle = &quot;black&quot;;
context.arc(20, 18, 4, 0, 2 * Math.PI, 1);
context.fill();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37815</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-24 23:51:41 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5343.
Check-in comment: correct some of the informative prose
http://html5.org/tools/web-apps-tracker?from=5342&amp;to=5343</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37816</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-24 23:58:11 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: I&apos;ve changed the description to be less wrong. It&apos;s not especially useful, because I don&apos;t say how the control points work, but frankly there&apos;s a bunch of edge cases and it&apos;s pretty complicated, and I&apos;m not sure how to define it helpfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37817</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-24 23:58:37 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5344.
Check-in comment: remove bad description of arcTo()
http://html5.org/tools/web-apps-tracker?from=5343&amp;to=5344</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37825</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Apers">chrilith</who>
    <bug_when>2010-08-25 07:24:03 +0000</bug_when>
    <thetext>Seems better. Also the full explanation later on the page may help to understand the principle.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>