161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Define options used to construct a rectangle. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface RectOptions 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @crossplatform 2761847f8eSopenharmony_ci * @form 2861847f8eSopenharmony_ci * @atomicservice 2961847f8eSopenharmony_ci * @since 14 3061847f8eSopenharmony_ci */ 3161847f8eSopenharmony_cideclare interface RectOptions { 3261847f8eSopenharmony_ci /** 3361847f8eSopenharmony_ci * Rectangle width. 3461847f8eSopenharmony_ci * 3561847f8eSopenharmony_ci * @type { ?(number | string) } 3661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3761847f8eSopenharmony_ci * @since 7 3861847f8eSopenharmony_ci */ 3961847f8eSopenharmony_ci /** 4061847f8eSopenharmony_ci * Rectangle width. 4161847f8eSopenharmony_ci * 4261847f8eSopenharmony_ci * @type { ?(number | string) } 4361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4461847f8eSopenharmony_ci * @form 4561847f8eSopenharmony_ci * @since 9 4661847f8eSopenharmony_ci */ 4761847f8eSopenharmony_ci /** 4861847f8eSopenharmony_ci * Rectangle width. 4961847f8eSopenharmony_ci * 5061847f8eSopenharmony_ci * @type { ?(number | string) } 5161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5261847f8eSopenharmony_ci * @crossplatform 5361847f8eSopenharmony_ci * @form 5461847f8eSopenharmony_ci * @since 10 5561847f8eSopenharmony_ci */ 5661847f8eSopenharmony_ci /** 5761847f8eSopenharmony_ci * Rectangle width. 5861847f8eSopenharmony_ci * 5961847f8eSopenharmony_ci * @type { ?(number | string) } 6061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6161847f8eSopenharmony_ci * @crossplatform 6261847f8eSopenharmony_ci * @form 6361847f8eSopenharmony_ci * @atomicservice 6461847f8eSopenharmony_ci * @since 11 6561847f8eSopenharmony_ci */ 6661847f8eSopenharmony_ci width?: number | string; 6761847f8eSopenharmony_ci 6861847f8eSopenharmony_ci /** 6961847f8eSopenharmony_ci * Rectangle height. 7061847f8eSopenharmony_ci * 7161847f8eSopenharmony_ci * @type { ?(number | string) } 7261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7361847f8eSopenharmony_ci * @since 7 7461847f8eSopenharmony_ci */ 7561847f8eSopenharmony_ci /** 7661847f8eSopenharmony_ci * Rectangle height. 7761847f8eSopenharmony_ci * 7861847f8eSopenharmony_ci * @type { ?(number | string) } 7961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8061847f8eSopenharmony_ci * @form 8161847f8eSopenharmony_ci * @since 9 8261847f8eSopenharmony_ci */ 8361847f8eSopenharmony_ci /** 8461847f8eSopenharmony_ci * Rectangle height. 8561847f8eSopenharmony_ci * 8661847f8eSopenharmony_ci * @type { ?(number | string) } 8761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8861847f8eSopenharmony_ci * @crossplatform 8961847f8eSopenharmony_ci * @form 9061847f8eSopenharmony_ci * @since 10 9161847f8eSopenharmony_ci */ 9261847f8eSopenharmony_ci /** 9361847f8eSopenharmony_ci * Rectangle height. 9461847f8eSopenharmony_ci * 9561847f8eSopenharmony_ci * @type { ?(number | string) } 9661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9761847f8eSopenharmony_ci * @crossplatform 9861847f8eSopenharmony_ci * @form 9961847f8eSopenharmony_ci * @atomicservice 10061847f8eSopenharmony_ci * @since 11 10161847f8eSopenharmony_ci */ 10261847f8eSopenharmony_ci height?: number | string; 10361847f8eSopenharmony_ci 10461847f8eSopenharmony_ci /** 10561847f8eSopenharmony_ci * Corner radius of the rectangle. 10661847f8eSopenharmony_ci * 10761847f8eSopenharmony_ci * @type { ?(number | string | Array<any>) } 10861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10961847f8eSopenharmony_ci * @since 7 11061847f8eSopenharmony_ci */ 11161847f8eSopenharmony_ci /** 11261847f8eSopenharmony_ci * Corner radius of the rectangle. 11361847f8eSopenharmony_ci * 11461847f8eSopenharmony_ci * @type { ?(number | string | Array<any>) } 11561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11661847f8eSopenharmony_ci * @form 11761847f8eSopenharmony_ci * @since 9 11861847f8eSopenharmony_ci */ 11961847f8eSopenharmony_ci /** 12061847f8eSopenharmony_ci * Corner radius of the rectangle. 12161847f8eSopenharmony_ci * 12261847f8eSopenharmony_ci * @type { ?(number | string | Array<any>) } 12361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12461847f8eSopenharmony_ci * @crossplatform 12561847f8eSopenharmony_ci * @form 12661847f8eSopenharmony_ci * @since 10 12761847f8eSopenharmony_ci */ 12861847f8eSopenharmony_ci /** 12961847f8eSopenharmony_ci * Corner radius of the rectangle. 13061847f8eSopenharmony_ci * 13161847f8eSopenharmony_ci * @type { ?(number | string | Array<any>) } 13261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13361847f8eSopenharmony_ci * @crossplatform 13461847f8eSopenharmony_ci * @form 13561847f8eSopenharmony_ci * @atomicservice 13661847f8eSopenharmony_ci * @since 11 13761847f8eSopenharmony_ci */ 13861847f8eSopenharmony_ci radius?: number | string | Array<any>; 13961847f8eSopenharmony_ci} 14061847f8eSopenharmony_ci 14161847f8eSopenharmony_ci/** 14261847f8eSopenharmony_ci * Define options used to construct a rectangle with rounded corners. 14361847f8eSopenharmony_ci * 14461847f8eSopenharmony_ci * @interface RoundedRectOptions 14561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14661847f8eSopenharmony_ci * @crossplatform 14761847f8eSopenharmony_ci * @form 14861847f8eSopenharmony_ci * @atomicservice 14961847f8eSopenharmony_ci * @since 14 15061847f8eSopenharmony_ci */ 15161847f8eSopenharmony_cideclare interface RoundedRectOptions { 15261847f8eSopenharmony_ci /** 15361847f8eSopenharmony_ci * Rectangle width. 15461847f8eSopenharmony_ci * 15561847f8eSopenharmony_ci * @type { ?(number | string) } 15661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15761847f8eSopenharmony_ci * @since 7 15861847f8eSopenharmony_ci */ 15961847f8eSopenharmony_ci /** 16061847f8eSopenharmony_ci * Rectangle width. 16161847f8eSopenharmony_ci * 16261847f8eSopenharmony_ci * @type { ?(number | string) } 16361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16461847f8eSopenharmony_ci * @form 16561847f8eSopenharmony_ci * @since 9 16661847f8eSopenharmony_ci */ 16761847f8eSopenharmony_ci /** 16861847f8eSopenharmony_ci * Rectangle width. 16961847f8eSopenharmony_ci * 17061847f8eSopenharmony_ci * @type { ?(number | string) } 17161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17261847f8eSopenharmony_ci * @crossplatform 17361847f8eSopenharmony_ci * @form 17461847f8eSopenharmony_ci * @since 10 17561847f8eSopenharmony_ci */ 17661847f8eSopenharmony_ci /** 17761847f8eSopenharmony_ci * Rectangle width. 17861847f8eSopenharmony_ci * 17961847f8eSopenharmony_ci * @type { ?(number | string) } 18061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18161847f8eSopenharmony_ci * @crossplatform 18261847f8eSopenharmony_ci * @form 18361847f8eSopenharmony_ci * @atomicservice 18461847f8eSopenharmony_ci * @since 11 18561847f8eSopenharmony_ci */ 18661847f8eSopenharmony_ci width?: number | string; 18761847f8eSopenharmony_ci 18861847f8eSopenharmony_ci /** 18961847f8eSopenharmony_ci * Rectangle height. 19061847f8eSopenharmony_ci * 19161847f8eSopenharmony_ci * @type { ?(number | string) } 19261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19361847f8eSopenharmony_ci * @since 7 19461847f8eSopenharmony_ci */ 19561847f8eSopenharmony_ci /** 19661847f8eSopenharmony_ci * Rectangle height. 19761847f8eSopenharmony_ci * 19861847f8eSopenharmony_ci * @type { ?(number | string) } 19961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20061847f8eSopenharmony_ci * @form 20161847f8eSopenharmony_ci * @since 9 20261847f8eSopenharmony_ci */ 20361847f8eSopenharmony_ci /** 20461847f8eSopenharmony_ci * Rectangle height. 20561847f8eSopenharmony_ci * 20661847f8eSopenharmony_ci * @type { ?(number | string) } 20761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20861847f8eSopenharmony_ci * @crossplatform 20961847f8eSopenharmony_ci * @form 21061847f8eSopenharmony_ci * @since 10 21161847f8eSopenharmony_ci */ 21261847f8eSopenharmony_ci /** 21361847f8eSopenharmony_ci * Rectangle height. 21461847f8eSopenharmony_ci * 21561847f8eSopenharmony_ci * @type { ?(number | string) } 21661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21761847f8eSopenharmony_ci * @crossplatform 21861847f8eSopenharmony_ci * @form 21961847f8eSopenharmony_ci * @atomicservice 22061847f8eSopenharmony_ci * @since 11 22161847f8eSopenharmony_ci */ 22261847f8eSopenharmony_ci height?: number | string; 22361847f8eSopenharmony_ci 22461847f8eSopenharmony_ci /** 22561847f8eSopenharmony_ci * Width of the corner radius. 22661847f8eSopenharmony_ci * 22761847f8eSopenharmony_ci * @type { ?(number | string) } 22861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22961847f8eSopenharmony_ci * @since 7 23061847f8eSopenharmony_ci */ 23161847f8eSopenharmony_ci /** 23261847f8eSopenharmony_ci * Width of the corner radius. 23361847f8eSopenharmony_ci * 23461847f8eSopenharmony_ci * @type { ?(number | string) } 23561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23661847f8eSopenharmony_ci * @form 23761847f8eSopenharmony_ci * @since 9 23861847f8eSopenharmony_ci */ 23961847f8eSopenharmony_ci /** 24061847f8eSopenharmony_ci * Width of the corner radius. 24161847f8eSopenharmony_ci * 24261847f8eSopenharmony_ci * @type { ?(number | string) } 24361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24461847f8eSopenharmony_ci * @crossplatform 24561847f8eSopenharmony_ci * @form 24661847f8eSopenharmony_ci * @since 10 24761847f8eSopenharmony_ci */ 24861847f8eSopenharmony_ci /** 24961847f8eSopenharmony_ci * Width of the corner radius. 25061847f8eSopenharmony_ci * 25161847f8eSopenharmony_ci * @type { ?(number | string) } 25261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25361847f8eSopenharmony_ci * @crossplatform 25461847f8eSopenharmony_ci * @form 25561847f8eSopenharmony_ci * @atomicservice 25661847f8eSopenharmony_ci * @since 11 25761847f8eSopenharmony_ci */ 25861847f8eSopenharmony_ci radiusWidth?: number | string; 25961847f8eSopenharmony_ci 26061847f8eSopenharmony_ci /** 26161847f8eSopenharmony_ci * Height of the corner radius. 26261847f8eSopenharmony_ci * 26361847f8eSopenharmony_ci * @type { ?(number | string) } 26461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26561847f8eSopenharmony_ci * @since 7 26661847f8eSopenharmony_ci */ 26761847f8eSopenharmony_ci /** 26861847f8eSopenharmony_ci * Height of the corner radius. 26961847f8eSopenharmony_ci * 27061847f8eSopenharmony_ci * @type { ?(number | string) } 27161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27261847f8eSopenharmony_ci * @form 27361847f8eSopenharmony_ci * @since 9 27461847f8eSopenharmony_ci */ 27561847f8eSopenharmony_ci /** 27661847f8eSopenharmony_ci * Height of the corner radius. 27761847f8eSopenharmony_ci * 27861847f8eSopenharmony_ci * @type { ?(number | string) } 27961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28061847f8eSopenharmony_ci * @crossplatform 28161847f8eSopenharmony_ci * @form 28261847f8eSopenharmony_ci * @since 10 28361847f8eSopenharmony_ci */ 28461847f8eSopenharmony_ci /** 28561847f8eSopenharmony_ci * Height of the corner radius. 28661847f8eSopenharmony_ci * 28761847f8eSopenharmony_ci * @type { ?(number | string) } 28861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28961847f8eSopenharmony_ci * @crossplatform 29061847f8eSopenharmony_ci * @form 29161847f8eSopenharmony_ci * @atomicservice 29261847f8eSopenharmony_ci * @since 11 29361847f8eSopenharmony_ci */ 29461847f8eSopenharmony_ci radiusHeight?: number | string; 29561847f8eSopenharmony_ci} 29661847f8eSopenharmony_ci 29761847f8eSopenharmony_ci/** 29861847f8eSopenharmony_ci * Provides an interface for drawing rectangles. 29961847f8eSopenharmony_ci * 30061847f8eSopenharmony_ci * @interface RectInterface 30161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30261847f8eSopenharmony_ci * @since 7 30361847f8eSopenharmony_ci */ 30461847f8eSopenharmony_ci/** 30561847f8eSopenharmony_ci * Provides an interface for drawing rectangles. 30661847f8eSopenharmony_ci * 30761847f8eSopenharmony_ci * @interface RectInterface 30861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30961847f8eSopenharmony_ci * @form 31061847f8eSopenharmony_ci * @since 9 31161847f8eSopenharmony_ci */ 31261847f8eSopenharmony_ci/** 31361847f8eSopenharmony_ci * Provides an interface for drawing rectangles. 31461847f8eSopenharmony_ci * 31561847f8eSopenharmony_ci * @interface RectInterface 31661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31761847f8eSopenharmony_ci * @crossplatform 31861847f8eSopenharmony_ci * @form 31961847f8eSopenharmony_ci * @since 10 32061847f8eSopenharmony_ci */ 32161847f8eSopenharmony_ci/** 32261847f8eSopenharmony_ci * Provides an interface for drawing rectangles. 32361847f8eSopenharmony_ci * 32461847f8eSopenharmony_ci * @interface RectInterface 32561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32661847f8eSopenharmony_ci * @crossplatform 32761847f8eSopenharmony_ci * @form 32861847f8eSopenharmony_ci * @atomicservice 32961847f8eSopenharmony_ci * @since 11 33061847f8eSopenharmony_ci */ 33161847f8eSopenharmony_ciinterface RectInterface { 33261847f8eSopenharmony_ci /** 33361847f8eSopenharmony_ci * Use new function to create Rect. 33461847f8eSopenharmony_ci * 33561847f8eSopenharmony_ci * @param { object } value 33661847f8eSopenharmony_ci * @returns { RectAttribute } 33761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33861847f8eSopenharmony_ci * @since 7 33961847f8eSopenharmony_ci */ 34061847f8eSopenharmony_ci /** 34161847f8eSopenharmony_ci * Use new function to create Rect. 34261847f8eSopenharmony_ci * 34361847f8eSopenharmony_ci * @param { object } value 34461847f8eSopenharmony_ci * @returns { RectAttribute } 34561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34661847f8eSopenharmony_ci * @form 34761847f8eSopenharmony_ci * @since 9 34861847f8eSopenharmony_ci */ 34961847f8eSopenharmony_ci /** 35061847f8eSopenharmony_ci * Use new function to create Rect. 35161847f8eSopenharmony_ci * 35261847f8eSopenharmony_ci * @param { object } value 35361847f8eSopenharmony_ci * @returns { RectAttribute } 35461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35561847f8eSopenharmony_ci * @crossplatform 35661847f8eSopenharmony_ci * @form 35761847f8eSopenharmony_ci * @since 10 35861847f8eSopenharmony_ci */ 35961847f8eSopenharmony_ci /** 36061847f8eSopenharmony_ci * Use new function to create Rect. 36161847f8eSopenharmony_ci * 36261847f8eSopenharmony_ci * @param { object } value 36361847f8eSopenharmony_ci * @returns { RectAttribute } 36461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 36561847f8eSopenharmony_ci * @crossplatform 36661847f8eSopenharmony_ci * @form 36761847f8eSopenharmony_ci * @atomicservice 36861847f8eSopenharmony_ci * @since 11 36961847f8eSopenharmony_ci */ 37061847f8eSopenharmony_ci /** 37161847f8eSopenharmony_ci * Use new function to create Rect. 37261847f8eSopenharmony_ci * 37361847f8eSopenharmony_ci * @param { RectOptions | RoundedRectOptions } [options] - Rect options 37461847f8eSopenharmony_ci * @returns { RectAttribute } 37561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37661847f8eSopenharmony_ci * @crossplatform 37761847f8eSopenharmony_ci * @form 37861847f8eSopenharmony_ci * @atomicservice 37961847f8eSopenharmony_ci * @since 14 38061847f8eSopenharmony_ci */ 38161847f8eSopenharmony_ci new ( 38261847f8eSopenharmony_ci options?: RectOptions | RoundedRectOptions, 38361847f8eSopenharmony_ci ): RectAttribute; 38461847f8eSopenharmony_ci 38561847f8eSopenharmony_ci /** 38661847f8eSopenharmony_ci * Called when a rectangle is created. 38761847f8eSopenharmony_ci * 38861847f8eSopenharmony_ci * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 38961847f8eSopenharmony_ci * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 39061847f8eSopenharmony_ci * @returns { RectAttribute } 39161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39261847f8eSopenharmony_ci * @since 7 39361847f8eSopenharmony_ci */ 39461847f8eSopenharmony_ci /** 39561847f8eSopenharmony_ci * Called when a rectangle is created. 39661847f8eSopenharmony_ci * 39761847f8eSopenharmony_ci * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 39861847f8eSopenharmony_ci * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 39961847f8eSopenharmony_ci * @returns { RectAttribute } 40061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40161847f8eSopenharmony_ci * @form 40261847f8eSopenharmony_ci * @since 9 40361847f8eSopenharmony_ci */ 40461847f8eSopenharmony_ci /** 40561847f8eSopenharmony_ci * Called when a rectangle is created. 40661847f8eSopenharmony_ci * 40761847f8eSopenharmony_ci * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 40861847f8eSopenharmony_ci * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 40961847f8eSopenharmony_ci * @returns { RectAttribute } 41061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41161847f8eSopenharmony_ci * @crossplatform 41261847f8eSopenharmony_ci * @form 41361847f8eSopenharmony_ci * @since 10 41461847f8eSopenharmony_ci */ 41561847f8eSopenharmony_ci /** 41661847f8eSopenharmony_ci * Called when a rectangle is created. 41761847f8eSopenharmony_ci * 41861847f8eSopenharmony_ci * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 41961847f8eSopenharmony_ci * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 42061847f8eSopenharmony_ci * @returns { RectAttribute } 42161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42261847f8eSopenharmony_ci * @crossplatform 42361847f8eSopenharmony_ci * @form 42461847f8eSopenharmony_ci * @atomicservice 42561847f8eSopenharmony_ci * @since 11 42661847f8eSopenharmony_ci */ 42761847f8eSopenharmony_ci /** 42861847f8eSopenharmony_ci * Called when a rectangle is created. 42961847f8eSopenharmony_ci * 43061847f8eSopenharmony_ci * @param { RectOptions | RoundedRectOptions } [options] - Rect options 43161847f8eSopenharmony_ci * @returns { RectAttribute } 43261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43361847f8eSopenharmony_ci * @crossplatform 43461847f8eSopenharmony_ci * @form 43561847f8eSopenharmony_ci * @atomicservice 43661847f8eSopenharmony_ci * @since 14 43761847f8eSopenharmony_ci */ 43861847f8eSopenharmony_ci ( 43961847f8eSopenharmony_ci options?: RectOptions | RoundedRectOptions, 44061847f8eSopenharmony_ci ): RectAttribute; 44161847f8eSopenharmony_ci} 44261847f8eSopenharmony_ci 44361847f8eSopenharmony_ci/** 44461847f8eSopenharmony_ci * rect attribute declaration. 44561847f8eSopenharmony_ci * 44661847f8eSopenharmony_ci * @extends CommonShapeMethod<RectAttribute> 44761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44861847f8eSopenharmony_ci * @since 7 44961847f8eSopenharmony_ci */ 45061847f8eSopenharmony_ci/** 45161847f8eSopenharmony_ci * rect attribute declaration. 45261847f8eSopenharmony_ci * 45361847f8eSopenharmony_ci * @extends CommonShapeMethod<RectAttribute> 45461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45561847f8eSopenharmony_ci * @form 45661847f8eSopenharmony_ci * @since 9 45761847f8eSopenharmony_ci */ 45861847f8eSopenharmony_ci/** 45961847f8eSopenharmony_ci * rect attribute declaration. 46061847f8eSopenharmony_ci * 46161847f8eSopenharmony_ci * @extends CommonShapeMethod<RectAttribute> 46261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46361847f8eSopenharmony_ci * @crossplatform 46461847f8eSopenharmony_ci * @form 46561847f8eSopenharmony_ci * @since 10 46661847f8eSopenharmony_ci */ 46761847f8eSopenharmony_ci/** 46861847f8eSopenharmony_ci * rect attribute declaration. 46961847f8eSopenharmony_ci * 47061847f8eSopenharmony_ci * @extends CommonShapeMethod<RectAttribute> 47161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47261847f8eSopenharmony_ci * @crossplatform 47361847f8eSopenharmony_ci * @form 47461847f8eSopenharmony_ci * @atomicservice 47561847f8eSopenharmony_ci * @since 11 47661847f8eSopenharmony_ci */ 47761847f8eSopenharmony_cideclare class RectAttribute extends CommonShapeMethod<RectAttribute> { 47861847f8eSopenharmony_ci /** 47961847f8eSopenharmony_ci * Called when the fillet width is set. 48061847f8eSopenharmony_ci * 48161847f8eSopenharmony_ci * @param { number | string } value 48261847f8eSopenharmony_ci * @returns { RectAttribute } 48361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48461847f8eSopenharmony_ci * @since 7 48561847f8eSopenharmony_ci */ 48661847f8eSopenharmony_ci /** 48761847f8eSopenharmony_ci * Called when the fillet width is set. 48861847f8eSopenharmony_ci * 48961847f8eSopenharmony_ci * @param { number | string } value 49061847f8eSopenharmony_ci * @returns { RectAttribute } 49161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49261847f8eSopenharmony_ci * @form 49361847f8eSopenharmony_ci * @since 9 49461847f8eSopenharmony_ci */ 49561847f8eSopenharmony_ci /** 49661847f8eSopenharmony_ci * Called when the fillet width is set. 49761847f8eSopenharmony_ci * 49861847f8eSopenharmony_ci * @param { number | string } value 49961847f8eSopenharmony_ci * @returns { RectAttribute } 50061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50161847f8eSopenharmony_ci * @crossplatform 50261847f8eSopenharmony_ci * @form 50361847f8eSopenharmony_ci * @since 10 50461847f8eSopenharmony_ci */ 50561847f8eSopenharmony_ci /** 50661847f8eSopenharmony_ci * Called when the fillet width is set. 50761847f8eSopenharmony_ci * 50861847f8eSopenharmony_ci * @param { number | string } value 50961847f8eSopenharmony_ci * @returns { RectAttribute } 51061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51161847f8eSopenharmony_ci * @crossplatform 51261847f8eSopenharmony_ci * @form 51361847f8eSopenharmony_ci * @atomicservice 51461847f8eSopenharmony_ci * @since 11 51561847f8eSopenharmony_ci */ 51661847f8eSopenharmony_ci radiusWidth(value: number | string): RectAttribute; 51761847f8eSopenharmony_ci 51861847f8eSopenharmony_ci /** 51961847f8eSopenharmony_ci * Called when the fillet height is set. 52061847f8eSopenharmony_ci * 52161847f8eSopenharmony_ci * @param { number | string } value 52261847f8eSopenharmony_ci * @returns { RectAttribute } 52361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52461847f8eSopenharmony_ci * @since 7 52561847f8eSopenharmony_ci */ 52661847f8eSopenharmony_ci /** 52761847f8eSopenharmony_ci * Called when the fillet height is set. 52861847f8eSopenharmony_ci * 52961847f8eSopenharmony_ci * @param { number | string } value 53061847f8eSopenharmony_ci * @returns { RectAttribute } 53161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 53261847f8eSopenharmony_ci * @form 53361847f8eSopenharmony_ci * @since 9 53461847f8eSopenharmony_ci */ 53561847f8eSopenharmony_ci /** 53661847f8eSopenharmony_ci * Called when the fillet height is set. 53761847f8eSopenharmony_ci * 53861847f8eSopenharmony_ci * @param { number | string } value 53961847f8eSopenharmony_ci * @returns { RectAttribute } 54061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54161847f8eSopenharmony_ci * @crossplatform 54261847f8eSopenharmony_ci * @form 54361847f8eSopenharmony_ci * @since 10 54461847f8eSopenharmony_ci */ 54561847f8eSopenharmony_ci /** 54661847f8eSopenharmony_ci * Called when the fillet height is set. 54761847f8eSopenharmony_ci * 54861847f8eSopenharmony_ci * @param { number | string } value 54961847f8eSopenharmony_ci * @returns { RectAttribute } 55061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 55161847f8eSopenharmony_ci * @crossplatform 55261847f8eSopenharmony_ci * @form 55361847f8eSopenharmony_ci * @atomicservice 55461847f8eSopenharmony_ci * @since 11 55561847f8eSopenharmony_ci */ 55661847f8eSopenharmony_ci radiusHeight(value: number | string): RectAttribute; 55761847f8eSopenharmony_ci 55861847f8eSopenharmony_ci /** 55961847f8eSopenharmony_ci * Called when the fillet size is set. 56061847f8eSopenharmony_ci * 56161847f8eSopenharmony_ci * @param { number | string | Array<any> } value 56261847f8eSopenharmony_ci * @returns { RectAttribute } 56361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 56461847f8eSopenharmony_ci * @since 7 56561847f8eSopenharmony_ci */ 56661847f8eSopenharmony_ci /** 56761847f8eSopenharmony_ci * Called when the fillet size is set. 56861847f8eSopenharmony_ci * 56961847f8eSopenharmony_ci * @param { number | string | Array<any> } value 57061847f8eSopenharmony_ci * @returns { RectAttribute } 57161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 57261847f8eSopenharmony_ci * @form 57361847f8eSopenharmony_ci * @since 9 57461847f8eSopenharmony_ci */ 57561847f8eSopenharmony_ci /** 57661847f8eSopenharmony_ci * Called when the fillet size is set. 57761847f8eSopenharmony_ci * 57861847f8eSopenharmony_ci * @param { number | string | Array<any> } value 57961847f8eSopenharmony_ci * @returns { RectAttribute } 58061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 58161847f8eSopenharmony_ci * @crossplatform 58261847f8eSopenharmony_ci * @form 58361847f8eSopenharmony_ci * @since 10 58461847f8eSopenharmony_ci */ 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * Called when the fillet size is set. 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @param { number | string | Array<any> } value 58961847f8eSopenharmony_ci * @returns { RectAttribute } 59061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 59161847f8eSopenharmony_ci * @crossplatform 59261847f8eSopenharmony_ci * @form 59361847f8eSopenharmony_ci * @atomicservice 59461847f8eSopenharmony_ci * @since 11 59561847f8eSopenharmony_ci */ 59661847f8eSopenharmony_ci radius(value: number | string | Array<any>): RectAttribute; 59761847f8eSopenharmony_ci} 59861847f8eSopenharmony_ci 59961847f8eSopenharmony_ci/** 60061847f8eSopenharmony_ci * Defines Rect Component. 60161847f8eSopenharmony_ci * 60261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 60361847f8eSopenharmony_ci * @form 60461847f8eSopenharmony_ci * @since 9 60561847f8eSopenharmony_ci */ 60661847f8eSopenharmony_ci/** 60761847f8eSopenharmony_ci * Defines Rect Component. 60861847f8eSopenharmony_ci * 60961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 61061847f8eSopenharmony_ci * @crossplatform 61161847f8eSopenharmony_ci * @form 61261847f8eSopenharmony_ci * @since 10 61361847f8eSopenharmony_ci */ 61461847f8eSopenharmony_ci/** 61561847f8eSopenharmony_ci * Defines Rect Component. 61661847f8eSopenharmony_ci * 61761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 61861847f8eSopenharmony_ci * @crossplatform 61961847f8eSopenharmony_ci * @form 62061847f8eSopenharmony_ci * @atomicservice 62161847f8eSopenharmony_ci * @since 11 62261847f8eSopenharmony_ci */ 62361847f8eSopenharmony_cideclare const Rect: RectInterface; 62461847f8eSopenharmony_ci 62561847f8eSopenharmony_ci/** 62661847f8eSopenharmony_ci * Rect attribute. 62761847f8eSopenharmony_ci * 62861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 62961847f8eSopenharmony_ci * @since 7 63061847f8eSopenharmony_ci * @deprecated since 9 63161847f8eSopenharmony_ci */ 63261847f8eSopenharmony_cideclare const RectInStance: RectAttribute; 63361847f8eSopenharmony_ci 63461847f8eSopenharmony_ci/** 63561847f8eSopenharmony_ci * Rect attribute. 63661847f8eSopenharmony_ci * 63761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 63861847f8eSopenharmony_ci * @form 63961847f8eSopenharmony_ci * @since 9 64061847f8eSopenharmony_ci */ 64161847f8eSopenharmony_ci/** 64261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 64361847f8eSopenharmony_ci * @crossplatform 64461847f8eSopenharmony_ci * @form 64561847f8eSopenharmony_ci * @since 10 64661847f8eSopenharmony_ci */ 64761847f8eSopenharmony_ci/** 64861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 64961847f8eSopenharmony_ci * @crossplatform 65061847f8eSopenharmony_ci * @form 65161847f8eSopenharmony_ci * @atomicservice 65261847f8eSopenharmony_ci * @since 11 65361847f8eSopenharmony_ci */ 65461847f8eSopenharmony_cideclare const RectInstance: RectAttribute; 655