chart.js 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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 core_1 = require("@angular/core");
  26. var nested_option_1 = require("../../core/nested-option");
  27. var nested_option_2 = require("../../core/nested-option");
  28. var series_dxi_1 = require("./series-dxi");
  29. var DxoChartComponent = (function (_super) {
  30. __extends(DxoChartComponent, _super);
  31. function DxoChartComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. parentOptionHost.setNestedOption(_this);
  34. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  35. return _this;
  36. }
  37. Object.defineProperty(DxoChartComponent.prototype, "barGroupPadding", {
  38. get: function () {
  39. return this._getOption('barGroupPadding');
  40. },
  41. set: function (value) {
  42. this._setOption('barGroupPadding', value);
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxoChartComponent.prototype, "barGroupWidth", {
  48. get: function () {
  49. return this._getOption('barGroupWidth');
  50. },
  51. set: function (value) {
  52. this._setOption('barGroupWidth', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. Object.defineProperty(DxoChartComponent.prototype, "barWidth", {
  58. get: function () {
  59. return this._getOption('barWidth');
  60. },
  61. set: function (value) {
  62. this._setOption('barWidth', value);
  63. },
  64. enumerable: true,
  65. configurable: true
  66. });
  67. Object.defineProperty(DxoChartComponent.prototype, "bottomIndent", {
  68. get: function () {
  69. return this._getOption('bottomIndent');
  70. },
  71. set: function (value) {
  72. this._setOption('bottomIndent', value);
  73. },
  74. enumerable: true,
  75. configurable: true
  76. });
  77. Object.defineProperty(DxoChartComponent.prototype, "commonSeriesSettings", {
  78. get: function () {
  79. return this._getOption('commonSeriesSettings');
  80. },
  81. set: function (value) {
  82. this._setOption('commonSeriesSettings', value);
  83. },
  84. enumerable: true,
  85. configurable: true
  86. });
  87. Object.defineProperty(DxoChartComponent.prototype, "dataPrepareSettings", {
  88. get: function () {
  89. return this._getOption('dataPrepareSettings');
  90. },
  91. set: function (value) {
  92. this._setOption('dataPrepareSettings', value);
  93. },
  94. enumerable: true,
  95. configurable: true
  96. });
  97. Object.defineProperty(DxoChartComponent.prototype, "equalBarWidth", {
  98. get: function () {
  99. return this._getOption('equalBarWidth');
  100. },
  101. set: function (value) {
  102. this._setOption('equalBarWidth', value);
  103. },
  104. enumerable: true,
  105. configurable: true
  106. });
  107. Object.defineProperty(DxoChartComponent.prototype, "maxBubbleSize", {
  108. get: function () {
  109. return this._getOption('maxBubbleSize');
  110. },
  111. set: function (value) {
  112. this._setOption('maxBubbleSize', value);
  113. },
  114. enumerable: true,
  115. configurable: true
  116. });
  117. Object.defineProperty(DxoChartComponent.prototype, "minBubbleSize", {
  118. get: function () {
  119. return this._getOption('minBubbleSize');
  120. },
  121. set: function (value) {
  122. this._setOption('minBubbleSize', value);
  123. },
  124. enumerable: true,
  125. configurable: true
  126. });
  127. Object.defineProperty(DxoChartComponent.prototype, "negativesAsZeroes", {
  128. get: function () {
  129. return this._getOption('negativesAsZeroes');
  130. },
  131. set: function (value) {
  132. this._setOption('negativesAsZeroes', value);
  133. },
  134. enumerable: true,
  135. configurable: true
  136. });
  137. Object.defineProperty(DxoChartComponent.prototype, "palette", {
  138. get: function () {
  139. return this._getOption('palette');
  140. },
  141. set: function (value) {
  142. this._setOption('palette', value);
  143. },
  144. enumerable: true,
  145. configurable: true
  146. });
  147. Object.defineProperty(DxoChartComponent.prototype, "paletteExtensionMode", {
  148. get: function () {
  149. return this._getOption('paletteExtensionMode');
  150. },
  151. set: function (value) {
  152. this._setOption('paletteExtensionMode', value);
  153. },
  154. enumerable: true,
  155. configurable: true
  156. });
  157. Object.defineProperty(DxoChartComponent.prototype, "series", {
  158. get: function () {
  159. return this._getOption('series');
  160. },
  161. set: function (value) {
  162. this._setOption('series', value);
  163. },
  164. enumerable: true,
  165. configurable: true
  166. });
  167. Object.defineProperty(DxoChartComponent.prototype, "seriesTemplate", {
  168. get: function () {
  169. return this._getOption('seriesTemplate');
  170. },
  171. set: function (value) {
  172. this._setOption('seriesTemplate', value);
  173. },
  174. enumerable: true,
  175. configurable: true
  176. });
  177. Object.defineProperty(DxoChartComponent.prototype, "topIndent", {
  178. get: function () {
  179. return this._getOption('topIndent');
  180. },
  181. set: function (value) {
  182. this._setOption('topIndent', value);
  183. },
  184. enumerable: true,
  185. configurable: true
  186. });
  187. Object.defineProperty(DxoChartComponent.prototype, "useAggregation", {
  188. get: function () {
  189. return this._getOption('useAggregation');
  190. },
  191. set: function (value) {
  192. this._setOption('useAggregation', value);
  193. },
  194. enumerable: true,
  195. configurable: true
  196. });
  197. Object.defineProperty(DxoChartComponent.prototype, "valueAxis", {
  198. get: function () {
  199. return this._getOption('valueAxis');
  200. },
  201. set: function (value) {
  202. this._setOption('valueAxis', value);
  203. },
  204. enumerable: true,
  205. configurable: true
  206. });
  207. Object.defineProperty(DxoChartComponent.prototype, "_optionPath", {
  208. get: function () {
  209. return 'chart';
  210. },
  211. enumerable: true,
  212. configurable: true
  213. });
  214. Object.defineProperty(DxoChartComponent.prototype, "seriesChildren", {
  215. get: function () {
  216. return this._getOption('series');
  217. },
  218. set: function (value) {
  219. this.setChildren('series', value);
  220. },
  221. enumerable: true,
  222. configurable: true
  223. });
  224. DxoChartComponent.decorators = [
  225. { type: core_1.Component, args: [{
  226. selector: 'dxo-chart',
  227. template: '',
  228. styles: [''],
  229. providers: [nested_option_1.NestedOptionHost]
  230. },] },
  231. ];
  232. /** @nocollapse */
  233. DxoChartComponent.ctorParameters = function () { return [
  234. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  235. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  236. ]; };
  237. DxoChartComponent.propDecorators = {
  238. "barGroupPadding": [{ type: core_1.Input },],
  239. "barGroupWidth": [{ type: core_1.Input },],
  240. "barWidth": [{ type: core_1.Input },],
  241. "bottomIndent": [{ type: core_1.Input },],
  242. "commonSeriesSettings": [{ type: core_1.Input },],
  243. "dataPrepareSettings": [{ type: core_1.Input },],
  244. "equalBarWidth": [{ type: core_1.Input },],
  245. "maxBubbleSize": [{ type: core_1.Input },],
  246. "minBubbleSize": [{ type: core_1.Input },],
  247. "negativesAsZeroes": [{ type: core_1.Input },],
  248. "palette": [{ type: core_1.Input },],
  249. "paletteExtensionMode": [{ type: core_1.Input },],
  250. "series": [{ type: core_1.Input },],
  251. "seriesTemplate": [{ type: core_1.Input },],
  252. "topIndent": [{ type: core_1.Input },],
  253. "useAggregation": [{ type: core_1.Input },],
  254. "valueAxis": [{ type: core_1.Input },],
  255. "seriesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return series_dxi_1.DxiSeriesComponent; }),] },],
  256. };
  257. return DxoChartComponent;
  258. }(nested_option_2.NestedOption));
  259. exports.DxoChartComponent = DxoChartComponent;
  260. var DxoChartModule = (function () {
  261. function DxoChartModule() {
  262. }
  263. DxoChartModule.decorators = [
  264. { type: core_1.NgModule, args: [{
  265. declarations: [
  266. DxoChartComponent
  267. ],
  268. exports: [
  269. DxoChartComponent
  270. ],
  271. },] },
  272. ];
  273. return DxoChartModule;
  274. }());
  275. exports.DxoChartModule = DxoChartModule;
  276. //# sourceMappingURL=chart.js.map