@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
19 lines • 569 B
JavaScript
import ApplyResponsiveAxis from '../../../util/responsive/apply/axis';
export default function responsiveAxis(layer) {
var responsiveTheme = layer.getResponsiveTheme();
var canvas = layer.canvas;
// x-axis
var x_responsiveAxis = new ApplyResponsiveAxis({
plot: layer,
responsiveTheme: responsiveTheme,
dim: 'x',
});
// y-axis
var y_responsiveAxis = new ApplyResponsiveAxis({
plot: layer,
responsiveTheme: responsiveTheme,
dim: 'y',
});
canvas.draw();
}
//# sourceMappingURL=axis.js.map