value-axis-dxi.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  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 break_dxi_1 = require("./break-dxi");
  29. var constant_line_dxi_1 = require("./constant-line-dxi");
  30. var strip_dxi_1 = require("./strip-dxi");
  31. var DxiValueAxisComponent = (function (_super) {
  32. __extends(DxiValueAxisComponent, _super);
  33. function DxiValueAxisComponent(parentOptionHost, optionHost) {
  34. var _this = _super.call(this) || this;
  35. _this._createEventEmitters([
  36. { emit: 'visualRangeChange' }
  37. ]);
  38. parentOptionHost.setNestedOption(_this);
  39. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  40. return _this;
  41. }
  42. Object.defineProperty(DxiValueAxisComponent.prototype, "allowDecimals", {
  43. get: function () {
  44. return this._getOption('allowDecimals');
  45. },
  46. set: function (value) {
  47. this._setOption('allowDecimals', value);
  48. },
  49. enumerable: true,
  50. configurable: true
  51. });
  52. Object.defineProperty(DxiValueAxisComponent.prototype, "autoBreaksEnabled", {
  53. get: function () {
  54. return this._getOption('autoBreaksEnabled');
  55. },
  56. set: function (value) {
  57. this._setOption('autoBreaksEnabled', value);
  58. },
  59. enumerable: true,
  60. configurable: true
  61. });
  62. Object.defineProperty(DxiValueAxisComponent.prototype, "axisDivisionFactor", {
  63. get: function () {
  64. return this._getOption('axisDivisionFactor');
  65. },
  66. set: function (value) {
  67. this._setOption('axisDivisionFactor', value);
  68. },
  69. enumerable: true,
  70. configurable: true
  71. });
  72. Object.defineProperty(DxiValueAxisComponent.prototype, "breaks", {
  73. get: function () {
  74. return this._getOption('breaks');
  75. },
  76. set: function (value) {
  77. this._setOption('breaks', value);
  78. },
  79. enumerable: true,
  80. configurable: true
  81. });
  82. Object.defineProperty(DxiValueAxisComponent.prototype, "breakStyle", {
  83. get: function () {
  84. return this._getOption('breakStyle');
  85. },
  86. set: function (value) {
  87. this._setOption('breakStyle', value);
  88. },
  89. enumerable: true,
  90. configurable: true
  91. });
  92. Object.defineProperty(DxiValueAxisComponent.prototype, "categories", {
  93. get: function () {
  94. return this._getOption('categories');
  95. },
  96. set: function (value) {
  97. this._setOption('categories', value);
  98. },
  99. enumerable: true,
  100. configurable: true
  101. });
  102. Object.defineProperty(DxiValueAxisComponent.prototype, "color", {
  103. get: function () {
  104. return this._getOption('color');
  105. },
  106. set: function (value) {
  107. this._setOption('color', value);
  108. },
  109. enumerable: true,
  110. configurable: true
  111. });
  112. Object.defineProperty(DxiValueAxisComponent.prototype, "constantLines", {
  113. get: function () {
  114. return this._getOption('constantLines');
  115. },
  116. set: function (value) {
  117. this._setOption('constantLines', value);
  118. },
  119. enumerable: true,
  120. configurable: true
  121. });
  122. Object.defineProperty(DxiValueAxisComponent.prototype, "constantLineStyle", {
  123. get: function () {
  124. return this._getOption('constantLineStyle');
  125. },
  126. set: function (value) {
  127. this._setOption('constantLineStyle', value);
  128. },
  129. enumerable: true,
  130. configurable: true
  131. });
  132. Object.defineProperty(DxiValueAxisComponent.prototype, "discreteAxisDivisionMode", {
  133. get: function () {
  134. return this._getOption('discreteAxisDivisionMode');
  135. },
  136. set: function (value) {
  137. this._setOption('discreteAxisDivisionMode', value);
  138. },
  139. enumerable: true,
  140. configurable: true
  141. });
  142. Object.defineProperty(DxiValueAxisComponent.prototype, "endOnTick", {
  143. get: function () {
  144. return this._getOption('endOnTick');
  145. },
  146. set: function (value) {
  147. this._setOption('endOnTick', value);
  148. },
  149. enumerable: true,
  150. configurable: true
  151. });
  152. Object.defineProperty(DxiValueAxisComponent.prototype, "grid", {
  153. get: function () {
  154. return this._getOption('grid');
  155. },
  156. set: function (value) {
  157. this._setOption('grid', value);
  158. },
  159. enumerable: true,
  160. configurable: true
  161. });
  162. Object.defineProperty(DxiValueAxisComponent.prototype, "inverted", {
  163. get: function () {
  164. return this._getOption('inverted');
  165. },
  166. set: function (value) {
  167. this._setOption('inverted', value);
  168. },
  169. enumerable: true,
  170. configurable: true
  171. });
  172. Object.defineProperty(DxiValueAxisComponent.prototype, "label", {
  173. get: function () {
  174. return this._getOption('label');
  175. },
  176. set: function (value) {
  177. this._setOption('label', value);
  178. },
  179. enumerable: true,
  180. configurable: true
  181. });
  182. Object.defineProperty(DxiValueAxisComponent.prototype, "logarithmBase", {
  183. get: function () {
  184. return this._getOption('logarithmBase');
  185. },
  186. set: function (value) {
  187. this._setOption('logarithmBase', value);
  188. },
  189. enumerable: true,
  190. configurable: true
  191. });
  192. Object.defineProperty(DxiValueAxisComponent.prototype, "max", {
  193. get: function () {
  194. return this._getOption('max');
  195. },
  196. set: function (value) {
  197. this._setOption('max', value);
  198. },
  199. enumerable: true,
  200. configurable: true
  201. });
  202. Object.defineProperty(DxiValueAxisComponent.prototype, "maxAutoBreakCount", {
  203. get: function () {
  204. return this._getOption('maxAutoBreakCount');
  205. },
  206. set: function (value) {
  207. this._setOption('maxAutoBreakCount', value);
  208. },
  209. enumerable: true,
  210. configurable: true
  211. });
  212. Object.defineProperty(DxiValueAxisComponent.prototype, "maxValueMargin", {
  213. get: function () {
  214. return this._getOption('maxValueMargin');
  215. },
  216. set: function (value) {
  217. this._setOption('maxValueMargin', value);
  218. },
  219. enumerable: true,
  220. configurable: true
  221. });
  222. Object.defineProperty(DxiValueAxisComponent.prototype, "min", {
  223. get: function () {
  224. return this._getOption('min');
  225. },
  226. set: function (value) {
  227. this._setOption('min', value);
  228. },
  229. enumerable: true,
  230. configurable: true
  231. });
  232. Object.defineProperty(DxiValueAxisComponent.prototype, "minorGrid", {
  233. get: function () {
  234. return this._getOption('minorGrid');
  235. },
  236. set: function (value) {
  237. this._setOption('minorGrid', value);
  238. },
  239. enumerable: true,
  240. configurable: true
  241. });
  242. Object.defineProperty(DxiValueAxisComponent.prototype, "minorTick", {
  243. get: function () {
  244. return this._getOption('minorTick');
  245. },
  246. set: function (value) {
  247. this._setOption('minorTick', value);
  248. },
  249. enumerable: true,
  250. configurable: true
  251. });
  252. Object.defineProperty(DxiValueAxisComponent.prototype, "minorTickCount", {
  253. get: function () {
  254. return this._getOption('minorTickCount');
  255. },
  256. set: function (value) {
  257. this._setOption('minorTickCount', value);
  258. },
  259. enumerable: true,
  260. configurable: true
  261. });
  262. Object.defineProperty(DxiValueAxisComponent.prototype, "minorTickInterval", {
  263. get: function () {
  264. return this._getOption('minorTickInterval');
  265. },
  266. set: function (value) {
  267. this._setOption('minorTickInterval', value);
  268. },
  269. enumerable: true,
  270. configurable: true
  271. });
  272. Object.defineProperty(DxiValueAxisComponent.prototype, "minValueMargin", {
  273. get: function () {
  274. return this._getOption('minValueMargin');
  275. },
  276. set: function (value) {
  277. this._setOption('minValueMargin', value);
  278. },
  279. enumerable: true,
  280. configurable: true
  281. });
  282. Object.defineProperty(DxiValueAxisComponent.prototype, "minVisualRangeLength", {
  283. get: function () {
  284. return this._getOption('minVisualRangeLength');
  285. },
  286. set: function (value) {
  287. this._setOption('minVisualRangeLength', value);
  288. },
  289. enumerable: true,
  290. configurable: true
  291. });
  292. Object.defineProperty(DxiValueAxisComponent.prototype, "multipleAxesSpacing", {
  293. get: function () {
  294. return this._getOption('multipleAxesSpacing');
  295. },
  296. set: function (value) {
  297. this._setOption('multipleAxesSpacing', value);
  298. },
  299. enumerable: true,
  300. configurable: true
  301. });
  302. Object.defineProperty(DxiValueAxisComponent.prototype, "name", {
  303. get: function () {
  304. return this._getOption('name');
  305. },
  306. set: function (value) {
  307. this._setOption('name', value);
  308. },
  309. enumerable: true,
  310. configurable: true
  311. });
  312. Object.defineProperty(DxiValueAxisComponent.prototype, "opacity", {
  313. get: function () {
  314. return this._getOption('opacity');
  315. },
  316. set: function (value) {
  317. this._setOption('opacity', value);
  318. },
  319. enumerable: true,
  320. configurable: true
  321. });
  322. Object.defineProperty(DxiValueAxisComponent.prototype, "pane", {
  323. get: function () {
  324. return this._getOption('pane');
  325. },
  326. set: function (value) {
  327. this._setOption('pane', value);
  328. },
  329. enumerable: true,
  330. configurable: true
  331. });
  332. Object.defineProperty(DxiValueAxisComponent.prototype, "placeholderSize", {
  333. get: function () {
  334. return this._getOption('placeholderSize');
  335. },
  336. set: function (value) {
  337. this._setOption('placeholderSize', value);
  338. },
  339. enumerable: true,
  340. configurable: true
  341. });
  342. Object.defineProperty(DxiValueAxisComponent.prototype, "position", {
  343. get: function () {
  344. return this._getOption('position');
  345. },
  346. set: function (value) {
  347. this._setOption('position', value);
  348. },
  349. enumerable: true,
  350. configurable: true
  351. });
  352. Object.defineProperty(DxiValueAxisComponent.prototype, "showZero", {
  353. get: function () {
  354. return this._getOption('showZero');
  355. },
  356. set: function (value) {
  357. this._setOption('showZero', value);
  358. },
  359. enumerable: true,
  360. configurable: true
  361. });
  362. Object.defineProperty(DxiValueAxisComponent.prototype, "strips", {
  363. get: function () {
  364. return this._getOption('strips');
  365. },
  366. set: function (value) {
  367. this._setOption('strips', value);
  368. },
  369. enumerable: true,
  370. configurable: true
  371. });
  372. Object.defineProperty(DxiValueAxisComponent.prototype, "stripStyle", {
  373. get: function () {
  374. return this._getOption('stripStyle');
  375. },
  376. set: function (value) {
  377. this._setOption('stripStyle', value);
  378. },
  379. enumerable: true,
  380. configurable: true
  381. });
  382. Object.defineProperty(DxiValueAxisComponent.prototype, "synchronizedValue", {
  383. get: function () {
  384. return this._getOption('synchronizedValue');
  385. },
  386. set: function (value) {
  387. this._setOption('synchronizedValue', value);
  388. },
  389. enumerable: true,
  390. configurable: true
  391. });
  392. Object.defineProperty(DxiValueAxisComponent.prototype, "tick", {
  393. get: function () {
  394. return this._getOption('tick');
  395. },
  396. set: function (value) {
  397. this._setOption('tick', value);
  398. },
  399. enumerable: true,
  400. configurable: true
  401. });
  402. Object.defineProperty(DxiValueAxisComponent.prototype, "tickInterval", {
  403. get: function () {
  404. return this._getOption('tickInterval');
  405. },
  406. set: function (value) {
  407. this._setOption('tickInterval', value);
  408. },
  409. enumerable: true,
  410. configurable: true
  411. });
  412. Object.defineProperty(DxiValueAxisComponent.prototype, "title", {
  413. get: function () {
  414. return this._getOption('title');
  415. },
  416. set: function (value) {
  417. this._setOption('title', value);
  418. },
  419. enumerable: true,
  420. configurable: true
  421. });
  422. Object.defineProperty(DxiValueAxisComponent.prototype, "type", {
  423. get: function () {
  424. return this._getOption('type');
  425. },
  426. set: function (value) {
  427. this._setOption('type', value);
  428. },
  429. enumerable: true,
  430. configurable: true
  431. });
  432. Object.defineProperty(DxiValueAxisComponent.prototype, "valueMarginsEnabled", {
  433. get: function () {
  434. return this._getOption('valueMarginsEnabled');
  435. },
  436. set: function (value) {
  437. this._setOption('valueMarginsEnabled', value);
  438. },
  439. enumerable: true,
  440. configurable: true
  441. });
  442. Object.defineProperty(DxiValueAxisComponent.prototype, "valueType", {
  443. get: function () {
  444. return this._getOption('valueType');
  445. },
  446. set: function (value) {
  447. this._setOption('valueType', value);
  448. },
  449. enumerable: true,
  450. configurable: true
  451. });
  452. Object.defineProperty(DxiValueAxisComponent.prototype, "visible", {
  453. get: function () {
  454. return this._getOption('visible');
  455. },
  456. set: function (value) {
  457. this._setOption('visible', value);
  458. },
  459. enumerable: true,
  460. configurable: true
  461. });
  462. Object.defineProperty(DxiValueAxisComponent.prototype, "visualRange", {
  463. get: function () {
  464. return this._getOption('visualRange');
  465. },
  466. set: function (value) {
  467. this._setOption('visualRange', value);
  468. },
  469. enumerable: true,
  470. configurable: true
  471. });
  472. Object.defineProperty(DxiValueAxisComponent.prototype, "visualRangeUpdateMode", {
  473. get: function () {
  474. return this._getOption('visualRangeUpdateMode');
  475. },
  476. set: function (value) {
  477. this._setOption('visualRangeUpdateMode', value);
  478. },
  479. enumerable: true,
  480. configurable: true
  481. });
  482. Object.defineProperty(DxiValueAxisComponent.prototype, "wholeRange", {
  483. get: function () {
  484. return this._getOption('wholeRange');
  485. },
  486. set: function (value) {
  487. this._setOption('wholeRange', value);
  488. },
  489. enumerable: true,
  490. configurable: true
  491. });
  492. Object.defineProperty(DxiValueAxisComponent.prototype, "width", {
  493. get: function () {
  494. return this._getOption('width');
  495. },
  496. set: function (value) {
  497. this._setOption('width', value);
  498. },
  499. enumerable: true,
  500. configurable: true
  501. });
  502. Object.defineProperty(DxiValueAxisComponent.prototype, "_optionPath", {
  503. get: function () {
  504. return 'valueAxis';
  505. },
  506. enumerable: true,
  507. configurable: true
  508. });
  509. Object.defineProperty(DxiValueAxisComponent.prototype, "breaksChildren", {
  510. get: function () {
  511. return this._getOption('breaks');
  512. },
  513. set: function (value) {
  514. this.setChildren('breaks', value);
  515. },
  516. enumerable: true,
  517. configurable: true
  518. });
  519. Object.defineProperty(DxiValueAxisComponent.prototype, "constantLinesChildren", {
  520. get: function () {
  521. return this._getOption('constantLines');
  522. },
  523. set: function (value) {
  524. this.setChildren('constantLines', value);
  525. },
  526. enumerable: true,
  527. configurable: true
  528. });
  529. Object.defineProperty(DxiValueAxisComponent.prototype, "stripsChildren", {
  530. get: function () {
  531. return this._getOption('strips');
  532. },
  533. set: function (value) {
  534. this.setChildren('strips', value);
  535. },
  536. enumerable: true,
  537. configurable: true
  538. });
  539. DxiValueAxisComponent.decorators = [
  540. { type: core_1.Component, args: [{
  541. selector: 'dxi-value-axis',
  542. template: '',
  543. styles: [''],
  544. providers: [nested_option_1.NestedOptionHost]
  545. },] },
  546. ];
  547. /** @nocollapse */
  548. DxiValueAxisComponent.ctorParameters = function () { return [
  549. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  550. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  551. ]; };
  552. DxiValueAxisComponent.propDecorators = {
  553. "allowDecimals": [{ type: core_1.Input },],
  554. "autoBreaksEnabled": [{ type: core_1.Input },],
  555. "axisDivisionFactor": [{ type: core_1.Input },],
  556. "breaks": [{ type: core_1.Input },],
  557. "breakStyle": [{ type: core_1.Input },],
  558. "categories": [{ type: core_1.Input },],
  559. "color": [{ type: core_1.Input },],
  560. "constantLines": [{ type: core_1.Input },],
  561. "constantLineStyle": [{ type: core_1.Input },],
  562. "discreteAxisDivisionMode": [{ type: core_1.Input },],
  563. "endOnTick": [{ type: core_1.Input },],
  564. "grid": [{ type: core_1.Input },],
  565. "inverted": [{ type: core_1.Input },],
  566. "label": [{ type: core_1.Input },],
  567. "logarithmBase": [{ type: core_1.Input },],
  568. "max": [{ type: core_1.Input },],
  569. "maxAutoBreakCount": [{ type: core_1.Input },],
  570. "maxValueMargin": [{ type: core_1.Input },],
  571. "min": [{ type: core_1.Input },],
  572. "minorGrid": [{ type: core_1.Input },],
  573. "minorTick": [{ type: core_1.Input },],
  574. "minorTickCount": [{ type: core_1.Input },],
  575. "minorTickInterval": [{ type: core_1.Input },],
  576. "minValueMargin": [{ type: core_1.Input },],
  577. "minVisualRangeLength": [{ type: core_1.Input },],
  578. "multipleAxesSpacing": [{ type: core_1.Input },],
  579. "name": [{ type: core_1.Input },],
  580. "opacity": [{ type: core_1.Input },],
  581. "pane": [{ type: core_1.Input },],
  582. "placeholderSize": [{ type: core_1.Input },],
  583. "position": [{ type: core_1.Input },],
  584. "showZero": [{ type: core_1.Input },],
  585. "strips": [{ type: core_1.Input },],
  586. "stripStyle": [{ type: core_1.Input },],
  587. "synchronizedValue": [{ type: core_1.Input },],
  588. "tick": [{ type: core_1.Input },],
  589. "tickInterval": [{ type: core_1.Input },],
  590. "title": [{ type: core_1.Input },],
  591. "type": [{ type: core_1.Input },],
  592. "valueMarginsEnabled": [{ type: core_1.Input },],
  593. "valueType": [{ type: core_1.Input },],
  594. "visible": [{ type: core_1.Input },],
  595. "visualRange": [{ type: core_1.Input },],
  596. "visualRangeUpdateMode": [{ type: core_1.Input },],
  597. "wholeRange": [{ type: core_1.Input },],
  598. "width": [{ type: core_1.Input },],
  599. "visualRangeChange": [{ type: core_1.Output },],
  600. "breaksChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return break_dxi_1.DxiBreakComponent; }),] },],
  601. "constantLinesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return constant_line_dxi_1.DxiConstantLineComponent; }),] },],
  602. "stripsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return strip_dxi_1.DxiStripComponent; }),] },],
  603. };
  604. return DxiValueAxisComponent;
  605. }(nested_option_2.CollectionNestedOption));
  606. exports.DxiValueAxisComponent = DxiValueAxisComponent;
  607. var DxiValueAxisModule = (function () {
  608. function DxiValueAxisModule() {
  609. }
  610. DxiValueAxisModule.decorators = [
  611. { type: core_1.NgModule, args: [{
  612. declarations: [
  613. DxiValueAxisComponent
  614. ],
  615. exports: [
  616. DxiValueAxisComponent
  617. ],
  618. },] },
  619. ];
  620. return DxiValueAxisModule;
  621. }());
  622. exports.DxiValueAxisModule = DxiValueAxisModule;
  623. //# sourceMappingURL=value-axis-dxi.js.map