Pie3DPoint.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* *
  2. *
  3. * (c) 2010-2021 Torstein Honsi
  4. *
  5. * 3D pie series
  6. *
  7. * License: www.highcharts.com/license
  8. *
  9. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  10. *
  11. * */
  12. 'use strict';
  13. var __extends = (this && this.__extends) || (function () {
  14. var extendStatics = function (d, b) {
  15. extendStatics = Object.setPrototypeOf ||
  16. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  17. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  18. return extendStatics(d, b);
  19. };
  20. return function (d, b) {
  21. extendStatics(d, b);
  22. function __() { this.constructor = d; }
  23. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  24. };
  25. })();
  26. import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
  27. var PiePoint = SeriesRegistry.seriesTypes.pie.prototype.pointClass;
  28. /* *
  29. *
  30. * Constants
  31. *
  32. * */
  33. var superHaloPath = PiePoint.prototype.haloPath;
  34. /* *
  35. *
  36. * Class
  37. *
  38. * */
  39. var Pie3DPoint = /** @class */ (function (_super) {
  40. __extends(Pie3DPoint, _super);
  41. function Pie3DPoint() {
  42. /* *
  43. *
  44. * Properties
  45. *
  46. * */
  47. var _this = _super !== null && _super.apply(this, arguments) || this;
  48. _this.series = void 0;
  49. return _this;
  50. /* eslint-enable valid-jsdoc */
  51. }
  52. /* *
  53. *
  54. * Functions
  55. *
  56. * */
  57. /* eslint-disable valid-jsdoc */
  58. /**
  59. * @private
  60. */
  61. Pie3DPoint.prototype.haloPath = function () {
  62. return this.series.chart.is3d() ? [] : superHaloPath.apply(this, arguments);
  63. };
  64. return Pie3DPoint;
  65. }(PiePoint));
  66. /* *
  67. *
  68. * Default Export
  69. *
  70. * */
  71. export default Pie3DPoint;