value-axis.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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 constant_line_dxi_1 = require("./constant-line-dxi");
  29. var strip_dxi_1 = require("./strip-dxi");
  30. var DxoValueAxisComponent = (function (_super) {
  31. __extends(DxoValueAxisComponent, _super);
  32. function DxoValueAxisComponent(parentOptionHost, optionHost) {
  33. var _this = _super.call(this) || this;
  34. parentOptionHost.setNestedOption(_this);
  35. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  36. return _this;
  37. }
  38. Object.defineProperty(DxoValueAxisComponent.prototype, "allowDecimals", {
  39. get: function () {
  40. return this._getOption('allowDecimals');
  41. },
  42. set: function (value) {
  43. this._setOption('allowDecimals', value);
  44. },
  45. enumerable: true,
  46. configurable: true
  47. });
  48. Object.defineProperty(DxoValueAxisComponent.prototype, "axisDivisionFactor", {
  49. get: function () {
  50. return this._getOption('axisDivisionFactor');
  51. },
  52. set: function (value) {
  53. this._setOption('axisDivisionFactor', value);
  54. },
  55. enumerable: true,
  56. configurable: true
  57. });
  58. Object.defineProperty(DxoValueAxisComponent.prototype, "categories", {
  59. get: function () {
  60. return this._getOption('categories');
  61. },
  62. set: function (value) {
  63. this._setOption('categories', value);
  64. },
  65. enumerable: true,
  66. configurable: true
  67. });
  68. Object.defineProperty(DxoValueAxisComponent.prototype, "color", {
  69. get: function () {
  70. return this._getOption('color');
  71. },
  72. set: function (value) {
  73. this._setOption('color', value);
  74. },
  75. enumerable: true,
  76. configurable: true
  77. });
  78. Object.defineProperty(DxoValueAxisComponent.prototype, "constantLines", {
  79. get: function () {
  80. return this._getOption('constantLines');
  81. },
  82. set: function (value) {
  83. this._setOption('constantLines', value);
  84. },
  85. enumerable: true,
  86. configurable: true
  87. });
  88. Object.defineProperty(DxoValueAxisComponent.prototype, "constantLineStyle", {
  89. get: function () {
  90. return this._getOption('constantLineStyle');
  91. },
  92. set: function (value) {
  93. this._setOption('constantLineStyle', value);
  94. },
  95. enumerable: true,
  96. configurable: true
  97. });
  98. Object.defineProperty(DxoValueAxisComponent.prototype, "discreteAxisDivisionMode", {
  99. get: function () {
  100. return this._getOption('discreteAxisDivisionMode');
  101. },
  102. set: function (value) {
  103. this._setOption('discreteAxisDivisionMode', value);
  104. },
  105. enumerable: true,
  106. configurable: true
  107. });
  108. Object.defineProperty(DxoValueAxisComponent.prototype, "endOnTick", {
  109. get: function () {
  110. return this._getOption('endOnTick');
  111. },
  112. set: function (value) {
  113. this._setOption('endOnTick', value);
  114. },
  115. enumerable: true,
  116. configurable: true
  117. });
  118. Object.defineProperty(DxoValueAxisComponent.prototype, "grid", {
  119. get: function () {
  120. return this._getOption('grid');
  121. },
  122. set: function (value) {
  123. this._setOption('grid', value);
  124. },
  125. enumerable: true,
  126. configurable: true
  127. });
  128. Object.defineProperty(DxoValueAxisComponent.prototype, "inverted", {
  129. get: function () {
  130. return this._getOption('inverted');
  131. },
  132. set: function (value) {
  133. this._setOption('inverted', value);
  134. },
  135. enumerable: true,
  136. configurable: true
  137. });
  138. Object.defineProperty(DxoValueAxisComponent.prototype, "label", {
  139. get: function () {
  140. return this._getOption('label');
  141. },
  142. set: function (value) {
  143. this._setOption('label', value);
  144. },
  145. enumerable: true,
  146. configurable: true
  147. });
  148. Object.defineProperty(DxoValueAxisComponent.prototype, "logarithmBase", {
  149. get: function () {
  150. return this._getOption('logarithmBase');
  151. },
  152. set: function (value) {
  153. this._setOption('logarithmBase', value);
  154. },
  155. enumerable: true,
  156. configurable: true
  157. });
  158. Object.defineProperty(DxoValueAxisComponent.prototype, "maxValueMargin", {
  159. get: function () {
  160. return this._getOption('maxValueMargin');
  161. },
  162. set: function (value) {
  163. this._setOption('maxValueMargin', value);
  164. },
  165. enumerable: true,
  166. configurable: true
  167. });
  168. Object.defineProperty(DxoValueAxisComponent.prototype, "minorGrid", {
  169. get: function () {
  170. return this._getOption('minorGrid');
  171. },
  172. set: function (value) {
  173. this._setOption('minorGrid', value);
  174. },
  175. enumerable: true,
  176. configurable: true
  177. });
  178. Object.defineProperty(DxoValueAxisComponent.prototype, "minorTick", {
  179. get: function () {
  180. return this._getOption('minorTick');
  181. },
  182. set: function (value) {
  183. this._setOption('minorTick', value);
  184. },
  185. enumerable: true,
  186. configurable: true
  187. });
  188. Object.defineProperty(DxoValueAxisComponent.prototype, "minorTickCount", {
  189. get: function () {
  190. return this._getOption('minorTickCount');
  191. },
  192. set: function (value) {
  193. this._setOption('minorTickCount', value);
  194. },
  195. enumerable: true,
  196. configurable: true
  197. });
  198. Object.defineProperty(DxoValueAxisComponent.prototype, "minorTickInterval", {
  199. get: function () {
  200. return this._getOption('minorTickInterval');
  201. },
  202. set: function (value) {
  203. this._setOption('minorTickInterval', value);
  204. },
  205. enumerable: true,
  206. configurable: true
  207. });
  208. Object.defineProperty(DxoValueAxisComponent.prototype, "minValueMargin", {
  209. get: function () {
  210. return this._getOption('minValueMargin');
  211. },
  212. set: function (value) {
  213. this._setOption('minValueMargin', value);
  214. },
  215. enumerable: true,
  216. configurable: true
  217. });
  218. Object.defineProperty(DxoValueAxisComponent.prototype, "opacity", {
  219. get: function () {
  220. return this._getOption('opacity');
  221. },
  222. set: function (value) {
  223. this._setOption('opacity', value);
  224. },
  225. enumerable: true,
  226. configurable: true
  227. });
  228. Object.defineProperty(DxoValueAxisComponent.prototype, "showZero", {
  229. get: function () {
  230. return this._getOption('showZero');
  231. },
  232. set: function (value) {
  233. this._setOption('showZero', value);
  234. },
  235. enumerable: true,
  236. configurable: true
  237. });
  238. Object.defineProperty(DxoValueAxisComponent.prototype, "strips", {
  239. get: function () {
  240. return this._getOption('strips');
  241. },
  242. set: function (value) {
  243. this._setOption('strips', value);
  244. },
  245. enumerable: true,
  246. configurable: true
  247. });
  248. Object.defineProperty(DxoValueAxisComponent.prototype, "stripStyle", {
  249. get: function () {
  250. return this._getOption('stripStyle');
  251. },
  252. set: function (value) {
  253. this._setOption('stripStyle', value);
  254. },
  255. enumerable: true,
  256. configurable: true
  257. });
  258. Object.defineProperty(DxoValueAxisComponent.prototype, "tick", {
  259. get: function () {
  260. return this._getOption('tick');
  261. },
  262. set: function (value) {
  263. this._setOption('tick', value);
  264. },
  265. enumerable: true,
  266. configurable: true
  267. });
  268. Object.defineProperty(DxoValueAxisComponent.prototype, "tickInterval", {
  269. get: function () {
  270. return this._getOption('tickInterval');
  271. },
  272. set: function (value) {
  273. this._setOption('tickInterval', value);
  274. },
  275. enumerable: true,
  276. configurable: true
  277. });
  278. Object.defineProperty(DxoValueAxisComponent.prototype, "type", {
  279. get: function () {
  280. return this._getOption('type');
  281. },
  282. set: function (value) {
  283. this._setOption('type', value);
  284. },
  285. enumerable: true,
  286. configurable: true
  287. });
  288. Object.defineProperty(DxoValueAxisComponent.prototype, "valueMarginsEnabled", {
  289. get: function () {
  290. return this._getOption('valueMarginsEnabled');
  291. },
  292. set: function (value) {
  293. this._setOption('valueMarginsEnabled', value);
  294. },
  295. enumerable: true,
  296. configurable: true
  297. });
  298. Object.defineProperty(DxoValueAxisComponent.prototype, "valueType", {
  299. get: function () {
  300. return this._getOption('valueType');
  301. },
  302. set: function (value) {
  303. this._setOption('valueType', value);
  304. },
  305. enumerable: true,
  306. configurable: true
  307. });
  308. Object.defineProperty(DxoValueAxisComponent.prototype, "visible", {
  309. get: function () {
  310. return this._getOption('visible');
  311. },
  312. set: function (value) {
  313. this._setOption('visible', value);
  314. },
  315. enumerable: true,
  316. configurable: true
  317. });
  318. Object.defineProperty(DxoValueAxisComponent.prototype, "width", {
  319. get: function () {
  320. return this._getOption('width');
  321. },
  322. set: function (value) {
  323. this._setOption('width', value);
  324. },
  325. enumerable: true,
  326. configurable: true
  327. });
  328. Object.defineProperty(DxoValueAxisComponent.prototype, "max", {
  329. get: function () {
  330. return this._getOption('max');
  331. },
  332. set: function (value) {
  333. this._setOption('max', value);
  334. },
  335. enumerable: true,
  336. configurable: true
  337. });
  338. Object.defineProperty(DxoValueAxisComponent.prototype, "min", {
  339. get: function () {
  340. return this._getOption('min');
  341. },
  342. set: function (value) {
  343. this._setOption('min', value);
  344. },
  345. enumerable: true,
  346. configurable: true
  347. });
  348. Object.defineProperty(DxoValueAxisComponent.prototype, "_optionPath", {
  349. get: function () {
  350. return 'valueAxis';
  351. },
  352. enumerable: true,
  353. configurable: true
  354. });
  355. Object.defineProperty(DxoValueAxisComponent.prototype, "constantLinesChildren", {
  356. get: function () {
  357. return this._getOption('constantLines');
  358. },
  359. set: function (value) {
  360. this.setChildren('constantLines', value);
  361. },
  362. enumerable: true,
  363. configurable: true
  364. });
  365. Object.defineProperty(DxoValueAxisComponent.prototype, "stripsChildren", {
  366. get: function () {
  367. return this._getOption('strips');
  368. },
  369. set: function (value) {
  370. this.setChildren('strips', value);
  371. },
  372. enumerable: true,
  373. configurable: true
  374. });
  375. DxoValueAxisComponent.decorators = [
  376. { type: core_1.Component, args: [{
  377. selector: 'dxo-value-axis',
  378. template: '',
  379. styles: [''],
  380. providers: [nested_option_1.NestedOptionHost]
  381. },] },
  382. ];
  383. /** @nocollapse */
  384. DxoValueAxisComponent.ctorParameters = function () { return [
  385. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  386. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  387. ]; };
  388. DxoValueAxisComponent.propDecorators = {
  389. "allowDecimals": [{ type: core_1.Input },],
  390. "axisDivisionFactor": [{ type: core_1.Input },],
  391. "categories": [{ type: core_1.Input },],
  392. "color": [{ type: core_1.Input },],
  393. "constantLines": [{ type: core_1.Input },],
  394. "constantLineStyle": [{ type: core_1.Input },],
  395. "discreteAxisDivisionMode": [{ type: core_1.Input },],
  396. "endOnTick": [{ type: core_1.Input },],
  397. "grid": [{ type: core_1.Input },],
  398. "inverted": [{ type: core_1.Input },],
  399. "label": [{ type: core_1.Input },],
  400. "logarithmBase": [{ type: core_1.Input },],
  401. "maxValueMargin": [{ type: core_1.Input },],
  402. "minorGrid": [{ type: core_1.Input },],
  403. "minorTick": [{ type: core_1.Input },],
  404. "minorTickCount": [{ type: core_1.Input },],
  405. "minorTickInterval": [{ type: core_1.Input },],
  406. "minValueMargin": [{ type: core_1.Input },],
  407. "opacity": [{ type: core_1.Input },],
  408. "showZero": [{ type: core_1.Input },],
  409. "strips": [{ type: core_1.Input },],
  410. "stripStyle": [{ type: core_1.Input },],
  411. "tick": [{ type: core_1.Input },],
  412. "tickInterval": [{ type: core_1.Input },],
  413. "type": [{ type: core_1.Input },],
  414. "valueMarginsEnabled": [{ type: core_1.Input },],
  415. "valueType": [{ type: core_1.Input },],
  416. "visible": [{ type: core_1.Input },],
  417. "width": [{ type: core_1.Input },],
  418. "max": [{ type: core_1.Input },],
  419. "min": [{ type: core_1.Input },],
  420. "constantLinesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return constant_line_dxi_1.DxiConstantLineComponent; }),] },],
  421. "stripsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return strip_dxi_1.DxiStripComponent; }),] },],
  422. };
  423. return DxoValueAxisComponent;
  424. }(nested_option_2.NestedOption));
  425. exports.DxoValueAxisComponent = DxoValueAxisComponent;
  426. var DxoValueAxisModule = (function () {
  427. function DxoValueAxisModule() {
  428. }
  429. DxoValueAxisModule.decorators = [
  430. { type: core_1.NgModule, args: [{
  431. declarations: [
  432. DxoValueAxisComponent
  433. ],
  434. exports: [
  435. DxoValueAxisComponent
  436. ],
  437. },] },
  438. ];
  439. return DxoValueAxisModule;
  440. }());
  441. exports.DxoValueAxisModule = DxoValueAxisModule;
  442. //# sourceMappingURL=value-axis.js.map