/* * 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. * * @interface GaugeInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the Gauge component. * * @interface GaugeInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the Gauge component. * * @interface GaugeInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ interface GaugeInterface { /** * value:Current data value. * min: Current Segment Minimum Value * max: Current Segment Maximum Value * * @param { object } options * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * value:Current data value. * min: Current Segment Minimum Value * max: Current Segment Maximum Value * * @param { object } options * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * value:Current data value. * min: Current Segment Minimum Value * max: Current Segment Maximum Value * * @param { object } options * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ (options: { value: number; min?: number; max?: number }): GaugeAttribute; } /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ declare class GaugeAttribute extends CommonMethod { /** * Sets the value for the current profile. * * @param { number } value * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the value for the current profile. * * @param { number } value * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the value for the current profile. * * @param { number } value * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ value(value: number): GaugeAttribute; /** * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Set the start angle. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ startAngle(angle: number): GaugeAttribute; /** * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the end angle position. Clock 0 is 0 degrees and clockwise is positive. * * @param { number } angle * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ endAngle(angle: number): GaugeAttribute; /** * Set the color of the chart. You can set the solid color and segmented gradient color. * * @param { Array } colors * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Set the color of the chart. You can set the solid color and segmented gradient color. * * @param { Array } colors * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Set the color of the chart. You can set the solid color and segmented gradient color. * @param { Array<[ResourceColor, number]> } colors - section colors of gauge drawing. * @returns { GaugeAttribute } returns the instance of the GaugeAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ colors(colors: Array<[ResourceColor, number]>): GaugeAttribute; /** * Sets the thickness of the ring chart. * * @param { Length } length * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the thickness of the ring chart. * * @param { Length } length * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the thickness of the ring chart. * * @param { Length } length * @returns { GaugeAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ strokeWidth(length: Length): GaugeAttribute; } /** * Defines Gauge Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines Gauge Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines Gauge Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ declare const Gauge: GaugeInterface; /** * Defines Gauge Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines Gauge Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines Gauge Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ declare const GaugeInstance: GaugeAttribute;