• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
40interface PathInterface {
41  /**
42   * Use new to create Path.
43   *
44   * @param { object } value
45   * @returns { PathAttribute }
46   * @syscap SystemCapability.ArkUI.ArkUI.Full
47   * @since 7
48   */
49  /**
50   * Use new to create Path.
51   *
52   * @param { object } value
53   * @returns { PathAttribute }
54   * @syscap SystemCapability.ArkUI.ArkUI.Full
55   * @since 9
56   * @form
57   */
58  /**
59   * Use new to create Path.
60   *
61   * @param { object } value
62   * @returns { PathAttribute }
63   * @syscap SystemCapability.ArkUI.ArkUI.Full
64   * @crossplatform
65   * @since 10
66   * @form
67   */
68  new (value?: { width?: number | string; height?: number | string; commands?: string }): PathAttribute;
69
70  /**
71   * Called when drawing path.
72   *
73   * @param { object } value
74   * @returns { PathAttribute }
75   * @syscap SystemCapability.ArkUI.ArkUI.Full
76   * @since 7
77   */
78  /**
79   * Called when drawing path.
80   *
81   * @param { object } value
82   * @returns { PathAttribute }
83   * @syscap SystemCapability.ArkUI.ArkUI.Full
84   * @since 9
85   * @form
86   */
87  /**
88   * Called when drawing path.
89   *
90   * @param { object } value
91   * @returns { PathAttribute }
92   * @syscap SystemCapability.ArkUI.ArkUI.Full
93   * @crossplatform
94   * @since 10
95   * @form
96   */
97  (value?: { width?: number | string; height?: number | string; commands?: string }): PathAttribute;
98}
99
100/**
101 * Provides methods for attribute path component.
102 *
103 * @extends CommonShapeMethod
104 * @syscap SystemCapability.ArkUI.ArkUI.Full
105 * @since 7
106 */
107/**
108 * Provides methods for attribute path component.
109 *
110 * @extends CommonShapeMethod
111 * @syscap SystemCapability.ArkUI.ArkUI.Full
112 * @since 9
113 * @form
114 */
115/**
116 * Provides methods for attribute path component.
117 *
118 * @extends CommonShapeMethod
119 * @syscap SystemCapability.ArkUI.ArkUI.Full
120 * @crossplatform
121 * @since 10
122 * @form
123 */
124declare class PathAttribute extends CommonShapeMethod<PathAttribute> {
125  /**
126   * Called when the command string drawn by the path is set.
127   *
128   * @param { string } value
129   * @returns { PathAttribute }
130   * @syscap SystemCapability.ArkUI.ArkUI.Full
131   * @since 7
132   */
133  /**
134   * Called when the command string drawn by the path is set.
135   *
136   * @param { string } value
137   * @returns { PathAttribute }
138   * @syscap SystemCapability.ArkUI.ArkUI.Full
139   * @since 9
140   * @form
141   */
142  /**
143   * Called when the command string drawn by the path is set.
144   *
145   * @param { string } value
146   * @returns { PathAttribute }
147   * @syscap SystemCapability.ArkUI.ArkUI.Full
148   * @crossplatform
149   * @since 10
150   * @form
151   */
152  commands(value: string): PathAttribute;
153}
154
155/**
156 * Defines Path Component.
157 *
158 * @syscap SystemCapability.ArkUI.ArkUI.Full
159 * @since 7
160 */
161/**
162 * Defines Path Component.
163 *
164 * @syscap SystemCapability.ArkUI.ArkUI.Full
165 * @since 9
166 * @form
167 */
168/**
169 * Defines Path Component.
170 *
171 * @syscap SystemCapability.ArkUI.ArkUI.Full
172 * @crossplatform
173 * @since 10
174 * @form
175 */
176declare const Path: PathInterface;
177
178/**
179 * Defines Path Component instance.
180 *
181 * @syscap SystemCapability.ArkUI.ArkUI.Full
182 * @since 7
183 */
184/**
185 * Defines Path Component instance.
186 *
187 * @syscap SystemCapability.ArkUI.ArkUI.Full
188 * @since 9
189 * @form
190 */
191/**
192 * Defines Path Component instance.
193 *
194 * @syscap SystemCapability.ArkUI.ArkUI.Full
195 * @crossplatform
196 * @since 10
197 * @form
198 */
199declare const PathInstance: PathAttribute;
200