bullet.d.ts 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxBullet from 'devextreme/viz/bullet';
  17. import { DxComponent } from '../core/component';
  18. import { DxTemplateHost } from '../core/template-host';
  19. import { NestedOptionHost } from '../core/nested-option';
  20. import { WatcherHelper } from '../core/watcher-helper';
  21. /**
  22. * The Bullet widget is useful when you need to compare a single measure to a target value. The widget comprises a horizontal bar indicating the measure and a vertical line indicating the target value.
  23. */
  24. export declare class DxBulletComponent extends DxComponent implements OnDestroy {
  25. instance: DxBullet;
  26. /**
  27. * Specifies a color for the bullet bar.
  28. */
  29. color: string;
  30. /**
  31. * Specifies whether the widget responds to the user interaction.
  32. */
  33. disabled: boolean;
  34. /**
  35. * Specifies the attributes to be attached to the widget's root element.
  36. */
  37. elementAttr: any;
  38. /**
  39. * Specifies an end value for the invisible scale.
  40. */
  41. endScaleValue: number;
  42. /**
  43. * Generates space around the widget.
  44. */
  45. margin: {
  46. bottom?: number;
  47. left?: number;
  48. right?: number;
  49. top?: number;
  50. };
  51. /**
  52. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  53. */
  54. pathModified: boolean;
  55. /**
  56. * Switches the widget to a right-to-left representation.
  57. */
  58. rtlEnabled: boolean;
  59. /**
  60. * Specifies whether or not to show the target line.
  61. */
  62. showTarget: boolean;
  63. /**
  64. * Specifies whether or not to show the line indicating zero on the invisible scale.
  65. */
  66. showZeroLevel: boolean;
  67. /**
  68. * Specifies the widget's size in pixels.
  69. */
  70. size: {
  71. height?: number;
  72. width?: number;
  73. };
  74. /**
  75. * Specifies a start value for the invisible scale.
  76. */
  77. startScaleValue: number;
  78. /**
  79. * Specifies the value indicated by the target line.
  80. */
  81. target: number;
  82. /**
  83. * Specifies a color for both the target and zero level lines.
  84. */
  85. targetColor: string;
  86. /**
  87. * Specifies the width of the target line.
  88. */
  89. targetWidth: number;
  90. /**
  91. * Sets the name of the theme the widget uses.
  92. */
  93. theme: string;
  94. /**
  95. * Configures the tooltip.
  96. */
  97. tooltip: {
  98. arrowLength?: number;
  99. border?: {
  100. color?: string;
  101. dashStyle?: string;
  102. opacity?: number;
  103. visible?: boolean;
  104. width?: number;
  105. };
  106. color?: string;
  107. container?: Element | JQuery;
  108. cornerRadius?: number;
  109. customizeTooltip?: Function;
  110. enabled?: boolean;
  111. font?: DevExpress.viz.Font;
  112. format?: DevExpress.ui.format | string;
  113. opacity?: number;
  114. paddingLeftRight?: number;
  115. paddingTopBottom?: number;
  116. shadow?: {
  117. blur?: number;
  118. color?: string;
  119. offsetX?: number;
  120. offsetY?: number;
  121. opacity?: number;
  122. };
  123. zIndex?: number;
  124. };
  125. /**
  126. * Specifies the primary value indicated by the bullet bar.
  127. */
  128. value: number;
  129. /**
  130. * A function that is executed before the widget is disposed of.
  131. */
  132. onDisposing: EventEmitter<any>;
  133. /**
  134. * A function that is executed when the widget's rendering has finished.
  135. */
  136. onDrawn: EventEmitter<any>;
  137. /**
  138. * A function that is executed after the widget is exported.
  139. */
  140. onExported: EventEmitter<any>;
  141. /**
  142. * A function that is executed before the widget is exported.
  143. */
  144. onExporting: EventEmitter<any>;
  145. /**
  146. * A function that is executed before a file with exported widget is saved to the user's local storage.
  147. */
  148. onFileSaving: EventEmitter<any>;
  149. /**
  150. * A function that is executed when an error or warning occurs.
  151. */
  152. onIncidentOccurred: EventEmitter<any>;
  153. /**
  154. * A function used in JavaScript frameworks to save the widget instance.
  155. */
  156. onInitialized: EventEmitter<any>;
  157. /**
  158. * A function that is executed after a widget option is changed.
  159. */
  160. onOptionChanged: EventEmitter<any>;
  161. /**
  162. * A function that is executed when a tooltip becomes hidden.
  163. */
  164. onTooltipHidden: EventEmitter<any>;
  165. /**
  166. * A function that is executed when a tooltip appears.
  167. */
  168. onTooltipShown: EventEmitter<any>;
  169. /**
  170. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  171. */
  172. colorChange: EventEmitter<string>;
  173. /**
  174. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  175. */
  176. disabledChange: EventEmitter<boolean>;
  177. /**
  178. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  179. */
  180. elementAttrChange: EventEmitter<any>;
  181. /**
  182. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  183. */
  184. endScaleValueChange: EventEmitter<number>;
  185. /**
  186. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  187. */
  188. marginChange: EventEmitter<{
  189. bottom?: number;
  190. left?: number;
  191. right?: number;
  192. top?: number;
  193. }>;
  194. /**
  195. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  196. */
  197. pathModifiedChange: EventEmitter<boolean>;
  198. /**
  199. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  200. */
  201. rtlEnabledChange: EventEmitter<boolean>;
  202. /**
  203. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  204. */
  205. showTargetChange: EventEmitter<boolean>;
  206. /**
  207. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  208. */
  209. showZeroLevelChange: EventEmitter<boolean>;
  210. /**
  211. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  212. */
  213. sizeChange: EventEmitter<{
  214. height?: number;
  215. width?: number;
  216. }>;
  217. /**
  218. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  219. */
  220. startScaleValueChange: EventEmitter<number>;
  221. /**
  222. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  223. */
  224. targetChange: EventEmitter<number>;
  225. /**
  226. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  227. */
  228. targetColorChange: EventEmitter<string>;
  229. /**
  230. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  231. */
  232. targetWidthChange: EventEmitter<number>;
  233. /**
  234. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  235. */
  236. themeChange: EventEmitter<string>;
  237. /**
  238. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  239. */
  240. tooltipChange: EventEmitter<{
  241. arrowLength?: number;
  242. border?: {
  243. color?: string;
  244. dashStyle?: string;
  245. opacity?: number;
  246. visible?: boolean;
  247. width?: number;
  248. };
  249. color?: string;
  250. container?: Element | JQuery;
  251. cornerRadius?: number;
  252. customizeTooltip?: Function;
  253. enabled?: boolean;
  254. font?: DevExpress.viz.Font;
  255. format?: DevExpress.ui.format | string;
  256. opacity?: number;
  257. paddingLeftRight?: number;
  258. paddingTopBottom?: number;
  259. shadow?: {
  260. blur?: number;
  261. color?: string;
  262. offsetX?: number;
  263. offsetY?: number;
  264. opacity?: number;
  265. };
  266. zIndex?: number;
  267. }>;
  268. /**
  269. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  270. */
  271. valueChange: EventEmitter<number>;
  272. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  273. protected _createInstance(element: any, options: any): DxBullet;
  274. ngOnDestroy(): void;
  275. }
  276. export declare class DxBulletModule {
  277. }