• 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 * Defines the Gauge component.
18 * @since 8
19 */
20/**
21 * Defines the Gauge component.
22 * @form
23 * @since 9
24 */
25interface GaugeInterface {
26  /**
27   * value:Current data value.
28   * min: Current Segment Minimum Value
29   * max: Current Segment Maximum Value
30   * @since 8
31   */
32  /**
33   * value:Current data value.
34   * min: Current Segment Minimum Value
35   * max: Current Segment Maximum Value
36   * @form
37   * @since 9
38   */
39  (options: { value: number; min?: number; max?: number }): GaugeAttribute;
40}
41
42/**
43 * @since 8
44 */
45/**
46 * @form
47 * @since 9
48 */
49declare class GaugeAttribute extends CommonMethod<GaugeAttribute> {
50  /**
51   * Sets the value for the current profile.
52   * @since 8
53   */
54  /**
55   * Sets the value for the current profile.
56   * @form
57   * @since 9
58   */
59  value(value: number): GaugeAttribute;
60
61  /**
62   * Set the start angle. Clock 0 is 0 degrees and clockwise is positive.
63   * @since 8
64   */
65  /**
66   * Set the start angle. Clock 0 is 0 degrees and clockwise is positive.
67   * @form
68   * @since 9
69   */
70  startAngle(angle: number): GaugeAttribute;
71
72  /**
73   * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive.
74   * @since 8
75   */
76  /**
77   * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive.
78   * @form
79   * @since 9
80   */
81  endAngle(angle: number): GaugeAttribute;
82
83  /**
84   * Set the color of the chart. You can set the solid color and segmented gradient color.
85   * @since 8
86   */
87  /**
88   * Set the color of the chart. You can set the solid color and segmented gradient color.
89   * @form
90   * @since 9
91   */
92  colors(colors: Array<any>): GaugeAttribute;
93
94  /**
95   * Sets the thickness of the ring chart.
96   * @since 8
97   */
98  /**
99   * Sets the thickness of the ring chart.
100   * @form
101   * @since 9
102   */
103  strokeWidth(length: Length): GaugeAttribute;
104}
105
106/**
107 * Defines Gauge Component.
108 * @since 8
109 */
110/**
111 * Defines Gauge Component.
112 * @form
113 * @since 9
114 */
115declare const Gauge: GaugeInterface;
116
117/**
118 * Defines Gauge Component instance.
119 * @since 8
120 */
121/**
122 * Defines Gauge Component instance.
123 * @form
124 * @since 9
125 */
126declare const GaugeInstance: GaugeAttribute;
127