index.js 1.4 KB

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