index.js 931 B

12345678910111213141516171819202122232425262728293031
  1. import { __extends } from "tslib";
  2. import { Plot } from '../../core/plot';
  3. import { deepAssign } from '../../utils';
  4. import { adaptor } from './adaptor';
  5. var DualAxes = /** @class */ (function (_super) {
  6. __extends(DualAxes, _super);
  7. function DualAxes() {
  8. var _this = _super !== null && _super.apply(this, arguments) || this;
  9. /** 图表类型: 双轴图 */
  10. _this.type = 'dual-axes';
  11. return _this;
  12. }
  13. /**
  14. * 获取 双轴图 默认配置
  15. */
  16. DualAxes.prototype.getDefaultOptions = function () {
  17. return deepAssign({}, _super.prototype.getDefaultOptions.call(this), {
  18. yAxis: [],
  19. syncViewPadding: true,
  20. });
  21. };
  22. /**
  23. * 获取双轴图的适配器
  24. */
  25. DualAxes.prototype.getSchemaAdaptor = function () {
  26. return adaptor;
  27. };
  28. return DualAxes;
  29. }(Plot));
  30. export { DualAxes };
  31. //# sourceMappingURL=index.js.map