@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
72 lines (71 loc) • 2.97 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { Input, Component } from '@angular/core';
import { ScaleComponent } from '../base-components';
import { ConfigurationService } from '../services';
import * as i0 from "@angular/core";
import * as i1 from "../services";
/**
* Represents the configuration options for the scale of a RadialGauge
* ([more information and example]({% slug scaleoptions_radialgauge %})).
*
* @example
* ```html
* <kendo-radialgauge>
* <kendo-radialgauge-scale [startAngle]="0" [endAngle]="180">
* </kendo-radialgauge-scale>
* </kendo-radialgauge>
* ```
*
* @remarks
* Supported children components are: {@link RadialLabelsComponent}, {@link RadialRangesComponent}
*/
export class RadialScaleComponent extends ScaleComponent {
configurationService;
/**
* Configures the scale labels.
*/
labels;
/**
* Specifies the distance between the scale ranges and the ticks.
*/
rangeDistance;
/**
* Sets the ranges of the scale.
*/
ranges;
/**
* Specifies the start angle of the Gauge in degrees.
*/
startAngle;
/**
* Specifies the end angle of the Gauge in degrees.
*/
endAngle;
constructor(configurationService) {
super('scale', configurationService);
this.configurationService = configurationService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialScaleComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: RadialScaleComponent, isStandalone: true, selector: "kendo-radialgauge-scale", inputs: { labels: "labels", rangeDistance: "rangeDistance", ranges: "ranges", startAngle: "startAngle", endAngle: "endAngle" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: RadialScaleComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-radialgauge-scale',
template: '',
standalone: true
}]
}], ctorParameters: () => [{ type: i1.ConfigurationService }], propDecorators: { labels: [{
type: Input
}], rangeDistance: [{
type: Input
}], ranges: [{
type: Input
}], startAngle: [{
type: Input
}], endAngle: [{
type: Input
}] } });