From 1c471c31897b382b0c0493d3df65b8b20685ba6b Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Tue, 23 May 2023 09:45:48 +0800 Subject: [PATCH] =?UTF-8?q?fixed=208b984cef=20from=20https://gitee.com/zha?= =?UTF-8?q?ngbingce/docs/pulls/18524=20[canvas]canvasrenderingcontext2d?= =?UTF-8?q?=E5=92=8Coffscreencanvasrenderingcontext2d=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E4=B8=ADRenderingContextSettings=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 c0b297e0fd..066afa49f5 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 e5f0a624f2..cbbaf77794 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