@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
85 lines (84 loc) • 3.24 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 the ArcGauge
* ([see example]({% slug scaleoptions_arcgauge %})).
*
* @example
* ```ts
* import { Component } from '@angular/core';
*
* @Component({
* selector: 'my-app',
* template: `
* <kendo-arcgauge [value]="value">
* <kendo-arcgauge-scale
* [startAngle]="-90"
* [endAngle]="90"
* [rangeDistance]="10">
* </kendo-arcgauge-scale>
* </kendo-arcgauge>
* `
* })
* export class AppComponent {
* public value: number = 30;
* }
* ```
*
* @remarks
* Supported children components are: {@link ArcLabelsComponent}
*/
export class ArcScaleComponent extends ScaleComponent {
configurationService;
/**
* Sets the scale labels configuration.
*/
labels;
/**
* Sets the distance between the scale ranges in pixels.
*/
rangeDistance;
/**
* Sets the line cap style for the scale ranges.
*/
rangeLineCap;
/**
* Sets the start angle of the Gauge in degrees.
*/
startAngle;
/**
* Sets 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: ArcScaleComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: ArcScaleComponent, isStandalone: true, selector: "kendo-arcgauge-scale", inputs: { labels: "labels", rangeDistance: "rangeDistance", rangeLineCap: "rangeLineCap", startAngle: "startAngle", endAngle: "endAngle" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ArcScaleComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-arcgauge-scale',
template: '',
standalone: true
}]
}], ctorParameters: () => [{ type: i1.ConfigurationService }], propDecorators: { labels: [{
type: Input
}], rangeDistance: [{
type: Input
}], rangeLineCap: [{
type: Input
}], startAngle: [{
type: Input
}], endAngle: [{
type: Input
}] } });