VariwidePoint.js 1.7 KB

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