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 * @file 18 * @kit ArkUI 19 */ 20 21/** 22 * Line drawing component. 23 * 24 * @interface LineInterface 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @since 7 27 */ 28/** 29 * Line drawing component. 30 * 31 * @interface LineInterface 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @form 34 * @since 9 35 */ 36/** 37 * Line drawing component. 38 * 39 * @interface LineInterface 40 * @syscap SystemCapability.ArkUI.ArkUI.Full 41 * @crossplatform 42 * @form 43 * @since 10 44 */ 45/** 46 * Line drawing component. 47 * 48 * @interface LineInterface 49 * @syscap SystemCapability.ArkUI.ArkUI.Full 50 * @crossplatform 51 * @form 52 * @atomicservice 53 * @since 11 54 */ 55interface LineInterface { 56 /** 57 * Uses new to create the line. 58 * width: Width of the rectangle where the line resides.. 59 * height: Height of the rectangle where the line resides. 60 * 61 * @param { object } value 62 * @returns { LineAttribute } 63 * @syscap SystemCapability.ArkUI.ArkUI.Full 64 * @since 7 65 */ 66 /** 67 * Uses new to create the line. 68 * width: Width of the rectangle where the line resides.. 69 * height: Height of the rectangle where the line resides. 70 * 71 * @param { object } value 72 * @returns { LineAttribute } 73 * @syscap SystemCapability.ArkUI.ArkUI.Full 74 * @form 75 * @since 9 76 */ 77 /** 78 * Uses new to create the line. 79 * width: Width of the rectangle where the line resides.. 80 * height: Height of the rectangle where the line resides. 81 * 82 * @param { object } value 83 * @returns { LineAttribute } 84 * @syscap SystemCapability.ArkUI.ArkUI.Full 85 * @crossplatform 86 * @form 87 * @since 10 88 */ 89 /** 90 * Uses new to create the line. 91 * width: Width of the rectangle where the line resides.. 92 * height: Height of the rectangle where the line resides. 93 * 94 * @param { object } value 95 * @returns { LineAttribute } 96 * @syscap SystemCapability.ArkUI.ArkUI.Full 97 * @crossplatform 98 * @form 99 * @atomicservice 100 * @since 11 101 */ 102 new (value?: { width?: string | number; height?: string | number }): LineAttribute; 103 104 /** 105 * The return value of the parameter is Line. 106 * width: Width of the rectangle where the line resides.. 107 * height: Height of the rectangle where the line resides. 108 * 109 * @param { object } value 110 * @returns { LineAttribute } 111 * @syscap SystemCapability.ArkUI.ArkUI.Full 112 * @since 7 113 */ 114 /** 115 * The return value of the parameter is Line. 116 * width: Width of the rectangle where the line resides.. 117 * height: Height of the rectangle where the line resides. 118 * 119 * @param { object } value 120 * @returns { LineAttribute } 121 * @syscap SystemCapability.ArkUI.ArkUI.Full 122 * @form 123 * @since 9 124 */ 125 /** 126 * The return value of the parameter is Line. 127 * width: Width of the rectangle where the line resides.. 128 * height: Height of the rectangle where the line resides. 129 * 130 * @param { object } value 131 * @returns { LineAttribute } 132 * @syscap SystemCapability.ArkUI.ArkUI.Full 133 * @crossplatform 134 * @form 135 * @since 10 136 */ 137 /** 138 * The return value of the parameter is Line. 139 * width: Width of the rectangle where the line resides.. 140 * height: Height of the rectangle where the line resides. 141 * 142 * @param { object } value 143 * @returns { LineAttribute } 144 * @syscap SystemCapability.ArkUI.ArkUI.Full 145 * @crossplatform 146 * @form 147 * @atomicservice 148 * @since 11 149 */ 150 (value?: { width?: string | number; height?: string | number }): LineAttribute; 151} 152 153/** 154 * inheritance CommonShapeMethod. 155 * 156 * @extends CommonShapeMethod<LineAttribute> 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @since 7 159 */ 160/** 161 * inheritance CommonShapeMethod. 162 * 163 * @extends CommonShapeMethod<LineAttribute> 164 * @syscap SystemCapability.ArkUI.ArkUI.Full 165 * @form 166 * @since 9 167 */ 168/** 169 * inheritance CommonShapeMethod. 170 * 171 * @extends CommonShapeMethod<LineAttribute> 172 * @syscap SystemCapability.ArkUI.ArkUI.Full 173 * @crossplatform 174 * @form 175 * @since 10 176 */ 177/** 178 * inheritance CommonShapeMethod. 179 * 180 * @extends CommonShapeMethod<LineAttribute> 181 * @syscap SystemCapability.ArkUI.ArkUI.Full 182 * @crossplatform 183 * @form 184 * @atomicservice 185 * @since 11 186 */ 187declare class LineAttribute extends CommonShapeMethod<LineAttribute> { 188 /** 189 * Coordinate of the start point of the line (relative coordinate). 190 * 191 * @param { Array<any> } value 192 * @returns { LineAttribute } 193 * @syscap SystemCapability.ArkUI.ArkUI.Full 194 * @since 7 195 */ 196 /** 197 * Coordinate of the start point of the line (relative coordinate). 198 * 199 * @param { Array<any> } value 200 * @returns { LineAttribute } 201 * @syscap SystemCapability.ArkUI.ArkUI.Full 202 * @form 203 * @since 9 204 */ 205 /** 206 * Coordinate of the start point of the line (relative coordinate). 207 * 208 * @param { Array<any> } value 209 * @returns { LineAttribute } 210 * @syscap SystemCapability.ArkUI.ArkUI.Full 211 * @crossplatform 212 * @form 213 * @since 10 214 */ 215 /** 216 * Coordinate of the start point of the line (relative coordinate). 217 * 218 * @param { Array<any> } value 219 * @returns { LineAttribute } 220 * @syscap SystemCapability.ArkUI.ArkUI.Full 221 * @crossplatform 222 * @form 223 * @atomicservice 224 * @since 11 225 */ 226 startPoint(value: Array<any>): LineAttribute; 227 228 /** 229 * Line end coordinates (relative coordinates). 230 * 231 * @param { Array<any> } value 232 * @returns { LineAttribute } 233 * @syscap SystemCapability.ArkUI.ArkUI.Full 234 * @since 7 235 */ 236 /** 237 * Line end coordinates (relative coordinates). 238 * 239 * @param { Array<any> } value 240 * @returns { LineAttribute } 241 * @syscap SystemCapability.ArkUI.ArkUI.Full 242 * @form 243 * @since 9 244 */ 245 /** 246 * Line end coordinates (relative coordinates). 247 * 248 * @param { Array<any> } value 249 * @returns { LineAttribute } 250 * @syscap SystemCapability.ArkUI.ArkUI.Full 251 * @crossplatform 252 * @form 253 * @since 10 254 */ 255 /** 256 * Line end coordinates (relative coordinates). 257 * 258 * @param { Array<any> } value 259 * @returns { LineAttribute } 260 * @syscap SystemCapability.ArkUI.ArkUI.Full 261 * @crossplatform 262 * @form 263 * @atomicservice 264 * @since 11 265 */ 266 endPoint(value: Array<any>): LineAttribute; 267} 268 269/** 270 * Defines Line Component. 271 * 272 * @syscap SystemCapability.ArkUI.ArkUI.Full 273 * @since 7 274 */ 275/** 276 * Defines Line Component. 277 * 278 * @syscap SystemCapability.ArkUI.ArkUI.Full 279 * @form 280 * @since 9 281 */ 282/** 283 * Defines Line Component. 284 * 285 * @syscap SystemCapability.ArkUI.ArkUI.Full 286 * @crossplatform 287 * @form 288 * @since 10 289 */ 290/** 291 * Defines Line Component. 292 * 293 * @syscap SystemCapability.ArkUI.ArkUI.Full 294 * @crossplatform 295 * @form 296 * @atomicservice 297 * @since 11 298 */ 299declare const Line: LineInterface; 300 301/** 302 * Defines Line Component instance. 303 * 304 * @syscap SystemCapability.ArkUI.ArkUI.Full 305 * @since 7 306 */ 307/** 308 * Defines Line Component instance. 309 * 310 * @syscap SystemCapability.ArkUI.ArkUI.Full 311 * @form 312 * @since 9 313 */ 314/** 315 * Defines Line Component instance. 316 * 317 * @syscap SystemCapability.ArkUI.ArkUI.Full 318 * @crossplatform 319 * @form 320 * @since 10 321 */ 322/** 323 * Defines Line Component instance. 324 * 325 * @syscap SystemCapability.ArkUI.ArkUI.Full 326 * @crossplatform 327 * @form 328 * @atomicservice 329 * @since 11 330 */ 331declare const LineInstance: LineAttribute; 332