• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 } from './common';
23import { Length } from './units';
24/*** endif */
25
26/**
27 * Defines the RadiusItem, the first element is the width of the rounded corner, the second is the height of the rounded corner.
28 *
29 * @typedef { [Length, Length] } RadiusItem
30 * @syscap SystemCapability.ArkUI.ArkUI.Full
31 * @crossplatform
32 * @form
33 * @atomicservice
34 * @since 20
35 * @arkts 1.2
36 */
37declare type RadiusItem = [Length, Length];
38
39/**
40 * Define options used to construct a rectangle.
41 *
42 * @interface RectOptions
43 * @syscap SystemCapability.ArkUI.ArkUI.Full
44 * @crossplatform
45 * @form
46 * @atomicservice
47 * @since arkts {'1.1':'18','1.2':'20'}
48 * @arkts 1.1&1.2
49 */
50declare interface RectOptions {
51  /**
52   * Rectangle width.
53   *
54   * @type { ?(number | string) }
55   * @syscap SystemCapability.ArkUI.ArkUI.Full
56   * @since 7
57   */
58  /**
59   * Rectangle width.
60   *
61   * @type { ?(number | string) }
62   * @syscap SystemCapability.ArkUI.ArkUI.Full
63   * @form
64   * @since 9
65   */
66  /**
67   * Rectangle width.
68   *
69   * @type { ?(number | string) }
70   * @syscap SystemCapability.ArkUI.ArkUI.Full
71   * @crossplatform
72   * @form
73   * @since 10
74   */
75  /**
76   * Rectangle width.
77   *
78   * @type { ?(number | string) }
79   * @syscap SystemCapability.ArkUI.ArkUI.Full
80   * @crossplatform
81   * @form
82   * @atomicservice
83   * @since 11
84   */
85  /**
86   * Rectangle width.
87   * Anonymous Object Rectification.
88   *
89   * @type { ?(number | string) }
90   * @syscap SystemCapability.ArkUI.ArkUI.Full
91   * @crossplatform
92   * @form
93   * @atomicservice
94   * @since 18
95   */
96  /**
97   * Rectangle width.
98   *
99   * @type { ?Length }
100   * @syscap SystemCapability.ArkUI.ArkUI.Full
101   * @crossplatform
102   * @form
103   * @atomicservice
104   * @since 20
105   * @arkts 1.1&1.2
106   */
107  width?: Length;
108
109  /**
110   * Rectangle height.
111   *
112   * @type { ?(number | string) }
113   * @syscap SystemCapability.ArkUI.ArkUI.Full
114   * @since 7
115   */
116  /**
117   * Rectangle height.
118   *
119   * @type { ?(number | string) }
120   * @syscap SystemCapability.ArkUI.ArkUI.Full
121   * @form
122   * @since 9
123   */
124  /**
125   * Rectangle height.
126   *
127   * @type { ?(number | string) }
128   * @syscap SystemCapability.ArkUI.ArkUI.Full
129   * @crossplatform
130   * @form
131   * @since 10
132   */
133  /**
134   * Rectangle height.
135   *
136   * @type { ?(number | string) }
137   * @syscap SystemCapability.ArkUI.ArkUI.Full
138   * @crossplatform
139   * @form
140   * @atomicservice
141   * @since 11
142   */
143  /**
144   * Rectangle height.
145   * Anonymous Object Rectification.
146   *
147   * @type { ?(number | string) }
148   * @syscap SystemCapability.ArkUI.ArkUI.Full
149   * @crossplatform
150   * @form
151   * @atomicservice
152   * @since 18
153   */
154  /**
155   * Rectangle height.
156   *
157   * @type { ?Length }
158   * @syscap SystemCapability.ArkUI.ArkUI.Full
159   * @crossplatform
160   * @form
161   * @atomicservice
162   * @since 20
163   * @arkts 1.1&1.2
164   */
165  height?: Length;
166
167  /**
168   * Corner radius of the rectangle.
169   *
170   * @type { ?(number | string | Array<any>) }
171   * @syscap SystemCapability.ArkUI.ArkUI.Full
172   * @since 7
173   */
174  /**
175   * Corner radius of the rectangle.
176   *
177   * @type { ?(number | string | Array<any>) }
178   * @syscap SystemCapability.ArkUI.ArkUI.Full
179   * @form
180   * @since 9
181   */
182  /**
183   * Corner radius of the rectangle.
184   *
185   * @type { ?(number | string | Array<any>) }
186   * @syscap SystemCapability.ArkUI.ArkUI.Full
187   * @crossplatform
188   * @form
189   * @since 10
190   */
191  /**
192   * Corner radius of the rectangle.
193   *
194   * @type { ?(number | string | Array<any>) }
195   * @syscap SystemCapability.ArkUI.ArkUI.Full
196   * @crossplatform
197   * @form
198   * @atomicservice
199   * @since 11
200   */
201  /**
202   * Corner radius of the rectangle.
203   * Anonymous Object Rectification.
204   *
205   * @type { ?(number | string | Array<any>) }
206   * @syscap SystemCapability.ArkUI.ArkUI.Full
207   * @crossplatform
208   * @form
209   * @atomicservice
210   * @since 18
211   */
212  /**
213   * Corner radius of the rectangle.
214   *
215   * @type { ?(Length | Array<any>) }
216   * @syscap SystemCapability.ArkUI.ArkUI.Full
217   * @crossplatform
218   * @form
219   * @atomicservice
220   * @since 20
221   */
222  radius?: Length | Array<any>;
223
224  /**
225   * Corner radius of the rectangle.
226   *
227   * @type { ?(Length | Array<RadiusItem>) }
228   * @syscap SystemCapability.ArkUI.ArkUI.Full
229   * @crossplatform
230   * @form
231   * @atomicservice
232   * @since 20
233   * @arkts 1.2
234   */
235  radius?: Length | Array<RadiusItem>;
236}
237
238/**
239 * Define options used to construct a rectangle with rounded corners.
240 *
241 * @interface RoundedRectOptions
242 * @syscap SystemCapability.ArkUI.ArkUI.Full
243 * @crossplatform
244 * @form
245 * @atomicservice
246 * @since arkts {'1.1':'18','1.2':'20'}
247 * @arkts 1.1&1.2
248 */
249declare interface RoundedRectOptions {
250  /**
251   * Rectangle width.
252   *
253   * @type { ?(number | string) }
254   * @syscap SystemCapability.ArkUI.ArkUI.Full
255   * @since 7
256   */
257  /**
258   * Rectangle width.
259   *
260   * @type { ?(number | string) }
261   * @syscap SystemCapability.ArkUI.ArkUI.Full
262   * @form
263   * @since 9
264   */
265  /**
266   * Rectangle width.
267   *
268   * @type { ?(number | string) }
269   * @syscap SystemCapability.ArkUI.ArkUI.Full
270   * @crossplatform
271   * @form
272   * @since 10
273   */
274  /**
275   * Rectangle width.
276   *
277   * @type { ?(number | string) }
278   * @syscap SystemCapability.ArkUI.ArkUI.Full
279   * @crossplatform
280   * @form
281   * @atomicservice
282   * @since 11
283   */
284  /**
285   * Rectangle width.
286   * Anonymous Object Rectification.
287   *
288   * @type { ?(number | string) }
289   * @syscap SystemCapability.ArkUI.ArkUI.Full
290   * @crossplatform
291   * @form
292   * @atomicservice
293   * @since 18
294   */
295  /**
296   * Rectangle width.
297   *
298   * @type { ?Length }
299   * @syscap SystemCapability.ArkUI.ArkUI.Full
300   * @crossplatform
301   * @form
302   * @atomicservice
303   * @since 20
304   */
305  width?: Length;
306
307  /**
308   * Rectangle height.
309   *
310   * @type { ?(number | string) }
311   * @syscap SystemCapability.ArkUI.ArkUI.Full
312   * @since 7
313   */
314  /**
315   * Rectangle height.
316   *
317   * @type { ?(number | string) }
318   * @syscap SystemCapability.ArkUI.ArkUI.Full
319   * @form
320   * @since 9
321   */
322  /**
323   * Rectangle height.
324   *
325   * @type { ?(number | string) }
326   * @syscap SystemCapability.ArkUI.ArkUI.Full
327   * @crossplatform
328   * @form
329   * @since 10
330   */
331  /**
332   * Rectangle height.
333   *
334   * @type { ?(number | string) }
335   * @syscap SystemCapability.ArkUI.ArkUI.Full
336   * @crossplatform
337   * @form
338   * @atomicservice
339   * @since 11
340   */
341  /**
342   * Rectangle height.
343   * Anonymous Object Rectification.
344   *
345   * @type { ?(number | string) }
346   * @syscap SystemCapability.ArkUI.ArkUI.Full
347   * @crossplatform
348   * @form
349   * @atomicservice
350   * @since 18
351   */
352  /**
353   * Rectangle height.
354   *
355   * @type { ?Length }
356   * @syscap SystemCapability.ArkUI.ArkUI.Full
357   * @crossplatform
358   * @form
359   * @atomicservice
360   * @since 20
361   */
362  height?: Length;
363
364  /**
365   * Width of the corner radius.
366   *
367   * @type { ?(number | string) }
368   * @syscap SystemCapability.ArkUI.ArkUI.Full
369   * @since 7
370   */
371  /**
372   * Width of the corner radius.
373   *
374   * @type { ?(number | string) }
375   * @syscap SystemCapability.ArkUI.ArkUI.Full
376   * @form
377   * @since 9
378   */
379  /**
380   * Width of the corner radius.
381   *
382   * @type { ?(number | string) }
383   * @syscap SystemCapability.ArkUI.ArkUI.Full
384   * @crossplatform
385   * @form
386   * @since 10
387   */
388  /**
389   * Width of the corner radius.
390   *
391   * @type { ?(number | string) }
392   * @syscap SystemCapability.ArkUI.ArkUI.Full
393   * @crossplatform
394   * @form
395   * @atomicservice
396   * @since 11
397   */
398  /**
399   * Width of the corner radius.
400   * Anonymous Object Rectification.
401   *
402   * @type { ?(number | string) }
403   * @syscap SystemCapability.ArkUI.ArkUI.Full
404   * @crossplatform
405   * @form
406   * @atomicservice
407   * @since 18
408   */
409  /**
410   * Width of the corner radius.
411   *
412   * @type { ?Length }
413   * @syscap SystemCapability.ArkUI.ArkUI.Full
414   * @crossplatform
415   * @form
416   * @atomicservice
417   * @since 20
418   */
419  radiusWidth?: Length;
420
421  /**
422   * Height of the corner radius.
423   *
424   * @type { ?(number | string) }
425   * @syscap SystemCapability.ArkUI.ArkUI.Full
426   * @since 7
427   */
428  /**
429   * Height of the corner radius.
430   *
431   * @type { ?(number | string) }
432   * @syscap SystemCapability.ArkUI.ArkUI.Full
433   * @form
434   * @since 9
435   */
436  /**
437   * Height of the corner radius.
438   *
439   * @type { ?(number | string) }
440   * @syscap SystemCapability.ArkUI.ArkUI.Full
441   * @crossplatform
442   * @form
443   * @since 10
444   */
445  /**
446   * Height of the corner radius.
447   *
448   * @type { ?(number | string) }
449   * @syscap SystemCapability.ArkUI.ArkUI.Full
450   * @crossplatform
451   * @form
452   * @atomicservice
453   * @since 11
454   */
455  /**
456   * Height of the corner radius.
457   * Anonymous Object Rectification.
458   *
459   * @type { ?(number | string) }
460   * @syscap SystemCapability.ArkUI.ArkUI.Full
461   * @crossplatform
462   * @form
463   * @atomicservice
464   * @since 18
465   */
466  /**
467   * Height of the corner radius.
468   *
469   * @type { ?Length }
470   * @syscap SystemCapability.ArkUI.ArkUI.Full
471   * @crossplatform
472   * @form
473   * @atomicservice
474   * @since 20
475   */
476  radiusHeight?: Length;
477}
478
479/**
480 * Provides an interface for drawing rectangles.
481 *
482 * @interface RectInterface
483 * @syscap SystemCapability.ArkUI.ArkUI.Full
484 * @since 7
485 */
486/**
487 * Provides an interface for drawing rectangles.
488 *
489 * @interface RectInterface
490 * @syscap SystemCapability.ArkUI.ArkUI.Full
491 * @form
492 * @since 9
493 */
494/**
495 * Provides an interface for drawing rectangles.
496 *
497 * @interface RectInterface
498 * @syscap SystemCapability.ArkUI.ArkUI.Full
499 * @crossplatform
500 * @form
501 * @since 10
502 */
503/**
504 * Provides an interface for drawing rectangles.
505 *
506 * @interface RectInterface
507 * @syscap SystemCapability.ArkUI.ArkUI.Full
508 * @crossplatform
509 * @form
510 * @atomicservice
511 * @since 11
512 */
513interface RectInterface {
514  /**
515   * Use new function to create Rect.
516   *
517   * @param { object } value
518   * @returns { RectAttribute }
519   * @syscap SystemCapability.ArkUI.ArkUI.Full
520   * @since 7
521   */
522  /**
523   * Use new function to create Rect.
524   *
525   * @param { object } value
526   * @returns { RectAttribute }
527   * @syscap SystemCapability.ArkUI.ArkUI.Full
528   * @form
529   * @since 9
530   */
531  /**
532   * Use new function to create Rect.
533   *
534   * @param { object } value
535   * @returns { RectAttribute }
536   * @syscap SystemCapability.ArkUI.ArkUI.Full
537   * @crossplatform
538   * @form
539   * @since 10
540   */
541  /**
542   * Use new function to create Rect.
543   *
544   * @param { object } value
545   * @returns { RectAttribute }
546   * @syscap SystemCapability.ArkUI.ArkUI.Full
547   * @crossplatform
548   * @form
549   * @atomicservice
550   * @since 11
551   */
552  /**
553   * Use new function to create Rect.
554   * Anonymous Object Rectification.
555   *
556   * @param { RectOptions | RoundedRectOptions } [options] - Rect options
557   * @returns { RectAttribute }
558   * @syscap SystemCapability.ArkUI.ArkUI.Full
559   * @crossplatform
560   * @form
561   * @atomicservice
562   * @since 18
563   */
564  new (
565    options?: RectOptions | RoundedRectOptions,
566  ): RectAttribute;
567
568  /**
569   * Called when a rectangle is created.
570   *
571   * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} |
572  *  {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value
573   * @returns { RectAttribute }
574   * @syscap SystemCapability.ArkUI.ArkUI.Full
575   * @since 7
576   */
577  /**
578   * Called when a rectangle is created.
579   *
580   * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} |
581  *  {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value
582   * @returns { RectAttribute }
583   * @syscap SystemCapability.ArkUI.ArkUI.Full
584   * @form
585   * @since 9
586   */
587  /**
588   * Called when a rectangle is created.
589   *
590   * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} |
591   *  {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value
592   * @returns { RectAttribute }
593   * @syscap SystemCapability.ArkUI.ArkUI.Full
594   * @crossplatform
595   * @form
596   * @since 10
597   */
598  /**
599   * Called when a rectangle is created.
600   *
601   * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} |
602   *  {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value
603   * @returns { RectAttribute }
604   * @syscap SystemCapability.ArkUI.ArkUI.Full
605   * @crossplatform
606   * @form
607   * @atomicservice
608   * @since 11
609   */
610  /**
611   * Called when a rectangle is created.
612   * Anonymous Object Rectification.
613   *
614   * @param { RectOptions | RoundedRectOptions } [options] - Rect options
615   * @returns { RectAttribute }
616   * @syscap SystemCapability.ArkUI.ArkUI.Full
617   * @crossplatform
618   * @form
619   * @atomicservice
620   * @since 18
621   */
622  (
623    options?: RectOptions | RoundedRectOptions,
624  ): RectAttribute;
625}
626
627/**
628 * rect attribute declaration.
629 *
630 * @extends CommonShapeMethod<RectAttribute>
631 * @syscap SystemCapability.ArkUI.ArkUI.Full
632 * @since 7
633 */
634/**
635 * rect attribute declaration.
636 *
637 * @extends CommonShapeMethod<RectAttribute>
638 * @syscap SystemCapability.ArkUI.ArkUI.Full
639 * @form
640 * @since 9
641 */
642/**
643 * rect attribute declaration.
644 *
645 * @extends CommonShapeMethod<RectAttribute>
646 * @syscap SystemCapability.ArkUI.ArkUI.Full
647 * @crossplatform
648 * @form
649 * @since 10
650 */
651/**
652 * rect attribute declaration.
653 *
654 * @extends CommonShapeMethod<RectAttribute>
655 * @syscap SystemCapability.ArkUI.ArkUI.Full
656 * @crossplatform
657 * @form
658 * @atomicservice
659 * @since arkts {'1.1':'11','1.2':'20'}
660 * @arkts 1.1&1.2
661 */
662declare class RectAttribute extends CommonShapeMethod<RectAttribute> {
663  /**
664   * Called when the fillet width is set.
665   *
666   * @param { number | string } value
667   * @returns { RectAttribute }
668   * @syscap SystemCapability.ArkUI.ArkUI.Full
669   * @since 7
670   */
671  /**
672   * Called when the fillet width is set.
673   *
674   * @param { number | string } value
675   * @returns { RectAttribute }
676   * @syscap SystemCapability.ArkUI.ArkUI.Full
677   * @form
678   * @since 9
679   */
680  /**
681   * Called when the fillet width is set.
682   *
683   * @param { number | string } value
684   * @returns { RectAttribute }
685   * @syscap SystemCapability.ArkUI.ArkUI.Full
686   * @crossplatform
687   * @form
688   * @since 10
689   */
690  /**
691   * Called when the fillet width is set.
692   *
693   * @param { number | string } value
694   * @returns { RectAttribute }
695   * @syscap SystemCapability.ArkUI.ArkUI.Full
696   * @crossplatform
697   * @form
698   * @atomicservice
699   * @since 11
700   */
701  /**
702   * Called when the fillet width is set.
703   *
704   * @param { Length } value
705   * @returns { RectAttribute }
706   * @syscap SystemCapability.ArkUI.ArkUI.Full
707   * @crossplatform
708   * @form
709   * @atomicservice
710   * @since 20
711   */
712  radiusWidth(value: Length): RectAttribute;
713
714  /**
715   * Called when the fillet height is set.
716   *
717   * @param { number | string } value
718   * @returns { RectAttribute }
719   * @syscap SystemCapability.ArkUI.ArkUI.Full
720   * @since 7
721   */
722  /**
723   * Called when the fillet height is set.
724   *
725   * @param { number | string } value
726   * @returns { RectAttribute }
727   * @syscap SystemCapability.ArkUI.ArkUI.Full
728   * @form
729   * @since 9
730   */
731  /**
732   * Called when the fillet height is set.
733   *
734   * @param { number | string } value
735   * @returns { RectAttribute }
736   * @syscap SystemCapability.ArkUI.ArkUI.Full
737   * @crossplatform
738   * @form
739   * @since 10
740   */
741  /**
742   * Called when the fillet height is set.
743   *
744   * @param { number | string } value
745   * @returns { RectAttribute }
746   * @syscap SystemCapability.ArkUI.ArkUI.Full
747   * @crossplatform
748   * @form
749   * @atomicservice
750   * @since 11
751   */
752  /**
753   * Called when the fillet height is set.
754   *
755   * @param { Length } value
756   * @returns { RectAttribute }
757   * @syscap SystemCapability.ArkUI.ArkUI.Full
758   * @crossplatform
759   * @form
760   * @atomicservice
761   * @since 20
762   */
763  radiusHeight(value: Length): RectAttribute;
764
765  /**
766   * Called when the fillet size is set.
767   *
768   * @param { number | string | Array<any> } value
769   * @returns { RectAttribute }
770   * @syscap SystemCapability.ArkUI.ArkUI.Full
771   * @since 7
772   */
773  /**
774   * Called when the fillet size is set.
775   *
776   * @param { number | string | Array<any> } value
777   * @returns { RectAttribute }
778   * @syscap SystemCapability.ArkUI.ArkUI.Full
779   * @form
780   * @since 9
781   */
782  /**
783   * Called when the fillet size is set.
784   *
785   * @param { number | string | Array<any> } value
786   * @returns { RectAttribute }
787   * @syscap SystemCapability.ArkUI.ArkUI.Full
788   * @crossplatform
789   * @form
790   * @since 10
791   */
792  /**
793   * Called when the fillet size is set.
794   *
795   * @param { number | string | Array<any> } value
796   * @returns { RectAttribute }
797   * @syscap SystemCapability.ArkUI.ArkUI.Full
798   * @crossplatform
799   * @form
800   * @atomicservice
801   * @since 11
802   */
803  /**
804   * Called when the fillet size is set.
805   *
806   * @param { Length | Array<any> } value
807   * @returns { RectAttribute }
808   * @syscap SystemCapability.ArkUI.ArkUI.Full
809   * @crossplatform
810   * @form
811   * @atomicservice
812   * @since 20
813   */
814  radius(value: Length | Array<any>): RectAttribute;
815
816  /**
817   * Called when the fillet size is set.
818   *
819   * @param { number | string | Array<number | string> } value
820   * @returns { RectAttribute }
821   * @syscap SystemCapability.ArkUI.ArkUI.Full
822   * @crossplatform
823   * @form
824   * @atomicservice
825   * @since 20
826   * @arkts 1.2
827   */
828  radius(value: number | string | Array<number | string>): RectAttribute;
829}
830
831/**
832 * Defines Rect Component.
833 *
834 * @syscap SystemCapability.ArkUI.ArkUI.Full
835 * @form
836 * @since 9
837 */
838/**
839 * Defines Rect Component.
840 *
841 * @syscap SystemCapability.ArkUI.ArkUI.Full
842 * @crossplatform
843 * @form
844 * @since 10
845 */
846/**
847 * Defines Rect Component.
848 *
849 * @syscap SystemCapability.ArkUI.ArkUI.Full
850 * @crossplatform
851 * @form
852 * @atomicservice
853 * @since 11
854 */
855declare const Rect: RectInterface;
856
857/**
858 * Rect attribute.
859 *
860 * @syscap SystemCapability.ArkUI.ArkUI.Full
861 * @since 7
862 * @deprecated since 9
863 */
864declare const RectInStance: RectAttribute;
865
866/**
867 * Rect attribute.
868 *
869 * @syscap SystemCapability.ArkUI.ArkUI.Full
870 * @form
871 * @since 9
872 */
873/**
874 * @syscap SystemCapability.ArkUI.ArkUI.Full
875 * @crossplatform
876 * @form
877 * @since 10
878 */
879/**
880 * @syscap SystemCapability.ArkUI.ArkUI.Full
881 * @crossplatform
882 * @form
883 * @atomicservice
884 * @since 11
885 */
886declare const RectInstance: RectAttribute;
887
888/**
889 * Provides an interface for drawing rectangles.
890 *
891 * @interface RectInterface
892 * @syscap SystemCapability.ArkUI.ArkUI.Full
893 * @crossplatform
894 * @form
895 * @atomicservice
896 * @since 20
897 * @arkts 1.2
898 */
899interface RectInterface {
900  /**
901   * Called when a rectangle is created.
902   *
903   * @param { RectOptions | RoundedRectOptions } [options] - Rect options
904   * @returns { RectAttribute }
905   * @syscap SystemCapability.ArkUI.ArkUI.Full
906   * @crossplatform
907   * @form
908   * @atomicservice
909   * @since 20
910   * @arkts 1.2
911   */
912  (
913    options?: RectOptions | RoundedRectOptions,
914  ): RectAttribute;
915}