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 * 19 * @interface PolylineInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Provides an interface for drawing polylines. 25 * 26 * @interface PolylineInterface 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Provides an interface for drawing polylines. 33 * 34 * @interface PolylineInterface 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40interface PolylineInterface { 41 /** 42 * Uses new to create Polyline. 43 * @since 7 44 */ 45 /** 46 * Uses new to create Polyline. 47 * @form 48 * @since 9 49 */ 50 /** 51 * Uses new to create Polyline. 52 * @form 53 * @crossplatform 54 * @since 10 55 */ 56 new (value?: { width?: string | number; height?: string | number }): PolylineAttribute; 57 58 /** 59 * Called when using the draw fold. 60 * 61 * @param { object } value 62 * @returns { PolylineAttribute } 63 * @syscap SystemCapability.ArkUI.ArkUI.Full 64 * @since 7 65 */ 66 /** 67 * Called when using the draw fold. 68 * 69 * @param { object } value 70 * @returns { PolylineAttribute } 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @since 9 73 * @form 74 */ 75 /** 76 * Called when using the draw fold. 77 * 78 * @param { object } value 79 * @returns { PolylineAttribute } 80 * @syscap SystemCapability.ArkUI.ArkUI.Full 81 * @crossplatform 82 * @since 10 83 * @form 84 */ 85 (value?: { width?: string | number; height?: string | number }): PolylineAttribute; 86} 87 88/** 89 * @extends CommonShapeMethod 90 * @syscap SystemCapability.ArkUI.ArkUI.Full 91 * @since 7 92 */ 93/** 94 * @extends CommonShapeMethod 95 * @syscap SystemCapability.ArkUI.ArkUI.Full 96 * @since 9 97 * @form 98 */ 99/** 100 * @extends CommonShapeMethod 101 * @syscap SystemCapability.ArkUI.ArkUI.Full 102 * @crossplatform 103 * @since 10 104 * @form 105 */ 106declare class PolylineAttribute extends CommonShapeMethod<PolylineAttribute> { 107 /** 108 * Called when the polyline is set to pass through the coordinate point list. 109 * 110 * @param { Array<any> } value 111 * @returns { PolylineAttribute } 112 * @syscap SystemCapability.ArkUI.ArkUI.Full 113 * @since 7 114 */ 115 /** 116 * Called when the polyline is set to pass through the coordinate point list. 117 * 118 * @param { Array<any> } value 119 * @returns { PolylineAttribute } 120 * @syscap SystemCapability.ArkUI.ArkUI.Full 121 * @since 9 122 * @form 123 */ 124 /** 125 * Called when the polyline is set to pass through the coordinate point list. 126 * 127 * @param { Array<any> } value 128 * @returns { PolylineAttribute } 129 * @syscap SystemCapability.ArkUI.ArkUI.Full 130 * @crossplatform 131 * @since 10 132 * @form 133 */ 134 points(value: Array<any>): PolylineAttribute; 135} 136 137/** 138 * Defines Polyline Component. 139 * 140 * @syscap SystemCapability.ArkUI.ArkUI.Full 141 * @since 7 142 */ 143/** 144 * Defines Polyline Component. 145 * 146 * @syscap SystemCapability.ArkUI.ArkUI.Full 147 * @since 9 148 * @form 149 */ 150/** 151 * Defines Polyline Component. 152 * 153 * @syscap SystemCapability.ArkUI.ArkUI.Full 154 * @crossplatform 155 * @since 10 156 * @form 157 */ 158declare const Polyline: PolylineInterface; 159 160/** 161 * Defines Polyline Component instance. 162 * 163 * @syscap SystemCapability.ArkUI.ArkUI.Full 164 * @since 7 165 */ 166/** 167 * Defines Polyline Component instance. 168 * 169 * @syscap SystemCapability.ArkUI.ArkUI.Full 170 * @since 9 171 * @form 172 */ 173/** 174 * Defines Polyline Component instance. 175 * 176 * @syscap SystemCapability.ArkUI.ArkUI.Full 177 * @crossplatform 178 * @since 10 179 * @form 180 */ 181declare const PolylineInstance: PolylineAttribute; 182