1/* 2 * Copyright (c) 2021 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 * @since 7 19 */ 20declare interface CircleOptions { 21 /** 22 * Defines the width property. 23 * @since 7 24 */ 25 width?: string | number; 26 27 /** 28 * Defines the height property. 29 * @since 7 30 */ 31 height?: string | number; 32} 33 34/** 35 * Defines circle component. 36 * @since 7 37 */ 38interface CircleInterface { 39 /** 40 * use new function to set the value. 41 * @since 7 42 */ 43 new (value?: CircleOptions): CircleAttribute; 44 45 /** 46 * Set the value.. 47 * @since 7 48 */ 49 (value?: CircleOptions): CircleAttribute; 50} 51 52/** 53 * Circle drawing component attribute functions. 54 * @since 7 55 */ 56declare class CircleAttribute extends CommonShapeMethod<CircleAttribute> {} 57 58declare const Circle: CircleInterface; 59declare const CircleInstance: CircleAttribute; 60