devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
132 lines (114 loc) • 3.77 kB
TypeScript
/**
* DevExtreme (viz/bullet.d.ts)
* Version: 24.2.7
* Build date: Mon Apr 28 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
EventInfo,
InitializedEventInfo,
ChangedOptionInfo,
} from '../common/core/events';
import {
FileSavingEventInfo,
ExportInfo,
IncidentInfo,
} from './core/base_widget';
import BaseSparkline, {
BaseSparklineOptions,
} from './sparklines/base_sparkline';
/**
* The type of the disposing event handler's argument.
*/
export type DisposingEvent = EventInfo<dxBullet>;
/**
* The type of the drawn event handler's argument.
*/
export type DrawnEvent = EventInfo<dxBullet>;
/**
* The type of the exported event handler's argument.
*/
export type ExportedEvent = EventInfo<dxBullet>;
/**
* The type of the exporting event handler's argument.
*/
export type ExportingEvent = EventInfo<dxBullet> & ExportInfo;
/**
* The type of the fileSaving event handler's argument.
*/
export type FileSavingEvent = FileSavingEventInfo<dxBullet>;
/**
* The type of the incidentOccurred event handler's argument.
*/
export type IncidentOccurredEvent = EventInfo<dxBullet> & IncidentInfo;
/**
* The type of the initialized event handler's argument.
*/
export type InitializedEvent = InitializedEventInfo<dxBullet>;
/**
* The type of the optionChanged event handler's argument.
*/
export type OptionChangedEvent = EventInfo<dxBullet> & ChangedOptionInfo;
/**
* The type of the tooltipHidden event handler's argument.
*/
export type TooltipHiddenEvent = EventInfo<dxBullet>;
/**
* The type of the tooltipShown event handler's argument.
*/
export type TooltipShownEvent = EventInfo<dxBullet>;
/**
*
* @deprecated
* @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution.
*/
export interface dxBulletOptions extends BaseSparklineOptions<dxBullet> {
/**
* Specifies a color for the bullet bar.
*/
color?: string;
/**
* Specifies an end value for the invisible scale.
*/
endScaleValue?: number | undefined;
/**
* Specifies whether or not to show the target line.
*/
showTarget?: boolean;
/**
* Specifies whether or not to show the line indicating zero on the invisible scale.
*/
showZeroLevel?: boolean;
/**
* Specifies a start value for the invisible scale.
*/
startScaleValue?: number;
/**
* Specifies the value indicated by the target line.
*/
target?: number;
/**
* Specifies a color for both the target and zero level lines.
*/
targetColor?: string;
/**
* Specifies the width of the target line.
*/
targetWidth?: number;
/**
* Specifies the primary value indicated by the bullet bar.
*/
value?: number;
}
/**
* The Bullet UI component is useful when you need to compare a single measure to a target value. The UI component comprises a horizontal bar indicating the measure and a vertical line indicating the target value.
*/
export default class dxBullet extends BaseSparkline<dxBulletOptions> { }
export type Properties = dxBulletOptions;
/**
* @deprecated use Properties instead
* @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution.
*/
export type Options = dxBulletOptions;