@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
70 lines (69 loc) • 2.99 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 LinearGauge
* ([see example]({% slug scaleoptions_lineargauge %})).
*
* @example
* ```html
* <kendo-lineargauge>
* <kendo-lineargauge-scale [mirror]="true" [vertical]="false">
* </kendo-lineargauge-scale>
* </kendo-lineargauge>
* ```
*
* @remarks
* Supported children components are: {@link LinearLabelsComponent}, {@link LinearRangesComponent}.
*/
export class LinearScaleComponent extends ScaleComponent {
configurationService;
/**
* Configures the appearance of the scale line.
*/
line;
/**
* Configures the ranges that are displayed on the scale.
*/
ranges;
/**
* Mirrors the scale labels and ticks. When you set this option to `true`, the labels and ticks appear on the opposite side of the scale.
*
* @default false
*/
mirror;
/**
* Sets the orientation of the scale. When you set this option to `false`, the scale displays horizontally.
*
* @default true
*/
vertical;
constructor(configurationService) {
super('scale', configurationService);
this.configurationService = configurationService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearScaleComponent, deps: [{ token: i1.ConfigurationService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LinearScaleComponent, isStandalone: true, selector: "kendo-lineargauge-scale", inputs: { line: "line", ranges: "ranges", mirror: "mirror", vertical: "vertical" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearScaleComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-lineargauge-scale',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }]; }, propDecorators: { line: [{
type: Input
}], ranges: [{
type: Input
}], mirror: [{
type: Input
}], vertical: [{
type: Input
}] } });