tree-map.d.ts 18 KB

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