bar-gauge.d.ts 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  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, OnChanges, DoCheck, SimpleChanges } from '@angular/core';
  15. import DevExpress from 'devextreme/bundles/dx.all';
  16. import DxBarGauge from 'devextreme/viz/bar_gauge';
  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. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  22. /**
  23. * The BarGauge widget contains several circular bars that each indicates a single value.
  24. */
  25. export declare class DxBarGaugeComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxBarGauge;
  29. /**
  30. * Specifies animation options.
  31. */
  32. animation: {
  33. duration?: number;
  34. easing?: string;
  35. enabled?: boolean;
  36. };
  37. /**
  38. * Specifies a color for the remaining segment of the bar's track.
  39. */
  40. backgroundColor: string;
  41. /**
  42. * Specifies a distance between bars in pixels.
  43. */
  44. barSpacing: number;
  45. /**
  46. * Specifies a base value for bars.
  47. */
  48. baseValue: number;
  49. /**
  50. * Specifies whether the widget responds to the user interaction.
  51. */
  52. disabled: boolean;
  53. /**
  54. * Specifies the attributes to be attached to the widget's root element.
  55. */
  56. elementAttr: any;
  57. /**
  58. * Specifies an end value for the gauge's invisible scale.
  59. */
  60. endValue: number;
  61. /**
  62. * Configures the exporting and printing features.
  63. */
  64. export: {
  65. backgroundColor?: string;
  66. enabled?: boolean;
  67. fileName?: string;
  68. formats?: Array<string>;
  69. margin?: number;
  70. printingEnabled?: boolean;
  71. proxyUrl?: string;
  72. };
  73. /**
  74. * Defines the shape of the gauge's arc.
  75. */
  76. geometry: {
  77. endAngle?: number;
  78. startAngle?: number;
  79. };
  80. /**
  81. * Specifies the options of the labels that accompany gauge bars.
  82. */
  83. label: {
  84. connectorColor?: string;
  85. connectorWidth?: number;
  86. customizeText?: Function;
  87. font?: DevExpress.viz.Font;
  88. format?: DevExpress.ui.format | string;
  89. indent?: number;
  90. visible?: boolean;
  91. };
  92. /**
  93. * Configures the legend.
  94. */
  95. legend: {
  96. backgroundColor?: string;
  97. border?: {
  98. color?: string;
  99. cornerRadius?: number;
  100. dashStyle?: string;
  101. opacity?: number;
  102. visible?: boolean;
  103. width?: number;
  104. };
  105. columnCount?: number;
  106. columnItemSpacing?: number;
  107. customizeHint?: Function;
  108. customizeItems?: Function;
  109. customizeText?: Function;
  110. font?: DevExpress.viz.Font;
  111. horizontalAlignment?: string;
  112. itemsAlignment?: string;
  113. itemTextFormat?: DevExpress.ui.format | string;
  114. itemTextPosition?: string;
  115. margin?: number | {
  116. bottom?: number;
  117. left?: number;
  118. right?: number;
  119. top?: number;
  120. };
  121. markerSize?: number;
  122. orientation?: string;
  123. paddingLeftRight?: number;
  124. paddingTopBottom?: number;
  125. rowCount?: number;
  126. rowItemSpacing?: number;
  127. title?: string | {
  128. font?: DevExpress.viz.Font;
  129. horizontalAlignment?: string;
  130. margin?: {
  131. bottom?: number;
  132. left?: number;
  133. right?: number;
  134. top?: number;
  135. };
  136. placeholderSize?: number;
  137. subtitle?: string | {
  138. font?: DevExpress.viz.Font;
  139. offset?: number;
  140. text?: string;
  141. };
  142. text?: string;
  143. verticalAlignment?: string;
  144. };
  145. verticalAlignment?: string;
  146. visible?: boolean;
  147. };
  148. /**
  149. * Configures the loading indicator.
  150. */
  151. loadingIndicator: {
  152. backgroundColor?: string;
  153. font?: DevExpress.viz.Font;
  154. show?: boolean;
  155. text?: string;
  156. };
  157. /**
  158. * Generates space around the widget.
  159. */
  160. margin: {
  161. bottom?: number;
  162. left?: number;
  163. right?: number;
  164. top?: number;
  165. };
  166. /**
  167. * Sets the palette to be used for colorizing bars in the gauge.
  168. */
  169. palette: string | Array<string>;
  170. /**
  171. * Specifies what to do with colors in the palette when their number is less than the number of bars in the gauge.
  172. */
  173. paletteExtensionMode: string;
  174. /**
  175. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  176. */
  177. pathModified: boolean;
  178. /**
  179. * Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates.
  180. */
  181. redrawOnResize: boolean;
  182. /**
  183. * Defines the radius of the bar that is closest to the center relatively to the radius of the topmost bar.
  184. */
  185. relativeInnerRadius: number;
  186. /**
  187. * Specifies how the widget should behave when bar labels overlap: hide certain labels or leave them overlapped.
  188. */
  189. resolveLabelOverlapping: string;
  190. /**
  191. * Switches the widget to a right-to-left representation.
  192. */
  193. rtlEnabled: boolean;
  194. /**
  195. * Specifies the widget's size in pixels.
  196. */
  197. size: {
  198. height?: number;
  199. width?: number;
  200. };
  201. /**
  202. * Specifies a start value for the gauge's invisible scale.
  203. */
  204. startValue: number;
  205. /**
  206. * Sets the name of the theme the widget uses.
  207. */
  208. theme: string;
  209. /**
  210. * Configures the widget's title.
  211. */
  212. title: string | {
  213. font?: DevExpress.viz.Font;
  214. horizontalAlignment?: string;
  215. margin?: number | {
  216. bottom?: number;
  217. left?: number;
  218. right?: number;
  219. top?: number;
  220. };
  221. placeholderSize?: number;
  222. subtitle?: string | {
  223. font?: DevExpress.viz.Font;
  224. offset?: number;
  225. text?: string;
  226. textOverflow?: string;
  227. wordWrap?: string;
  228. };
  229. text?: string;
  230. textOverflow?: string;
  231. verticalAlignment?: string;
  232. wordWrap?: string;
  233. };
  234. /**
  235. * Configures tooltips.
  236. */
  237. tooltip: {
  238. arrowLength?: number;
  239. border?: {
  240. color?: string;
  241. dashStyle?: string;
  242. opacity?: number;
  243. visible?: boolean;
  244. width?: number;
  245. };
  246. color?: string;
  247. container?: Element | JQuery;
  248. cornerRadius?: number;
  249. customizeTooltip?: Function;
  250. enabled?: boolean;
  251. font?: DevExpress.viz.Font;
  252. format?: DevExpress.ui.format | string;
  253. opacity?: number;
  254. paddingLeftRight?: number;
  255. paddingTopBottom?: number;
  256. shadow?: {
  257. blur?: number;
  258. color?: string;
  259. offsetX?: number;
  260. offsetY?: number;
  261. opacity?: number;
  262. };
  263. zIndex?: number;
  264. };
  265. /**
  266. * Specifies the array of values to be indicated on a bar gauge.
  267. */
  268. values: Array<number>;
  269. /**
  270. * A function that is executed before the widget is disposed of.
  271. */
  272. onDisposing: EventEmitter<any>;
  273. /**
  274. * A function that is executed when the widget's rendering has finished.
  275. */
  276. onDrawn: EventEmitter<any>;
  277. /**
  278. * A function that is executed after the widget is exported.
  279. */
  280. onExported: EventEmitter<any>;
  281. /**
  282. * A function that is executed before the widget is exported.
  283. */
  284. onExporting: EventEmitter<any>;
  285. /**
  286. * A function that is executed before a file with exported widget is saved to the user's local storage.
  287. */
  288. onFileSaving: EventEmitter<any>;
  289. /**
  290. * A function that is executed when an error or warning occurs.
  291. */
  292. onIncidentOccurred: EventEmitter<any>;
  293. /**
  294. * A function used in JavaScript frameworks to save the widget instance.
  295. */
  296. onInitialized: EventEmitter<any>;
  297. /**
  298. * A function that is executed after a widget option is changed.
  299. */
  300. onOptionChanged: EventEmitter<any>;
  301. /**
  302. * A function that is executed when a tooltip becomes hidden.
  303. */
  304. onTooltipHidden: EventEmitter<any>;
  305. /**
  306. * A function that is executed when a tooltip appears.
  307. */
  308. onTooltipShown: EventEmitter<any>;
  309. /**
  310. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  311. */
  312. animationChange: EventEmitter<{
  313. duration?: number;
  314. easing?: string;
  315. enabled?: boolean;
  316. }>;
  317. /**
  318. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  319. */
  320. backgroundColorChange: EventEmitter<string>;
  321. /**
  322. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  323. */
  324. barSpacingChange: EventEmitter<number>;
  325. /**
  326. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  327. */
  328. baseValueChange: EventEmitter<number>;
  329. /**
  330. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  331. */
  332. disabledChange: EventEmitter<boolean>;
  333. /**
  334. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  335. */
  336. elementAttrChange: EventEmitter<any>;
  337. /**
  338. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  339. */
  340. endValueChange: EventEmitter<number>;
  341. /**
  342. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  343. */
  344. exportChange: EventEmitter<{
  345. backgroundColor?: string;
  346. enabled?: boolean;
  347. fileName?: string;
  348. formats?: Array<string>;
  349. margin?: number;
  350. printingEnabled?: boolean;
  351. proxyUrl?: string;
  352. }>;
  353. /**
  354. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  355. */
  356. geometryChange: EventEmitter<{
  357. endAngle?: number;
  358. startAngle?: number;
  359. }>;
  360. /**
  361. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  362. */
  363. labelChange: EventEmitter<{
  364. connectorColor?: string;
  365. connectorWidth?: number;
  366. customizeText?: Function;
  367. font?: DevExpress.viz.Font;
  368. format?: DevExpress.ui.format | string;
  369. indent?: number;
  370. visible?: boolean;
  371. }>;
  372. /**
  373. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  374. */
  375. legendChange: EventEmitter<{
  376. backgroundColor?: string;
  377. border?: {
  378. color?: string;
  379. cornerRadius?: number;
  380. dashStyle?: string;
  381. opacity?: number;
  382. visible?: boolean;
  383. width?: number;
  384. };
  385. columnCount?: number;
  386. columnItemSpacing?: number;
  387. customizeHint?: Function;
  388. customizeItems?: Function;
  389. customizeText?: Function;
  390. font?: DevExpress.viz.Font;
  391. horizontalAlignment?: string;
  392. itemsAlignment?: string;
  393. itemTextFormat?: DevExpress.ui.format | string;
  394. itemTextPosition?: string;
  395. margin?: number | {
  396. bottom?: number;
  397. left?: number;
  398. right?: number;
  399. top?: number;
  400. };
  401. markerSize?: number;
  402. orientation?: string;
  403. paddingLeftRight?: number;
  404. paddingTopBottom?: number;
  405. rowCount?: number;
  406. rowItemSpacing?: number;
  407. title?: string | {
  408. font?: DevExpress.viz.Font;
  409. horizontalAlignment?: string;
  410. margin?: {
  411. bottom?: number;
  412. left?: number;
  413. right?: number;
  414. top?: number;
  415. };
  416. placeholderSize?: number;
  417. subtitle?: string | {
  418. font?: DevExpress.viz.Font;
  419. offset?: number;
  420. text?: string;
  421. };
  422. text?: string;
  423. verticalAlignment?: string;
  424. };
  425. verticalAlignment?: string;
  426. visible?: boolean;
  427. }>;
  428. /**
  429. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  430. */
  431. loadingIndicatorChange: EventEmitter<{
  432. backgroundColor?: string;
  433. font?: DevExpress.viz.Font;
  434. show?: boolean;
  435. text?: string;
  436. }>;
  437. /**
  438. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  439. */
  440. marginChange: EventEmitter<{
  441. bottom?: number;
  442. left?: number;
  443. right?: number;
  444. top?: number;
  445. }>;
  446. /**
  447. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  448. */
  449. paletteChange: EventEmitter<string | Array<string>>;
  450. /**
  451. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  452. */
  453. paletteExtensionModeChange: EventEmitter<string>;
  454. /**
  455. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  456. */
  457. pathModifiedChange: EventEmitter<boolean>;
  458. /**
  459. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  460. */
  461. redrawOnResizeChange: EventEmitter<boolean>;
  462. /**
  463. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  464. */
  465. relativeInnerRadiusChange: EventEmitter<number>;
  466. /**
  467. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  468. */
  469. resolveLabelOverlappingChange: EventEmitter<string>;
  470. /**
  471. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  472. */
  473. rtlEnabledChange: EventEmitter<boolean>;
  474. /**
  475. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  476. */
  477. sizeChange: EventEmitter<{
  478. height?: number;
  479. width?: number;
  480. }>;
  481. /**
  482. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  483. */
  484. startValueChange: EventEmitter<number>;
  485. /**
  486. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  487. */
  488. themeChange: EventEmitter<string>;
  489. /**
  490. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  491. */
  492. titleChange: EventEmitter<string | {
  493. font?: DevExpress.viz.Font;
  494. horizontalAlignment?: string;
  495. margin?: number | {
  496. bottom?: number;
  497. left?: number;
  498. right?: number;
  499. top?: number;
  500. };
  501. placeholderSize?: number;
  502. subtitle?: string | {
  503. font?: DevExpress.viz.Font;
  504. offset?: number;
  505. text?: string;
  506. textOverflow?: string;
  507. wordWrap?: string;
  508. };
  509. text?: string;
  510. textOverflow?: string;
  511. verticalAlignment?: string;
  512. wordWrap?: string;
  513. }>;
  514. /**
  515. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  516. */
  517. tooltipChange: EventEmitter<{
  518. arrowLength?: number;
  519. border?: {
  520. color?: string;
  521. dashStyle?: string;
  522. opacity?: number;
  523. visible?: boolean;
  524. width?: number;
  525. };
  526. color?: string;
  527. container?: Element | JQuery;
  528. cornerRadius?: number;
  529. customizeTooltip?: Function;
  530. enabled?: boolean;
  531. font?: DevExpress.viz.Font;
  532. format?: DevExpress.ui.format | string;
  533. opacity?: number;
  534. paddingLeftRight?: number;
  535. paddingTopBottom?: number;
  536. shadow?: {
  537. blur?: number;
  538. color?: string;
  539. offsetX?: number;
  540. offsetY?: number;
  541. opacity?: number;
  542. };
  543. zIndex?: number;
  544. }>;
  545. /**
  546. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  547. */
  548. valuesChange: EventEmitter<Array<number>>;
  549. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  550. protected _createInstance(element: any, options: any): DxBarGauge;
  551. ngOnDestroy(): void;
  552. ngOnChanges(changes: SimpleChanges): void;
  553. setupChanges(prop: string, changes: SimpleChanges): void;
  554. ngDoCheck(): void;
  555. _setOption(name: string, value: any): void;
  556. }
  557. export declare class DxBarGaugeModule {
  558. }