• 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/**
18 * DataPanelType enum
19 * @since 8
20 */
21/**
22 * DataPanelType enum
23 * @form
24 * @since 9
25 */
26declare enum DataPanelType {
27  /**
28   * Line Type
29   * @since 8
30   */
31  /**
32   * Line Type
33   * @form
34   * @since 9
35   */
36  Line,
37
38  /**
39   * Line Rainbow
40   * @since 8
41   */
42  /**
43   * Line Rainbow
44   * @form
45   * @since 9
46   */
47  Circle,
48}
49
50/**
51 * Defines the options of DataPanel.
52 * @since 7
53 */
54/**
55 * Defines the options of DataPanel.
56 * @form
57 * @since 9
58 */
59declare interface DataPanelOptions {
60  /**
61   * Current data value. the max length is 9.
62   * @since 7
63   */
64  /**
65   * Current data value. the max length is 9.
66   * @form
67   * @since 9
68   */
69  values: number[];
70
71  /**
72   * Maximum value of the current data.
73   * @since 7
74   */
75  /**
76   * Maximum value of the current data.
77   * @form
78   * @since 9
79   */
80  max?: number;
81
82  /**
83   * DataPanel Type
84   * @since 8
85   */
86  /**
87   * DataPanel Type
88   * @form
89   * @since 9
90   */
91  type?: DataPanelType;
92}
93
94/**
95 * Defines the DataPanel component.
96 * @since 7
97 */
98/**
99 * Defines the DataPanel component.
100 * @form
101 * @since 9
102 */
103interface DataPanelInterface {
104  /**
105   * Return a DataPanel.
106   * @since 7
107   */
108  /**
109   * Return a DataPanel.
110   * @form
111   * @since 9
112   */
113  (options: DataPanelOptions): DataPanelAttribute;
114}
115
116/**
117 * Defines the DataPanel attribute functions.
118 * @since 7
119 */
120/**
121 * Defines the DataPanel attribute functions.
122 * @form
123 * @since 9
124 */
125declare class DataPanelAttribute extends CommonMethod<DataPanelAttribute> {
126  /**
127   * Disable the special effect of the data ratio chart.
128   * @since 7
129   */
130  /**
131   * Disable the special effect of the data ratio chart.
132   * @form
133   * @since 9
134   */
135  closeEffect(value: boolean): DataPanelAttribute;
136}
137
138/**
139 * Defines DataPanel Component.
140 * @since 7
141 */
142/**
143 * Defines DataPanel Component.
144 * @form
145 * @since 9
146 */
147declare const DataPanel: DataPanelInterface
148
149/**
150 * Defines DataPanel Component instance.
151 * @since 7
152 */
153/**
154 * Defines DataPanel Component instance.
155 * @form
156 * @since 9
157 */
158declare const DataPanelInstance: DataPanelAttribute;
159