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 * Provides the polygon drawing interface. 23 * 24 * @interface PolygonInterface 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @since 7 27 */ 28/** 29 * Provides the polygon drawing interface. 30 * 31 * @interface PolygonInterface 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @form 34 * @since 9 35 */ 36/** 37 * Provides the polygon drawing interface. 38 * 39 * @interface PolygonInterface 40 * @syscap SystemCapability.ArkUI.ArkUI.Full 41 * @crossplatform 42 * @form 43 * @since 10 44 */ 45/** 46 * Provides the polygon drawing interface. 47 * 48 * @interface PolygonInterface 49 * @syscap SystemCapability.ArkUI.ArkUI.Full 50 * @crossplatform 51 * @form 52 * @atomicservice 53 * @since 11 54 */ 55interface PolygonInterface { 56 /** 57 * Uses new to create Polygon. 58 * 59 * @since 7 60 */ 61 /** 62 * Uses new to create Polygon. 63 * 64 * @syscap SystemCapability.ArkUI.ArkUI.Full 65 * @form 66 * @since 9 67 */ 68 /** 69 * Uses new to create Polygon. 70 * 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @crossplatform 73 * @form 74 * @since 10 75 */ 76 /** 77 * Uses new to create Polygon. 78 * 79 * @syscap SystemCapability.ArkUI.ArkUI.Full 80 * @crossplatform 81 * @form 82 * @atomicservice 83 * @since 11 84 */ 85 new (value?: { width?: string | number; height?: string | number }): PolygonAttribute; 86 87 /** 88 * Called when drawing a polygon. 89 * 90 * @param { object } value 91 * @returns { PolygonAttribute } 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @since 7 94 */ 95 /** 96 * Called when drawing a polygon. 97 * 98 * @param { object } value 99 * @returns { PolygonAttribute } 100 * @syscap SystemCapability.ArkUI.ArkUI.Full 101 * @form 102 * @since 9 103 */ 104 /** 105 * Called when drawing a polygon. 106 * 107 * @param { object } value 108 * @returns { PolygonAttribute } 109 * @syscap SystemCapability.ArkUI.ArkUI.Full 110 * @crossplatform 111 * @form 112 * @since 10 113 */ 114 /** 115 * Called when drawing a polygon. 116 * 117 * @param { object } value 118 * @returns { PolygonAttribute } 119 * @syscap SystemCapability.ArkUI.ArkUI.Full 120 * @crossplatform 121 * @form 122 * @atomicservice 123 * @since 11 124 */ 125 (value?: { width?: string | number; height?: string | number }): PolygonAttribute; 126} 127 128/** 129 * Provides attribute for Polygon. 130 * 131 * @extends CommonShapeMethod<PolygonAttribute> 132 * @syscap SystemCapability.ArkUI.ArkUI.Full 133 * @since 7 134 */ 135/** 136 * Provides attribute for Polygon. 137 * 138 * @extends CommonShapeMethod<PolygonAttribute> 139 * @syscap SystemCapability.ArkUI.ArkUI.Full 140 * @form 141 * @since 9 142 */ 143/** 144 * Provides attribute for Polygon. 145 * 146 * @extends CommonShapeMethod<PolygonAttribute> 147 * @syscap SystemCapability.ArkUI.ArkUI.Full 148 * @crossplatform 149 * @form 150 * @since 10 151 */ 152/** 153 * Provides attribute for Polygon. 154 * 155 * @extends CommonShapeMethod<PolygonAttribute> 156 * @syscap SystemCapability.ArkUI.ArkUI.Full 157 * @crossplatform 158 * @form 159 * @atomicservice 160 * @since 11 161 */ 162declare class PolygonAttribute extends CommonShapeMethod<PolygonAttribute> { 163 /** 164 * Called when the vertex coordinate list of a polygon is set. 165 * 166 * @param { Array<any> } value 167 * @returns { PolygonAttribute } 168 * @syscap SystemCapability.ArkUI.ArkUI.Full 169 * @since 7 170 */ 171 /** 172 * Called when the vertex coordinate list of a polygon is set. 173 * 174 * @param { Array<any> } value 175 * @returns { PolygonAttribute } 176 * @syscap SystemCapability.ArkUI.ArkUI.Full 177 * @form 178 * @since 9 179 */ 180 /** 181 * Called when the vertex coordinate list of a polygon is set. 182 * 183 * @param { Array<any> } value 184 * @returns { PolygonAttribute } 185 * @syscap SystemCapability.ArkUI.ArkUI.Full 186 * @crossplatform 187 * @form 188 * @since 10 189 */ 190 /** 191 * Called when the vertex coordinate list of a polygon is set. 192 * 193 * @param { Array<any> } value 194 * @returns { PolygonAttribute } 195 * @syscap SystemCapability.ArkUI.ArkUI.Full 196 * @crossplatform 197 * @form 198 * @atomicservice 199 * @since 11 200 */ 201 points(value: Array<any>): PolygonAttribute; 202} 203 204/** 205 * Defines Polygon Component. 206 * 207 * @syscap SystemCapability.ArkUI.ArkUI.Full 208 * @since 7 209 */ 210/** 211 * Defines CheckboxGroup Component. 212 * 213 * @syscap SystemCapability.ArkUI.ArkUI.Full 214 * @form 215 * @since 9 216 */ 217/** 218 * Defines CheckboxGroup Component. 219 * 220 * @syscap SystemCapability.ArkUI.ArkUI.Full 221 * @crossplatform 222 * @form 223 * @since 10 224 */ 225/** 226 * Defines CheckboxGroup Component. 227 * 228 * @syscap SystemCapability.ArkUI.ArkUI.Full 229 * @crossplatform 230 * @form 231 * @atomicservice 232 * @since 11 233 */ 234declare const Polygon: PolygonInterface; 235 236/** 237 * Defines Polygon Component instance. 238 * 239 * @syscap SystemCapability.ArkUI.ArkUI.Full 240 * @since 7 241 */ 242/** 243 * Defines Polygon Component instance. 244 * 245 * @syscap SystemCapability.ArkUI.ArkUI.Full 246 * @form 247 * @since 9 248 */ 249/** 250 * Defines Polygon Component instance. 251 * 252 * @syscap SystemCapability.ArkUI.ArkUI.Full 253 * @crossplatform 254 * @form 255 * @since 10 256 */ 257/** 258 * Defines Polygon Component instance. 259 * 260 * @syscap SystemCapability.ArkUI.ArkUI.Full 261 * @crossplatform 262 * @form 263 * @atomicservice 264 * @since 11 265 */ 266declare const PolygonInstance: PolygonAttribute; 267