From 26ba86fd7a88287f8c45690e4021cf62d7abb699 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Tue, 9 Aug 2022 17:30:32 +0800 Subject: [PATCH] update docs Signed-off-by: ester.zhou --- .../reference/apis/js-apis-timer.md | 7 -- .../js-components-common-animation.md | 103 +++++++++++------- .../ts-universal-attributes-sharp-clipping.md | 22 ++-- .../figures/en-us_image_0000001118642001.gif | Bin 0 -> 6371 bytes .../figures/en-us_image_0000001118642002.gif | Bin 0 -> 12132 bytes .../figures/en-us_image_0000001118642003.png | Bin 0 -> 4525 bytes .../figures/en-us_image_0000001118642004.gif | Bin 0 -> 8928 bytes .../figures/en-us_image_0000001118642005.gif | Bin 0 -> 6862 bytes .../figures/en-us_image_0000001118642006.png | Bin 0 -> 8334 bytes .../figures/en-us_image_0000001118642007.gif | Bin 0 -> 276894 bytes .../figures/en-us_image_0000001118642008.png | Bin 0 -> 5736 bytes .../figures/en-us_image_0000001118642009.gif | Bin 0 -> 5029 bytes .../ui/js-framework-syntax-hml.md | 66 ++++++----- .../ui/js-framework-syntax-js.md | 81 +++++++------- 14 files changed, 159 insertions(+), 120 deletions(-) create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642001.gif create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642002.gif create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642003.png create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642004.gif create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642005.gif create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642006.png create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642007.gif create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642008.png create mode 100644 en/application-dev/ui/figures/en-us_image_0000001118642009.gif diff --git a/en/application-dev/reference/apis/js-apis-timer.md b/en/application-dev/reference/apis/js-apis-timer.md index d144a95db8..f9e174b514 100644 --- a/en/application-dev/reference/apis/js-apis-timer.md +++ b/en/application-dev/reference/apis/js-apis-timer.md @@ -3,13 +3,6 @@ ## setTimeout -## Modules to Import - - -``` -import Time from '@ohos.Time'; -``` - setTimeout(handler[,delay[,…args]]): number Sets a timer for the system to call a function after the timer goes off. diff --git a/en/application-dev/reference/arkui-js/js-components-common-animation.md b/en/application-dev/reference/arkui-js/js-components-common-animation.md index daa287ac14..24676a7323 100644 --- a/en/application-dev/reference/arkui-js/js-components-common-animation.md +++ b/en/application-dev/reference/arkui-js/js-components-common-animation.md @@ -2,14 +2,16 @@ Components support dynamic rotation, translation, and scaling effects. These effects can be set in the **style** attribute or CSS files. - +> **NOTE** +> +> The initial APIs of this component are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. | Name | Type | Default Value | Description | | ------------------------- | ------------------------------------------------------------ | ------------------------------------- | ------------------------------------------------------------ | | transform-origin | string6+ \| \ \| \ string6+ \| \ \| \ | center center | Origin position of the transformed element. The unit can be px or a percentage (relative to the animation target component). If only one value is specified, the other one is **50%**. The available values for the first string are **left**, **center**, and **right**. The available values for the second string are **top**, **center**, and **bottom**.
Example:
transform-origin: 200px 30%
transform-origin: 100px topt
ransform-origin: center center | -| transform | string | - | Translation, rotation, and scaling attributes.
For details, see [Table 1](js-components-common-animation.md). | +| transform | string | - | Translation, rotation, and scaling attributes.
For details, see **transform**. | | animation6+ | string | 0s ease 0s 1 normal none running none | Animation attributes in the format of **duration \| timing-function \| delay \| iteration-count \| direction \| fill-mode \| play-state \| name**. The order of the parameters is not specified, but the **duration** and **delay** parameters are parsed based on where they are placed. | -| animation-name | string | - | @keyframes rule. For details, see [Table 2](js-components-common-animation.md). | +| animation-name | string | - | @keyframes rule. For details, see **@keyframes**. | | animation-delay | \