OrganizationPoint.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* *
  2. *
  3. * Organization chart module
  4. *
  5. * (c) 2018-2021 Torstein Honsi
  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 SankeyPoint = SeriesRegistry.seriesTypes.sankey.prototype.pointClass;
  28. /* *
  29. *
  30. * Class
  31. *
  32. * */
  33. var OrganizationPoint = /** @class */ (function (_super) {
  34. __extends(OrganizationPoint, _super);
  35. function OrganizationPoint() {
  36. /* *
  37. *
  38. * Properties
  39. *
  40. * */
  41. var _this = _super !== null && _super.apply(this, arguments) || this;
  42. _this.fromNode = void 0;
  43. _this.linksFrom = void 0;
  44. _this.linksTo = void 0;
  45. _this.options = void 0;
  46. _this.series = void 0;
  47. _this.toNode = void 0;
  48. return _this;
  49. /* eslint-enable valid-jsdoc */
  50. }
  51. /* *
  52. *
  53. * Functions
  54. *
  55. * */
  56. /* eslint-disable valid-jsdoc */
  57. /**
  58. * All nodes in an org chart are equal width.
  59. * @private
  60. */
  61. OrganizationPoint.prototype.getSum = function () {
  62. return 1;
  63. };
  64. return OrganizationPoint;
  65. }(SankeyPoint));
  66. /* *
  67. *
  68. * Default Export
  69. *
  70. * */
  71. export default OrganizationPoint;