提交 2f24134a 编写于 作者: E ester.zhou

Update docs (17276)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 4d3123bd
...@@ -203,7 +203,7 @@ Curves.responsiveSpringMotion() // Create a responsive spring animation curve wi ...@@ -203,7 +203,7 @@ Curves.responsiveSpringMotion() // Create a responsive spring animation curve wi
``` ```
## Curves.interpolatingSpringCurve<sup>10+</sup> ## Curves.interpolatingSpring<sup>10+</sup>
interpolatingSpring(velocity: number, mass: number, stiffness: number, damping: number): ICurve interpolatingSpring(velocity: number, mass: number, stiffness: number, damping: number): ICurve
......
...@@ -15,7 +15,7 @@ import measure from '@ohos.measure' ...@@ -15,7 +15,7 @@ import measure from '@ohos.measure'
## measure.measureText ## measure.measureText
measureText(options: MeasureOptions): double measureText(options: MeasureOptions): number
Measures the width of the given single-line text. Measures the width of the given single-line text.
...@@ -31,7 +31,7 @@ Measures the width of the given single-line text. ...@@ -31,7 +31,7 @@ Measures the width of the given single-line text.
| Type | Description | | Type | Description |
| ------------ | --------- | | ------------ | --------- |
| double | Text width.<br>The unit is px.| | number | Text width.<br>The unit is px.|
**Example** **Example**
......
...@@ -20,18 +20,16 @@ Functions of the files are as follows: ...@@ -20,18 +20,16 @@ Functions of the files are as follows:
Functions of the folders are as follows: Functions of the folders are as follows:
- The **app.js** file manages global JS logics and application lifecycle. - The **app.js** file manages global JS logics and application lifecycle.
- The **pages** directory stores all component pages. - The **pages** directory stores all component pages.
- The **common** directory stores public resource files, such as media resources and **.js** files.
- The **common** directory stores public resource files, such as media resources and JavaScript files. - The **i18n** folder stores resources in different languages, for example, UI strings and image paths.
> **NOTE** > **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 ## File Access Rules
...@@ -60,8 +58,16 @@ Application resources can be accessed via an absolute or relative path. In this ...@@ -60,8 +58,16 @@ Application resources can be accessed via an absolute or relative path. In this
**Table 1** Supported image formats **Table 1** Supported image formats
| Format| Supported Version| File Name Extension| | Format | Supported Version | File Name Extension|
| -------- | -------- | -------- | | ---- | ------------------------ | ------- |
| BMP | API Version 3+ | .bmp | | BMP | API version 4+ | .bmp |
| JPEG | API Version 3+ | .jpg | | JPEG | API version 4+ | .jpg |
| PNG | API Version 3+ | .png | | PNG | API version 4+ | .png |
## Storage Directory
Since API version 5, the [\<image>](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.|
...@@ -5,6 +5,8 @@ The **\<Span>** component is used to display inline text in the **\<Text>** comp ...@@ -5,6 +5,8 @@ The **\<Span>** component is used to display inline text in the **\<Text>** comp
> **NOTE** > **NOTE**
> >
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > 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 **\<Text>** 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 ## Child Components
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册