index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Rose = void 0;
  4. var tslib_1 = require("tslib");
  5. var plot_1 = require("../../core/plot");
  6. var adaptor_1 = require("./adaptor");
  7. var constant_1 = require("./constant");
  8. var Rose = /** @class */ (function (_super) {
  9. tslib_1.__extends(Rose, _super);
  10. function Rose() {
  11. var _this = _super !== null && _super.apply(this, arguments) || this;
  12. /** 玫瑰图 */
  13. _this.type = 'rose';
  14. return _this;
  15. }
  16. /**
  17. * 获取 玫瑰图 默认配置项
  18. * 供外部使用
  19. */
  20. Rose.getDefaultOptions = function () {
  21. return constant_1.DEFAULT_OPTIONS;
  22. };
  23. /**
  24. * @override
  25. * @param data
  26. */
  27. Rose.prototype.changeData = function (data) {
  28. this.updateOption({ data: data });
  29. this.chart.changeData(data);
  30. };
  31. /**
  32. * 获取默认的 options 配置项
  33. */
  34. Rose.prototype.getDefaultOptions = function () {
  35. return Rose.getDefaultOptions();
  36. };
  37. /**
  38. * 获取 玫瑰图 的适配器
  39. */
  40. Rose.prototype.getSchemaAdaptor = function () {
  41. return adaptor_1.adaptor;
  42. };
  43. return Rose;
  44. }(plot_1.Plot));
  45. exports.Rose = Rose;
  46. //# sourceMappingURL=index.js.map