index.js 1.1 KB

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