UNPKG

@antv/f2

Version:

Charts for mobile visualization.

29 lines 950 B
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; import _inherits from "@babel/runtime/helpers/esm/inherits"; import _createSuper from "@babel/runtime/helpers/esm/createSuper"; import { Identity as IdentityScale } from '@antv/scale'; import Base from './base'; var Identity = /*#__PURE__*/function (_Base) { _inherits(Identity, _Base); var _super = _createSuper(Identity); function Identity() { _classCallCheck(this, Identity); return _super.apply(this, arguments); } _createClass(Identity, [{ key: "createScale", value: function createScale(scaleConfig) { return new IdentityScale(scaleConfig); } }, { key: "_mapping", value: function _mapping() { var field = this.field, range = this.range; return field || range && range[0]; } }]); return Identity; }(Base); export default Identity;