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 * Line drawing component. 18 * @since 7 19 */ 20/** 21 * Line drawing component. 22 * @form 23 * @since 9 24 */ 25interface LineInterface { 26 /** 27 * Uses new to create the line. 28 * width: Width of the rectangle where the line resides.. 29 * height: Height of the rectangle where the line resides. 30 * @since 7 31 */ 32 /** 33 * Uses new to create the line. 34 * width: Width of the rectangle where the line resides.. 35 * height: Height of the rectangle where the line resides. 36 * @form 37 * @since 9 38 */ 39 new (value?: { width?: string | number; height?: string | number }): LineAttribute; 40 41 /** 42 * The return value of the parameter is Line. 43 * width: Width of the rectangle where the line resides.. 44 * height: Height of the rectangle where the line resides. 45 * @since 7 46 */ 47 /** 48 * The return value of the parameter is Line. 49 * width: Width of the rectangle where the line resides.. 50 * height: Height of the rectangle where the line resides. 51 * @form 52 * @since 9 53 */ 54 (value?: { width?: string | number; height?: string | number }): LineAttribute; 55} 56 57/** 58 * inheritance CommonShapeMethod. 59 * @since 7 60 */ 61/** 62 * inheritance CommonShapeMethod. 63 * @form 64 * @since 9 65 */ 66declare class LineAttribute extends CommonShapeMethod<LineAttribute> { 67 /** 68 * Coordinate of the start point of the line (relative coordinate). 69 * @since 7 70 */ 71 /** 72 * Coordinate of the start point of the line (relative coordinate). 73 * @form 74 * @since 9 75 */ 76 startPoint(value: Array<any>): LineAttribute; 77 78 /** 79 * Line end coordinates (relative coordinates). 80 * @since 7 81 */ 82 /** 83 * Line end coordinates (relative coordinates). 84 * @form 85 * @since 9 86 */ 87 endPoint(value: Array<any>): LineAttribute; 88} 89 90/** 91 * Defines Line Component. 92 * @since 7 93 */ 94/** 95 * Defines Line Component. 96 * @form 97 * @since 9 98 */ 99declare const Line: LineInterface; 100 101/** 102 * Defines Line Component instance. 103 * @since 7 104 */ 105/** 106 * Defines Line Component instance. 107 * @form 108 * @since 9 109 */ 110declare const LineInstance: LineAttribute; 111