sankey.d.ts 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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 DxSankey from 'devextreme/viz/sankey';
  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 Sankey is a widget that visualizes the flow magnitude between value sets. The values being connected are called nodes; the connections - links. The higher the flow magnitude, the wider the link is.
  24. */
  25. export declare class DxSankeyComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxSankey;
  29. /**
  30. * Specifies adaptive layout options.
  31. */
  32. adaptiveLayout: {
  33. height?: number;
  34. keepLabels?: boolean;
  35. width?: number;
  36. };
  37. /**
  38. * Aligns node columns vertically.
  39. */
  40. alignment: string | Array<string>;
  41. /**
  42. * Binds the widget to data.
  43. */
  44. dataSource: DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>;
  45. /**
  46. * Specifies whether the widget responds to the user interaction.
  47. */
  48. disabled: boolean;
  49. /**
  50. * Specifies the attributes to be attached to the widget's root element.
  51. */
  52. elementAttr: any;
  53. /**
  54. * Configures the exporting and printing features.
  55. */
  56. export: {
  57. backgroundColor?: string;
  58. enabled?: boolean;
  59. fileName?: string;
  60. formats?: Array<string>;
  61. margin?: number;
  62. printingEnabled?: boolean;
  63. proxyUrl?: string;
  64. };
  65. /**
  66. * Specifies whether nodes and links change their style when they are hovered over or pressed.
  67. */
  68. hoverEnabled: boolean;
  69. /**
  70. * Configures sankey nodes' labels.
  71. */
  72. label: {
  73. border?: {
  74. color?: string;
  75. visible?: boolean;
  76. width?: number;
  77. };
  78. customizeText?: Function;
  79. font?: DevExpress.viz.Font;
  80. horizontalOffset?: number;
  81. overlappingBehavior?: string;
  82. shadow?: {
  83. blur?: number;
  84. color?: string;
  85. offsetX?: number;
  86. offsetY?: number;
  87. opacity?: number;
  88. };
  89. useNodeColors?: boolean;
  90. verticalOffset?: number;
  91. visible?: boolean;
  92. };
  93. /**
  94. * Configures sankey links' appearance.
  95. */
  96. link: {
  97. border?: {
  98. color?: string;
  99. visible?: boolean;
  100. width?: number;
  101. };
  102. color?: string;
  103. colorMode?: string;
  104. hoverStyle?: {
  105. border?: {
  106. color?: string;
  107. visible?: boolean;
  108. width?: number;
  109. };
  110. color?: string;
  111. hatching?: {
  112. direction?: string;
  113. opacity?: number;
  114. step?: number;
  115. width?: number;
  116. };
  117. opacity?: number;
  118. };
  119. opacity?: number;
  120. };
  121. /**
  122. * Configures the loading indicator.
  123. */
  124. loadingIndicator: {
  125. backgroundColor?: string;
  126. enabled?: boolean;
  127. font?: DevExpress.viz.Font;
  128. show?: boolean;
  129. text?: string;
  130. };
  131. /**
  132. * Generates space around the widget.
  133. */
  134. margin: {
  135. bottom?: number;
  136. left?: number;
  137. right?: number;
  138. top?: number;
  139. };
  140. /**
  141. * Configures sankey nodes' appearance.
  142. */
  143. node: {
  144. border?: {
  145. color?: string;
  146. visible?: boolean;
  147. width?: number;
  148. };
  149. color?: string;
  150. hoverStyle?: {
  151. border?: {
  152. color?: string;
  153. visible?: boolean;
  154. width?: number;
  155. };
  156. color?: string;
  157. hatching?: {
  158. direction?: string;
  159. opacity?: number;
  160. step?: number;
  161. width?: number;
  162. };
  163. opacity?: number;
  164. };
  165. opacity?: number;
  166. padding?: number;
  167. width?: number;
  168. };
  169. /**
  170. * Sets the palette to be used to colorize sankey nodes.
  171. */
  172. palette: string | Array<string>;
  173. /**
  174. * Specifies how to extend the palette when it contains less colors than the number of sankey nodes.
  175. */
  176. paletteExtensionMode: string;
  177. /**
  178. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  179. */
  180. pathModified: boolean;
  181. /**
  182. * Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates.
  183. */
  184. redrawOnResize: boolean;
  185. /**
  186. * Switches the widget to a right-to-left representation.
  187. */
  188. rtlEnabled: boolean;
  189. /**
  190. * Specifies the widget's size in pixels.
  191. */
  192. size: {
  193. height?: number;
  194. width?: number;
  195. };
  196. /**
  197. * Specifies nodes' sorting order in their columns.
  198. */
  199. sortData: any;
  200. /**
  201. * Specifies which data source field provides links' source nodes.
  202. */
  203. sourceField: string;
  204. /**
  205. * Specifies which data source field provides links' target nodes.
  206. */
  207. targetField: string;
  208. /**
  209. * Sets the name of the theme the widget uses.
  210. */
  211. theme: string;
  212. /**
  213. * Configures the widget's title.
  214. */
  215. title: string | {
  216. font?: DevExpress.viz.Font;
  217. horizontalAlignment?: string;
  218. margin?: number | {
  219. bottom?: number;
  220. left?: number;
  221. right?: number;
  222. top?: number;
  223. };
  224. placeholderSize?: number;
  225. subtitle?: string | {
  226. font?: DevExpress.viz.Font;
  227. offset?: number;
  228. text?: string;
  229. textOverflow?: string;
  230. wordWrap?: string;
  231. };
  232. text?: string;
  233. textOverflow?: string;
  234. verticalAlignment?: string;
  235. wordWrap?: string;
  236. };
  237. /**
  238. * Configures tooltips - small pop-up rectangles that display information about a data-visualizing widget element being pressed or hovered over with the mouse pointer.
  239. */
  240. tooltip: {
  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. customizeLinkTooltip?: Function;
  253. customizeNodeTooltip?: Function;
  254. enabled?: boolean;
  255. font?: DevExpress.viz.Font;
  256. format?: DevExpress.ui.format | string;
  257. opacity?: number;
  258. paddingLeftRight?: number;
  259. paddingTopBottom?: number;
  260. shadow?: {
  261. blur?: number;
  262. color?: string;
  263. offsetX?: number;
  264. offsetY?: number;
  265. opacity?: number;
  266. };
  267. zIndex?: number;
  268. };
  269. /**
  270. * Specifies which data source field provides links' weights.
  271. */
  272. weightField: string;
  273. /**
  274. * A function that is executed before the widget is disposed of.
  275. */
  276. onDisposing: EventEmitter<any>;
  277. /**
  278. * A function that is executed when the widget's rendering has finished.
  279. */
  280. onDrawn: EventEmitter<any>;
  281. /**
  282. * A function that is executed after the widget is exported.
  283. */
  284. onExported: EventEmitter<any>;
  285. /**
  286. * A function that is executed before the widget is exported.
  287. */
  288. onExporting: EventEmitter<any>;
  289. /**
  290. * A function that is executed before a file with exported widget is saved to the user's local storage.
  291. */
  292. onFileSaving: EventEmitter<any>;
  293. /**
  294. * A function that is executed when an error or warning occurs.
  295. */
  296. onIncidentOccurred: EventEmitter<any>;
  297. /**
  298. * A function used in JavaScript frameworks to save the widget instance.
  299. */
  300. onInitialized: EventEmitter<any>;
  301. /**
  302. * A function that is executed when a sankey link is clicked or tapped.
  303. */
  304. onLinkClick: EventEmitter<any>;
  305. /**
  306. * A function that is executed after the pointer enters or leaves a sankey link.
  307. */
  308. onLinkHoverChanged: EventEmitter<any>;
  309. /**
  310. * A function that is executed when a sankey node is clicked or tapped.
  311. */
  312. onNodeClick: EventEmitter<any>;
  313. /**
  314. * A function that is executed after the pointer enters or leaves a sankey node.
  315. */
  316. onNodeHoverChanged: EventEmitter<any>;
  317. /**
  318. * A function that is executed after a widget option is changed.
  319. */
  320. onOptionChanged: EventEmitter<any>;
  321. /**
  322. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  323. */
  324. adaptiveLayoutChange: EventEmitter<{
  325. height?: number;
  326. keepLabels?: boolean;
  327. width?: number;
  328. }>;
  329. /**
  330. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  331. */
  332. alignmentChange: EventEmitter<string | Array<string>>;
  333. /**
  334. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  335. */
  336. dataSourceChange: EventEmitter<DevExpress.data.DataSource | DevExpress.data.DataSourceOptions | string | Array<any>>;
  337. /**
  338. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  339. */
  340. disabledChange: EventEmitter<boolean>;
  341. /**
  342. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  343. */
  344. elementAttrChange: EventEmitter<any>;
  345. /**
  346. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  347. */
  348. exportChange: EventEmitter<{
  349. backgroundColor?: string;
  350. enabled?: boolean;
  351. fileName?: string;
  352. formats?: Array<string>;
  353. margin?: number;
  354. printingEnabled?: boolean;
  355. proxyUrl?: string;
  356. }>;
  357. /**
  358. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  359. */
  360. hoverEnabledChange: EventEmitter<boolean>;
  361. /**
  362. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  363. */
  364. labelChange: EventEmitter<{
  365. border?: {
  366. color?: string;
  367. visible?: boolean;
  368. width?: number;
  369. };
  370. customizeText?: Function;
  371. font?: DevExpress.viz.Font;
  372. horizontalOffset?: number;
  373. overlappingBehavior?: string;
  374. shadow?: {
  375. blur?: number;
  376. color?: string;
  377. offsetX?: number;
  378. offsetY?: number;
  379. opacity?: number;
  380. };
  381. useNodeColors?: boolean;
  382. verticalOffset?: number;
  383. visible?: boolean;
  384. }>;
  385. /**
  386. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  387. */
  388. linkChange: EventEmitter<{
  389. border?: {
  390. color?: string;
  391. visible?: boolean;
  392. width?: number;
  393. };
  394. color?: string;
  395. colorMode?: string;
  396. hoverStyle?: {
  397. border?: {
  398. color?: string;
  399. visible?: boolean;
  400. width?: number;
  401. };
  402. color?: string;
  403. hatching?: {
  404. direction?: string;
  405. opacity?: number;
  406. step?: number;
  407. width?: number;
  408. };
  409. opacity?: number;
  410. };
  411. opacity?: number;
  412. }>;
  413. /**
  414. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  415. */
  416. loadingIndicatorChange: EventEmitter<{
  417. backgroundColor?: string;
  418. enabled?: boolean;
  419. font?: DevExpress.viz.Font;
  420. show?: boolean;
  421. text?: string;
  422. }>;
  423. /**
  424. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  425. */
  426. marginChange: EventEmitter<{
  427. bottom?: number;
  428. left?: number;
  429. right?: number;
  430. top?: number;
  431. }>;
  432. /**
  433. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  434. */
  435. nodeChange: EventEmitter<{
  436. border?: {
  437. color?: string;
  438. visible?: boolean;
  439. width?: number;
  440. };
  441. color?: string;
  442. hoverStyle?: {
  443. border?: {
  444. color?: string;
  445. visible?: boolean;
  446. width?: number;
  447. };
  448. color?: string;
  449. hatching?: {
  450. direction?: string;
  451. opacity?: number;
  452. step?: number;
  453. width?: number;
  454. };
  455. opacity?: number;
  456. };
  457. opacity?: number;
  458. padding?: number;
  459. width?: number;
  460. }>;
  461. /**
  462. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  463. */
  464. paletteChange: EventEmitter<string | Array<string>>;
  465. /**
  466. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  467. */
  468. paletteExtensionModeChange: EventEmitter<string>;
  469. /**
  470. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  471. */
  472. pathModifiedChange: EventEmitter<boolean>;
  473. /**
  474. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  475. */
  476. redrawOnResizeChange: EventEmitter<boolean>;
  477. /**
  478. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  479. */
  480. rtlEnabledChange: EventEmitter<boolean>;
  481. /**
  482. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  483. */
  484. sizeChange: EventEmitter<{
  485. height?: number;
  486. width?: number;
  487. }>;
  488. /**
  489. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  490. */
  491. sortDataChange: EventEmitter<any>;
  492. /**
  493. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  494. */
  495. sourceFieldChange: EventEmitter<string>;
  496. /**
  497. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  498. */
  499. targetFieldChange: EventEmitter<string>;
  500. /**
  501. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  502. */
  503. themeChange: EventEmitter<string>;
  504. /**
  505. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  506. */
  507. titleChange: EventEmitter<string | {
  508. font?: DevExpress.viz.Font;
  509. horizontalAlignment?: string;
  510. margin?: number | {
  511. bottom?: number;
  512. left?: number;
  513. right?: number;
  514. top?: number;
  515. };
  516. placeholderSize?: number;
  517. subtitle?: string | {
  518. font?: DevExpress.viz.Font;
  519. offset?: number;
  520. text?: string;
  521. textOverflow?: string;
  522. wordWrap?: string;
  523. };
  524. text?: string;
  525. textOverflow?: string;
  526. verticalAlignment?: string;
  527. wordWrap?: string;
  528. }>;
  529. /**
  530. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  531. */
  532. tooltipChange: EventEmitter<{
  533. arrowLength?: number;
  534. border?: {
  535. color?: string;
  536. dashStyle?: string;
  537. opacity?: number;
  538. visible?: boolean;
  539. width?: number;
  540. };
  541. color?: string;
  542. container?: Element | JQuery;
  543. cornerRadius?: number;
  544. customizeLinkTooltip?: Function;
  545. customizeNodeTooltip?: Function;
  546. enabled?: boolean;
  547. font?: DevExpress.viz.Font;
  548. format?: DevExpress.ui.format | string;
  549. opacity?: number;
  550. paddingLeftRight?: number;
  551. paddingTopBottom?: number;
  552. shadow?: {
  553. blur?: number;
  554. color?: string;
  555. offsetX?: number;
  556. offsetY?: number;
  557. opacity?: number;
  558. };
  559. zIndex?: number;
  560. }>;
  561. /**
  562. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  563. */
  564. weightFieldChange: EventEmitter<string>;
  565. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  566. protected _createInstance(element: any, options: any): DxSankey;
  567. ngOnDestroy(): void;
  568. ngOnChanges(changes: SimpleChanges): void;
  569. setupChanges(prop: string, changes: SimpleChanges): void;
  570. ngDoCheck(): void;
  571. _setOption(name: string, value: any): void;
  572. }
  573. export declare class DxSankeyModule {
  574. }