VBPPoint.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* *
  2. *
  3. * License: www.highcharts.com/license
  4. *
  5. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  6. *
  7. * */
  8. var __extends = (this && this.__extends) || (function () {
  9. var extendStatics = function (d, b) {
  10. extendStatics = Object.setPrototypeOf ||
  11. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  12. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  13. return extendStatics(d, b);
  14. };
  15. return function (d, b) {
  16. extendStatics(d, b);
  17. function __() { this.constructor = d; }
  18. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  19. };
  20. })();
  21. /* *
  22. *
  23. * Imports
  24. *
  25. * */
  26. import Point from '../../../Core/Series/Point.js';
  27. import SeriesRegistry from '../../../Core/Series/SeriesRegistry.js';
  28. var SMAIndicator = SeriesRegistry.seriesTypes.sma;
  29. var VBPPoint = /** @class */ (function (_super) {
  30. __extends(VBPPoint, _super);
  31. function VBPPoint() {
  32. return _super !== null && _super.apply(this, arguments) || this;
  33. }
  34. // Required for destroying negative part of volume
  35. VBPPoint.prototype.destroy = function () {
  36. // @todo: this.negativeGraphic doesn't seem to be used anywhere
  37. if (this.negativeGraphic) {
  38. this.negativeGraphic = this.negativeGraphic.destroy();
  39. }
  40. return Point.prototype.destroy.apply(this, arguments);
  41. };
  42. return VBPPoint;
  43. }(SMAIndicator.prototype.pointClass));
  44. /* *
  45. *
  46. * Default Export
  47. *
  48. * */
  49. export default VBPPoint;