| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
- var Geom = require('./base');
- var Util = require('../util/common');
- var SizeMixin = require('./mixin/size');
- require('./shape/interval');
- var Interval =
- /*#__PURE__*/
- function (_Geom) {
- _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;
- };
- function Interval(cfg) {
- var _this;
- _this = _Geom.call(this, cfg) || this;
- Util.mix(_assertThisInitialized(_assertThisInitialized(_this)), SizeMixin);
- return _this;
- }
- _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;
- }(Geom);
- Geom.Interval = Interval;
- module.exports = Interval;
|