UNPKG

@antv/f2

Version:

Charts for mobile visualization.

20 lines 621 B
import { __extends } from "tslib"; import { Identity as IdentityScale } from '../deps/f2-scale/src'; import Base from './base'; var Identity = /** @class */function (_super) { __extends(Identity, _super); function Identity() { return _super !== null && _super.apply(this, arguments) || this; } Identity.prototype.createScale = function (scaleConfig) { return new IdentityScale(scaleConfig); }; Identity.prototype._mapping = function () { var _a = this, field = _a.field, range = _a.range; return field || range && range[0]; }; return Identity; }(Base); export default Identity;