circular-gauge.d.ts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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 DxCircularGauge from 'devextreme/viz/circular_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 CircularGauge is a widget that indicates values on a circular numeric scale.
  24. */
  25. export declare class DxCircularGaugeComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxCircularGauge;
  29. /**
  30. * Specifies animation options.
  31. */
  32. animation: {
  33. duration?: number;
  34. easing?: string;
  35. enabled?: boolean;
  36. };
  37. /**
  38. * Specifies the color of the parent page element.
  39. */
  40. containerBackgroundColor: string;
  41. /**
  42. * Specifies whether the widget responds to the user interaction.
  43. */
  44. disabled: boolean;
  45. /**
  46. * Specifies the attributes to be attached to the widget's root element.
  47. */
  48. elementAttr: any;
  49. /**
  50. * Configures the exporting and printing features.
  51. */
  52. export: {
  53. backgroundColor?: string;
  54. enabled?: boolean;
  55. fileName?: string;
  56. formats?: Array<string>;
  57. margin?: number;
  58. printingEnabled?: boolean;
  59. proxyUrl?: string;
  60. };
  61. /**
  62. * Specifies the options required to set the geometry of the CircularGauge widget.
  63. */
  64. geometry: {
  65. endAngle?: number;
  66. startAngle?: number;
  67. };
  68. /**
  69. * Configures the loading indicator.
  70. */
  71. loadingIndicator: {
  72. backgroundColor?: string;
  73. font?: DevExpress.viz.Font;
  74. show?: boolean;
  75. text?: string;
  76. };
  77. /**
  78. * Generates space around the widget.
  79. */
  80. margin: {
  81. bottom?: number;
  82. left?: number;
  83. right?: number;
  84. top?: number;
  85. };
  86. /**
  87. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  88. */
  89. pathModified: boolean;
  90. /**
  91. * Specifies gauge range container options.
  92. */
  93. rangeContainer: {
  94. backgroundColor?: string;
  95. offset?: number;
  96. orientation?: string;
  97. palette?: string | Array<string>;
  98. paletteExtensionMode?: string;
  99. ranges?: Array<any | {
  100. color?: string;
  101. endValue?: number;
  102. startValue?: number;
  103. }>;
  104. width?: number;
  105. };
  106. /**
  107. * Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates.
  108. */
  109. redrawOnResize: boolean;
  110. /**
  111. * Switches the widget to a right-to-left representation.
  112. */
  113. rtlEnabled: boolean;
  114. /**
  115. * Specifies a gauge's scale options.
  116. */
  117. scale: {
  118. allowDecimals?: boolean;
  119. customMinorTicks?: Array<number>;
  120. customTicks?: Array<number>;
  121. endValue?: number;
  122. label?: {
  123. customizeText?: Function;
  124. font?: DevExpress.viz.Font;
  125. format?: DevExpress.ui.format | string;
  126. hideFirstOrLast?: string;
  127. indentFromTick?: number;
  128. overlappingBehavior?: string;
  129. useRangeColors?: boolean;
  130. visible?: boolean;
  131. };
  132. minorTick?: {
  133. color?: string;
  134. length?: number;
  135. opacity?: number;
  136. visible?: boolean;
  137. width?: number;
  138. };
  139. minorTickInterval?: number;
  140. orientation?: string;
  141. scaleDivisionFactor?: number;
  142. startValue?: number;
  143. tick?: {
  144. color?: string;
  145. length?: number;
  146. opacity?: number;
  147. visible?: boolean;
  148. width?: number;
  149. };
  150. tickInterval?: number;
  151. };
  152. /**
  153. * Specifies the widget's size in pixels.
  154. */
  155. size: {
  156. height?: number;
  157. width?: number;
  158. };
  159. /**
  160. * Specifies the appearance options of subvalue indicators.
  161. */
  162. subvalueIndicator: any;
  163. /**
  164. * Specifies a set of subvalues to be designated by the subvalue indicators.
  165. */
  166. subvalues: Array<number>;
  167. /**
  168. * Sets the name of the theme the widget uses.
  169. */
  170. theme: string;
  171. /**
  172. * Configures the widget's title.
  173. */
  174. title: string | {
  175. font?: DevExpress.viz.Font;
  176. horizontalAlignment?: string;
  177. margin?: number | {
  178. bottom?: number;
  179. left?: number;
  180. right?: number;
  181. top?: number;
  182. };
  183. placeholderSize?: number;
  184. subtitle?: string | {
  185. font?: DevExpress.viz.Font;
  186. offset?: number;
  187. text?: string;
  188. textOverflow?: string;
  189. wordWrap?: string;
  190. };
  191. text?: string;
  192. textOverflow?: string;
  193. verticalAlignment?: string;
  194. wordWrap?: string;
  195. };
  196. /**
  197. * Configures tooltips.
  198. */
  199. tooltip: {
  200. arrowLength?: number;
  201. border?: {
  202. color?: string;
  203. dashStyle?: string;
  204. opacity?: number;
  205. visible?: boolean;
  206. width?: number;
  207. };
  208. color?: string;
  209. container?: Element | JQuery;
  210. cornerRadius?: number;
  211. customizeTooltip?: Function;
  212. enabled?: boolean;
  213. font?: DevExpress.viz.Font;
  214. format?: DevExpress.ui.format | string;
  215. opacity?: number;
  216. paddingLeftRight?: number;
  217. paddingTopBottom?: number;
  218. shadow?: {
  219. blur?: number;
  220. color?: string;
  221. offsetX?: number;
  222. offsetY?: number;
  223. opacity?: number;
  224. };
  225. zIndex?: number;
  226. };
  227. /**
  228. * Specifies the main value on a gauge.
  229. */
  230. value: number;
  231. /**
  232. * Specifies the appearance options of the value indicator.
  233. */
  234. valueIndicator: any;
  235. /**
  236. * A function that is executed before the widget is disposed of.
  237. */
  238. onDisposing: EventEmitter<any>;
  239. /**
  240. * A function that is executed when the widget's rendering has finished.
  241. */
  242. onDrawn: EventEmitter<any>;
  243. /**
  244. * A function that is executed after the widget is exported.
  245. */
  246. onExported: EventEmitter<any>;
  247. /**
  248. * A function that is executed before the widget is exported.
  249. */
  250. onExporting: EventEmitter<any>;
  251. /**
  252. * A function that is executed before a file with exported widget is saved to the user's local storage.
  253. */
  254. onFileSaving: EventEmitter<any>;
  255. /**
  256. * A function that is executed when an error or warning occurs.
  257. */
  258. onIncidentOccurred: EventEmitter<any>;
  259. /**
  260. * A function used in JavaScript frameworks to save the widget instance.
  261. */
  262. onInitialized: EventEmitter<any>;
  263. /**
  264. * A function that is executed after a widget option is changed.
  265. */
  266. onOptionChanged: EventEmitter<any>;
  267. /**
  268. * A function that is executed when a tooltip becomes hidden.
  269. */
  270. onTooltipHidden: EventEmitter<any>;
  271. /**
  272. * A function that is executed when a tooltip appears.
  273. */
  274. onTooltipShown: EventEmitter<any>;
  275. /**
  276. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  277. */
  278. animationChange: EventEmitter<{
  279. duration?: number;
  280. easing?: string;
  281. enabled?: boolean;
  282. }>;
  283. /**
  284. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  285. */
  286. containerBackgroundColorChange: EventEmitter<string>;
  287. /**
  288. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  289. */
  290. disabledChange: EventEmitter<boolean>;
  291. /**
  292. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  293. */
  294. elementAttrChange: EventEmitter<any>;
  295. /**
  296. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  297. */
  298. exportChange: EventEmitter<{
  299. backgroundColor?: string;
  300. enabled?: boolean;
  301. fileName?: string;
  302. formats?: Array<string>;
  303. margin?: number;
  304. printingEnabled?: boolean;
  305. proxyUrl?: string;
  306. }>;
  307. /**
  308. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  309. */
  310. geometryChange: EventEmitter<{
  311. endAngle?: number;
  312. startAngle?: number;
  313. }>;
  314. /**
  315. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  316. */
  317. loadingIndicatorChange: EventEmitter<{
  318. backgroundColor?: string;
  319. font?: DevExpress.viz.Font;
  320. show?: boolean;
  321. text?: string;
  322. }>;
  323. /**
  324. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  325. */
  326. marginChange: EventEmitter<{
  327. bottom?: number;
  328. left?: number;
  329. right?: number;
  330. top?: number;
  331. }>;
  332. /**
  333. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  334. */
  335. pathModifiedChange: EventEmitter<boolean>;
  336. /**
  337. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  338. */
  339. rangeContainerChange: EventEmitter<{
  340. backgroundColor?: string;
  341. offset?: number;
  342. orientation?: string;
  343. palette?: string | Array<string>;
  344. paletteExtensionMode?: string;
  345. ranges?: Array<any | {
  346. color?: string;
  347. endValue?: number;
  348. startValue?: number;
  349. }>;
  350. width?: number;
  351. }>;
  352. /**
  353. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  354. */
  355. redrawOnResizeChange: EventEmitter<boolean>;
  356. /**
  357. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  358. */
  359. rtlEnabledChange: EventEmitter<boolean>;
  360. /**
  361. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  362. */
  363. scaleChange: EventEmitter<{
  364. allowDecimals?: boolean;
  365. customMinorTicks?: Array<number>;
  366. customTicks?: Array<number>;
  367. endValue?: number;
  368. label?: {
  369. customizeText?: Function;
  370. font?: DevExpress.viz.Font;
  371. format?: DevExpress.ui.format | string;
  372. hideFirstOrLast?: string;
  373. indentFromTick?: number;
  374. overlappingBehavior?: string;
  375. useRangeColors?: boolean;
  376. visible?: boolean;
  377. };
  378. minorTick?: {
  379. color?: string;
  380. length?: number;
  381. opacity?: number;
  382. visible?: boolean;
  383. width?: number;
  384. };
  385. minorTickInterval?: number;
  386. orientation?: string;
  387. scaleDivisionFactor?: number;
  388. startValue?: number;
  389. tick?: {
  390. color?: string;
  391. length?: number;
  392. opacity?: number;
  393. visible?: boolean;
  394. width?: number;
  395. };
  396. tickInterval?: number;
  397. }>;
  398. /**
  399. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  400. */
  401. sizeChange: EventEmitter<{
  402. height?: number;
  403. width?: number;
  404. }>;
  405. /**
  406. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  407. */
  408. subvalueIndicatorChange: EventEmitter<any>;
  409. /**
  410. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  411. */
  412. subvaluesChange: EventEmitter<Array<number>>;
  413. /**
  414. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  415. */
  416. themeChange: EventEmitter<string>;
  417. /**
  418. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  419. */
  420. titleChange: EventEmitter<string | {
  421. font?: DevExpress.viz.Font;
  422. horizontalAlignment?: string;
  423. margin?: number | {
  424. bottom?: number;
  425. left?: number;
  426. right?: number;
  427. top?: number;
  428. };
  429. placeholderSize?: number;
  430. subtitle?: string | {
  431. font?: DevExpress.viz.Font;
  432. offset?: number;
  433. text?: string;
  434. textOverflow?: string;
  435. wordWrap?: string;
  436. };
  437. text?: string;
  438. textOverflow?: string;
  439. verticalAlignment?: string;
  440. wordWrap?: string;
  441. }>;
  442. /**
  443. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  444. */
  445. tooltipChange: EventEmitter<{
  446. arrowLength?: number;
  447. border?: {
  448. color?: string;
  449. dashStyle?: string;
  450. opacity?: number;
  451. visible?: boolean;
  452. width?: number;
  453. };
  454. color?: string;
  455. container?: Element | JQuery;
  456. cornerRadius?: number;
  457. customizeTooltip?: Function;
  458. enabled?: boolean;
  459. font?: DevExpress.viz.Font;
  460. format?: DevExpress.ui.format | string;
  461. opacity?: number;
  462. paddingLeftRight?: number;
  463. paddingTopBottom?: number;
  464. shadow?: {
  465. blur?: number;
  466. color?: string;
  467. offsetX?: number;
  468. offsetY?: number;
  469. opacity?: number;
  470. };
  471. zIndex?: number;
  472. }>;
  473. /**
  474. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  475. */
  476. valueChange: EventEmitter<number>;
  477. /**
  478. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  479. */
  480. valueIndicatorChange: EventEmitter<any>;
  481. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  482. protected _createInstance(element: any, options: any): DxCircularGauge;
  483. ngOnDestroy(): void;
  484. ngOnChanges(changes: SimpleChanges): void;
  485. setupChanges(prop: string, changes: SimpleChanges): void;
  486. ngDoCheck(): void;
  487. _setOption(name: string, value: any): void;
  488. }
  489. export declare class DxCircularGaugeModule {
  490. }