suoqiu-f2
Version:
Charts for mobile visualization.
45 lines (44 loc) • 1.72 kB
JavaScript
;
exports.__esModule = true;
exports["default"] = void 0;
var _base = _interopRequireDefault(require("./base"));
var _common = require("../util/common");
var _size = _interopRequireDefault(require("./mixin/size"));
require("./shape/interval");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
var Interval = /*#__PURE__*/function (_Geom) {
function Interval(cfg) {
var _this;
_this = _Geom.call(this, cfg) || this;
(0, _common.mix)(_this, _size["default"]);
return _this;
}
_inheritsLoose(Interval, _Geom);
var _proto = Interval.prototype;
_proto.getDefaultCfg = function getDefaultCfg() {
var cfg = _Geom.prototype.getDefaultCfg.call(this);
cfg.type = 'interval';
cfg.shapeType = 'interval';
cfg.generatePoints = true;
return cfg;
};
_proto.init = function init() {
_Geom.prototype.init.call(this);
// 绑定事件
this.initEvent();
};
_proto.createShapePointsCfg = function createShapePointsCfg(obj) {
var cfg = _Geom.prototype.createShapePointsCfg.call(this, obj);
cfg.size = this.getNormalizedSize(obj);
return cfg;
};
_proto.clearInner = function clearInner() {
_Geom.prototype.clearInner.call(this);
this.set('defaultSize', null);
};
return Interval;
}(_base["default"]);
_base["default"].Interval = Interval;
var _default = exports["default"] = Interval;