index.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Sunburst = void 0;
  4. var tslib_1 = require("tslib");
  5. var plot_1 = require("../../core/plot");
  6. var util_1 = require("../../utils/hierarchy/util");
  7. var adaptor_1 = require("./adaptor");
  8. var constant_1 = require("./constant");
  9. require("./interactions");
  10. var Sunburst = /** @class */ (function (_super) {
  11. tslib_1.__extends(Sunburst, _super);
  12. function Sunburst() {
  13. var _this = _super !== null && _super.apply(this, arguments) || this;
  14. /** 图表类型 */
  15. _this.type = 'sunburst';
  16. return _this;
  17. }
  18. /**
  19. * 获取 旭日图 默认配置项
  20. * 供外部使用
  21. */
  22. Sunburst.getDefaultOptions = function () {
  23. return constant_1.DEFAULT_OPTIONS;
  24. };
  25. /**
  26. * 获取 旭日图 默认配置
  27. */
  28. Sunburst.prototype.getDefaultOptions = function () {
  29. return Sunburst.getDefaultOptions();
  30. };
  31. /**
  32. * 获取旭日图的适配器
  33. */
  34. Sunburst.prototype.getSchemaAdaptor = function () {
  35. return adaptor_1.adaptor;
  36. };
  37. /** 旭日图 节点的祖先节点 */
  38. Sunburst.SUNBURST_ANCESTOR_FIELD = constant_1.SUNBURST_ANCESTOR_FIELD;
  39. /** 旭日图 节点的路径 */
  40. Sunburst.SUNBURST_PATH_FIELD = constant_1.SUNBURST_PATH_FIELD;
  41. /** 节点的祖先节点 */
  42. Sunburst.NODE_ANCESTORS_FIELD = util_1.NODE_ANCESTORS_FIELD;
  43. return Sunburst;
  44. }(plot_1.Plot));
  45. exports.Sunburst = Sunburst;
  46. //# sourceMappingURL=index.js.map