text: import { __extends } from "tslib";
  import { each } from '@antv/util';
  import { Plot } from '../../core/plot';
  import { deepAssign, getAllElementsRecursively } from '../../utils';
  import { adaptor } from './adaptor';
  var DualAxes = /** @class */ (function (_super) {
      __extends(DualAxes, _super);
      function DualAxes() {
          var _this = _super !== null && _super.apply(this, arguments) || this;
          /** 图表类型: 双轴图 */
          _this.type = 'dual-axes';
          return _this;
      }
      /**
       * 获取 双轴图 默认配置
       */
      DualAxes.prototype.getDefaultOptions = function () {
          return deepAssign({}, _super.prototype.getDefaultOptions.call(this), {
              yAxis: [],
              syncViewPadding: true,
          });
      };
      /**
       * 获取双轴图的适配器
       */
      DualAxes.prototype.getSchemaAdaptor = function () {
          return adaptor;
      };
      /**
       * 设置状态
       * @param type 状态类型，支持 'active' | 'inactive' | 'selected' 三种
       * @param conditions 条件，支持数组
       * @param status 是否激活，默认 true
       */
      DualAxes.prototype.setState = function (type, condition, status) {
          if (status === void 0) { status = true; }
          var elements = getAllElementsRecursively(this.chart);
          each(elements, function (ele) {
              if (condition(ele.getData())) {
                  ele.setState(type, status);
              }
          });
      };
      /**
       * 获取状态
       */
      DualAxes.prototype.getStates = function () {
          var elements = getAllElementsRecursively(this.chart);
          var stateObjects = [];
          each(elements, function (element) {
              var data = element.getData();
              var states = element.getStates();
              each(states, function (state) {
                  stateObjects.push({ data: data, state: state, geometry: element.geometry, element: element });
              });
          });
          return stateObjects;
      };
      return DualAxes;
  }(Plot));
  export { DualAxes };
  //# sourceMappingURL=index.js.map