UNPKG

echarts

Version:

A powerful charting and visualization library for browser

29 lines (27 loc) 844 B
define(function (require) { var getBarItemStyle = require('../../model/mixin/makeStyleMapper')( [ ['fill', 'color'], ['stroke', 'borderColor'], ['lineWidth', 'borderWidth'], // Compatitable with 2 ['stroke', 'barBorderColor'], ['lineWidth', 'barBorderWidth'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] ] ); return { getBarItemStyle: function (excludes) { var style = getBarItemStyle.call(this, excludes); if (this.getBorderLineDash) { var lineDash = this.getBorderLineDash(); lineDash && (style.lineDash = lineDash); } return style; } }; });