From 0b73fd2c052488fa239b16a24763d3c4a2a35ffe Mon Sep 17 00:00:00 2001 From: Yi Xu Date: Wed, 28 Jul 2021 06:10:30 +0000 Subject: [PATCH 1/2] updat attributes naming --- source | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/source b/source index 55b15337e83..d44783d20ef 100644 --- a/source +++ b/source @@ -60932,8 +60932,8 @@ interface mixin CanvasTextDrawingStyles { attribute CanvasTextAlign textAlign; // (default: "start") attribute CanvasTextBaseline textBaseline; // (default: "alphabetic") attribute CanvasDirection direction; // (default: "inherit") - attribute double textLetterSpacing; // (default: 0) - attribute double textWordSpacing; // (default: 0) + attribute double letterSpacing; // (default: 0) + attribute double wordSpacing; // (default: 0) attribute CanvasFontKerning fontKerning; // (default: "auto") attribute CanvasFontStretch fontStretch; // (default: "normal") attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal") @@ -61393,12 +61393,12 @@ context.fillRect(100,0,50,50); // only this square remains data-x="dom-context-2d-textAlign">textAlign, textBaseline, direction, textLetterSpacing, textWordSpacing, letterSpacing, fontKerning, fontStretch, fontVariantCaps, textRendering, wordSpacing, imageSmoothingEnabled, imageSmoothingQuality.
  • The current dash list.
  • @@ -61912,8 +61912,8 @@ transform. ack Shaun Morris. --> data-x="dom-context-2d-direction-inherit">inherit".

    -
    context.textLetterSpacing [ = value ]
    -
    styles.textLetterSpacing [ = value ]
    +
    context.letterSpacing [ = value ]
    +
    styles.letterSpacing [ = value ]

    Returns the current spacing between characters in the text.

    @@ -61921,15 +61921,6 @@ transform. ack Shaun Morris. --> apart, while negative values brings them closer together. The default is 0.

    -
    context.textWordSpacing [ = value ]
    -
    styles.textWordSpacing [ = value ]
    -
    -

    Returns the current spacing between words in the text.

    - -

    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.

    -
    -
    context.fontKerning [ = value ]
    styles.fontKerning [ = value ]
    @@ -61969,6 +61960,15 @@ transform. ack Shaun Morris. --> below. Other values are ignored. The default is "auto".

    + +
    context.wordSpacing [ = value ]
    +
    styles.wordSpacing [ = value ]
    +
    +

    Returns the current spacing between words in the text.

    + +

    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.

    +
    @@ -62121,19 +62121,11 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); data-x="dom-context-2d-direction-inherit">inherit".

    The textLetterSpacing 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 - CanvasTextDrawingStyles interface is created, - the textLetterSpacing attribute must - initially have the value 0.

    - -

    The textWordSpacing IDL attribute, on + data-x="dom-context-2d-letterSpacing">letterSpacing 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 CanvasTextDrawingStyles interface is created, - the textWordSpacing attribute must + the letterSpacing attribute must initially have the value 0.

    The value. When the object implementing the CanvasTextDrawingStyles interface is created, the textRendering attribute must initially have the value "auto".

    + +

    The wordSpacing 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 + CanvasTextDrawingStyles interface is created, + the wordSpacing attribute must + initially have the value 0.

    The textAlign attribute's allowed keywords are @@ -62424,7 +62424,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); 'letter-spacing' - target's textLetterSpacing + target's letterSpacing SVG text-rendering @@ -62436,7 +62436,7 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]); 'word-spacing' - target's textWordSpacing + target's wordSpacing From f8349c795190d01ab63f5d6655cee9d5cfb472b3 Mon Sep 17 00:00:00 2001 From: Yi Xu Date: Wed, 28 Jul 2021 06:31:57 +0000 Subject: [PATCH 2/2] fix order --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index d44783d20ef..6328736aac7 100644 --- a/source +++ b/source @@ -60933,11 +60933,11 @@ interface mixin CanvasTextDrawingStyles { attribute CanvasTextBaseline textBaseline; // (default: "alphabetic") attribute CanvasDirection direction; // (default: "inherit") attribute double letterSpacing; // (default: 0) - attribute double wordSpacing; // (default: 0) attribute CanvasFontKerning fontKerning; // (default: "auto") attribute CanvasFontStretch fontStretch; // (default: "normal") attribute CanvasFontVariantCaps fontVariantCaps; // (default: "normal") attribute CanvasTextRendering textRendering; // (default: "auto") + attribute double wordSpacing; // (default: 0) }; interface mixin CanvasPath {