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 * @file 18 * @kit ArkUI 19 */ 20 21/*** if arkts 1.2 */ 22import { CommonShapeMethod,CommonMethod } from './common'; 23/*** endif */ 24 25/** 26 * Defines circle options for Circle component. 27 * 28 * @interface CircleOptions 29 * @syscap SystemCapability.ArkUI.ArkUI.Full 30 * @since 7 31 */ 32/** 33 * Defines circle options for Circle component. 34 * 35 * @interface CircleOptions 36 * @syscap SystemCapability.ArkUI.ArkUI.Full 37 * @form 38 * @since 9 39 */ 40/** 41 * Defines circle options for Circle component. 42 * 43 * @interface CircleOptions 44 * @syscap SystemCapability.ArkUI.ArkUI.Full 45 * @crossplatform 46 * @form 47 * @since 10 48 */ 49/** 50 * Defines circle options for Circle component. 51 * 52 * @interface CircleOptions 53 * @syscap SystemCapability.ArkUI.ArkUI.Full 54 * @crossplatform 55 * @form 56 * @atomicservice 57 * @since arkts {'1.1':'11','1.2':'20'} 58 * @arkts 1.1&1.2 59 */ 60declare interface CircleOptions { 61 /** 62 * Defines the width property. 63 * 64 * @type { ?(string | number) } 65 * @syscap SystemCapability.ArkUI.ArkUI.Full 66 * @since 7 67 */ 68 /** 69 * Defines the width property. 70 * 71 * @type { ?(string | number) } 72 * @syscap SystemCapability.ArkUI.ArkUI.Full 73 * @form 74 * @since 9 75 */ 76 /** 77 * Defines the width property. 78 * 79 * @type { ?(string | number) } 80 * @syscap SystemCapability.ArkUI.ArkUI.Full 81 * @crossplatform 82 * @form 83 * @since 10 84 */ 85 /** 86 * Defines the width property. 87 * 88 * @type { ?(string | number) } 89 * @syscap SystemCapability.ArkUI.ArkUI.Full 90 * @crossplatform 91 * @form 92 * @atomicservice 93 * @since 11 94 */ 95 /** 96 * Defines the width property. 97 * 98 * @type { ?Length } 99 * @syscap SystemCapability.ArkUI.ArkUI.Full 100 * @crossplatform 101 * @form 102 * @atomicservice 103 * @since 20 104 */ 105 width?: Length; 106 /** 107 * Defines the width property. 108 * 109 * @type { ?(string | number) } 110 * @syscap SystemCapability.ArkUI.ArkUI.Full 111 * @crossplatform 112 * @form 113 * @atomicservice 114 * @since 20 115 * @arkts 1.2 116 */ 117 width?: string | number; 118 119 /** 120 * Defines the height property. 121 * 122 * @type { ?(string | number) } 123 * @syscap SystemCapability.ArkUI.ArkUI.Full 124 * @since 7 125 */ 126 /** 127 * Defines the height property. 128 * 129 * @type { ?(string | number) } 130 * @syscap SystemCapability.ArkUI.ArkUI.Full 131 * @form 132 * @since 9 133 */ 134 /** 135 * Defines the height property. 136 * 137 * @type { ?(string | number) } 138 * @syscap SystemCapability.ArkUI.ArkUI.Full 139 * @crossplatform 140 * @form 141 * @since 10 142 */ 143 /** 144 * Defines the height property. 145 * 146 * @type { ?(string | number) } 147 * @syscap SystemCapability.ArkUI.ArkUI.Full 148 * @crossplatform 149 * @form 150 * @atomicservice 151 * @since 11 152 */ 153 /** 154 * Defines the height property. 155 * 156 * @type { ?Length } 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @crossplatform 159 * @form 160 * @atomicservice 161 * @since 20 162 */ 163 height?: Length; 164 /** 165 * Defines the height property. 166 * 167 * @type { ?(string | number) } 168 * @syscap SystemCapability.ArkUI.ArkUI.Full 169 * @crossplatform 170 * @form 171 * @atomicservice 172 * @since 20 173 * @arkts 1.2 174 */ 175 height?: string | number; 176} 177 178/** 179 * Defines circle component. 180 * 181 * @interface CircleInterface 182 * @syscap SystemCapability.ArkUI.ArkUI.Full 183 * @since 7 184 */ 185/** 186 * Defines circle component. 187 * 188 * @interface CircleInterface 189 * @syscap SystemCapability.ArkUI.ArkUI.Full 190 * @form 191 * @since 9 192 */ 193/** 194 * Defines circle component. 195 * 196 * @interface CircleInterface 197 * @syscap SystemCapability.ArkUI.ArkUI.Full 198 * @crossplatform 199 * @form 200 * @since 10 201 */ 202/** 203 * Defines circle component. 204 * 205 * @interface CircleInterface 206 * @syscap SystemCapability.ArkUI.ArkUI.Full 207 * @crossplatform 208 * @form 209 * @atomicservice 210 * @since 11 211 */ 212interface CircleInterface { 213 /** 214 * use new function to set the value. 215 * 216 * @param { CircleOptions } value 217 * @returns { CircleAttribute } 218 * @syscap SystemCapability.ArkUI.ArkUI.Full 219 * @since 7 220 */ 221 /** 222 * use new function to set the value. 223 * 224 * @param { CircleOptions } value 225 * @returns { CircleAttribute } 226 * @syscap SystemCapability.ArkUI.ArkUI.Full 227 * @form 228 * @since 9 229 */ 230 /** 231 * use new function to set the value. 232 * 233 * @param { CircleOptions } value 234 * @returns { CircleAttribute } 235 * @syscap SystemCapability.ArkUI.ArkUI.Full 236 * @crossplatform 237 * @form 238 * @since 10 239 */ 240 /** 241 * use new function to set the value. 242 * 243 * @param { CircleOptions } value 244 * @returns { CircleAttribute } 245 * @syscap SystemCapability.ArkUI.ArkUI.Full 246 * @crossplatform 247 * @form 248 * @atomicservice 249 * @since 11 250 */ 251 new (value?: CircleOptions): CircleAttribute; 252 253 /** 254 * Set the value.. 255 * 256 * @param { CircleOptions } value 257 * @returns { CircleAttribute } 258 * @syscap SystemCapability.ArkUI.ArkUI.Full 259 * @since 7 260 */ 261 /** 262 * Set the value.. 263 * 264 * @param { CircleOptions } value 265 * @returns { CircleAttribute } 266 * @syscap SystemCapability.ArkUI.ArkUI.Full 267 * @form 268 * @since 9 269 */ 270 /** 271 * Set the value.. 272 * 273 * @param { CircleOptions } value 274 * @returns { CircleAttribute } 275 * @syscap SystemCapability.ArkUI.ArkUI.Full 276 * @crossplatform 277 * @form 278 * @since 10 279 */ 280 /** 281 * Set the value.. 282 * 283 * @param { CircleOptions } value 284 * @returns { CircleAttribute } 285 * @syscap SystemCapability.ArkUI.ArkUI.Full 286 * @crossplatform 287 * @form 288 * @atomicservice 289 * @since 11 290 */ 291 (value?: CircleOptions): CircleAttribute; 292} 293 294/** 295 * Circle drawing component attribute functions. 296 * 297 * @extends CommonShapeMethod<CircleAttribute> 298 * @syscap SystemCapability.ArkUI.ArkUI.Full 299 * @since 7 300 */ 301/** 302 * Circle drawing component attribute functions. 303 * 304 * @extends CommonShapeMethod<CircleAttribute> 305 * @syscap SystemCapability.ArkUI.ArkUI.Full 306 * @form 307 * @since 9 308 */ 309/** 310 * Circle drawing component attribute functions. 311 * 312 * @extends CommonShapeMethod<CircleAttribute> 313 * @syscap SystemCapability.ArkUI.ArkUI.Full 314 * @crossplatform 315 * @form 316 * @since 10 317 */ 318/** 319 * Circle drawing component attribute functions. 320 * 321 * @extends CommonShapeMethod<CircleAttribute> 322 * @syscap SystemCapability.ArkUI.ArkUI.Full 323 * @crossplatform 324 * @form 325 * @atomicservice 326 * @since arkts {'1.1':'11','1.2':'20'} 327 * @arkts 1.1&1.2 328 */ 329declare class CircleAttribute extends CommonShapeMethod<CircleAttribute> {} 330 331/** 332 * Defines Circle Component. 333 * 334 * @syscap SystemCapability.ArkUI.ArkUI.Full 335 * @since 7 336 */ 337/** 338 * Defines Circle Component. 339 * 340 * @syscap SystemCapability.ArkUI.ArkUI.Full 341 * @form 342 * @since 9 343 */ 344/** 345 * Defines Circle Component. 346 * 347 * @syscap SystemCapability.ArkUI.ArkUI.Full 348 * @crossplatform 349 * @form 350 * @since 10 351 */ 352/** 353 * Defines Circle Component. 354 * 355 * @syscap SystemCapability.ArkUI.ArkUI.Full 356 * @crossplatform 357 * @form 358 * @atomicservice 359 * @since 11 360 */ 361declare const Circle: CircleInterface; 362 363/** 364 * Defines Circle Component instance. 365 * 366 * @syscap SystemCapability.ArkUI.ArkUI.Full 367 * @since 7 368 */ 369/** 370 * Defines Circle Component instance. 371 * 372 * @syscap SystemCapability.ArkUI.ArkUI.Full 373 * @form 374 * @since 9 375 */ 376/** 377 * Defines Circle Component instance. 378 * 379 * @syscap SystemCapability.ArkUI.ArkUI.Full 380 * @crossplatform 381 * @form 382 * @since 10 383 */ 384/** 385 * Defines Circle Component instance. 386 * 387 * @syscap SystemCapability.ArkUI.ArkUI.Full 388 * @crossplatform 389 * @form 390 * @atomicservice 391 * @since 11 392 */ 393declare const CircleInstance: CircleAttribute; 394 395/** 396 * Defines circle component. 397 * 398 * @interface CircleInterface 399 * @syscap SystemCapability.ArkUI.ArkUI.Full 400 * @crossplatform 401 * @form 402 * @atomicservice 403 * @since 20 404 * @arkts 1.2 405 */ 406interface CircleInterface { 407 /** 408 * Set the options for circle component. 409 * 410 * @param { CircleOptions } [value] - options to create circle component. 411 * @returns { CircleAttribute } 412 * @syscap SystemCapability.ArkUI.ArkUI.Full 413 * @crossplatform 414 * @form 415 * @atomicservice 416 * @since 20 417 * @arkts 1.2 418 */ 419 (value?: CircleOptions): CircleAttribute; 420} 421