1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * Defines circle options for Circle component. 18 * 19 * @interface CircleOptions 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Defines circle options for Circle component. 25 * 26 * @interface CircleOptions 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Defines circle options for Circle component. 33 * 34 * @interface CircleOptions 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40declare interface CircleOptions { 41 /** 42 * Defines the width property. 43 * 44 * @type { ?(string | number) } 45 * @syscap SystemCapability.ArkUI.ArkUI.Full 46 * @since 7 47 */ 48 /** 49 * Defines the width property. 50 * 51 * @type { ?(string | number) } 52 * @syscap SystemCapability.ArkUI.ArkUI.Full 53 * @since 9 54 * @form 55 */ 56 /** 57 * Defines the width property. 58 * 59 * @type { ?(string | number) } 60 * @syscap SystemCapability.ArkUI.ArkUI.Full 61 * @crossplatform 62 * @since 10 63 * @form 64 */ 65 width?: string | number; 66 67 /** 68 * Defines the height property. 69 * 70 * @type { ?(string | number) } 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @since 7 73 */ 74 /** 75 * Defines the height property. 76 * 77 * @type { ?(string | number) } 78 * @syscap SystemCapability.ArkUI.ArkUI.Full 79 * @since 9 80 * @form 81 */ 82 /** 83 * Defines the height property. 84 * 85 * @type { ?(string | number) } 86 * @syscap SystemCapability.ArkUI.ArkUI.Full 87 * @crossplatform 88 * @since 10 89 * @form 90 */ 91 height?: string | number; 92} 93 94/** 95 * Defines circle component. 96 * 97 * @interface CircleInterface 98 * @syscap SystemCapability.ArkUI.ArkUI.Full 99 * @since 7 100 */ 101/** 102 * Defines circle component. 103 * 104 * @interface CircleInterface 105 * @syscap SystemCapability.ArkUI.ArkUI.Full 106 * @since 9 107 * @form 108 */ 109/** 110 * Defines circle component. 111 * 112 * @interface CircleInterface 113 * @syscap SystemCapability.ArkUI.ArkUI.Full 114 * @crossplatform 115 * @since 10 116 * @form 117 */ 118interface CircleInterface { 119 /** 120 * use new function to set the value. 121 * 122 * @param { CircleOptions } value 123 * @returns { CircleAttribute } 124 * @syscap SystemCapability.ArkUI.ArkUI.Full 125 * @since 7 126 */ 127 /** 128 * use new function to set the value. 129 * 130 * @param { CircleOptions } value 131 * @returns { CircleAttribute } 132 * @syscap SystemCapability.ArkUI.ArkUI.Full 133 * @since 9 134 * @form 135 */ 136 /** 137 * use new function to set the value. 138 * 139 * @param { CircleOptions } value 140 * @returns { CircleAttribute } 141 * @syscap SystemCapability.ArkUI.ArkUI.Full 142 * @crossplatform 143 * @since 10 144 * @form 145 */ 146 new (value?: CircleOptions): CircleAttribute; 147 148 /** 149 * Set the value.. 150 * 151 * @param { CircleOptions } value 152 * @returns { CircleAttribute } 153 * @syscap SystemCapability.ArkUI.ArkUI.Full 154 * @since 7 155 */ 156 /** 157 * Set the value.. 158 * 159 * @param { CircleOptions } value 160 * @returns { CircleAttribute } 161 * @syscap SystemCapability.ArkUI.ArkUI.Full 162 * @since 9 163 * @form 164 */ 165 /** 166 * Set the value.. 167 * 168 * @param { CircleOptions } value 169 * @returns { CircleAttribute } 170 * @syscap SystemCapability.ArkUI.ArkUI.Full 171 * @crossplatform 172 * @since 10 173 * @form 174 */ 175 (value?: CircleOptions): CircleAttribute; 176} 177 178/** 179 * Circle drawing component attribute functions. 180 * 181 * @extends CommonShapeMethod 182 * @syscap SystemCapability.ArkUI.ArkUI.Full 183 * @since 7 184 */ 185/** 186 * Circle drawing component attribute functions. 187 * 188 * @extends CommonShapeMethod 189 * @syscap SystemCapability.ArkUI.ArkUI.Full 190 * @since 9 191 * @form 192 */ 193/** 194 * Circle drawing component attribute functions. 195 * 196 * @extends CommonShapeMethod 197 * @syscap SystemCapability.ArkUI.ArkUI.Full 198 * @crossplatform 199 * @since 10 200 * @form 201 */ 202declare class CircleAttribute extends CommonShapeMethod<CircleAttribute> {} 203 204/** 205 * Defines Circle Component. 206 * 207 * @syscap SystemCapability.ArkUI.ArkUI.Full 208 * @since 7 209 */ 210/** 211 * Defines Circle Component. 212 * 213 * @syscap SystemCapability.ArkUI.ArkUI.Full 214 * @since 9 215 * @form 216 */ 217/** 218 * Defines Circle Component. 219 * 220 * @syscap SystemCapability.ArkUI.ArkUI.Full 221 * @crossplatform 222 * @since 10 223 * @form 224 */ 225declare const Circle: CircleInterface; 226 227/** 228 * Defines Circle Component instance. 229 * 230 * @syscap SystemCapability.ArkUI.ArkUI.Full 231 * @since 7 232 */ 233/** 234 * Defines Circle Component instance. 235 * 236 * @syscap SystemCapability.ArkUI.ArkUI.Full 237 * @since 9 238 * @form 239 */ 240/** 241 * Defines Circle Component instance. 242 * 243 * @syscap SystemCapability.ArkUI.ArkUI.Full 244 * @crossplatform 245 * @since 10 246 * @form 247 */ 248declare const CircleInstance: CircleAttribute; 249