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 * @since 7 19 */ 20/** 21 * Provides the path drawing interface. 22 * @form 23 * @since 9 24 */ 25interface PathInterface { 26 /** 27 * Use new to create Path. 28 * @since 7 29 */ 30 /** 31 * Use new to create Path. 32 * @form 33 * @since 9 34 */ 35 new (value?: { width?: number | string; height?: number | string; commands?: string }): PathAttribute; 36 37 /** 38 * Called when drawing path. 39 * @since 7 40 */ 41 /** 42 * Called when drawing path. 43 * @form 44 * @since 9 45 */ 46 (value?: { width?: number | string; height?: number | string; commands?: string }): PathAttribute; 47} 48 49/** 50 * @since 7 51 */ 52/** 53 * @form 54 * @since 9 55 */ 56declare class PathAttribute extends CommonShapeMethod<PathAttribute> { 57 /** 58 * Called when the command string drawn by the path is set. 59 * @since 7 60 */ 61 /** 62 * Called when the command string drawn by the path is set. 63 * @form 64 * @since 9 65 */ 66 commands(value: string): PathAttribute; 67} 68 69/** 70 * Defines Path Component. 71 * @since 7 72 */ 73/** 74 * Defines Path Component. 75 * @form 76 * @since 9 77 */ 78declare const Path: PathInterface; 79 80/** 81 * Defines Path Component instance. 82 * @since 7 83 */ 84/** 85 * Defines Path Component instance. 86 * @form 87 * @since 9 88 */ 89declare const PathInstance: PathAttribute; 90