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