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 * Provides an interface for drawing polylines. 18 * @since 7 19 */ 20/** 21 * Provides an interface for drawing polylines. 22 * @form 23 * @since 9 24 */ 25interface PolylineInterface { 26 /** 27 * Uses new to create Polyline. 28 * @since 7 29 */ 30 /** 31 * Uses new to create Polyline. 32 * @form 33 * @since 9 34 */ 35 new (value?: { width?: string | number; height?: string | number }): PolylineAttribute; 36 37 /** 38 * Called when using the draw fold. 39 * @since 7 40 */ 41 /** 42 * Called when using the draw fold. 43 * @form 44 * @since 9 45 */ 46 (value?: { width?: string | number; height?: string | number }): PolylineAttribute; 47} 48 49/** 50 * @since 7 51 */ 52/** 53 * @form 54 * @since 9 55 */ 56declare class PolylineAttribute extends CommonShapeMethod<PolylineAttribute> { 57 /** 58 * Called when the polyline is set to pass through the coordinate point list. 59 * @since 7 60 */ 61 /** 62 * Called when the polyline is set to pass through the coordinate point list. 63 * @form 64 * @since 9 65 */ 66 points(value: Array<any>): PolylineAttribute; 67} 68 69/** 70 * Defines Polyline Component. 71 * @since 7 72 */ 73/** 74 * Defines Polyline Component. 75 * @form 76 * @since 9 77 */ 78declare const Polyline: PolylineInterface; 79 80/** 81 * Defines Polyline Component instance. 82 * @since 7 83 */ 84/** 85 * Defines Polyline Component instance. 86 * @form 87 * @since 9 88 */ 89declare const PolylineInstance: PolylineAttribute; 90