From 8b984cef3c7ee1a2c75ff096b44344a22f35b3a2 Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Tue, 23 May 2023 09:45:48 +0800 Subject: [PATCH] =?UTF-8?q?[canvas]canvasrenderingcontext2d=E5=92=8Coffscr?= =?UTF-8?q?eencanvasrenderingcontext2d=E6=9E=84=E9=80=A0=E4=B8=ADRendering?= =?UTF-8?q?ContextSettings=E9=9D=9E=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangbingce Change-Id: I2c73ac518c4d2a9e7e7cc92d5e2a8d5c013f43e1 --- .../reference/arkui-ts/ts-canvasrenderingcontext2d.md | 4 ++-- .../arkui-ts/ts-offscreencanvasrenderingcontext2d.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md index c41087e5e4..467e2ba086 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-canvasrenderingcontext2d.md @@ -10,7 +10,7 @@ ## 接口 -CanvasRenderingContext2D(setting: RenderingContextSetting) +CanvasRenderingContext2D(settings?: RenderingContextSettings) 从API version 9开始,该接口支持在ArkTS卡片中使用。 @@ -18,7 +18,7 @@ CanvasRenderingContext2D(setting: RenderingContextSetting) | 参数名 | 参数类型 | 必填 | 参数描述 | | ------- | ---------------------------------------- | ---- | ---------------------------------------- | -| setting | [RenderingContextSettings](#renderingcontextsettings) | 是 | 见[RenderingContextSettings](#renderingcontextsettings)。 | +| setting | [RenderingContextSettings](#renderingcontextsettings) | 否 | 见[RenderingContextSettings](#renderingcontextsettings)。 | ### RenderingContextSettings diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md index 7677246174..f16e78045d 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-offscreencanvasrenderingcontext2d.md @@ -10,7 +10,7 @@ ## 接口 -OffscreenCanvasRenderingContext2D(width: number, height: number, setting: RenderingContextSettings) +OffscreenCanvasRenderingContext2D(width: number, height: number, settings?: RenderingContextSettings) 从API version 9开始,该接口支持在ArkTS卡片中使用。 @@ -20,7 +20,7 @@ OffscreenCanvasRenderingContext2D(width: number, height: number, setting: Render | ------- | ------------------------------------------------------------ | ---- | ------------------------------------ | | width | number | 是 | 离屏画布的宽度 | | height | number | 是 | 离屏画布的高度 | -| setting | [RenderingContextSettings](ts-canvasrenderingcontext2d.md#renderingcontextsettings) | 是 | 见RenderingContextSettings接口描述。 | +| setting | [RenderingContextSettings](ts-canvasrenderingcontext2d.md#renderingcontextsettings) | 否 | 见RenderingContextSettings接口描述。 | ## 属性 -- GitLab