• 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 polygon drawing interface.
18 * @since 7
19 */
20/**
21 * Provides the polygon drawing interface.
22 * @form
23 * @since 9
24 */
25interface PolygonInterface{
26  /**
27   * Uses new to create Polygon.
28   * @since 7
29   */
30  /**
31   * Uses new to create Polygon.
32   * @form
33   * @since 9
34   */
35  new (value?: { width?: string | number; height?: string | number }): PolygonAttribute;
36
37  /**
38   * Called when drawing a polygon.
39   * @since 7
40   */
41  /**
42   * Called when drawing a polygon.
43   * @form
44   * @since 9
45   */
46  (value?: { width?: string | number; height?: string | number }): PolygonAttribute;
47}
48
49declare class PolygonAttribute extends CommonShapeMethod<PolygonAttribute> {
50  /**
51   * Called when the vertex coordinate list of a polygon is set.
52   * @since 7
53   */
54  /**
55   * Called when the vertex coordinate list of a polygon is set.
56   * @form
57   * @since 9
58   */
59  points(value: Array<any>): PolygonAttribute;
60}
61
62/**
63 * Defines Polygon Component.
64 * @since 7
65 */
66/**
67 * Defines CheckboxGroup Component.
68 * @form
69 * @since 9
70 */
71declare const Polygon: PolygonInterface;
72
73/**
74 * Defines Polygon Component instance.
75 * @since 7
76 */
77/**
78 * Defines Polygon Component instance.
79 * @form
80 * @since 9
81 */
82declare const PolygonInstance: PolygonAttribute;
83