From f62e385b008315dc29f6e4bcfdf3a1259a54c6c3 Mon Sep 17 00:00:00 2001 From: lanyill Date: Sat, 26 Nov 2022 16:53:10 +0800 Subject: [PATCH] =?UTF-8?q?fixed=201225501=20from=20https://gitee.com/lany?= =?UTF-8?q?ill/interface=5Fsdk-js/pulls/3539=20=E6=96=87=E6=A1=A3=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanyill --- api/@internal/component/ets/canvas.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/@internal/component/ets/canvas.d.ts b/api/@internal/component/ets/canvas.d.ts index 6c1072d53d..0f37a6e948 100644 --- a/api/@internal/component/ets/canvas.d.ts +++ b/api/@internal/component/ets/canvas.d.ts @@ -74,7 +74,7 @@ declare type CanvasTextAlign = "center" | "end" | "left" | "right" | "start"; * and the ideographic baseline is that the ideographic baseline does not need to consider downlink letters. * "hanging": The text baseline is a hanging baseline. * "ideographic": The text baseline is the ideographic baseline; If the character itself exceeds the alphabetic - * baseline, the ideograhpic baseline is at the bottom of the character itself. + * baseline, the ideographic baseline is at the bottom of the character itself. * "middle": The text baseline is in the middle of the text block. * "top": The text baseline is at the top of the text block. * @since 8 @@ -147,7 +147,7 @@ declare class CanvasPath { bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** - * Returns the pen point to the start point of the current subpath + * Returns the pen point to the start point of the current sub-path * @since 8 */ closePath(): void; @@ -178,7 +178,7 @@ declare class CanvasPath { ): void; /** - * Connect subpaths using straight lines + * Connect sub-path using straight lines * @param x The x-axis coordinate of the end point of the line. * @param y The y-axis coordinate of the end point of the line. * @since 8 @@ -186,7 +186,7 @@ declare class CanvasPath { lineTo(x: number, y: number): void; /** - * Moves the start point of a new subpath to the (x, y) coordinate. + * Moves the start point of a new sub-path to the (x, y) coordinate. * @param x The x-axis coordinate of the point. * @param y The y-axis coordinate of the point. * @since 8 @@ -475,8 +475,8 @@ declare class CanvasRenderer extends CanvasPath { * color-dodge: The inverse of dividing the bottom layer by the top layer. * color-burn: Divide the inverted bottom layer by the top layer, and reverse the result. * hard-light: A combination of multiplication and screen is similar to overlay, but the layers are interchanged. - * soft-light: Subtract the bottom from the top or vice versa to get a positive value. - * difference: A softer version of hard-light. Pure black or pure white does not result in pure black or pure white. + * difference: Subtract the bottom from the top or vice versa to get a positive value. + * soft-light: A softer version of hard-light. Pure black or pure white does not result in pure black or pure white. * exclusion: Similar to difference, but with lower contrast. * hue: The luminance and chroma of the bottom layer are retained while the hue of the top layer is employed. * saturation: The luminance (luma) and hue (hue) of the bottom layer are retained while the chroma (chroma) of @@ -642,7 +642,7 @@ declare class CanvasRenderer extends CanvasPath { * brightness(): Provides a linear multiplication for the drawing and adjusts the brightness level. * contrast(): Adjusts the contrast of the image. When the value is 0%, the image is completely blacked out. * When the value is 100%, there is no change in the image. - * drop-shadow(, , , , ): Shading Drawings + * drop-shadow(, , , , ): Shading the image * --- : Describes the horizontal distance of the shadow. * --- : Describes the vertical distance of the shadow. * --- : Blur radius. The larger the value, the greater the blur. The value cannot be a negative number. @@ -655,7 +655,7 @@ declare class CanvasRenderer extends CanvasPath { * the image is completely inverted. When the value is 0%, there is no change in the image. * opacity():Transparency of the image. At 0%, the image is completely transparent. * When the value is 100%, there is no change in the image. - * saturate():Perform saturation processing on the image. At 0%, the image is completely unsaturated. + * saturate():Perform saturation processing on the image. At 0%, the image is completely un-saturated. * When the value is 100%, there is no change in the image. * sepia():The image is sepia (nostalgic style). At 100%, the image turns completely sepia. * When the value is 0%, there is no change in the image. @@ -785,7 +785,7 @@ declare class CanvasRenderer extends CanvasPath { /** * Sets the dashed line mode for line drawing. - * @param segments A set of numbers that describe the length of alternating drawn line segments and + * @param segments A set of numbers that describe the length of alternating drawn lines segments and * spacing (coordinate space units). * @since 8 */ -- Gitee