• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 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 * Line drawing component.
18 * @since 7
19 */
20interface LineInterface {
21  /**
22   * Uses new to create the line.
23   * width: Width of the rectangle where the line resides..
24   * height: Height of the rectangle where the line resides.
25   * @since 7
26   */
27  new (value?: { width?: string | number; height?: string | number }): LineAttribute;
28
29  /**
30   * The return value of the parameter is Line.
31   * width: Width of the rectangle where the line resides..
32   * height: Height of the rectangle where the line resides.
33   * @since 7
34   */
35  (value?: { width?: string | number; height?: string | number }): LineAttribute;
36}
37
38/**
39 * inheritance CommonShapeMethod.
40 * @since 7
41 */
42declare class LineAttribute extends CommonShapeMethod<LineAttribute> {
43  /**
44   * Coordinate of the start point of the line (relative coordinate).
45   * @since 7
46   */
47  startPoint(value: Array<any>): LineAttribute;
48
49  /**
50   * Line end coordinates (relative coordinates).
51   * @since 7
52   */
53  endPoint(value: Array<any>): LineAttribute;
54}
55
56declare const Line: LineInterface;
57declare const LineInstance: LineAttribute;
58