diff --git a/ CODEOWNERS b/ CODEOWNERS
new file mode 100644
index 0000000000000000000000000000000000000000..0865e794573cff8cbce36c4ad5cafd14e1829d8e
--- /dev/null
+++ b/ CODEOWNERS
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+[base api]
+api/@ohos.base.d.ets @majiajun518
+api/@ohos.base.d.ts @majiajun518
+
+[通用模块]
+build-tools/ @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+BUILD.gn @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+bundle.json @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+exists_path.py @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+ohos_copy_ets.py @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+process_internal.py @wangcaoyu @txdyyangbo @wanghanghui @Gpangjiaxue
+
+[API裁剪工具]
+build-tools/delete_systemapi_plugin.js @wangcaoyu
+
+[API打包工具]
+build-tools/handleApiFiles.js @wangzhiyusss
+arkui_transformer.py
+
+[int转number工具]
+build-tools/intToNumber.js @wangzhiyusss
diff --git a/BUILD.gn b/BUILD.gn
index 6fc0f303ab6cca32b27ffde45518bb40a9004a7c..083a5a35acc01146c32a9c36acf8c0bbfb2136d0 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -25,16 +25,6 @@ action("ohos_base_split") {
script = "//build/ohos/sdk/parse_interface_sdk.py"
ohos_sdk_arkts_description_file =
"${interface_sdk_path}/ohos_sdk_pub_description_std.json"
- if (host_os == "mac") {
- node_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/node"
- npm_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/npm"
- } else {
- node_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node"
- npm_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/npm"
- }
args = [
"--sdk-description-file",
rebase_path("//build/ohos/sdk/ohos_sdk_description_std.json",
@@ -42,7 +32,7 @@ action("ohos_base_split") {
"--root-build-dir",
rebase_path("//", root_build_dir),
"--node-js",
- rebase_path(node_path, root_build_dir),
+ rebase_path(nodejs, root_build_dir),
"--output-arkts-sdk-desc-file",
rebase_path(ohos_sdk_arkts_description_file, root_build_dir),
"--sdk-build-public",
@@ -50,7 +40,7 @@ action("ohos_base_split") {
"--sdk-build-arkts",
"${sdk_build_arkts}",
"--npm-path",
- rebase_path(npm_path, root_build_dir),
+ rebase_path(npm, root_build_dir),
"--output-interface-sdk",
rebase_path(interface_sdk_path, root_build_dir),
]
@@ -154,6 +144,14 @@ ohos_declaration_template("ohos_declaration_ets") {
sdk_type = "ets"
}
+ohos_copy("ohos_declaration_ets_api") {
+ deps = [ ":ohos_declaration_ets" ]
+ sources =
+ [ root_out_dir + "/ohos_declaration/${sdk_type}/ohos_declaration_ets" ]
+
+ outputs = [ target_out_dir + "/../api" ]
+}
+
# ets2/api执行脚本
ohos_declaration_template("ohos_declaration_ets2") {
sdk_type = "ets2"
@@ -165,12 +163,30 @@ ohos_copy_internal("ets_internal_api") {
iv_input = interface_sdk_path_ets1 + "/api/@internal/ets"
}
+ohos_prebuilt_etc("ets_internal_api_etc") {
+ source = "OAT.xml"
+ deps = [ ":ets_internal_api" ]
+ install_enable = false
+ output = string_replace(source, "OAT", "ets_internal_api_etc")
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
# ets/arkts执行脚本
ohos_copy_internal("bundle_arkts") {
sdk_type = "ets"
iv_input = interface_sdk_path_ets1 + "/arkts"
}
+ohos_prebuilt_etc("bundle_arkts_etc") {
+ source = "OAT.xml"
+ deps = [ ":bundle_arkts" ]
+ install_enable = false
+ output = string_replace(source, "OAT", "bundle_arkts_etc")
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
# ets1.2/arkts执行脚本
ohos_copy_internal("bundle_arkts_ets1.2") {
sdk_type = "ets2"
@@ -200,6 +216,15 @@ ohos_copy_internal("ets_component") {
iv_input = interface_sdk_path_ets1 + "/api/@internal/component/ets"
}
+ohos_prebuilt_etc("ets_component_etc") {
+ source = "OAT.xml"
+ deps = [ ":ets_component" ]
+ install_enable = false
+ output = string_replace(source, "OAT", "ets_component_etc")
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
# ets1.2/arkui/component执行脚本
ohos_copy_internal("ets_component2") {
sdk_type = "ets2"
@@ -212,6 +237,15 @@ ohos_copy_internal("bundle_kits") {
iv_input = interface_sdk_path_ets1 + "/kits"
}
+ohos_prebuilt_etc("bundle_kits_etc") {
+ source = "OAT.xml"
+ deps = [ ":bundle_kits" ]
+ install_enable = false
+ output = string_replace(source, "OAT", "ohos_prebuilt_etc")
+ part_name = "sdk"
+ subsystem_name = "sdk"
+}
+
# ets2/kits执行脚本
ohos_copy_internal("bundle_kits2") {
sdk_type = "ets2"
@@ -325,16 +359,6 @@ action("ohos_ets_api_arkui_tmp") {
deps = [ ":ohos_ets_api_tmp" ]
script = "//interface/sdk-js/arkui_transformer.py"
- if (host_os == "mac") {
- node_path = "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/node"
- npm_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-darwin-x64/bin/npm"
- } else {
- node_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/node"
- npm_path =
- "//prebuilts/build-tools/common/nodejs/node-v16.20.2-linux-x64/bin/npm"
- }
args = [
"--input",
rebase_path(ohos_ets_api_tmp_path + "/@internal/component/ets",
@@ -344,9 +368,9 @@ action("ohos_ets_api_arkui_tmp") {
"--source_root_dir",
rebase_path("//", root_build_dir),
"--npm-path",
- rebase_path(npm_path, root_build_dir),
+ rebase_path(npm, root_build_dir),
"--node-js",
- rebase_path(node_path, root_build_dir),
+ rebase_path(nodejs, root_build_dir),
]
outputs = [ "$ohos_ets_api_arkui_tmp_path" ]
}
@@ -368,7 +392,10 @@ ohos_copy("ohos_ets_kits") {
}
ohos_copy("ohos_ets_api") {
- deps = [ ":ohos_ets_api_tmp" ]
+ deps = [
+ ":ohos_ets_api_arkui_tmp",
+ ":ohos_ets_api_tmp",
+ ]
sources = [ ohos_ets_api_tmp_path ]
outputs = [ ohos_ets_api_path ]
part_name = "sdk"
diff --git a/api/@internal/component/ets/action_sheet.d.ts b/api/@internal/component/ets/action_sheet.d.ts
index 8c34b13777e9de6b6ecf005da9a75431311e99ba..cf732bb4e5ed59939ac8bc342fe178f0fe2762e7 100644
--- a/api/@internal/component/ets/action_sheet.d.ts
+++ b/api/@internal/component/ets/action_sheet.d.ts
@@ -18,6 +18,19 @@
* @kit ArkUI
*/
+/*** if arkts 1.2 */
+import { Resource } from '../../global/resource';
+import {
+ VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedEdgeColors, EdgeColors,
+ EdgeWidths, LocalizedEdgeWidths, EdgeStyles, LocalizedBorderRadiuses
+} from './units';
+import { Callback, DismissReason, Rectangle, BlurStyle, TransitionEffect, ShadowOptions, HoverModeAreaType,
+ ShadowStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common';
+import { DialogButtonStyle, BorderStyle } from './enums';
+import { DialogAlignment } from './alertDialog';
+import { LevelOrder, LevelMode, ImmersiveMode } from '../../@ohos.promptAction';
+/*** endif */
+
/**
* The information of sheet.
*
@@ -40,7 +53,8 @@
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
interface SheetInfo {
/**
@@ -65,7 +79,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
title: string | Resource;
@@ -91,7 +106,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
icon?: string | Resource;
@@ -127,7 +143,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: VoidCallback;
}
@@ -139,7 +156,8 @@ interface SheetInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DismissDialogAction {
/**
@@ -149,19 +167,20 @@ declare interface DismissDialogAction {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
dismiss: Callback
A dialog box whose showInSubWindow attribute is true cannot trigger the display of another dialog box whose
* showInSubWindow attribute is also true.
*
NOTE:
@@ -110,10 +183,11 @@ declare interface InputCounterOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
thresholdPercentage?: number;
-
+
/**
* If the current input character count reaches the maximum character count and users want to exceed the
* normal input, the border will turn red. If this parameter is true, the red border displayed.
@@ -141,7 +215,8 @@ declare interface InputCounterOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
highlightBorder?: boolean;
}
@@ -153,7 +228,8 @@ declare interface InputCounterOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TextDecorationOptions {
/**
@@ -163,7 +239,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type: TextDecorationType;
@@ -174,7 +251,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -185,7 +263,8 @@ declare interface TextDecorationOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: TextDecorationStyle;
}
@@ -298,11 +377,71 @@ declare interface EntryOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
useSharedStorage? : boolean,
}
+/**
+ * Provides an interface for the style of an divider including stroke width, color, start margin
+ * and end margin
+ *
+ * @interface DividerStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface DividerStyle {
+ /**
+ * Define the stroke width of the divider
+ *
+ * @type { Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ strokeWidth: Length;
+
+ /**
+ * Define the color of the divider
+ *
+ * @type { ?ResourceColor }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ color?: ResourceColor;
+
+ /**
+ * Define the start margin of the divider
+ *
+ * @type { ?Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ startMargin?: Length;
+
+ /**
+ * Define the end margin of the divider
+ *
+ * @type { ?Length }
+ * @default 0
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ endMargin?: Length;
+}
+
/**
* Defines Entry ClassDecorator.
*
@@ -1104,7 +1243,8 @@ declare interface IMonitorValue **NOTE**:
* **NOTE**:
*
You are advised to specify the curve using the Curve or ICurve type.
*
* @type { ?(Curve | string | ICurve) }
- * @default 1000
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 7
*/
@@ -4044,7 +4305,6 @@ declare interface sharedTransitionOptions {
*
Default value: **Curve.Linear**.
*
* @type { ?(Curve | string | ICurve) }
- * @default 1000
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
@@ -4057,11 +4317,11 @@ declare interface sharedTransitionOptions {
*
Default value: **Curve.Linear**.
*
* @type { ?(Curve | string | ICurve) }
- * @default 1000
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
curve?: Curve | string | ICurve;
@@ -4090,7 +4350,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
delay?: number;
@@ -4116,7 +4377,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
motionPath?: MotionPathOptions;
@@ -4142,7 +4404,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
zIndex?: number;
@@ -4171,7 +4434,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: SharedTransitionEffectType;
}
@@ -4191,7 +4455,8 @@ declare interface sharedTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface GeometryTransitionOptions {
/**
@@ -4211,12 +4476,13 @@ declare interface GeometryTransitionOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
follow?: boolean;
/**
* Defines movement strategy of source and target in the hierarchy during geometry transition.
- *
+ *
* @type { ?TransitionHierarchyStrategy }
* @default TransitionHierarchyStrategy.ADAPTIVE
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -4226,12 +4492,13 @@ declare interface GeometryTransitionOptions {
*/
/**
* Defines movement strategy of source and target in the hierarchy during geometry transition.
- *
+ *
* @type { ?TransitionHierarchyStrategy }
* @default TransitionHierarchyStrategy.ADAPTIVE
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
hierarchyStrategy?: TransitionHierarchyStrategy
}
@@ -4244,7 +4511,8 @@ declare interface GeometryTransitionOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LinearGradientOptions {
/**
@@ -4301,7 +4569,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
angle?: number | string;
@@ -4359,7 +4628,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
direction?: GradientDirection;
@@ -4416,7 +4686,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -4474,7 +4745,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -4487,7 +4759,8 @@ declare interface LinearGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SweepGradientOptions {
/**
@@ -4543,7 +4816,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center: [Length, Length];
@@ -4602,7 +4876,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
start?: number | string;
@@ -4659,7 +4934,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
end?: number | string;
@@ -4717,7 +4993,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
rotation?: number | string;
@@ -4774,7 +5051,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -4844,7 +5122,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -4857,7 +5136,8 @@ declare interface SweepGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface RadialGradientOptions {
/**
@@ -4913,7 +5193,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center: [Length, Length];
@@ -4970,7 +5251,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: Length;
@@ -5027,7 +5309,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colors: Array<[ResourceColor, number]>;
@@ -5085,7 +5368,8 @@ declare interface RadialGradientOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
repeating?: boolean;
}
@@ -5111,7 +5395,8 @@ declare interface RadialGradientOptions {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum TransitionHierarchyStrategy {
/**
@@ -5129,7 +5414,8 @@ declare enum TransitionHierarchyStrategy {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE = 0,
@@ -5150,7 +5436,8 @@ declare enum TransitionHierarchyStrategy {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
- * @since 13
+ * @since arkts {'1.1':'13','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ADAPTIVE = 1,
}
@@ -5187,7 +5474,8 @@ declare enum TransitionHierarchyStrategy {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface TranslateOptions {
/**
@@ -5230,7 +5518,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number | string;
@@ -5274,7 +5563,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number | string;
@@ -5314,7 +5604,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number | string;
}
@@ -5351,7 +5642,8 @@ declare interface TranslateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ScaleOptions {
/**
@@ -5398,7 +5690,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number;
@@ -5446,7 +5739,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number;
@@ -5490,7 +5784,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number;
@@ -5526,7 +5821,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerX?: number | string;
@@ -5562,7 +5858,8 @@ declare interface ScaleOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerY?: number | string;
}
@@ -5570,125 +5867,268 @@ declare interface ScaleOptions {
/**
* Defines the align rule options of relative container.
*
- * @interface AlignRuleOption
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Defines the align rule options of relative container.
- *
- * @interface AlignRuleOption
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @crossplatform
- * @form
- * @since 10
- */
-/**
- * Defines the align rule options of relative container.
- *
- * @interface AlignRuleOption
+ * @interface AlignRuleParam
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
-declare interface AlignRuleOption {
+declare interface AlignRuleParam
anchor: ID of the component that functions as the anchor point.
- *
align: alignment mode relative to the anchor component.
+ * The param of left align.
*
- * @type { ?object }
+ * @type { ?AlignRuleParam
anchor: ID of the component that functions as the anchor point.
- *
align: alignment mode relative to the anchor component.
+ * The param of top align.
*
- * @type { ?object }
+ * @type { ?AlignRuleParam
anchor: ID of the component that functions as the anchor point.
- *
align: alignment mode relative to the anchor component.
+ * Defines the bias ratio in horizontal and vertical direction.
*
- * @type { ?object }
+ * @type { ?Bias }
+ * @default {horizontal:0.5,vertical:0.5}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
- middle?: { anchor: string, align: HorizontalAlign };
+ bias?: Bias;
+}
- /**
+
+/**
+ * Defines the align rule options of relative container.
+ *
+ * @interface AlignRuleOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Defines the align rule options of relative container.
+ *
+ * @interface AlignRuleOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+/**
+ * Defines the align rule options of relative container.
+ *
+ * @interface AlignRuleOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+declare interface AlignRuleOption {
+ /**
+ * The param of left align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * The param of left align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Left alignment.
+ *
anchor: ID of the component that functions as the anchor point.
+ *
align: alignment mode relative to the anchor component.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ left?: { anchor: string, align: HorizontalAlign };
+
+ /**
+ * The param of right align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * The param of right align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Right alignment.
+ *
anchor: ID of the component that functions as the anchor point.
+ *
align: alignment mode relative to the anchor component.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ right?: { anchor: string, align: HorizontalAlign };
+
+ /**
+ * The param of middle align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * The param of middle align.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @since 10
+ */
+ /**
+ * Horizontal center alignment.
+ *
anchor: ID of the component that functions as the anchor point.
+ *
align: alignment mode relative to the anchor component.
+ *
+ * @type { ?object }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+ middle?: { anchor: string, align: HorizontalAlign };
+
+ /**
* The param of top align.
*
* @type { ?object }
@@ -5811,7 +6251,8 @@ declare interface AlignRuleOption {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedHorizontalAlignParam {
/**
@@ -5821,8 +6262,9 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
anchor: string;
/**
@@ -5832,8 +6274,9 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
align: HorizontalAlign;
}
@@ -5844,7 +6287,8 @@ declare interface LocalizedHorizontalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedVerticalAlignParam {
/**
@@ -5854,8 +6298,9 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
anchor: string;
/**
@@ -5865,8 +6310,9 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
- */
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
align: VerticalAlign;
}
@@ -5877,7 +6323,8 @@ declare interface LocalizedVerticalAlignParam {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface LocalizedAlignRuleOptions {
/**
@@ -5887,7 +6334,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
start?: LocalizedHorizontalAlignParam;
@@ -5898,7 +6346,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
end?: LocalizedHorizontalAlignParam;
@@ -5909,7 +6358,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
middle?: LocalizedHorizontalAlignParam;
@@ -5920,7 +6370,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
top?: LocalizedVerticalAlignParam;
@@ -5931,7 +6382,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bottom?: LocalizedVerticalAlignParam;
@@ -5942,7 +6394,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
center?: LocalizedVerticalAlignParam;
@@ -5955,7 +6408,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
bias?: Bias;
}
@@ -5967,7 +6421,8 @@ declare interface LocalizedAlignRuleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ChainStyle {
/**
@@ -5976,7 +6431,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SPREAD,
@@ -5986,7 +6442,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SPREAD_INSIDE,
@@ -5996,7 +6453,8 @@ declare enum ChainStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PACKED,
}
@@ -6033,7 +6491,8 @@ declare enum ChainStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface RotateOptions {
/**
@@ -6068,7 +6527,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x?: number;
@@ -6104,7 +6564,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y?: number;
@@ -6140,7 +6601,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
z?: number;
@@ -6176,7 +6638,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerX?: number | string;
@@ -6211,7 +6674,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerY?: number | string;
@@ -6234,7 +6698,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
centerZ?: number;
@@ -6261,7 +6726,8 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
perspective?: number;
@@ -6297,13 +6763,14 @@ declare interface RotateOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
angle: number | string;
}
/**
- * The param of rotate about angle.
+ * The rotation parameters containing multi-axis angle information.
*
* @interface RotateAngleOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -6501,7 +6968,8 @@ declare interface TransitionOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum TransitionEdge {
/**
@@ -6519,7 +6987,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOP,
@@ -6538,7 +7007,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BOTTOM,
@@ -6559,7 +7029,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
START,
@@ -6580,7 +7051,8 @@ declare enum TransitionEdge {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
END
}
@@ -6618,14 +7090,54 @@ declare type TransitionEffects = {
};
};
+/**
+ * Defines the option of asymmetric transition.
+ *
+ * @interface AsymmetricTransitionOption
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare interface AsymmetricTransitionOption {
+ /**
+ * TransitionEffect used for appearing
+ *
+ * @type { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ appear: TransitionEffect;
+
+ /**
+ * TransitionEffect used for disappearing
+ *
+ * @type { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ disappear: TransitionEffect;
+}
+
/**
* Defined the draw modifier of node. Provides draw callbacks for the associated Node.
* Each DrawModifier instance can be set for only one component. Repeated setting is not allowed.
- *
+ *
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare class DrawModifier {
/**
@@ -6640,7 +7152,19 @@ declare class DrawModifier {
drawBehind?(drawContext: DrawContext): void;
/**
- * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
+ * drawBehind Method. Executed before drawing associated Node.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawBehind(drawContext: DrawContext): void;
+
+ /**
+ * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
* if this method is set.
*
* @param { DrawContext } drawContext - The drawContext used to draw.
@@ -6650,7 +7174,21 @@ declare class DrawModifier {
* @since 12
*/
drawContent?(drawContext: DrawContext): void;
-
+
+ /**
+ * drawContent Method. Executed when associated Node is drawing, the default drawContent method will be replaced
+ * if this method is set.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawContent(drawContext: DrawContext): void;
+
+
/**
* drawFront Method. Executed after drawing associated Node.
*
@@ -6663,15 +7201,31 @@ declare class DrawModifier {
drawFront?(drawContext: DrawContext): void;
/**
- * drawforeground Method. Executed after drawing associated Node and its children.
+ * drawforeground Method. This method is executed after drawing associated Node and its children.
+ * It allows you to perform additional drawing operations on top of the already rendered content.
+ * This can be useful for adding visual elements that should appear above the main content.
+ *
* @param { DrawContext } drawContext - The drawContext used to draw
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 20
*/
- drawForeground?(drawContext: DrawContext): void;
-
+ drawForeground(drawContext: DrawContext): void;
+ /**
+ * drawforeground Method. This method is executed after drawing associated Node and its children.
+ * It allows you to perform additional drawing operations on top of the already rendered content.
+ * This can be useful for adding visual elements that should appear above the main content.
+ *
+ * @param { DrawContext } drawContext - The drawContext used to draw.
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ drawFront(drawContext: DrawContext): void;
+
/**
* Invalidate the component, which will cause a re-render of the component.
* No overloading is allowed or needed.
@@ -6679,7 +7233,8 @@ declare class DrawModifier {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
invalidate(): void;
}
@@ -6815,7 +7370,7 @@ declare class TransitionEffect<
* This transition effect comes with its own animation parameters, which can also be overridden.
* The default animation duration is 600 milliseconds,
* with a specified animation curve of cubicBezierCurve(0.24, 0.0, 0.50, 1.0) and a minimum scale factor of 0.8.
- *
+ *
* @type { TransitionEffect<"slideSwitch"> }
* @readonly
* @static
@@ -6831,7 +7386,7 @@ declare class TransitionEffect<
* This transition effect comes with its own animation parameters, which can also be overridden.
* The default animation duration is 600 milliseconds,
* with a specified animation curve of cubicBezierCurve(0.24, 0.0, 0.50, 1.0) and a minimum scale factor of 0.8.
- *
+ *
* @type { TransitionEffect<"slideSwitch"> }
* @readonly
* @static
@@ -7105,34 +7660,338 @@ declare class TransitionEffect<
}
/**
- * Define Preview property
- *
- * @interface PreviewParams
- * @syscap SystemCapability.ArkUI.ArkUI.Full
- * @form
- * @since 9
- */
-/**
- * Define Preview property
+ * Defines the transition effect
*
- * @interface PreviewParams
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since 20
+ * @arkts 1.2
*/
-interface PreviewParams {
+declare class TransitionEffect {
+
/**
- * Define Preview title
+ * Disables the transition effect
*
- * @type { ?string }
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
* @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
* @form
- * @since 9
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
*/
+ static readonly IDENTITY: TransitionEffect;
+
/**
- * Define Preview title
+ * Specifies a transition effect with transparency of 0, which is equivalent to TransitionEffect.opacity(0).
+ *
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static readonly OPACITY: TransitionEffect;
+
+ /**
+ * Defines a slide transition effect
+ *
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static readonly SLIDE: TransitionEffect;
+
+ /**
+ * Specify a transition effect where the element enters by shrinking first and then expanding as it slides in from the right,
+ * and exits by shrinking first and then expanding as it slides out to the left, with a minimum scale ratio of 0.8.
+ * It comes with default animation parameters, which can also be overridden.
+ * The default animation duration is set to 600ms, and the specified animation curve is cubicBezierCurve(0.24, 0.0, 0.50, 1.0).
+ *
+ * @type { TransitionEffect }
+ * @readonly
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static readonly SLIDE_SWITCH: TransitionEffect;
+
+ /**
+ * Creates a translate transition effect
+ *
+ * @param { TranslateOptions } options - translate options
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static translate(options: TranslateOptions): TransitionEffect;
+
+ /**
+ * Creates a rotation transition effect
+ *
+ * @param { RotateOptions } options - rotate options
+ * Set the rotation effect for component transitions when inserting and deleting.
+ * The value represents the starting rotation point for the inserting animation and the ending rotation point for the deleting animation.
+ * -x: Horizontal component of the rotational vector.
+ * -y: Vertical component of the rotational vector.
+ * -z: Vertical component of the rotational vector.
+ * -centerX, centerY specify the rotation center point, with default values of "50%",
+ * meaning that the default rotation center point is the center point of the component.
+ * -The center point of (0, 0) represents the upper-left corner of the component.
+ * -centerZ refers to the Z-axis anchor point. The default value of centerZ is 0.
+ * -perspective indicates the visual distance. The perspective property does not support transition animation.
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static rotate(options: RotateOptions): TransitionEffect;
+
+ /**
+ * Creates a scale transition effect
+ *
+ * @param { ScaleOptions } options - scale options
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static scale(options: ScaleOptions): TransitionEffect;
+
+ /**
+ * Creates an opacity transition effect with alpha value
+ *
+ * @param { number } alpha - opacity alpha value, value range [0, 1].
+ * Illegal values less than 0 are treated as 0, and illegal values greater than 1 are treated as 1.
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static opacity(alpha: number): TransitionEffect;
+
+ /**
+ * Creates a move transition effect
+ *
+ * @param { TransitionEdge } edge - the edge that component will move to
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static move(edge: TransitionEdge): TransitionEffect;
+
+ /**
+ * Creates an asymmetric transition effect
+ *
+ * @param { TransitionEffect } appear - the transition which will be attached when the component is appear
+ * @param { TransitionEffect } disappear - the transition which will be attached when the component is disappear
+ * @returns { TransitionEffect }
+ * @static
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ static asymmetric(appear: TransitionEffect, disappear: TransitionEffect): TransitionEffect;
+
+ /**
+ * identity or slideSwitch TransitionEffect constructor
+ *
+ * @param { 'identity' | 'slideSwitch' } type - transition type
+ * @param { undefined } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'identity' | 'slideSwitch', effect: undefined);
+
+ /**
+ * opacity TransitionEffect constructor
+ *
+ * @param { 'opacity' } type - transition type
+ * @param { number } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'opacity', effect: number);
+
+ /**
+ * move TransitionEffect constructor
+ *
+ * @param { 'move' } type - transition type
+ * @param { TransitionEdge } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'move', effect: TransitionEdge);
+
+ /**
+ * translate TransitionEffect constructor
+ *
+ * @param { 'translate' } type - transition type
+ * @param { TranslateOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'translate', effect:TranslateOptions);
+
+ /**
+ * rotate TransitionEffect constructor
+ *
+ * @param { 'rotate' } type - transition type
+ * @param { RotateOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'rotate', effect: RotateOptions);
+
+ /**
+ * scale TransitionEffect constructor
+ *
+ * @param { 'scale' } type - transition type
+ * @param { ScaleOptions } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'scale', effect: ScaleOptions);
+
+ /**
+ * asymmetric TransitionEffect constructor
+ *
+ * @param { 'asymmetric' } type - transition type
+ * @param { AsymmetricTransitionOption } effect - transition options
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ constructor(type: 'asymmetric', effect: AsymmetricTransitionOption);
+
+ /**
+ * Set the animation of current transition effect
+ *
+ * @param { AnimateParam } value - animation parameters
+ * @returns { TransitionEffect }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ animation(value: AnimateParam): TransitionEffect;
+
+ /**
+ * Combines another transition effect
+ *
+ * @param { TransitionEffect } transitionEffect - transition effect which is be combined
+ * @returns { TransitionEffect } combined transition effect
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+ combine(transitionEffect: TransitionEffect): TransitionEffect;
+}
+
+/**
+ * Define Preview property
+ *
+ * @interface PreviewParams
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+/**
+ * Define Preview property
+ *
+ * @interface PreviewParams
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @crossplatform
+ * @form
+ * @atomicservice
+ * @since 11
+ */
+interface PreviewParams {
+ /**
+ * Define Preview title
+ *
+ * @type { ?string }
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @form
+ * @since 9
+ */
+ /**
+ * Define Preview title
*
* @type { ?string }
* @syscap SystemCapability.ArkUI.ArkUI.Full
@@ -7321,7 +8180,8 @@ interface PreviewParams {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ItemDragInfo {
/**
@@ -7346,7 +8206,8 @@ declare interface ItemDragInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
x: number;
@@ -7372,7 +8233,8 @@ declare interface ItemDragInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
y: number;
}
@@ -7383,7 +8245,8 @@ declare interface ItemDragInfo {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum EffectType {
/**
@@ -7391,7 +8254,8 @@ declare enum EffectType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT = 0,
/**
@@ -7399,7 +8263,8 @@ declare enum EffectType {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
WINDOW_EFFECT = 1,
}
@@ -7410,7 +8275,8 @@ declare enum EffectType {
* @enum { number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum PreDragStatus {
/**
@@ -7418,7 +8284,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ACTION_DETECTING_STATUS = 0,
@@ -7427,7 +8294,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
READY_TO_TRIGGER_DRAG_ACTION = 1,
@@ -7436,7 +8304,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LIFT_STARTED = 2,
@@ -7445,7 +8314,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LIFT_FINISHED = 3,
@@ -7454,7 +8324,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LANDING_STARTED = 4,
@@ -7463,7 +8334,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREVIEW_LANDING_FINISHED = 5,
@@ -7472,7 +8344,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ACTION_CANCELED_BEFORE_DRAG = 6,
@@ -7481,7 +8354,8 @@ declare enum PreDragStatus {
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 18
+ * @since arkts {'1.1':'18','1.2':'20'}
+ * @arkts 1.1&1.2
*/
PREPARING_FOR_DRAG_DETECTION = 7,
}
@@ -7508,7 +8382,8 @@ declare enum PreDragStatus {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface DragItemInfo {
/**
@@ -7533,7 +8408,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts{'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
pixelMap?: PixelMap;
@@ -7559,7 +8435,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
builder?: CustomBuilder;
@@ -7585,7 +8462,8 @@ declare interface DragItemInfo {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
extraInfo?: string;
}
@@ -7626,7 +8504,8 @@ declare interface DragItemInfo {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#animateTo
*/
@@ -7642,7 +8521,8 @@ declare function animateTo(value: AnimateParam, event: () => void): void;
* and the system will automatically insert transition animations for state changes caused by the closure function.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare function animateToImmediately(value: AnimateParam, event: () => void): void;
@@ -7698,7 +8578,8 @@ declare function animateToImmediately(value: AnimateParam, event: () => void): v
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#vp2px
*/
@@ -7756,7 +8637,8 @@ declare function vp2px(value: number): number;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
* @deprecated since 18
* @useinstead ohos.arkui.UIContext.UIContext#px2vp
*/
@@ -7979,7 +8861,8 @@ declare function px2lpx(value: number): number;
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare namespace focusControl {
/**
@@ -8007,7 +8890,8 @@ declare namespace focusControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function requestFocus(value: string): boolean;
}
@@ -8029,6 +8913,17 @@ declare namespace focusControl {
*/
declare type PointerStyle = import('../api/@ohos.multimodalInput.pointer').default.PointerStyle;
+/**
+ * Import the PointerStyle type object for setCursor.
+ *
+ * @typedef { pointer.PointerStyle } PointerStyle
+ * @syscap SystemCapability.ArkUI.ArkUI.Full
+ * @atomicservice
+ * @since 20
+ * @arkts 1.2
+ */
+declare type PointerStyle = pointer.PointerStyle;
+
/**
* CursorControl
*
@@ -8042,7 +8937,8 @@ declare type PointerStyle = import('../api/@ohos.multimodalInput.pointer').defau
* @namespace cursorControl
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare namespace cursorControl {
@@ -8061,7 +8957,8 @@ declare namespace cursorControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function setCursor(value: PointerStyle): void;
@@ -8078,7 +8975,8 @@ declare namespace cursorControl {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
function restoreDefault(): void;
}
@@ -8115,7 +9013,8 @@ declare namespace cursorControl {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface EventTarget {
/**
@@ -8150,7 +9049,8 @@ declare interface EventTarget {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
area: Area;
@@ -8162,7 +9062,8 @@ declare interface EventTarget {
* @crossplatform
* @form
* @atomicservice
- * @since 15
+ * @since arkts {'1.1':'15','1.2':'20'}
+ * @arkts 1.1&1.2
*/
id?: string;
}
@@ -8189,7 +9090,8 @@ declare interface EventTarget {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SourceType {
/**
@@ -8211,7 +9113,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Unknown,
@@ -8234,7 +9137,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Mouse,
@@ -8257,7 +9161,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TouchScreen,
}
@@ -8284,7 +9189,8 @@ declare enum SourceType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum SourceTool {
/**
@@ -8306,7 +9212,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Unknown,
@@ -8329,7 +9236,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Finger,
@@ -8352,7 +9260,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Pen,
@@ -8362,7 +9271,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
MOUSE,
@@ -8372,7 +9282,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
TOUCHPAD,
@@ -8382,7 +9293,8 @@ declare enum SourceTool {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
JOYSTICK,
}
@@ -8412,7 +9324,8 @@ declare enum SourceTool {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum RepeatMode {
/**
@@ -8437,7 +9350,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Repeat,
@@ -8463,7 +9377,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Stretch,
@@ -8489,7 +9404,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Round,
@@ -8515,7 +9431,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Space,
}
@@ -8545,7 +9462,8 @@ declare enum RepeatMode {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlurStyle {
/**
@@ -8570,7 +9488,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Thin,
@@ -8596,7 +9515,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Regular,
@@ -8622,7 +9542,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
Thick,
@@ -8640,7 +9561,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_THIN,
@@ -8658,7 +9580,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_REGULAR,
@@ -8676,7 +9599,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_THICK,
@@ -8694,7 +9618,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BACKGROUND_ULTRA_THICK,
@@ -8713,9 +9638,10 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 11
- */
- NONE,
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
+ */
+ NONE,
/**
* Component ultra-thin material.
@@ -8732,7 +9658,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_ULTRA_THIN = 8,
@@ -8751,7 +9678,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_THIN = 9,
@@ -8770,7 +9698,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_REGULAR = 10,
@@ -8789,7 +9718,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_THICK = 11,
@@ -8808,7 +9738,8 @@ declare enum BlurStyle {
* @crossplatform
* @form
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COMPONENT_ULTRA_THICK = 12,
}
@@ -8820,7 +9751,8 @@ declare enum BlurStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum BlurStyleActivePolicy {
/**
@@ -8829,7 +9761,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
FOLLOWS_WINDOW_ACTIVE_STATE = 0,
@@ -8839,7 +9772,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALWAYS_ACTIVE = 1,
@@ -8849,7 +9783,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALWAYS_INACTIVE = 2,
}
@@ -8869,7 +9804,8 @@ declare enum BlurStyleActivePolicy {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ThemeColorMode {
/**
@@ -8885,7 +9821,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
SYSTEM,
@@ -8902,7 +9839,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
LIGHT,
@@ -8919,7 +9857,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DARK,
}
@@ -8939,7 +9878,8 @@ declare enum ThemeColorMode {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum AdaptiveColor {
/**
@@ -8957,7 +9897,8 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT,
@@ -8974,7 +9915,8 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
AVERAGE,
}
@@ -8994,23 +9936,27 @@ declare enum AdaptiveColor {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ModalTransition {
/**
- * Slide-up and slide-down animation for the modal.
+ * Use default animation.
+ * Upward animation when entering and downward animation when exiting.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 10
*/
/**
- * Slide-up and slide-down animation for the modal.
+ * Use default animation.
+ * Upward animation when entering and downward animation when exiting.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
DEFAULT,
@@ -9027,7 +9973,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
NONE,
@@ -9044,7 +9991,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
ALPHA,
}
@@ -9066,7 +10014,8 @@ declare enum ModalTransition {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
/**
@@ -9077,7 +10026,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
policy?: BlurStyleActivePolicy;
@@ -9089,7 +10039,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
inactiveColor?: ResourceColor;
}
@@ -9111,7 +10062,8 @@ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ForegroundBlurStyleOptions extends BlurStyleOptions {}
@@ -9131,23 +10083,25 @@ declare interface ForegroundBlurStyleOptions extends BlurStyleOptions {}
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BlurOptions {
/**
- * Fuzzy gray scale parameter.
+ * Fuzzy gray scale parameter.The range of values for the two parameters is [0, 127].
* @type { [number, number] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
/**
- * Fuzzy gray scale parameter.
+ * Fuzzy gray scale parameter.The range of values for the two parameters is [0, 127].
* @type { [number, number] }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
grayscale: [number, number];
}
@@ -9160,18 +10114,20 @@ declare interface BlurOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface SystemAdaptiveOptions {
/**
* Whether to disable system adaptive.
- *
+ *
* @type { ?boolean }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @form
* @atomicservice
- * @since 19
+ * @since arkts {'1.1':'19','1.2':'20'}
+ * @arkts 1.1&1.2
*/
disableSystemAdaptation?: boolean;
}
@@ -9191,7 +10147,8 @@ declare interface SystemAdaptiveOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BlurStyleOptions {
/**
@@ -9212,7 +10169,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
colorMode?: ThemeColorMode;
@@ -9234,7 +10192,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
adaptiveColor?: AdaptiveColor;
@@ -9247,7 +10206,8 @@ declare interface BlurStyleOptions {
* @default 1.0
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scale?: number;
@@ -9268,7 +10228,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
blurOptions?: BlurOptions;
}
@@ -9288,7 +10249,8 @@ declare interface BlurStyleOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface BackgroundEffectOptions {
@@ -9311,7 +10273,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number;
@@ -9336,7 +10299,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
saturation?: number;
@@ -9361,7 +10325,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
brightness?: number;
@@ -9382,7 +10347,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -9403,7 +10369,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
adaptiveColor?: AdaptiveColor;
@@ -9424,7 +10391,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
blurOptions?: BlurOptions;
@@ -9436,7 +10404,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
policy?: BlurStyleActivePolicy;
@@ -9448,7 +10417,8 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
inactiveColor?: ResourceColor;
}
@@ -9460,10 +10430,11 @@ declare interface BackgroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ForegroundEffectOptions {
-
+
/**
* Define the radius size of ForegroundEffect.The range of this value is [0, ∞)
*
@@ -9471,7 +10442,8 @@ declare interface ForegroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number;
}
@@ -9491,7 +10463,8 @@ declare interface ForegroundEffectOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PickerTextStyle {
/**
@@ -9509,7 +10482,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: ResourceColor;
@@ -9529,7 +10503,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
font?: Font;
}
@@ -9541,7 +10516,8 @@ declare interface PickerTextStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface PickerDialogButtonStyle {
/**
@@ -9551,7 +10527,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: ButtonType;
@@ -9562,7 +10539,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
style?: ButtonStyleMode;
@@ -9573,7 +10551,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
role?: ButtonRole;
@@ -9584,7 +10563,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontSize?: Length;
@@ -9595,7 +10575,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontColor?: ResourceColor;
@@ -9606,7 +10587,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontWeight?: FontWeight | number | string;
@@ -9617,7 +10599,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontStyle?: FontStyle;
@@ -9628,7 +10611,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fontFamily?: Resource | string;
@@ -9639,7 +10623,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
backgroundColor?: ResourceColor;
@@ -9650,7 +10635,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
borderRadius?: Length | BorderRadiuses;
@@ -9661,7 +10647,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
primary?: boolean;
}
@@ -9681,7 +10668,8 @@ declare interface PickerDialogButtonStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ShadowType {
/**
@@ -9697,7 +10685,8 @@ declare enum ShadowType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
COLOR,
@@ -9714,7 +10703,8 @@ declare enum ShadowType {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
BLUR,
}
@@ -9751,7 +10741,8 @@ declare enum ShadowType {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface ShadowOptions {
/**
@@ -9786,7 +10777,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
radius: number | Resource;
@@ -9809,7 +10801,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
type?: ShadowType;
@@ -9845,7 +10838,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
color?: Color | string | Resource | ColoringStrategy;
@@ -9881,7 +10875,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetX?: number | Resource;
@@ -9917,7 +10912,8 @@ declare interface ShadowOptions {
* @crossplatform
* @form
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
offsetY?: number | Resource;
@@ -9946,7 +10942,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fill?: boolean;
}
@@ -9966,7 +10963,8 @@ declare interface ShadowOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare enum ShadowStyle {
/**
@@ -9982,7 +10980,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_XS,
@@ -9999,7 +10998,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_SM,
@@ -10016,7 +11016,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_MD,
@@ -10033,7 +11034,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_DEFAULT_LG,
@@ -10050,7 +11052,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_FLOATING_SM,
@@ -10067,7 +11070,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
OUTER_FLOATING_MD,
}
@@ -10087,7 +11091,8 @@ declare enum ShadowStyle {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MultiShadowOptions {
/**
@@ -10096,7 +11101,7 @@ declare interface MultiShadowOptions {
*
A value less than or equal to 0 is handled as the default value.
*
A value less than or equal to 0 is handled as the default value.
*
If neither this callback nor **shouldDismiss** or **onWillDismiss** is registered, the sheet is dismissed by
* default during the pull-down-to-dismiss operation.
*
**NOTE**:
*
For bottom sheets, the bottom border color setting is ineffective.
*
NOTE:
*
This parameter works based on the setting of ClickEffectLevel.
*
If level is set to ClickEffectLevel.LIGHT, the default value is 0.90.
@@ -19475,7 +21549,8 @@ declare interface ClickEffect {
* @type { ?number }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scale?: number;
}
@@ -19487,7 +21562,8 @@ declare interface ClickEffect {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface FadingEdgeOptions {
/**
@@ -19498,7 +21574,8 @@ declare interface FadingEdgeOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 14
+ * @since arkts {'1.1':'14','1.2':'20'}
+ * @arkts 1.1&1.2
*/
fadingEdgeLength?: LengthMetrics;
}
@@ -19516,7 +21593,8 @@ declare interface FadingEdgeOptions {
* @interface NestedScrollOptions
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface NestedScrollOptions {
/**
@@ -19533,7 +21611,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollForward: NestedScrollMode;
@@ -19551,7 +21630,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
scrollBackward: NestedScrollMode;
}
@@ -19578,7 +21658,8 @@ declare interface NestedScrollOptions {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
declare interface MenuElement {
/**
@@ -19603,7 +21684,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
value: ResourceStr;
@@ -19622,7 +21704,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
icon?: ResourceStr;
@@ -19642,6 +21725,7 @@ declare interface MenuElement {
* @crossplatform
* @atomicservice
* @since 20
+ * @arkts 1.1&1.2
*/
symbolIcon?: SymbolGlyphModifier;
@@ -19664,7 +21748,8 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 12
+ * @since arkts {'1.1':'12','1.2':'20'}
+ * @arkts 1.1&1.2
*/
enabled?: boolean;
@@ -19690,14 +21775,15 @@ declare interface MenuElement {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
- * @since 11
+ * @since arkts {'1.1':'11','1.2':'20'}
+ * @arkts 1.1&1.2
*/
action: () => void;
}
/**
* Defines the attribute modifier.
- *
+ *
* @interface AttributeModifier