diff --git a/en/application-dev/reference/apis/js-apis-effectKit.md b/en/application-dev/reference/apis/js-apis-effectKit.md index ecfd9405b9141ac7c9149cb9110a162935cecce5..a87a8559d71143a21df3dbc9bd26bee1f5fc8983 100644 --- a/en/application-dev/reference/apis/js-apis-effectKit.md +++ b/en/application-dev/reference/apis/js-apis-effectKit.md @@ -21,7 +21,7 @@ import effectKit from '@ohos.effectKit'; ## effectKit.createEffect createEffect(source: image.PixelMap): Filter -Creates a **Filter** instance based on the pixel map. +Creates a **Filter** instance based on a pixel map. **System capability**: SystemCapability.Multimedia.Image.Core @@ -53,7 +53,7 @@ image.createPixelMap(color, opts).then((pixelMap) => { createColorPicker(source: image.PixelMap): Promise\ -Creates a **ColorPicker** instance based on the pixel map. This API uses a promise to return the result. +Creates a **ColorPicker** instance based on a pixel map. This API uses a promise to return the result. **System capability**: SystemCapability.Multimedia.Image.Core @@ -87,7 +87,7 @@ image.createPixelMap(color, opts).then((pixelMap) => { createColorPicker(source: image.PixelMap, callback: AsyncCallback\): void -Creates a **ColorPicker** instance based on the pixel map. This API uses an asynchronous callback to return the result. +Creates a **ColorPicker** instance based on a pixel map. This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.Multimedia.Image.Core @@ -124,10 +124,10 @@ A class that stores the color picked. | Name | Type | Readable| Writable| Description | | ------ | ----- | ---- | ---- | ---------------- | -| red | number | Yes | No | Value of the red component. | -| green | number | Yes | No | Value of the green component. | -| blue | number | Yes | No | Value of the blue component. | -| alpha | number | Yes | No | Value of the alpha component. | +| red | number | Yes | No | Value of the red component. The value range is [0x0, 0xFF]. | +| green | number | Yes | No | Value of the green component. The value range is [0x0, 0xFF]. | +| blue | number | Yes | No | Value of the blue component. The value range is [0x0, 0xFF]. | +| alpha | number | Yes | No | Value of the alpha component. The value range is [0x0, 0xFF]. | ## ColorPicker diff --git a/en/application-dev/reference/apis/js-apis-linkedlist.md b/en/application-dev/reference/apis/js-apis-linkedlist.md index 14382577e7b3fb1881e74527b8ec31ab87a89169..f4c57358389eebbf15bb3abcdc8a5dbaca648ba8 100644 --- a/en/application-dev/reference/apis/js-apis-linkedlist.md +++ b/en/application-dev/reference/apis/js-apis-linkedlist.md @@ -145,8 +145,8 @@ Inserts an element at the specified position in this container. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | -| element | T | Yes| Target element.| | index | number | Yes| Index of the position where the element is to be inserted.| +| element | T | Yes| Target element.| **Error codes** @@ -607,15 +607,15 @@ Uses a callback to traverse the elements in this container and obtain their posi | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | callbackFn | function | Yes| Callback invoked to traverse the elements in the container.| -| thisArg | Object | No| Value to use when the callback is invoked.| +| thisArg | Object | No| Value of **this** to use when **callbackFn** is invoked. The default value is this instance.| -callbackfn +callbackFn | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | value | T | Yes| Value of the element that is currently traversed.| -| index | number | No| Position index of the element that is currently traversed.| -| LinkedList | LinkedList<T> | No| Instance that invokes the **forEach** API.| +| index | number | No| Position index of the element that is currently traversed. The default value is **0**.| +| LinkedList | LinkedList<T> | No| Instance that calls the **forEach** API. The default value is this instance.| **Error codes**