UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

22 lines (21 loc) 773 B
import { __extends } from "../../../../tslib/tslib.es6.mjs"; import Axis from "../Axis.mjs"; var SingleAxis = function(_super) { __extends(SingleAxis2, _super); function SingleAxis2(dim, scale, coordExtent, axisType, position) { var _this = _super.call(this, dim, scale, coordExtent) || this; _this.type = axisType || "value"; _this.position = position || "bottom"; return _this; } SingleAxis2.prototype.isHorizontal = function() { var position = this.position; return position === "top" || position === "bottom"; }; SingleAxis2.prototype.pointToData = function(point, clamp) { return this.coordinateSystem.pointToData(point)[0]; }; return SingleAxis2; }(Axis); var SingleAxis$1 = SingleAxis; export { SingleAxis$1 as default };