UNPKG

@antv/g2plot

Version:

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

28 lines 753 B
import { registerTheme } from '../../theme'; var LINE_ACTIVE_STYLE = function (style) { var lineWidth = style.lineWidth || 1; return { lineWidth: lineWidth + 1 }; }; var LINE_DISABLE_STYLE = function (style) { var opacity = style.opacity || 1; return { opacity: opacity * 0.2 }; }; var LINE_SELECTED_STYLE = function (style) { var lineWidth = style.lineWidth || 1; return { lineWidth: lineWidth + 2 }; }; registerTheme('line', { lineStyle: { normal: {}, active: LINE_ACTIVE_STYLE, disable: LINE_DISABLE_STYLE, selected: LINE_SELECTED_STYLE, }, pointStyle: { normal: {}, active: {}, disable: {}, selected: {}, }, }); //# sourceMappingURL=theme.js.map