UNPKG

@antv/g2plot

Version:

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

30 lines 831 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var theme_1 = require("../../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 }; }; theme_1.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