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 * 19 * @interface LineInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Line drawing component. 25 * 26 * @interface LineInterface 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Line drawing component. 33 * 34 * @interface LineInterface 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40interface LineInterface { 41 /** 42 * Uses new to create the line. 43 * width: Width of the rectangle where the line resides.. 44 * height: Height of the rectangle where the line resides. 45 * 46 * @param { object } value 47 * @returns { LineAttribute } 48 * @syscap SystemCapability.ArkUI.ArkUI.Full 49 * @since 7 50 */ 51 /** 52 * Uses new to create the line. 53 * width: Width of the rectangle where the line resides.. 54 * height: Height of the rectangle where the line resides. 55 * 56 * @param { object } value 57 * @returns { LineAttribute } 58 * @syscap SystemCapability.ArkUI.ArkUI.Full 59 * @since 9 60 * @form 61 */ 62 /** 63 * Uses new to create the line. 64 * width: Width of the rectangle where the line resides.. 65 * height: Height of the rectangle where the line resides. 66 * 67 * @param { object } value 68 * @returns { LineAttribute } 69 * @syscap SystemCapability.ArkUI.ArkUI.Full 70 * @crossplatform 71 * @since 10 72 * @form 73 */ 74 new (value?: { width?: string | number; height?: string | number }): LineAttribute; 75 76 /** 77 * The return value of the parameter is Line. 78 * width: Width of the rectangle where the line resides.. 79 * height: Height of the rectangle where the line resides. 80 * 81 * @param { object } value 82 * @returns { LineAttribute } 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @since 7 85 */ 86 /** 87 * The return value of the parameter is Line. 88 * width: Width of the rectangle where the line resides.. 89 * height: Height of the rectangle where the line resides. 90 * 91 * @param { object } value 92 * @returns { LineAttribute } 93 * @syscap SystemCapability.ArkUI.ArkUI.Full 94 * @since 9 95 * @form 96 */ 97 /** 98 * The return value of the parameter is Line. 99 * width: Width of the rectangle where the line resides.. 100 * height: Height of the rectangle where the line resides. 101 * 102 * @param { object } value 103 * @returns { LineAttribute } 104 * @syscap SystemCapability.ArkUI.ArkUI.Full 105 * @crossplatform 106 * @since 10 107 * @form 108 */ 109 (value?: { width?: string | number; height?: string | number }): LineAttribute; 110} 111 112/** 113 * inheritance CommonShapeMethod. 114 * 115 * @extends CommonShapeMethod 116 * @syscap SystemCapability.ArkUI.ArkUI.Full 117 * @since 7 118 */ 119/** 120 * inheritance CommonShapeMethod. 121 * 122 * @extends CommonShapeMethod 123 * @syscap SystemCapability.ArkUI.ArkUI.Full 124 * @since 9 125 * @form 126 */ 127/** 128 * inheritance CommonShapeMethod. 129 * 130 * @extends CommonShapeMethod 131 * @syscap SystemCapability.ArkUI.ArkUI.Full 132 * @crossplatform 133 * @since 10 134 * @form 135 */ 136declare class LineAttribute extends CommonShapeMethod<LineAttribute> { 137 /** 138 * Coordinate of the start point of the line (relative coordinate). 139 * 140 * @param { Array<any> } value 141 * @returns { LineAttribute } 142 * @syscap SystemCapability.ArkUI.ArkUI.Full 143 * @since 7 144 */ 145 /** 146 * Coordinate of the start point of the line (relative coordinate). 147 * 148 * @param { Array<any> } value 149 * @returns { LineAttribute } 150 * @syscap SystemCapability.ArkUI.ArkUI.Full 151 * @since 9 152 * @form 153 */ 154 /** 155 * Coordinate of the start point of the line (relative coordinate). 156 * 157 * @param { Array<any> } value 158 * @returns { LineAttribute } 159 * @syscap SystemCapability.ArkUI.ArkUI.Full 160 * @crossplatform 161 * @since 10 162 * @form 163 */ 164 startPoint(value: Array<any>): LineAttribute; 165 166 /** 167 * Line end coordinates (relative coordinates). 168 * 169 * @param { Array<any> } value 170 * @returns { LineAttribute } 171 * @syscap SystemCapability.ArkUI.ArkUI.Full 172 * @since 7 173 */ 174 /** 175 * Line end coordinates (relative coordinates). 176 * 177 * @param { Array<any> } value 178 * @returns { LineAttribute } 179 * @syscap SystemCapability.ArkUI.ArkUI.Full 180 * @since 9 181 * @form 182 */ 183 /** 184 * Line end coordinates (relative coordinates). 185 * 186 * @param { Array<any> } value 187 * @returns { LineAttribute } 188 * @syscap SystemCapability.ArkUI.ArkUI.Full 189 * @crossplatform 190 * @since 10 191 * @form 192 */ 193 endPoint(value: Array<any>): LineAttribute; 194} 195 196/** 197 * Defines Line Component. 198 * 199 * @syscap SystemCapability.ArkUI.ArkUI.Full 200 * @since 7 201 */ 202/** 203 * Defines Line Component. 204 * 205 * @syscap SystemCapability.ArkUI.ArkUI.Full 206 * @since 9 207 * @form 208 */ 209/** 210 * Defines Line Component. 211 * 212 * @syscap SystemCapability.ArkUI.ArkUI.Full 213 * @crossplatform 214 * @since 10 215 * @form 216 */ 217declare const Line: LineInterface; 218 219/** 220 * Defines Line Component instance. 221 * 222 * @syscap SystemCapability.ArkUI.ArkUI.Full 223 * @since 7 224 */ 225/** 226 * Defines Line Component instance. 227 * 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @since 9 230 * @form 231 */ 232/** 233 * Defines Line Component instance. 234 * 235 * @syscap SystemCapability.ArkUI.ArkUI.Full 236 * @crossplatform 237 * @since 10 238 * @form 239 */ 240declare const LineInstance: LineAttribute; 241