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