UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

25 lines 984 B
import { __extends } from "tslib"; import ApplyResponsiveLabel from '../../../util/responsive/apply/label'; var ApplyResponsiveColumnLabel = /** @class */ (function (_super) { __extends(ApplyResponsiveColumnLabel, _super); function ApplyResponsiveColumnLabel() { return _super !== null && _super.apply(this, arguments) || this; } ApplyResponsiveColumnLabel.prototype.getType = function () { if (this.plot.column.label) { if (!this.plot.column.label.position || this.plot.column.label.position === 'top') { return 'top'; } } return 'inner'; }; return ApplyResponsiveColumnLabel; }(ApplyResponsiveLabel)); export default function responsivePointLabel(layer) { var responsiveTheme = layer.getResponsiveTheme(); var applyResponsiveColumnLabel = new ApplyResponsiveColumnLabel({ plot: layer, responsiveTheme: responsiveTheme, }); } //# sourceMappingURL=label.js.map