WindbarbPoint.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* *
  2. *
  3. * Wind barb series 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 U from '../../Core/Utilities.js';
  26. var isNumber = U.isNumber;
  27. import ColumnSeries from '../Column/ColumnSeries.js';
  28. /* *
  29. *
  30. * Class
  31. *
  32. * */
  33. var WindbarbPoint = /** @class */ (function (_super) {
  34. __extends(WindbarbPoint, _super);
  35. function WindbarbPoint() {
  36. var _this = _super !== null && _super.apply(this, arguments) || this;
  37. /* *
  38. *
  39. * Properties
  40. *
  41. * */
  42. _this.beaufort = void 0;
  43. _this.beaufortLevel = void 0;
  44. _this.direction = void 0;
  45. _this.options = void 0;
  46. _this.series = void 0;
  47. return _this;
  48. }
  49. /* *
  50. *
  51. * Functions
  52. *
  53. * */
  54. WindbarbPoint.prototype.isValid = function () {
  55. return isNumber(this.value) && this.value >= 0;
  56. };
  57. return WindbarbPoint;
  58. }(ColumnSeries.prototype.pointClass));
  59. /* *
  60. *
  61. * Default export
  62. *
  63. * */
  64. export default WindbarbPoint;