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 * Defines the Gauge component. 18 * @since 8 19 */ 20interface GaugeInterface { 21 /** 22 * value:Current data value. 23 * min: Current Segment Minimum Value 24 * max: Current Segment Maximum Value 25 * @since 8 26 */ 27 (options: { value: number; min?: number; max?: number }): GaugeAttribute; 28} 29 30/** 31 * @since 8 32 */ 33declare class GaugeAttribute extends CommonMethod<GaugeAttribute> { 34 /** 35 * Sets the value for the current profile. 36 * @since 8 37 */ 38 value(value: number): GaugeAttribute; 39 40 /** 41 * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. 42 * @since 8 43 */ 44 startAngle(angle: number): GaugeAttribute; 45 46 /** 47 * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. 48 * @since 8 49 */ 50 endAngle(angle: number): GaugeAttribute; 51 52 /** 53 * Set the color of the chart. You can set the solid color and segmented gradient color. 54 * @since 8 55 */ 56 colors(colors: Array<any>): GaugeAttribute; 57 58 /** 59 * Sets the thickness of the ring chart. 60 * @since 8 61 */ 62 strokeWidth(length: Length): GaugeAttribute; 63} 64 65declare const Gauge: GaugeInterface; 66declare const GaugeInstance: GaugeAttribute; 67