ColumnRangePoint.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* *
  2. *
  3. * (c) 2010-2021 Torstein Honsi
  4. *
  5. * License: www.highcharts.com/license
  6. *
  7. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  8. *
  9. * */
  10. 'use strict';
  11. var __extends = (this && this.__extends) || (function () {
  12. var extendStatics = function (d, b) {
  13. extendStatics = Object.setPrototypeOf ||
  14. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  15. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  16. return extendStatics(d, b);
  17. };
  18. return function (d, b) {
  19. extendStatics(d, b);
  20. function __() { this.constructor = d; }
  21. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  22. };
  23. })();
  24. import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
  25. var _a = SeriesRegistry.seriesTypes, ColumnPoint = _a.column.prototype.pointClass, AreaRangePoint = _a.arearange.prototype.pointClass;
  26. import U from '../../Core/Utilities.js';
  27. var extend = U.extend, isNumber = U.isNumber;
  28. /* *
  29. *
  30. * Class
  31. *
  32. * */
  33. var ColumnRangePoint = /** @class */ (function (_super) {
  34. __extends(ColumnRangePoint, _super);
  35. function ColumnRangePoint() {
  36. var _this = _super !== null && _super.apply(this, arguments) || this;
  37. _this.series = void 0;
  38. _this.options = void 0;
  39. _this.barX = void 0;
  40. _this.pointWidth = void 0;
  41. _this.shapeArgs = void 0;
  42. _this.shapeType = void 0;
  43. return _this;
  44. }
  45. ColumnRangePoint.prototype.isValid = function () {
  46. return isNumber(this.low);
  47. };
  48. return ColumnRangePoint;
  49. }(AreaRangePoint));
  50. /* *
  51. *
  52. * Prototype properties
  53. *
  54. * */
  55. extend(ColumnRangePoint.prototype, {
  56. setState: ColumnPoint.prototype.setState
  57. });
  58. /* *
  59. *
  60. * Default export
  61. *
  62. * */
  63. export default ColumnRangePoint;