@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
18 lines • 519 B
JavaScript
import { registerTheme } from '../../theme';
var BAR_ACTIVE_STYLE = function (style) {
var opacity = style.opacity || 1;
return { opacity: opacity * 0.5 };
};
var BAR_DISABLE_STYLE = function (style) {
var opacity = style.opacity || 1;
return { opacity: opacity * 0.5 };
};
registerTheme('bar', {
columnStyle: {
normal: {},
active: BAR_ACTIVE_STYLE,
disable: BAR_DISABLE_STYLE,
selected: { lineWidth: 1, stroke: 'black' },
},
});
//# sourceMappingURL=theme.js.map