diff --git a/en/application-dev/reference/apis/js-apis-curve.md b/en/application-dev/reference/apis/js-apis-curve.md index d113624577ba5569bf036a6cd0de1664b06f0ab9..03e735cca85b6fd6c9ce9c019e7d29a21c6976b7 100644 --- a/en/application-dev/reference/apis/js-apis-curve.md +++ b/en/application-dev/reference/apis/js-apis-curve.md @@ -203,7 +203,7 @@ Curves.responsiveSpringMotion() // Create a responsive spring animation curve wi ``` -## Curves.interpolatingSpringCurve10+ +## Curves.interpolatingSpring10+ interpolatingSpring(velocity: number, mass: number, stiffness: number, damping: number): ICurve diff --git a/en/application-dev/reference/apis/js-apis-measure.md b/en/application-dev/reference/apis/js-apis-measure.md index 3e608c26158d219fc76ace69899da778ad6ea576..48397c0ffdf229d9d539f176555f00d19e81dac0 100644 --- a/en/application-dev/reference/apis/js-apis-measure.md +++ b/en/application-dev/reference/apis/js-apis-measure.md @@ -15,7 +15,7 @@ import measure from '@ohos.measure' ## measure.measureText -measureText(options: MeasureOptions): double +measureText(options: MeasureOptions): number Measures the width of the given single-line text. @@ -31,7 +31,7 @@ Measures the width of the given single-line text. | Type | Description | | ------------ | --------- | -| double | Text width.
The unit is px.| +| number | Text width.
The unit is px.| **Example** diff --git a/en/application-dev/reference/arkui-js-lite/js-framework-file.md b/en/application-dev/reference/arkui-js-lite/js-framework-file.md index 2ea4d52d1334d3c9cbca4f836e8d4d0a4087f8f5..ade304c4d50a1aacac56a140c1bf3a3669165580 100644 --- a/en/application-dev/reference/arkui-js-lite/js-framework-file.md +++ b/en/application-dev/reference/arkui-js-lite/js-framework-file.md @@ -20,18 +20,16 @@ Functions of the files are as follows: Functions of the folders are as follows: - The **app.js** file manages global JS logics and application lifecycle. - - The **pages** directory stores all component pages. - -- The **common** directory stores public resource files, such as media resources and JavaScript files. +- The **common** directory stores public resource files, such as media resources and **.js** files. +- The **i18n** folder stores resources in different languages, for example, UI strings and image paths. > **NOTE** -> - The following reserved folders cannot be renamed: > +> - The **i18n** folder is a reserved one and cannot be renamed. > > -> -> - The folders marked as optional in the directory structure can be created as needed after you create the project in DevEco Studio. +> - The folders marked as optional in the directory structure can be created as needed after you create the project in DevEco Studio. ## File Access Rules @@ -60,8 +58,16 @@ Application resources can be accessed via an absolute or relative path. In this **Table 1** Supported image formats -| Format| Supported Version| File Name Extension| -| -------- | -------- | -------- | -| BMP | API Version 3+ | .bmp | -| JPEG | API Version 3+ | .jpg | -| PNG | API Version 3+ | .png | +| Format | Supported Version | File Name Extension| +| ---- | ------------------------ | ------- | +| BMP | API version 4+ | .bmp | +| JPEG | API version 4+ | .jpg | +| PNG | API version 4+ | .png | + +## Storage Directory + +Since API version 5, the [\](js-components-basic-image.md) component supports access to images in the private directory of an application. + +| Directory Type | Prefix | Access Visibility | Description | +| ------ | --------------- | ------ | --------------------------- | +| Private directory of the application| internal://app/ | Current application only| The directory is deleted when the application is uninstalled. Access to the parent directory using **../** is prohibited.| diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-span.md b/en/application-dev/reference/arkui-ts/ts-basic-components-span.md index f8d1fec7469a7b9b16757fcb59522c1f60d20710..713d8ded01778b89be36d85afcc8a0ee4e39974c 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-span.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-span.md @@ -5,6 +5,8 @@ The **\** component is used to display inline text in the **\** comp > **NOTE** > > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. +> +> Since API version 10, this component can inherit the attributes of the **\** parent component. That is, if no attribute is set for this component, it inherits the attributes (if set) of its parent component. The following attributes can be inherited: **fontColor**, **fontSize**, **fontStyle**, **fontWeight**, **decoration**, **letterSpacing**, **textCase**, **lineHeight**, and **fontfamily**. ## Child Components