diff --git a/en/application-dev/reference/apis/figures/en-us_image_0000001219864133.PNG b/en/application-dev/reference/apis/figures/en-us_image_0000001219864133.PNG
index 14f81499ff0b1b8ef46257bc35a79e94775cd2ba..54be7ed38fa40349036e18b962ee52deb579a033 100644
Binary files a/en/application-dev/reference/apis/figures/en-us_image_0000001219864133.PNG and b/en/application-dev/reference/apis/figures/en-us_image_0000001219864133.PNG differ
diff --git a/en/application-dev/reference/apis/js-apis-matrix4.md b/en/application-dev/reference/apis/js-apis-matrix4.md
index f5b9b27f55ed9d363939bef6f55582423afe4a28..123602526ffa59a7af9f20c7ee7eb0775ffae0e6 100644
--- a/en/application-dev/reference/apis/js-apis-matrix4.md
+++ b/en/application-dev/reference/apis/js-apis-matrix4.md
@@ -1,4 +1,4 @@
-# @ohos.matrix4
+# @ohos.matrix4 (Matrix Transformation)
The **matrix4** module provides APIs for matrix transformation. You can use these APIs to translate, rotate, and scale images.
@@ -19,7 +19,7 @@ import matrix4 from '@ohos.matrix4'
init(array: Array<number>): Matrix4Transit
-Matrix constructor, which is used to create a 4x4 matrix by using the input parameter. Column-major order is used.
+Matrix constructor, which is used to create a 4 x 4 matrix by using the input parameter. Column-major order is used.
**System capability**: SystemCapability.ArkUI.ArkUI.Full
@@ -33,7 +33,7 @@ Matrix constructor, which is used to create a 4x4 matrix by using the input para
| Type | Description |
| -------------- | ---------------------------- |
-| Matrix4Transit | 4x4 matrix object created based on the input parameter.|
+| Matrix4Transit | 4 x 4 matrix object created based on the input parameter.|
**array** parameters
@@ -458,7 +458,7 @@ struct Test {
.width('600px')
.height('300px')
.margin({ top: 50 })
- Text(`Coordinates before matrix transformation: [${this.transformPoint}]`)
+ Text(`Coordinates after matrix transformation: [${this.transformPoint}]`)
.fontSize(16)
.margin({ top: 100 })
Image($r("app.media.image"))
diff --git a/en/application-dev/reference/arkui-js/figures/4-0.gif b/en/application-dev/reference/arkui-js/figures/4-0.gif
deleted file mode 100644
index 1589d8650fa225626fb8dadf085732f92170e40f..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/4-0.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/animate-transform.gif b/en/application-dev/reference/arkui-js/figures/animate-transform.gif
deleted file mode 100644
index e83e2ce11234a97242e1f57204b96568ad248d3d..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/animate-transform.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/animate-transform2.gif b/en/application-dev/reference/arkui-js/figures/animate-transform2.gif
deleted file mode 100644
index 3c65871bb208133129e46956ecee119276a390a5..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/animate-transform2.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/animationapi-4.gif b/en/application-dev/reference/arkui-js/figures/animationapi-4.gif
deleted file mode 100644
index 294687cdfb0cf7f2ea34f91c87d0a6394b32bff0..0000000000000000000000000000000000000000
Binary files a/en/application-dev/reference/arkui-js/figures/animationapi-4.gif and /dev/null differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125192.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125192.gif
new file mode 100644
index 0000000000000000000000000000000000000000..3c5b1fa0343c2e6ec1ebf8592ed769e25fc5b2c4
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127125192.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127285004.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127285004.gif
new file mode 100644
index 0000000000000000000000000000000000000000..dcb1ff67a62b1053d3e1c392bbe0535e81771c54
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001127285004.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001167823326.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001167823326.gif
new file mode 100644
index 0000000000000000000000000000000000000000..78a6830c434d54aab7beba2f171edfb2f8b4e7d9
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001167823326.gif differ
diff --git a/en/application-dev/reference/arkui-js/figures/en-us_image_0000001229677045.gif b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001229677045.gif
new file mode 100644
index 0000000000000000000000000000000000000000..eaf9944676873d49c6ca1ac7110a48413583821c
Binary files /dev/null and b/en/application-dev/reference/arkui-js/figures/en-us_image_0000001229677045.gif differ
diff --git a/en/application-dev/reference/arkui-js/js-components-common-methods.md b/en/application-dev/reference/arkui-js/js-components-common-methods.md
index 3a7d61034f5e8eece95d71ebe9ca2c82556401f7..5945c299f720fa34829fe2eb6cd32b32c9f3278a 100644
--- a/en/application-dev/reference/arkui-js/js-components-common-methods.md
+++ b/en/application-dev/reference/arkui-js/js-components-common-methods.md
@@ -139,56 +139,46 @@ button{
```js
// xxx.js
-import promptAction from '@ohos.promptAction';
-export default{
- data:{
- animation:'',
- },
- onInit(){
- },
- onShow(){
- var options = {
- duration: 1500,
- easing: 'friction',
- delay: 500,
- fill: 'forwards',
- iterations: 2,
- direction: 'normal',
- };
- var frames = [
- {transform: {translate: '-120px -0px'}, opacity: 0.1, offset: 0.0},
- {transform: {translate: '120px 0px'}, opacity: 1.0, offset: 1.0}
- ];
- this.animation = this.$element('idName').animate(frames, options);
- // handle finish event
- this.animation.onfinish = function(){
- promptAction.showToast({
- message: "The animation is finished."
- });
- };
- // handle cancel event
- this.animation.oncancel = function(){
- promptAction.showToast({
- message: "The animation is canceled."
- });
- };
- // handle repeat event
- this.animation.onrepeat = function(){
- promptAction.showToast({
- message: "The animation is repeated."
- });
- };
- },
- start(){
- this.animation.play();
- },
- cancel(){
- this.animation.cancel();
- }
+export default {
+ data: {
+ animation: '',
+ options: {},
+ frames: {}
+ },
+ onInit() {
+ this.options = {
+ duration: 1500,
+ easing: 'friction',
+ delay: 500,
+ fill: 'forwards',
+ iterations: 2,
+ direction: 'normal',
+ };
+ this.frames = [
+ {
+ transform: {
+ translate: '-120px -0px'
+ }, opacity: 0.1, offset: 0.0
+ },
+ {
+ transform: {
+ translate: '120px 0px'
+ }, opacity: 1.0, offset: 1.0
+ }
+ ];
+ },
+
+ start() {
+ this.animation = this.$element('idName').animate(this.frames, this.options);
+ this.animation.play();
+ },
+ cancel() {
+ this.animation.cancel();
+ }
}
```
-![animationapi-4](figures/animationapi-4.gif)
+![en-us_image_0000001229677045](figures/en-us_image_0000001229677045.gif)
## getBoundingClientRect
diff --git a/en/application-dev/reference/arkui-js/js-components-container-swiper.md b/en/application-dev/reference/arkui-js/js-components-container-swiper.md
index f607139653a52a1e1edbca359ca60d7224ebcc30..6a16be9d774b42edb9a7fc1ffe57d5d1867ee813 100644
--- a/en/application-dev/reference/arkui-js/js-components-container-swiper.md
+++ b/en/application-dev/reference/arkui-js/js-components-container-swiper.md
@@ -118,16 +118,19 @@ In addition to the [universal methods](../arkui-js/js-components-common-methods.
}
.swiperContent1{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #007dff;
}
.swiperContent2{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #ff7500;
}
.swiperContent3{
height: 100%;
+ width: 100%;
justify-content: center;
background-color: #41ba41;
}
@@ -155,4 +158,4 @@ export default {
}
```
-![4-0](figures/4-0.gif)
+![en-us_image_0000001167823326](figures/en-us_image_0000001167823326.gif)
diff --git a/en/application-dev/reference/arkui-js/js-components-svg-animate.md b/en/application-dev/reference/arkui-js/js-components-svg-animate.md
index e90d520cb36057ac385917e4df3d532c8669e97d..46a636aa4043e95c4c1de83b39e09371396fa0cd 100644
--- a/en/application-dev/reference/arkui-js/js-components-svg-animate.md
+++ b/en/application-dev/reference/arkui-js/js-components-svg-animate.md
@@ -28,9 +28,9 @@ Not supported
| end | <time> | 0 | No| Duration after which the animation ends. The value can be ms (ms), s (second), or m (minute). The default value is s (second). Other formats are not supported.|
| repeatCount | <number \| indefinite> | 1 | No| Number of times the animation is played. The default value is indefinite. You can set the value to **1** to play the animation only once.|
| fill | <freeze \| remove> | remove | No| State when the animation ends.|
-| calcMode | <discrete \| linear \| paced \| spline> | linear | No| Interpolation mode of the animation.
**discrete**: The value of **from** directly jumps to the value of **to**.
**linear**: linear.
**paced**: linear. After this value is set, the values of **keyTimes** and **keyPoints** are invalid.
**spline**: user-defined Bessel curve. The spline point is defined in the **keyTimes** attribute, and the control point of each interval is defined by **keySplines**.|
-| keyTimes | string | - | No| Start time of the key frame animation. The value ranges from 0 to 1, separated by semicolons (;), for example, **0;0.3;0.8;1**. **keyTimes**, **keySplines**, and **values** are combined to set the key frame animation. The number of **keyTimes** is the same as that of **values**. The number of **keySplines** is the number of **keyTimes** minus 1.|
-| keySplines | string | - | No| A set of Bessel control points associated with **keyTimes**. You can define the Bessel curves for each key frame. The curves are separated by semicolons (;). The format of the two controls in the curve is x1 y1 x2 y2. For example, **0.5 0 0.5 1; 0.5 0 0.5 1;0.5 0 0.5 1**.|
+| calcMode | <discrete \| linear \| paced \| spline> | linear | No| Interpolation mode of the animation.
**discrete**: The animation directly jumps from the value specified by **from** to the value specified by **to**.
**linear**: Linear interpolation between values is used.
**paced**: Interpolation that produces an even paced change is used. If this value is set, the values of **keyTimes** and **keyPoints** will not take effect.
**spline**: Interpolation is implemented based on a custom Bezier spline. The spline points are defined in the **keyTimes** attribute, and the control points of each interval are defined in the **keySplines** attribute.|
+| keyTimes | string | - | No| Start time of the key frame animation. The value is a semicolon-separated list of values ranging from 0 to 1, for example, **0;0.3;0.8;1**. **keyTimes**, **keySplines**, and **values** are combined to set the key frame animation. The number of values defined for **keyTimes** is the same as that for **values**. The number of values defined for **keySplines** is the number of values defined for **keyTimes** minus 1.|
+| keySplines | string | - | No| A set of Bezier control points associated with **keyTimes**. You can define the Bezier curves for each key frame, separating them with semicolons (;). The format of the two control points in the curve is x1 y1 x2 y2, for example, **0.5 0 0.5 1; 0.5 0 0.5 1;0.5 0 0.5 1**.|
| by | number | - | No| Relative offset value to add to a specified attribute in the animation. The default value of **from** is the original attribute value.|
| from | string | - | No| Start value of the attribute to which the animation is applied.
If the **values** attribute has been set, the **from** attribute is invalid.|
| to | string | - | No| End value of the attribute to which the animation is applied.
If the **values** attribute has been set, the **to** attribute is invalid.|
@@ -76,7 +76,7 @@ Not supported
diff --git a/en/application-dev/reference/arkui-js/js-components-svg-animatetransform.md b/en/application-dev/reference/arkui-js/js-components-svg-animatetransform.md
index d9242543a6fda9398032b299d00cf4cf755edfc9..20d19b53d05cc201c4a258b49ff27552701b5669 100644
--- a/en/application-dev/reference/arkui-js/js-components-svg-animatetransform.md
+++ b/en/application-dev/reference/arkui-js/js-components-svg-animatetransform.md
@@ -91,7 +91,7 @@ The **animate** attributes and the attributes in the following table are support
```
-![animate-transform](figures/animate-transform.gif)
+![en-us_image_0000001127285004](figures/en-us_image_0000001127285004.gif)
Animation overlay
@@ -150,7 +150,7 @@ Animation overlay
```
-![animate-transform2](figures/animate-transform2.gif)
+![en-us_image_0000001127125192](figures/en-us_image_0000001127125192.gif)
Example of involved components
diff --git a/en/application-dev/reference/arkui-ts/figures/borderImageGradient.png b/en/application-dev/reference/arkui-ts/figures/borderImageGradient.png
index edf91d4844deeee4f997f65d2d88b45bf7ff7f1d..0cf19ef4273d18c84b86582543129906e8720142 100644
Binary files a/en/application-dev/reference/arkui-ts/figures/borderImageGradient.png and b/en/application-dev/reference/arkui-ts/figures/borderImageGradient.png differ
diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-image.md b/en/application-dev/reference/arkui-ts/ts-basic-components-image.md
index eb5d3e065f671025dbdd28450b53f2fa955996c2..972a3ede54ffbc5040761299e3aea32572596470 100644
--- a/en/application-dev/reference/arkui-ts/ts-basic-components-image.md
+++ b/en/application-dev/reference/arkui-ts/ts-basic-components-image.md
@@ -27,7 +27,7 @@ Obtains an image from the specified source for subsequent rendering and display.
| Name| Type | Mandatory| Description |
| ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ |
-| src | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | Yes | Image source. Both local and online images are supported.
When using an image referenced using a relative path, for example, `Image("common/test.jpg")`, the **\** component cannot be called across bundles or modules. Therefore, you are advised to use `$r` to reference image resources that need to be used globally.
- The following image formats are supported: PNG, JPG, BMP, SVG, GIF.
\- Base64 strings are supported. The value format is data:image/[png\|jpeg\|bmp\|webp];base64,[base64 data], where [base64 data] is a Base64 string.
\- Strings with the **datashare://path** prefix are supported, which are used to access the image path provided by a data ability. Before loading images, the application must [request the required permissions](../../file-management/medialibrary-overview.md#requesting-permissions).
\- Strings with the **file:///data/storage** prefix are supported, which are used to read image resources in the **files** folder in the installation directory of the application. Ensure that the files in the directory package path have the read permission.|
+| src | string \| [PixelMap](../apis/js-apis-image.md#pixelmap7) \| [Resource](ts-types.md#resource) | Yes | Image source. Both local and online images are supported.
When using an image referenced using a relative path, for example, **Image("common/test.jpg")**, the **\** component cannot be called across bundles or modules. Therefore, you are advised to use **\$r** to reference image resources that need to be used globally.
- The following image formats are supported: PNG, JPG, BMP, SVG, GIF.
\- Base64 strings are supported. The value format is data:image/[png\|jpeg\|bmp\|webp];base64,[base64 data], where [base64 data] is a Base64 string.
\- Strings with the **datashare://path** prefix are supported, which are used to access the image path provided by a data ability. Before loading images, the application must [request the required permissions](../../file-management/medialibrary-overview.md#requesting-permissions).
\- Strings with the **file:///data/storage** prefix are supported, which are used to read image resources in the **files** folder in the installation directory of the application. Ensure that the files in the directory package path have the read permission.|
## Attributes
@@ -40,7 +40,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the
| objectRepeat | [ImageRepeat](ts-appendix-enums.md#imagerepeat) | Whether the image is repeated.
Default value: **ImageRepeat.NoRepeat**
**NOTE**
This attribute is not applicable to SVG images.|
| interpolation | [ImageInterpolation](#imageinterpolation) | Interpolation effect of the image. This attribute is intended to alleviate aliasing that occurs when a low-definition image is zoomed in.
Default value: **ImageInterpolation.None**
**NOTE**
This attribute is not applicable to SVG images.
This attribute is not applicable to **PixelMap** objects.|
| renderMode | [ImageRenderMode](#imagerendermode) | Rendering mode of the image.
Default value: **ImageRenderMode.Original**
**NOTE**
This attribute is not applicable to SVG images.|
-| sourceSize | {
width: number,
height: number
} | Size of the decoded image. The original image is decoded into a **pixelMap** of the specified size, in px.
**NOTE**
This attribute is not applicable to **PixelMap** objects.|
+| sourceSize | {
width: number,
height: number
} | Size of the decoded image. The original image is decoded into a **pixelMap** of the specified size, in px.
**NOTE**
This attribute is not applicable to **PixelMap** objects or SVG images.|
| matchTextDirection | boolean | Whether to display the image in the system language direction. When this parameter is set to true, the image is horizontally flipped in the right-to-left (RTL) language context.
Default value: **false** |
| fitOriginalSize | boolean | Whether to fit the component to the original size of the image source when the component size is not set.
Default value: **false** |
| fillColor | [ResourceColor](ts-types.md#resourcecolor) | Fill color. This attribute only applies to an SVG image. Once set, the fill color will replace that of the SVG image.|
@@ -52,7 +52,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the
> **NOTE**
>
> To use shortcut keys to copy the image, the image must be in focus. To enable the image to gain focus, set both the **focusable** and **focusOnTouch** attributes to **true**.
-> For SVG images, only the following tags are included in the supported list: **svg**, **rect**, **circle**, **ellipse**, **path**, **line**, **polyline**, **polygon**, **animate**, **animateMotion**, and **animateTransform**.
+> For SVG images, only the following tags are included in the supported list: **svg**, **rect**, **circle**, **ellipse**, **path**, **line**, **polyline**, **polygon**, and **animate**.
### ImageInterpolation
@@ -99,21 +99,21 @@ struct ImageExample1 {
Text('default').fontSize(16).fontColor(0xcccccc).height(30)
Row({ space: 5 }) {
Image($r('app.media.ic_png'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('png', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_gif'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('gif', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_svg'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('svg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Row({ space: 5 }) {
Image($r('app.media.img_example'))
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('jpg', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image(this.src)
- .width(110).height(110).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(110).border({ width: 1 })
.overlay('network', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}.margin({ top: 25, bottom: 10 })
}
@@ -122,25 +122,25 @@ struct ImageExample1 {
Text('objectFit').fontSize(16).fontColor(0xcccccc).height(30)
Row({ space: 5 }) {
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.None).width(110).height(110)
.overlay('None', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Fill).width(110).height(110)
.overlay('Fill', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Cover).width(110).height(110)
.overlay('Cover', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Row({ space: 5 }) {
Image($r('app.media.img_example_w250'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.Contain).width(110).height(110)
.overlay('Contain', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example_w250'))
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.objectFit(ImageFit.ScaleDown).width(110).height(110)
.overlay('ScaleDown', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}.margin({ top: 25 })
@@ -160,7 +160,7 @@ The default network timeout period is 5 minutes for loading online images. When
```tsx
// @ts-nocheck
-import http from '@ohos.net.http';
+import http from '@ohos.net.http'
import ResponseCode from '@ohos.net.http'
import image from '@ohos.multimedia.image'
@@ -198,7 +198,7 @@ struct Index {
let code = data.responseCode
if(ResponseCode.ResponseCode.OK == code) {
let imageSource = image.createImageSource(data.result)
- let options = {alphaType: 0, // Transparency
+ let options = {alphaType: 0, // Opacity
editable: false, // Whether the image is editable
pixelFormat: 3, // Pixel format
scaleMode: 1, // Scale mode
@@ -233,18 +233,18 @@ struct ImageExample2 {
Row({ space: 50 }) {
Image($r('app.media.img_example'))
.renderMode(ImageRenderMode.Original).width(100).height(100)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
.renderMode(ImageRenderMode.Template).width(100).height(100)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('Template', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Text('alt').fontSize(12).fontColor(0xcccccc).width('96%').height(30)
Image('')
.alt($r('app.media.Image_none'))
- .width(100).height(100).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(100).height(100).border({ width: 1 })
Text('sourceSize').fontSize(12).fontColor(0xcccccc).width('96%')
Row({ space: 50 }) {
@@ -254,7 +254,7 @@ struct ImageExample2 {
height: 150
})
.objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('w:150 h:150', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.img_example'))
.sourceSize({
@@ -262,22 +262,22 @@ struct ImageExample2 {
height: 200
})
.objectFit(ImageFit.ScaleDown).width('25%').aspectRatio(1)
- .border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .border({ width: 1 })
.overlay('w:200 h:200', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
Text('objectRepeat').fontSize(12).fontColor(0xcccccc).width('96%').height(30)
Row({ space: 5 }) {
Image($r('app.media.ic_health_heart'))
- .width(120).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(120).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.XY).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.XY', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_health_heart'))
- .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.Y).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.Y', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
Image($r('app.media.ic_health_heart'))
- .width(110).height(125).border({ width: 1 }).borderStyle(BorderStyle.Dashed)
+ .width(110).height(125).border({ width: 1 })
.objectRepeat(ImageRepeat.X).objectFit(ImageFit.ScaleDown)
.overlay('ImageRepeat.X', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
}
diff --git a/en/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md b/en/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
index c8c45849bc38492435bee3aa441af82913bb519d..9346997d798487071fd4b8c35a0932a45c554a9d 100644
--- a/en/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
+++ b/en/application-dev/reference/arkui-ts/ts-drawing-components-polygon.md
@@ -65,6 +65,7 @@ struct PolygonExample {
Polygon({ width: 100, height: 100 })
.points([[0, 0], [50, 100], [100, 0]])
.fill(Color.Green)
+ .stroke(Color.Transparent)
// Draw a quadrilateral in a 100 x 100 rectangle. The start point is (0, 0), the end point is (100, 0), and the passing points are (0, 100) and (100, 100).
Polygon().width(100).height(100)
.points([[0, 0], [0, 100], [100, 100], [100, 0]])
@@ -76,6 +77,7 @@ struct PolygonExample {
.points([[50, 0], [0, 50], [20, 100], [80, 100], [100, 50]])
.fill(Color.Red)
.fillOpacity(0.6)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 10 })
}
}
diff --git a/en/application-dev/reference/arkui-ts/ts-drawing-components-rect.md b/en/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
index e05fad3fd06045b8a6a4641c308378f1caaafbb7..0a5c323b6abc45d44e5479d56b4a9952a1109c89 100644
--- a/en/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
+++ b/en/application-dev/reference/arkui-ts/ts-drawing-components-rect.md
@@ -40,7 +40,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the
| fill | [ResourceColor](ts-types.md) | Color.Black | Color of the fill area.|
| fillOpacity | number \| string \| [Resource](ts-types.md#resource)| 1 | Opacity of the fill area.|
| stroke | [ResourceColor](ts-types.md) | - | Stroke color. If this attribute is not set, the component does not have any stroke.|
-| strokeDashArray | Array<Length> | [] | Stroke dashes. |
+| strokeDashArray | Array<Length> | [] | Stroke dashes.|
| strokeDashOffset | number \| string | 0 | Offset of the start point for drawing the stroke.|
| strokeLineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | LineCapStyle.Butt | Cap style of the stroke.|
| strokeLineJoin | [LineJoinStyle](ts-appendix-enums.md#linejoinstyle) | LineJoinStyle.Miter | Join style of the stroke.|
@@ -66,6 +66,7 @@ struct RectExample {
// Draw a 90% x 50 rectangle.
Rect({ width: '90%', height: 50 })
.fill(Color.Pink)
+ .stroke(Color.Transparent)
// Draw a 90% x 50 rectangle.
Rect()
.width('90%')
@@ -80,15 +81,18 @@ struct RectExample {
.radiusHeight(20)
.radiusWidth(40)
.fill(Color.Pink)
+ .stroke(Color.Transparent)
// Draw a 90% x 80 rectangle, with the width and height of its rounded corners being both 20.
Rect({ width: '90%', height: 80 })
.radius(20)
.fill(Color.Pink)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 10 })
// Draw a 90% x 50 rectangle, with the width and height of its rounded corners as follows: 40 for the upper left rounded corner, 20 for the upper right rounded corner, 40 for the lower right rounded corner, and 20 for the lower left rounded corner.
Rect({ width: '90%', height: 80 })
.radius([[40, 40], [20, 20], [40, 40], [20, 20]])
.fill(Color.Pink)
+ .stroke(Color.Transparent)
}.width('100%').margin({ top: 5 })
}
}
diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
index 0967cc433286589d8dcc7cdab305d1e5290b2193..c7894f0423b9f328b6f2479bac90b8480bb4ac57 100644
--- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
+++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-border-image.md
@@ -16,7 +16,7 @@ You can draw an image around a component.
| Name | Type | Description |
| ---------- | ---------------------------------------- | --------------------------------------- |
-| source | string \| [Resource](ts-types.md#resource) \| [linearGradient](ts-universal-attributes-gradient-color.md) | Source or gradient color of the border image. |
+| source | string \| [Resource](ts-types.md#resource) \| [linearGradient](ts-universal-attributes-gradient-color.md) | Source or gradient color of the border image. |
| slice | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | Slice width of the border image.
Default value: **0** |
| width | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | Width of the border image.
Default value: **0** |
| outset | [Length](ts-types.md#length) \| [EdgeWidths](ts-types.md#edgewidths9) | Amount by which the border image is extended beyond the border box.
Default value: **0** |
@@ -33,7 +33,6 @@ You can draw an image around a component.
| Round | The source image's slices are tiled to fill the border box. Tiles may be compressed when needed.|
| Space | The source image's slices are tiled to fill the border box. Extra space will be filled in between tiles. |
-
## Example
```ts
@@ -85,7 +84,7 @@ struct Index {
build() {
Row() {
Column() {
- Text('This is gradient color.').textAlign(TextAlign.Center).width(68)
+ Text('This is gradient color.').textAlign(TextAlign.Center).height(50).width(200)
.borderImage({
source: {
angle: 90,
diff --git a/en/application-dev/ui/figures/en-us_image_0000001163531210.gif b/en/application-dev/ui/figures/en-us_image_0000001163531210.gif
new file mode 100644
index 0000000000000000000000000000000000000000..47730f745cfd341cd6f11c9a3d4ce71d4b2795fb
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001163531210.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001189089950.gif b/en/application-dev/ui/figures/en-us_image_0000001189089950.gif
new file mode 100644
index 0000000000000000000000000000000000000000..52e27cf794d93927462587c5fe202c1afb344b96
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001189089950.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267887817.gif b/en/application-dev/ui/figures/en-us_image_0000001189249862.gif
similarity index 100%
rename from en/application-dev/ui/figures/en-us_image_0000001267887817.gif
rename to en/application-dev/ui/figures/en-us_image_0000001189249862.gif
diff --git a/en/application-dev/ui/figures/en-us_image_0000001223287656.gif b/en/application-dev/ui/figures/en-us_image_0000001223287656.gif
deleted file mode 100644
index a6296483cbe2994e36e97d422588f3a9156b56eb..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001223287656.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001223287668.png b/en/application-dev/ui/figures/en-us_image_0000001223287668.png
deleted file mode 100644
index 21d56ef14b92d136e304c4bae6ab8b1f447557bb..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001223287668.png and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001234011019.gif b/en/application-dev/ui/figures/en-us_image_0000001234011019.gif
new file mode 100644
index 0000000000000000000000000000000000000000..7dd539689ac7b81822c934bd3c515e1d4f002d85
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001234011019.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001234130975.png b/en/application-dev/ui/figures/en-us_image_0000001234130975.png
new file mode 100644
index 0000000000000000000000000000000000000000..3c47ec4f057b8e4b616c43a9a74c5800ff6e1771
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001234130975.png differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001234289455.gif b/en/application-dev/ui/figures/en-us_image_0000001234289455.gif
new file mode 100644
index 0000000000000000000000000000000000000000..7151147186f2a4f212a9b7fec79b95025be8e615
Binary files /dev/null and b/en/application-dev/ui/figures/en-us_image_0000001234289455.gif differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267607869.gif b/en/application-dev/ui/figures/en-us_image_0000001267607869.gif
deleted file mode 100644
index eb0c760faaf917a6935af461e0094fd8e7b8e85b..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267607869.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267767837.gif b/en/application-dev/ui/figures/en-us_image_0000001267767837.gif
deleted file mode 100644
index 24f00c9f1aa6ec431a355f5dd2d88b920607cd05..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267767837.gif and /dev/null differ
diff --git a/en/application-dev/ui/figures/en-us_image_0000001267767841.gif b/en/application-dev/ui/figures/en-us_image_0000001267767841.gif
deleted file mode 100644
index 8d5a07d1ff67011de5d0ec6bc0c2e552db9e5cd0..0000000000000000000000000000000000000000
Binary files a/en/application-dev/ui/figures/en-us_image_0000001267767841.gif and /dev/null differ
diff --git a/en/application-dev/ui/ui-js-components-stepper.md b/en/application-dev/ui/ui-js-components-stepper.md
index 2ac27eb69a7ba2cbe248994daf2e46ec06f795e4..848cc6f6a79a16b8170b7fd34739f605612c7ea1 100644
--- a/en/application-dev/ui/ui-js-components-stepper.md
+++ b/en/application-dev/ui/ui-js-components-stepper.md
@@ -43,7 +43,7 @@ text{
}
```
-![en-us_image_0000001223287656](figures/en-us_image_0000001223287656.gif)
+![en-us_image_0000001234289455](figures/en-us_image_0000001234289455.gif)
## Setting the Index
@@ -82,7 +82,7 @@ text{
}
```
-![en-us_image_0000001267767837](figures/en-us_image_0000001267767837.gif)
+![en-us_image_0000001234011019](figures/en-us_image_0000001234011019.gif)
Set the **label** attribute to customize the label for the **\**.
@@ -143,7 +143,7 @@ export default {
}
```
-![en-us_image_0000001267767841](figures/en-us_image_0000001267767841.gif)
+![en-us_image_0000001163531210](figures/en-us_image_0000001163531210.gif)
## Setting Styles
@@ -187,7 +187,7 @@ text{
}
```
-![en-us_image_0000001223287668](figures/en-us_image_0000001223287668.png)
+![en-us_image_0000001234130975](figures/en-us_image_0000001234130975.png)
## Adding Events
@@ -290,7 +290,7 @@ export default {
}
```
-![en-us_image_0000001267607869](figures/en-us_image_0000001267607869.gif)
+![en-us_image_0000001189089950](figures/en-us_image_0000001189089950.gif)
## Example Scenario
@@ -364,8 +364,6 @@ Use a **\** component to navigate through the steps. Create a **\