/* * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Defines the Gauge component. * @since 8 */ /** * Defines the Gauge component. * @form * @since 9 */ interface GaugeInterface { /** * value:Current data value. * min: Current Segment Minimum Value * max: Current Segment Maximum Value * @since 8 */ /** * value:Current data value. * min: Current Segment Minimum Value * max: Current Segment Maximum Value * @form * @since 9 */ (options: { value: number; min?: number; max?: number }): GaugeAttribute; } /** * @since 8 */ /** * @form * @since 9 */ declare class GaugeAttribute extends CommonMethod { /** * Sets the value for the current profile. * @since 8 */ /** * Sets the value for the current profile. * @form * @since 9 */ value(value: number): GaugeAttribute; /** * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. * @since 8 */ /** * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. * @form * @since 9 */ startAngle(angle: number): GaugeAttribute; /** * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. * @since 8 */ /** * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. * @form * @since 9 */ endAngle(angle: number): GaugeAttribute; /** * Set the color of the chart. You can set the solid color and segmented gradient color. * @since 8 */ /** * Set the color of the chart. You can set the solid color and segmented gradient color. * @form * @since 9 */ colors(colors: Array): GaugeAttribute; /** * Sets the thickness of the ring chart. * @since 8 */ /** * Sets the thickness of the ring chart. * @form * @since 9 */ strokeWidth(length: Length): GaugeAttribute; } /** * Defines Gauge Component. * @since 8 */ /** * Defines Gauge Component. * @form * @since 9 */ declare const Gauge: GaugeInterface; /** * Defines Gauge Component instance. * @since 8 */ /** * Defines Gauge Component instance. * @form * @since 9 */ declare const GaugeInstance: GaugeAttribute;