@progress/kendo-angular-gauges
Version:
Kendo UI Angular Gauges
81 lines (80 loc) • 3.44 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 { CollectionChangesService, ConfigurationService } from '../services';
import { CollectionItemComponent } from '../base-components';
import * as i0 from "@angular/core";
import * as i1 from "../services";
/**
* Represents the configuration options for a pointer item of a LinearGauge.
*
* @example
* ```html
* <kendo-lineargauge>
* <kendo-lineargauge-pointers>
* <kendo-lineargauge-pointer [value]="35" color="#ff4500" shape="barIndicator">
* </kendo-lineargauge-pointer>
* </kendo-lineargauge-pointers>
* </kendo-lineargauge>
* ```
*/
export class LinearPointerComponent extends CollectionItemComponent {
/**
* Configures the border settings of the pointer.
*/
border;
/**
* Specifies the color of the pointer.
*/
color;
/**
* Sets the margin of the pointer. You can set this option to a number or an object with specific margin values.
*/
margin;
/**
* Controls the transparency of the pointer. The value ranges from 0 (transparent) to 1 (opaque).
*/
opacity;
/**
* Defines the shape of the pointer.
*/
shape;
/**
* Sets the size of the pointer in pixels.
*/
size;
/**
* Specifies the value that the pointer displays on the scale.
*/
value;
constructor(configurationService, collectionChangesService) {
super(configurationService, collectionChangesService);
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearPointerComponent, deps: [{ token: i1.ConfigurationService }, { token: i1.CollectionChangesService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LinearPointerComponent, isStandalone: true, selector: "kendo-lineargauge-pointer", inputs: { border: "border", color: "color", margin: "margin", opacity: "opacity", shape: "shape", size: "size", value: "value" }, providers: [ConfigurationService], usesInheritance: true, ngImport: i0, template: '', isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LinearPointerComponent, decorators: [{
type: Component,
args: [{
providers: [ConfigurationService],
selector: 'kendo-lineargauge-pointer',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i1.CollectionChangesService }]; }, propDecorators: { border: [{
type: Input
}], color: [{
type: Input
}], margin: [{
type: Input
}], opacity: [{
type: Input
}], shape: [{
type: Input
}], size: [{
type: Input
}], value: [{
type: Input
}] } });