Skip to content
Permalink
Browse files

[e] (0) Try to avoid using the term 'array' when it's a sequence.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=18758
Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@7508 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Nov 6, 2012
1 parent 1e4754a commit bcad31786db87f740a50ab3cc5ce6a04a07ea439
Showing with 27 additions and 37 deletions.
  1. +9 −12 complete.html
  2. +9 −12 index
  3. +9 −13 source
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>
<p>When the <dfn id=dom-context-2d-setlinedash title=dom-context-2d-setLineDash><code>setLineDash()</code></dfn>
method is invoked, it must run the following steps:</p>

<ol><li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</li>
<ol><li><p>Let <var title="">a</var> be the argument.</li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies
of <var title="">a</var>.</li>

<li><p>Let the object's <a href=#dash-list>dash list</a> be <var title="">a</var>.</li>

</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <a href=#dash-list>dash list</a>, in the same
order.</p>
</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <a href=#dash-list>dash
list</a>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using
21 index
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>
<p>When the <dfn id=dom-context-2d-setlinedash title=dom-context-2d-setLineDash><code>setLineDash()</code></dfn>
method is invoked, it must run the following steps:</p>

<ol><li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</li>
<ol><li><p>Let <var title="">a</var> be the argument.</li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies
of <var title="">a</var>.</li>

<li><p>Let the object's <a href=#dash-list>dash list</a> be <var title="">a</var>.</li>

</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <a href=#dash-list>dash list</a>, in the same
order.</p>
</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <a href=#dash-list>dash
list</a>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using
22 source
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>

<ol>

<li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</p></li>
<li><p>Let <var title="">a</var> be the argument.</p></li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</p></li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</p></li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies

</ol>

<p>When the <dfn
title="dom-context-2d-getLineDash"><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <span>dash list</span>, in the same
order.</p>
<p>When the <dfn title="dom-context-2d-getLineDash"><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <span>dash
list</span>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using

0 comments on commit bcad317

Please sign in to comment.
You can’t perform that action at this time.