Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Canvas 2d attribute names #6906

Merged
merged 2 commits into from
Oct 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -60932,12 +60932,12 @@ interface mixin <dfn interface>CanvasTextDrawingStyles</dfn> {
attribute <span>CanvasTextAlign</span> <span data-x="dom-context-2d-textAlign">textAlign</span>; // (default: "start")
attribute <span>CanvasTextBaseline</span> <span data-x="dom-context-2d-textBaseline">textBaseline</span>; // (default: "alphabetic")
attribute <span>CanvasDirection</span> <span data-x="dom-context-2d-direction">direction</span>; // (default: "inherit")
attribute double <span data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span>; // (default: 0)
attribute double <span data-x="dom-context-2d-textWordSpacing">textWordSpacing</span>; // (default: 0)
attribute double <span data-x="dom-context-2d-letterSpacing">letterSpacing</span>; // (default: 0)
attribute <span>CanvasFontKerning</span> <span data-x="dom-context-2d-fontKerning">fontKerning</span>; // (default: "auto")
attribute <span>CanvasFontStretch</span> <span data-x="dom-context-2d-fontStretch">fontStretch</span>; // (default: "normal")
attribute <span>CanvasFontVariantCaps</span> <span data-x="dom-context-2d-fontVariantCaps">fontVariantCaps</span>; // (default: "normal")
attribute <span>CanvasTextRendering</span> <span data-x="dom-context-2d-textRendering">textRendering</span>; // (default: "auto")
attribute double <span data-x="dom-context-2d-wordSpacing">wordSpacing</span>; // (default: 0)
};

interface mixin <dfn interface>CanvasPath</dfn> {
Expand Down Expand Up @@ -61393,12 +61393,12 @@ context.fillRect(100,0,50,50); // only this square remains</code></pre>
data-x="dom-context-2d-textAlign">textAlign</code>, <code
data-x="dom-context-2d-textBaseline">textBaseline</code>, <code
data-x="dom-context-2d-direction">direction</code>, <code
data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code>, <code
data-x="dom-context-2d-textWordSpacing">textWordSpacing</code>, <code
data-x="dom-context-2d-letterSpacing">letterSpacing</code>, <code
data-x="dom-context-2d-fontKerning">fontKerning</code>, <code
data-x="dom-context-2d-fontStretch">fontStretch</code>, <code
data-x="dom-context-2d-fontVariantCaps">fontVariantCaps</code>, <code
data-x="dom-context-2d-textRendering">textRendering</code>, <code
data-x="dom-context-2d-wordSpacing">wordSpacing</code>, <code
data-x="dom-context-2d-imageSmoothingEnabled">imageSmoothingEnabled</code>, <code
data-x="dom-context-2d-imageSmoothingQuality">imageSmoothingQuality</code>.</li>
<li>The current <span>dash list</span>.</li>
Expand Down Expand Up @@ -61912,24 +61912,15 @@ transform. ack Shaun Morris. -->
data-x="dom-context-2d-direction-inherit">inherit</code>".</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-letterSpacing">letterSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-letterSpacing">letterSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between characters in the text.</p>

<p>Can be set, to change spacing between characters. Postive values spreads characters further
apart, while negative values brings them closer together. The default is 0.</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-textWordSpacing">textWordSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-textWordSpacing">textWordSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between words in the text.</p>

<p>Can be set, to change spacing between words. Postive values spreads words further apart,
while negative values brings them closer together. The default is 0.</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-fontKerning">fontKerning</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-fontKerning">fontKerning</span> [ = <var>value</var> ]</code></dt>
<dd>
Expand Down Expand Up @@ -61969,6 +61960,15 @@ transform. ack Shaun Morris. -->
below. Other values are ignored. The default is "<code
data-x="dom-context-2d-textRendering-auto">auto</code>".</p>
</dd>

<dt><code data-x=""><var>context</var>.<span subdfn data-x="dom-context-2d-wordSpacing">wordSpacing</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>styles</var>.<span data-x="dom-context-2d-wordSpacing">wordSpacing</span> [ = <var>value</var> ]</code></dt>
<dd>
<p>Returns the current spacing between words in the text.</p>

<p>Can be set, to change spacing between words. Postive values spreads words further apart,
while negative values brings them closer together. The default is 0.</p>
</dd>
</dl>

<div w-nodev>
Expand Down Expand Up @@ -62121,19 +62121,11 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
data-x="dom-context-2d-direction-inherit">inherit</code>".</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code> attribute must
initially have the value 0.</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-textWordSpacing">textWordSpacing</code></dfn> IDL attribute, on
data-x="dom-context-2d-letterSpacing">letterSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textWordSpacing">textWordSpacing</code> attribute must
the <code data-x="dom-context-2d-letterSpacing">letterSpacing</code> attribute must
initially have the value 0.</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
Expand Down Expand Up @@ -62163,6 +62155,14 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
value. When the object implementing the <code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-textRendering">textRendering</code> attribute must
initially have the value "<code data-x="dom-context-2d-textRendering-auto">auto</code>".</p>

<p>The <dfn attribute for="CanvasTextDrawingStyles"><code
data-x="dom-context-2d-wordSpacing">wordSpacing</code></dfn> IDL attribute, on
getting, must return the current value. On setting, the current value must be changed to the new
value, where values may be positive or negative. When the object implementing the
<code>CanvasTextDrawingStyles</code> interface is created,
the <code data-x="dom-context-2d-wordSpacing">wordSpacing</code> attribute must
initially have the value 0.</p>
</div>

<p>The <code data-x="dom-context-2d-textAlign">textAlign</code> attribute's allowed keywords are
Expand Down Expand Up @@ -62424,7 +62424,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
</tr>
<tr>
<td><span>'letter-spacing'</span></td>
<td><var>target</var>'s <code data-x="dom-context-2d-textLetterSpacing">textLetterSpacing</code></td>
<td><var>target</var>'s <code data-x="dom-context-2d-letterSpacing">letterSpacing</code></td>
</tr>
<tr>
<td><span>SVG text-rendering</span></td>
Expand All @@ -62436,7 +62436,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
</tr>
<tr>
<td><span>'word-spacing'</span></td>
<td><var>target</var>'s <code data-x="dom-context-2d-textWordSpacing">textWordSpacing</code></td>
<td><var>target</var>'s <code data-x="dom-context-2d-wordSpacing">wordSpacing</code></td>
</tr>
</tbody>
</table>
Expand Down