pie-chart.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. /*!
  13. * devextreme-angular
  14. * Version: 19.1.16
  15. * Build date: Tue Oct 18 2022
  16. *
  17. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  18. *
  19. * This software may be modified and distributed under the terms
  20. * of the MIT license. See the LICENSE file in the root of the project for details.
  21. *
  22. * https://github.com/DevExpress/devextreme-angular
  23. */
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var platform_browser_1 = require("@angular/platform-browser");
  26. var platform_browser_2 = require("@angular/platform-browser");
  27. var core_1 = require("@angular/core");
  28. var pie_chart_1 = require("devextreme/viz/pie_chart");
  29. var component_1 = require("../core/component");
  30. var template_host_1 = require("../core/template-host");
  31. var integration_1 = require("../core/integration");
  32. var template_1 = require("../core/template");
  33. var nested_option_1 = require("../core/nested-option");
  34. var watcher_helper_1 = require("../core/watcher-helper");
  35. var iterable_differ_helper_1 = require("../core/iterable-differ-helper");
  36. var adaptive_layout_1 = require("./nested/adaptive-layout");
  37. var animation_1 = require("./nested/animation");
  38. var common_series_settings_1 = require("./nested/common-series-settings");
  39. var border_1 = require("./nested/border");
  40. var hover_style_1 = require("./nested/hover-style");
  41. var hatching_1 = require("./nested/hatching");
  42. var label_1 = require("./nested/label");
  43. var argument_format_1 = require("./nested/argument-format");
  44. var connector_1 = require("./nested/connector");
  45. var font_1 = require("./nested/font");
  46. var format_1 = require("./nested/format");
  47. var selection_style_1 = require("./nested/selection-style");
  48. var small_values_grouping_1 = require("./nested/small-values-grouping");
  49. var export_1 = require("./nested/export");
  50. var legend_1 = require("./nested/legend");
  51. var margin_1 = require("./nested/margin");
  52. var title_1 = require("./nested/title");
  53. var subtitle_1 = require("./nested/subtitle");
  54. var loading_indicator_1 = require("./nested/loading-indicator");
  55. var series_dxi_1 = require("./nested/series-dxi");
  56. var series_template_1 = require("./nested/series-template");
  57. var size_1 = require("./nested/size");
  58. var tooltip_1 = require("./nested/tooltip");
  59. var shadow_1 = require("./nested/shadow");
  60. var series_dxi_2 = require("./nested/series-dxi");
  61. /**
  62. * The PieChart is a widget that visualizes data as a circle divided into sectors that each represents a portion of the whole.
  63. */
  64. var DxPieChartComponent = (function (_super) {
  65. __extends(DxPieChartComponent, _super);
  66. function DxPieChartComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  67. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  68. _this._watcherHelper = _watcherHelper;
  69. _this._idh = _idh;
  70. _this._createEventEmitters([
  71. { subscribe: 'disposing', emit: 'onDisposing' },
  72. { subscribe: 'done', emit: 'onDone' },
  73. { subscribe: 'drawn', emit: 'onDrawn' },
  74. { subscribe: 'exported', emit: 'onExported' },
  75. { subscribe: 'exporting', emit: 'onExporting' },
  76. { subscribe: 'fileSaving', emit: 'onFileSaving' },
  77. { subscribe: 'incidentOccurred', emit: 'onIncidentOccurred' },
  78. { subscribe: 'initialized', emit: 'onInitialized' },
  79. { subscribe: 'legendClick', emit: 'onLegendClick' },
  80. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  81. { subscribe: 'pointClick', emit: 'onPointClick' },
  82. { subscribe: 'pointHoverChanged', emit: 'onPointHoverChanged' },
  83. { subscribe: 'pointSelectionChanged', emit: 'onPointSelectionChanged' },
  84. { subscribe: 'tooltipHidden', emit: 'onTooltipHidden' },
  85. { subscribe: 'tooltipShown', emit: 'onTooltipShown' },
  86. { emit: 'adaptiveLayoutChange' },
  87. { emit: 'animationChange' },
  88. { emit: 'commonSeriesSettingsChange' },
  89. { emit: 'customizeLabelChange' },
  90. { emit: 'customizePointChange' },
  91. { emit: 'dataSourceChange' },
  92. { emit: 'diameterChange' },
  93. { emit: 'disabledChange' },
  94. { emit: 'elementAttrChange' },
  95. { emit: 'exportChange' },
  96. { emit: 'innerRadiusChange' },
  97. { emit: 'legendChange' },
  98. { emit: 'loadingIndicatorChange' },
  99. { emit: 'marginChange' },
  100. { emit: 'minDiameterChange' },
  101. { emit: 'paletteChange' },
  102. { emit: 'paletteExtensionModeChange' },
  103. { emit: 'pathModifiedChange' },
  104. { emit: 'pointSelectionModeChange' },
  105. { emit: 'redrawOnResizeChange' },
  106. { emit: 'resolveLabelOverlappingChange' },
  107. { emit: 'rtlEnabledChange' },
  108. { emit: 'segmentsDirectionChange' },
  109. { emit: 'seriesChange' },
  110. { emit: 'seriesTemplateChange' },
  111. { emit: 'sizeChange' },
  112. { emit: 'sizeGroupChange' },
  113. { emit: 'startAngleChange' },
  114. { emit: 'themeChange' },
  115. { emit: 'titleChange' },
  116. { emit: 'tooltipChange' },
  117. { emit: 'typeChange' }
  118. ]);
  119. _this._idh.setHost(_this);
  120. optionHost.setHost(_this);
  121. return _this;
  122. }
  123. Object.defineProperty(DxPieChartComponent.prototype, "adaptiveLayout", {
  124. get: /**
  125. * Specifies adaptive layout options.
  126. */
  127. function () {
  128. return this._getOption('adaptiveLayout');
  129. },
  130. set: function (value) {
  131. this._setOption('adaptiveLayout', value);
  132. },
  133. enumerable: true,
  134. configurable: true
  135. });
  136. Object.defineProperty(DxPieChartComponent.prototype, "animation", {
  137. get: /**
  138. * Specifies animation options.
  139. */
  140. function () {
  141. return this._getOption('animation');
  142. },
  143. set: function (value) {
  144. this._setOption('animation', value);
  145. },
  146. enumerable: true,
  147. configurable: true
  148. });
  149. Object.defineProperty(DxPieChartComponent.prototype, "commonSeriesSettings", {
  150. get: /**
  151. * An object defining the configuration options that are common for all series of the PieChart widget.
  152. */
  153. function () {
  154. return this._getOption('commonSeriesSettings');
  155. },
  156. set: function (value) {
  157. this._setOption('commonSeriesSettings', value);
  158. },
  159. enumerable: true,
  160. configurable: true
  161. });
  162. Object.defineProperty(DxPieChartComponent.prototype, "customizeLabel", {
  163. get: /**
  164. * Customizes the appearance of an individual point label.
  165. */
  166. function () {
  167. return this._getOption('customizeLabel');
  168. },
  169. set: function (value) {
  170. this._setOption('customizeLabel', value);
  171. },
  172. enumerable: true,
  173. configurable: true
  174. });
  175. Object.defineProperty(DxPieChartComponent.prototype, "customizePoint", {
  176. get: /**
  177. * Customizes the appearance of an individual series point.
  178. */
  179. function () {
  180. return this._getOption('customizePoint');
  181. },
  182. set: function (value) {
  183. this._setOption('customizePoint', value);
  184. },
  185. enumerable: true,
  186. configurable: true
  187. });
  188. Object.defineProperty(DxPieChartComponent.prototype, "dataSource", {
  189. get: /**
  190. * Binds the widget to data.
  191. */
  192. function () {
  193. return this._getOption('dataSource');
  194. },
  195. set: function (value) {
  196. this._setOption('dataSource', value);
  197. },
  198. enumerable: true,
  199. configurable: true
  200. });
  201. Object.defineProperty(DxPieChartComponent.prototype, "diameter", {
  202. get: /**
  203. * Specifies the diameter of the pie.
  204. */
  205. function () {
  206. return this._getOption('diameter');
  207. },
  208. set: function (value) {
  209. this._setOption('diameter', value);
  210. },
  211. enumerable: true,
  212. configurable: true
  213. });
  214. Object.defineProperty(DxPieChartComponent.prototype, "disabled", {
  215. get: /**
  216. * Specifies whether the widget responds to the user interaction.
  217. */
  218. function () {
  219. return this._getOption('disabled');
  220. },
  221. set: function (value) {
  222. this._setOption('disabled', value);
  223. },
  224. enumerable: true,
  225. configurable: true
  226. });
  227. Object.defineProperty(DxPieChartComponent.prototype, "elementAttr", {
  228. get: /**
  229. * Specifies the attributes to be attached to the widget's root element.
  230. */
  231. function () {
  232. return this._getOption('elementAttr');
  233. },
  234. set: function (value) {
  235. this._setOption('elementAttr', value);
  236. },
  237. enumerable: true,
  238. configurable: true
  239. });
  240. Object.defineProperty(DxPieChartComponent.prototype, "export", {
  241. get: /**
  242. * Configures the exporting and printing features.
  243. */
  244. function () {
  245. return this._getOption('export');
  246. },
  247. set: function (value) {
  248. this._setOption('export', value);
  249. },
  250. enumerable: true,
  251. configurable: true
  252. });
  253. Object.defineProperty(DxPieChartComponent.prototype, "innerRadius", {
  254. get: /**
  255. * Specifies the fraction of the inner radius relative to the total radius in the series of the 'doughnut' type. The value should be between 0 and 1.
  256. */
  257. function () {
  258. return this._getOption('innerRadius');
  259. },
  260. set: function (value) {
  261. this._setOption('innerRadius', value);
  262. },
  263. enumerable: true,
  264. configurable: true
  265. });
  266. Object.defineProperty(DxPieChartComponent.prototype, "legend", {
  267. get: /**
  268. * Specifies PieChart legend options.
  269. */
  270. function () {
  271. return this._getOption('legend');
  272. },
  273. set: function (value) {
  274. this._setOption('legend', value);
  275. },
  276. enumerable: true,
  277. configurable: true
  278. });
  279. Object.defineProperty(DxPieChartComponent.prototype, "loadingIndicator", {
  280. get: /**
  281. * Configures the loading indicator.
  282. */
  283. function () {
  284. return this._getOption('loadingIndicator');
  285. },
  286. set: function (value) {
  287. this._setOption('loadingIndicator', value);
  288. },
  289. enumerable: true,
  290. configurable: true
  291. });
  292. Object.defineProperty(DxPieChartComponent.prototype, "margin", {
  293. get: /**
  294. * Generates space around the widget.
  295. */
  296. function () {
  297. return this._getOption('margin');
  298. },
  299. set: function (value) {
  300. this._setOption('margin', value);
  301. },
  302. enumerable: true,
  303. configurable: true
  304. });
  305. Object.defineProperty(DxPieChartComponent.prototype, "minDiameter", {
  306. get: /**
  307. * Specifies the minimum diameter of the pie.
  308. */
  309. function () {
  310. return this._getOption('minDiameter');
  311. },
  312. set: function (value) {
  313. this._setOption('minDiameter', value);
  314. },
  315. enumerable: true,
  316. configurable: true
  317. });
  318. Object.defineProperty(DxPieChartComponent.prototype, "palette", {
  319. get: /**
  320. * Sets the palette to be used to colorize series and their elements.
  321. */
  322. function () {
  323. return this._getOption('palette');
  324. },
  325. set: function (value) {
  326. this._setOption('palette', value);
  327. },
  328. enumerable: true,
  329. configurable: true
  330. });
  331. Object.defineProperty(DxPieChartComponent.prototype, "paletteExtensionMode", {
  332. get: /**
  333. * Specifies what to do with colors in the palette when their number is less than the number of series (in the Chart widget) or points in a series (in the PieChart widget).
  334. */
  335. function () {
  336. return this._getOption('paletteExtensionMode');
  337. },
  338. set: function (value) {
  339. this._setOption('paletteExtensionMode', value);
  340. },
  341. enumerable: true,
  342. configurable: true
  343. });
  344. Object.defineProperty(DxPieChartComponent.prototype, "pathModified", {
  345. get: /**
  346. * Notifies the widget that it is embedded into an HTML page that uses a tag modifying the path.
  347. */
  348. function () {
  349. return this._getOption('pathModified');
  350. },
  351. set: function (value) {
  352. this._setOption('pathModified', value);
  353. },
  354. enumerable: true,
  355. configurable: true
  356. });
  357. Object.defineProperty(DxPieChartComponent.prototype, "pointSelectionMode", {
  358. get: /**
  359. * Specifies whether a single point or multiple points can be selected in the chart.
  360. */
  361. function () {
  362. return this._getOption('pointSelectionMode');
  363. },
  364. set: function (value) {
  365. this._setOption('pointSelectionMode', value);
  366. },
  367. enumerable: true,
  368. configurable: true
  369. });
  370. Object.defineProperty(DxPieChartComponent.prototype, "redrawOnResize", {
  371. get: /**
  372. * Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates.
  373. */
  374. function () {
  375. return this._getOption('redrawOnResize');
  376. },
  377. set: function (value) {
  378. this._setOption('redrawOnResize', value);
  379. },
  380. enumerable: true,
  381. configurable: true
  382. });
  383. Object.defineProperty(DxPieChartComponent.prototype, "resolveLabelOverlapping", {
  384. get: /**
  385. * Specifies how a chart must behave when point labels overlap.
  386. */
  387. function () {
  388. return this._getOption('resolveLabelOverlapping');
  389. },
  390. set: function (value) {
  391. this._setOption('resolveLabelOverlapping', value);
  392. },
  393. enumerable: true,
  394. configurable: true
  395. });
  396. Object.defineProperty(DxPieChartComponent.prototype, "rtlEnabled", {
  397. get: /**
  398. * Switches the widget to a right-to-left representation.
  399. */
  400. function () {
  401. return this._getOption('rtlEnabled');
  402. },
  403. set: function (value) {
  404. this._setOption('rtlEnabled', value);
  405. },
  406. enumerable: true,
  407. configurable: true
  408. });
  409. Object.defineProperty(DxPieChartComponent.prototype, "segmentsDirection", {
  410. get: /**
  411. * Specifies the direction that the pie chart segments will occupy.
  412. */
  413. function () {
  414. return this._getOption('segmentsDirection');
  415. },
  416. set: function (value) {
  417. this._setOption('segmentsDirection', value);
  418. },
  419. enumerable: true,
  420. configurable: true
  421. });
  422. Object.defineProperty(DxPieChartComponent.prototype, "series", {
  423. get: /**
  424. * Specifies options for the series of the PieChart widget.
  425. */
  426. function () {
  427. return this._getOption('series');
  428. },
  429. set: function (value) {
  430. this._setOption('series', value);
  431. },
  432. enumerable: true,
  433. configurable: true
  434. });
  435. Object.defineProperty(DxPieChartComponent.prototype, "seriesTemplate", {
  436. get: /**
  437. * Defines options for the series template.
  438. */
  439. function () {
  440. return this._getOption('seriesTemplate');
  441. },
  442. set: function (value) {
  443. this._setOption('seriesTemplate', value);
  444. },
  445. enumerable: true,
  446. configurable: true
  447. });
  448. Object.defineProperty(DxPieChartComponent.prototype, "size", {
  449. get: /**
  450. * Specifies the widget's size in pixels.
  451. */
  452. function () {
  453. return this._getOption('size');
  454. },
  455. set: function (value) {
  456. this._setOption('size', value);
  457. },
  458. enumerable: true,
  459. configurable: true
  460. });
  461. Object.defineProperty(DxPieChartComponent.prototype, "sizeGroup", {
  462. get: /**
  463. * Allows you to display several adjoining pies in the same size.
  464. */
  465. function () {
  466. return this._getOption('sizeGroup');
  467. },
  468. set: function (value) {
  469. this._setOption('sizeGroup', value);
  470. },
  471. enumerable: true,
  472. configurable: true
  473. });
  474. Object.defineProperty(DxPieChartComponent.prototype, "startAngle", {
  475. get: /**
  476. * Specifies the angle in arc degrees from which the first segment of a pie chart should start.
  477. */
  478. function () {
  479. return this._getOption('startAngle');
  480. },
  481. set: function (value) {
  482. this._setOption('startAngle', value);
  483. },
  484. enumerable: true,
  485. configurable: true
  486. });
  487. Object.defineProperty(DxPieChartComponent.prototype, "theme", {
  488. get: /**
  489. * Sets the name of the theme the widget uses.
  490. */
  491. function () {
  492. return this._getOption('theme');
  493. },
  494. set: function (value) {
  495. this._setOption('theme', value);
  496. },
  497. enumerable: true,
  498. configurable: true
  499. });
  500. Object.defineProperty(DxPieChartComponent.prototype, "title", {
  501. get: /**
  502. * Configures the widget's title.
  503. */
  504. function () {
  505. return this._getOption('title');
  506. },
  507. set: function (value) {
  508. this._setOption('title', value);
  509. },
  510. enumerable: true,
  511. configurable: true
  512. });
  513. Object.defineProperty(DxPieChartComponent.prototype, "tooltip", {
  514. get: /**
  515. * Configures tooltips.
  516. */
  517. function () {
  518. return this._getOption('tooltip');
  519. },
  520. set: function (value) {
  521. this._setOption('tooltip', value);
  522. },
  523. enumerable: true,
  524. configurable: true
  525. });
  526. Object.defineProperty(DxPieChartComponent.prototype, "type", {
  527. get: /**
  528. * Specifies the type of the pie chart series.
  529. */
  530. function () {
  531. return this._getOption('type');
  532. },
  533. set: function (value) {
  534. this._setOption('type', value);
  535. },
  536. enumerable: true,
  537. configurable: true
  538. });
  539. Object.defineProperty(DxPieChartComponent.prototype, "seriesChildren", {
  540. get: function () {
  541. return this._getOption('series');
  542. },
  543. set: function (value) {
  544. this.setChildren('series', value);
  545. },
  546. enumerable: true,
  547. configurable: true
  548. });
  549. DxPieChartComponent.prototype._createInstance = function (element, options) {
  550. return new pie_chart_1.default(element, options);
  551. };
  552. DxPieChartComponent.prototype.ngOnDestroy = function () {
  553. this._destroyWidget();
  554. };
  555. DxPieChartComponent.prototype.ngOnChanges = function (changes) {
  556. _super.prototype.ngOnChanges.call(this, changes);
  557. this.setupChanges('dataSource', changes);
  558. this.setupChanges('palette', changes);
  559. this.setupChanges('series', changes);
  560. };
  561. DxPieChartComponent.prototype.setupChanges = function (prop, changes) {
  562. if (!(prop in this._optionsToUpdate)) {
  563. this._idh.setup(prop, changes);
  564. }
  565. };
  566. DxPieChartComponent.prototype.ngDoCheck = function () {
  567. this._idh.doCheck('dataSource');
  568. this._idh.doCheck('palette');
  569. this._idh.doCheck('series');
  570. this._watcherHelper.checkWatchers();
  571. _super.prototype.ngDoCheck.call(this);
  572. _super.prototype.clearChangedOptions.call(this);
  573. };
  574. DxPieChartComponent.prototype._setOption = function (name, value) {
  575. var isSetup = this._idh.setupSingle(name, value);
  576. var isChanged = this._idh.getChanges(name, value) !== null;
  577. if (isSetup || isChanged) {
  578. _super.prototype._setOption.call(this, name, value);
  579. }
  580. };
  581. DxPieChartComponent.decorators = [
  582. { type: core_1.Component, args: [{
  583. selector: 'dx-pie-chart',
  584. template: '',
  585. styles: [' :host { display: block; }'],
  586. providers: [
  587. template_host_1.DxTemplateHost,
  588. watcher_helper_1.WatcherHelper,
  589. nested_option_1.NestedOptionHost,
  590. iterable_differ_helper_1.IterableDifferHelper
  591. ]
  592. },] },
  593. ];
  594. /** @nocollapse */
  595. DxPieChartComponent.ctorParameters = function () { return [
  596. { type: core_1.ElementRef, },
  597. { type: core_1.NgZone, },
  598. { type: template_host_1.DxTemplateHost, },
  599. { type: watcher_helper_1.WatcherHelper, },
  600. { type: iterable_differ_helper_1.IterableDifferHelper, },
  601. { type: nested_option_1.NestedOptionHost, },
  602. { type: platform_browser_2.TransferState, },
  603. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  604. ]; };
  605. DxPieChartComponent.propDecorators = {
  606. "adaptiveLayout": [{ type: core_1.Input },],
  607. "animation": [{ type: core_1.Input },],
  608. "commonSeriesSettings": [{ type: core_1.Input },],
  609. "customizeLabel": [{ type: core_1.Input },],
  610. "customizePoint": [{ type: core_1.Input },],
  611. "dataSource": [{ type: core_1.Input },],
  612. "diameter": [{ type: core_1.Input },],
  613. "disabled": [{ type: core_1.Input },],
  614. "elementAttr": [{ type: core_1.Input },],
  615. "export": [{ type: core_1.Input },],
  616. "innerRadius": [{ type: core_1.Input },],
  617. "legend": [{ type: core_1.Input },],
  618. "loadingIndicator": [{ type: core_1.Input },],
  619. "margin": [{ type: core_1.Input },],
  620. "minDiameter": [{ type: core_1.Input },],
  621. "palette": [{ type: core_1.Input },],
  622. "paletteExtensionMode": [{ type: core_1.Input },],
  623. "pathModified": [{ type: core_1.Input },],
  624. "pointSelectionMode": [{ type: core_1.Input },],
  625. "redrawOnResize": [{ type: core_1.Input },],
  626. "resolveLabelOverlapping": [{ type: core_1.Input },],
  627. "rtlEnabled": [{ type: core_1.Input },],
  628. "segmentsDirection": [{ type: core_1.Input },],
  629. "series": [{ type: core_1.Input },],
  630. "seriesTemplate": [{ type: core_1.Input },],
  631. "size": [{ type: core_1.Input },],
  632. "sizeGroup": [{ type: core_1.Input },],
  633. "startAngle": [{ type: core_1.Input },],
  634. "theme": [{ type: core_1.Input },],
  635. "title": [{ type: core_1.Input },],
  636. "tooltip": [{ type: core_1.Input },],
  637. "type": [{ type: core_1.Input },],
  638. "onDisposing": [{ type: core_1.Output },],
  639. "onDone": [{ type: core_1.Output },],
  640. "onDrawn": [{ type: core_1.Output },],
  641. "onExported": [{ type: core_1.Output },],
  642. "onExporting": [{ type: core_1.Output },],
  643. "onFileSaving": [{ type: core_1.Output },],
  644. "onIncidentOccurred": [{ type: core_1.Output },],
  645. "onInitialized": [{ type: core_1.Output },],
  646. "onLegendClick": [{ type: core_1.Output },],
  647. "onOptionChanged": [{ type: core_1.Output },],
  648. "onPointClick": [{ type: core_1.Output },],
  649. "onPointHoverChanged": [{ type: core_1.Output },],
  650. "onPointSelectionChanged": [{ type: core_1.Output },],
  651. "onTooltipHidden": [{ type: core_1.Output },],
  652. "onTooltipShown": [{ type: core_1.Output },],
  653. "adaptiveLayoutChange": [{ type: core_1.Output },],
  654. "animationChange": [{ type: core_1.Output },],
  655. "commonSeriesSettingsChange": [{ type: core_1.Output },],
  656. "customizeLabelChange": [{ type: core_1.Output },],
  657. "customizePointChange": [{ type: core_1.Output },],
  658. "dataSourceChange": [{ type: core_1.Output },],
  659. "diameterChange": [{ type: core_1.Output },],
  660. "disabledChange": [{ type: core_1.Output },],
  661. "elementAttrChange": [{ type: core_1.Output },],
  662. "exportChange": [{ type: core_1.Output },],
  663. "innerRadiusChange": [{ type: core_1.Output },],
  664. "legendChange": [{ type: core_1.Output },],
  665. "loadingIndicatorChange": [{ type: core_1.Output },],
  666. "marginChange": [{ type: core_1.Output },],
  667. "minDiameterChange": [{ type: core_1.Output },],
  668. "paletteChange": [{ type: core_1.Output },],
  669. "paletteExtensionModeChange": [{ type: core_1.Output },],
  670. "pathModifiedChange": [{ type: core_1.Output },],
  671. "pointSelectionModeChange": [{ type: core_1.Output },],
  672. "redrawOnResizeChange": [{ type: core_1.Output },],
  673. "resolveLabelOverlappingChange": [{ type: core_1.Output },],
  674. "rtlEnabledChange": [{ type: core_1.Output },],
  675. "segmentsDirectionChange": [{ type: core_1.Output },],
  676. "seriesChange": [{ type: core_1.Output },],
  677. "seriesTemplateChange": [{ type: core_1.Output },],
  678. "sizeChange": [{ type: core_1.Output },],
  679. "sizeGroupChange": [{ type: core_1.Output },],
  680. "startAngleChange": [{ type: core_1.Output },],
  681. "themeChange": [{ type: core_1.Output },],
  682. "titleChange": [{ type: core_1.Output },],
  683. "tooltipChange": [{ type: core_1.Output },],
  684. "typeChange": [{ type: core_1.Output },],
  685. "seriesChildren": [{ type: core_1.ContentChildren, args: [series_dxi_2.DxiSeriesComponent,] },],
  686. };
  687. return DxPieChartComponent;
  688. }(component_1.DxComponent));
  689. exports.DxPieChartComponent = DxPieChartComponent;
  690. var DxPieChartModule = (function () {
  691. function DxPieChartModule() {
  692. }
  693. DxPieChartModule.decorators = [
  694. { type: core_1.NgModule, args: [{
  695. imports: [
  696. adaptive_layout_1.DxoAdaptiveLayoutModule,
  697. animation_1.DxoAnimationModule,
  698. common_series_settings_1.DxoCommonSeriesSettingsModule,
  699. border_1.DxoBorderModule,
  700. hover_style_1.DxoHoverStyleModule,
  701. hatching_1.DxoHatchingModule,
  702. label_1.DxoLabelModule,
  703. argument_format_1.DxoArgumentFormatModule,
  704. connector_1.DxoConnectorModule,
  705. font_1.DxoFontModule,
  706. format_1.DxoFormatModule,
  707. selection_style_1.DxoSelectionStyleModule,
  708. small_values_grouping_1.DxoSmallValuesGroupingModule,
  709. export_1.DxoExportModule,
  710. legend_1.DxoLegendModule,
  711. margin_1.DxoMarginModule,
  712. title_1.DxoTitleModule,
  713. subtitle_1.DxoSubtitleModule,
  714. loading_indicator_1.DxoLoadingIndicatorModule,
  715. series_dxi_1.DxiSeriesModule,
  716. series_template_1.DxoSeriesTemplateModule,
  717. size_1.DxoSizeModule,
  718. tooltip_1.DxoTooltipModule,
  719. shadow_1.DxoShadowModule,
  720. integration_1.DxIntegrationModule,
  721. template_1.DxTemplateModule,
  722. platform_browser_1.BrowserTransferStateModule
  723. ],
  724. declarations: [
  725. DxPieChartComponent
  726. ],
  727. exports: [
  728. DxPieChartComponent,
  729. adaptive_layout_1.DxoAdaptiveLayoutModule,
  730. animation_1.DxoAnimationModule,
  731. common_series_settings_1.DxoCommonSeriesSettingsModule,
  732. border_1.DxoBorderModule,
  733. hover_style_1.DxoHoverStyleModule,
  734. hatching_1.DxoHatchingModule,
  735. label_1.DxoLabelModule,
  736. argument_format_1.DxoArgumentFormatModule,
  737. connector_1.DxoConnectorModule,
  738. font_1.DxoFontModule,
  739. format_1.DxoFormatModule,
  740. selection_style_1.DxoSelectionStyleModule,
  741. small_values_grouping_1.DxoSmallValuesGroupingModule,
  742. export_1.DxoExportModule,
  743. legend_1.DxoLegendModule,
  744. margin_1.DxoMarginModule,
  745. title_1.DxoTitleModule,
  746. subtitle_1.DxoSubtitleModule,
  747. loading_indicator_1.DxoLoadingIndicatorModule,
  748. series_dxi_1.DxiSeriesModule,
  749. series_template_1.DxoSeriesTemplateModule,
  750. size_1.DxoSizeModule,
  751. tooltip_1.DxoTooltipModule,
  752. shadow_1.DxoShadowModule,
  753. template_1.DxTemplateModule
  754. ]
  755. },] },
  756. ];
  757. return DxPieChartModule;
  758. }());
  759. exports.DxPieChartModule = DxPieChartModule;
  760. //# sourceMappingURL=pie-chart.js.map