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