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