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