From 996302731602f84de24745a734bacfd8f70c4df7 Mon Sep 17 00:00:00 2001 From: lilanqing Date: Fri, 4 Jul 2025 11:14:46 +0800 Subject: [PATCH] Anonymous object Signed-off-by: lilanqing --- .../arkui-ts/ts-drawing-components-line.md | 8 ++++-- .../arkui-ts/ts-drawing-components-path.md | 10 ++++--- .../arkui-ts/ts-drawing-components-polygon.md | 12 ++++++--- .../ts-drawing-components-polyline.md | 8 ++++-- .../arkui-ts/ts-drawing-components-rect.md | 26 ++++++++++++------- .../arkui-ts/ts-drawing-components-shape.md | 20 ++++++++------ .../arkui-ts/ts-media-components-video.md | 14 +++++++++- 7 files changed, 69 insertions(+), 29 deletions(-) mode change 100644 => 100755 zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polygon.md mode change 100644 => 100755 zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-rect.md mode change 100644 => 100755 zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-shape.md diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-line.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-line.md index 75e0177ec3a..01967ae1419 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-line.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-line.md @@ -32,6 +32,10 @@ Line(options?: LineOptions) ## LineOptions18+对象说明 用于描述Line绘制区域。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -40,8 +44,8 @@ Line(options?: LineOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 宽度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | -| height | [Length](ts-types.md#length) | 否 | 高度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | +| width7+ | [Length](ts-types.md#length) | 否 | 宽度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | +| height7+ | [Length](ts-types.md#length) | 否 | 高度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | ## 属性 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-path.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-path.md index 4581fa22cc4..c7ebc8299ff 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-path.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-path.md @@ -32,6 +32,10 @@ Path(options?: PathOptions) ## PathOptions18+对象说明 用于描述Path绘制区域。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -40,9 +44,9 @@ Path(options?: PathOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 路径所在矩形的宽度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | -| height | [Length](ts-types.md#length) | 否 | 路径所在矩形的高度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | -| [commands](ts-drawing-components-path.md#commands) | [ResourceStr](ts-types.md#resourcestr) | 否 | 路径绘制的命令字符串。
值为异常值或缺省时按照自身内容需要的宽度处理。默认值:空字符串
异常值按照默认值处理。 | +| width7+ | [Length](ts-types.md#length) | 否 | 路径所在矩形的宽度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | +| height7+ | [Length](ts-types.md#length) | 否 | 路径所在矩形的高度。
值为异常值或缺省时按照自身内容需要的宽度处理。
默认单位:vp | +| [commands7+](ts-drawing-components-path.md#commands) | [ResourceStr](ts-types.md#resourcestr) | 否 | 路径绘制的命令字符串。
值为异常值或缺省时按照自身内容需要的宽度处理。默认值:空字符串
异常值按照默认值处理。 | ## 属性 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polygon.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polygon.md old mode 100644 new mode 100755 index 35b2dc2d406..c980df26f9b --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polygon.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polygon.md @@ -33,6 +33,10 @@ Polygon(options?: PolygonOptions) ## PolygonOptions18+对象说明 用于描述Polygon绘制区域。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -41,8 +45,8 @@ Polygon(options?: PolygonOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| height | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| width7+ | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| height7+ | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | ## 属性 @@ -106,7 +110,7 @@ fillOpacity(value: number | string | Resource) stroke(value: ResourceColor) -设置边框颜色,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法,不设置时,默认没有边框。异常值不会绘制边框。 +设置边框颜色,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。不设置时,默认没有边框。异常值不会绘制边框。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 @@ -124,7 +128,7 @@ stroke(value: ResourceColor) strokeDashArray(value: Array<any>) -设置边框间隙,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围≥0,异常值按照默认值处理。 +设置边框间隙,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围≥0。异常值按照默认值处理。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polyline.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polyline.md index 3f7d684caca..ed413c5aa31 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polyline.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-polyline.md @@ -31,6 +31,10 @@ Polyline(options?: PolylineOptions) ## PolylineOptions18+对象说明 用于描述Polyline绘制区域。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -39,8 +43,8 @@ Polyline(options?: PolylineOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| height | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| width7+ | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| height7+ | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | ## 属性 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-rect.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-rect.md old mode 100644 new mode 100755 index 5d9f79ef589..480fdab4a6e --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-rect.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-rect.md @@ -33,6 +33,10 @@ Rect(options?: RectOptions | RoundedRectOptions) ## RectOptions18+对象说明 用于描述Rect绘制属性。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -41,13 +45,17 @@ Rect(options?: RectOptions | RoundedRectOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| height | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| radius | [Length](ts-types.md#length) \| Array<any> | 否 | 圆角半径,支持分别设置四个角的圆角度数,取值范围≥0。
该属性和radiusWidth/radiusHeight属性效果类似,在组合使用时优先于radiusWidth/radiusHeight生效。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| width7+ | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| height7+ | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| radius7+ | [Length](ts-types.md#length) \| Array<any> | 否 | 圆角半径,支持分别设置四个角的圆角度数,取值范围≥0。
该属性和radiusWidth/radiusHeight属性效果类似,在组合使用时优先于radiusWidth/radiusHeight生效。
默认值:0
默认单位:vp
异常值按照默认值处理。 | ## RoundedRectOptions18+对象说明 用于描述Rect绘制属性。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -56,10 +64,10 @@ Rect(options?: RectOptions | RoundedRectOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| width | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| height | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| radiusWidth | [Length](ts-types.md#length) | 否 | 圆角宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 |圆角宽度。
默认值:0
异常值按照默认值处理。 -| radiusHeight | [Length](ts-types.md#length) | 否 | 圆角高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 |圆角高度。
默认值:0
异常值按照默认值处理。 +| width7+ | [Length](ts-types.md#length) | 否 | 宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| height7+ | [Length](ts-types.md#length) | 否 | 高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| radiusWidth7+ | [Length](ts-types.md#length) | 否 | 圆角宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| radiusHeight7+ | [Length](ts-types.md#length) | 否 | 圆角高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | ## 属性 @@ -141,7 +149,7 @@ fill(value: ResourceColor) fillOpacity(value: number | string | Resource) -设置填充区域透明度,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0,其余异常值按1.0处理。 +设置填充区域透明度,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围是[0.0, 1.0],若给定值小于0.0,则取值为0.0;若给定值大于1.0,则取值为1.0;其余异常值按1.0处理。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 @@ -177,7 +185,7 @@ stroke(value: ResourceColor) strokeDashArray(value: Array<any>) -设置边框间隙,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围≥0,异常值按照默认值处理。 +设置边框间隙,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。取值范围≥0。异常值将按默认值处理。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-shape.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-shape.md old mode 100644 new mode 100755 index 1019ee260d7..7e1d0326457 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-shape.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-drawing-components-shape.md @@ -15,7 +15,7 @@ ## 子组件 -包含[Rect](ts-drawing-components-rect.md)、[Path](ts-drawing-components-path.md)、[Circle](ts-drawing-components-circle.md)、[Ellipse](ts-drawing-components-ellipse.md)、[Polyline](ts-drawing-components-polyline.md)、[Polygon](ts-drawing-components-polygon.md)、[Image](ts-basic-components-image.md)、[Text](ts-basic-components-text.md)、[Column](ts-container-column.md)、[Row](ts-container-row.md)、Shape子组件。 +包含[Rect](ts-drawing-components-rect.md)、[Path](ts-drawing-components-path.md)、[Circle](ts-drawing-components-circle.md)、[Ellipse](ts-drawing-components-ellipse.md)、[Polyline](ts-drawing-components-polyline.md)、[Polygon](ts-drawing-components-polygon.md)、[Image](ts-basic-components-image.md)、[Text](ts-basic-components-text.md)、[Column](ts-container-column.md)、[Row](ts-container-row.md)和Shape子组件。 ## 接口 @@ -58,7 +58,11 @@ viewPort(value: ViewportRect) | value | [ViewportRect](ts-drawing-components-shape.md#viewportrect18对象说明) | 是 | Viewport绘制属性。 | ## ViewportRect18+对象说明 -用于描述Viewport绘制属性。 +用于描述Viewport的绘制属性。 + +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 **卡片能力:** 从API version 18开始,该接口支持在ArkTS卡片中使用。 @@ -68,10 +72,10 @@ viewPort(value: ViewportRect) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| x | [Length](ts-types.md#length) | 否 | 形状视口起始点的水平坐标。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| y | [Length](ts-types.md#length) | 否 | 形状视口起始点的垂直坐标。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| width | [Length](ts-types.md#length) | 否 | 形状视口的宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | -| height | [Length](ts-types.md#length) | 否 | 形状视口的高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| x7+ | [Length](ts-types.md#length) | 否 | 形状视口起始点的水平坐标。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| y7+ | [Length](ts-types.md#length) | 否 | 形状视口起始点的垂直坐标。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| width7+ | [Length](ts-types.md#length) | 否 | 形状视口的宽度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | +| height7+ | [Length](ts-types.md#length) | 否 | 形状视口的高度,取值范围≥0。
默认值:0
默认单位:vp
异常值按照默认值处理。 | ### fill @@ -241,7 +245,7 @@ strokeOpacity(value: number | string | Resource) strokeWidth(value: [Length](ts-types.md#length)) -设置边框宽度,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。该属性若为string类型, 暂不支持百分比,百分比按照1px处理。 +设置边框宽度,支持[attributeModifier](ts-universal-attributes-attribute-modifier.md#attributemodifier)动态设置属性方法。该属性若为string类型,暂不支持百分比,百分比按照1px处理。 **卡片能力:** 从API version 9开始,该接口支持在ArkTS卡片中使用。 @@ -289,7 +293,7 @@ mesh(value: Array<any>, column: number, row: number) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------- | ---- | ------------------------------------------------------------ | -| value | Array<any> | 是 | 长度(column + 1)* (row + 1)* 2的数组,它记录了扭曲后的位图各个顶点位置。 | +| value | Array<any> | 是 | 长度(column + 1)* (row + 1)* 2的数组,记录扭曲后的位图各个顶点位置。 | | column | number | 是 | mesh矩阵列数。 | | row | number | 是 | mesh矩阵行数。 | diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-media-components-video.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-media-components-video.md index 7a7874be6af..e774d55cbcf 100755 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-media-components-video.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-media-components-video.md @@ -123,7 +123,7 @@ controls(value: boolean) > **说明:** > -> Video组件自带的控制器无法自定义。若有其他需求,可隐藏自带控制器,自定义控制器的样式或功能。参考[视频播放](https://gitee.com/harmonyos_samples/video-play)。 +> Video组件自带的控制器无法自定义。若有其他需求,可隐藏自带控制器并自定义控制器的样式或功能。参考[视频播放](https://gitee.com/harmonyos_samples/video-play)。 ### objectFit @@ -379,6 +379,10 @@ onFullscreenChange(callback: Callback\) 用于描述当前视频是否进入全屏播放状态。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full @@ -391,6 +395,10 @@ onFullscreenChange(callback: Callback\) 用于描述当前视频的时长。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full @@ -403,6 +411,10 @@ onFullscreenChange(callback: Callback\) 用于描述当前视频播放的进度。 +> **说明:** +> +> 为规范匿名对象的定义,API 18版本修改了此处的元素定义。其中,保留了历史匿名对象的起始版本信息,会出现外层元素@since版本号高于内层元素版本号的情况,但这不影响接口的使用。 + **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 **系统能力:** SystemCapability.ArkUI.ArkUI.Full -- Gitee