提交 9d3c01a1 编写于 作者: L lang

Bar add borderType, default border option tweak

上级 26f23329
......@@ -68,17 +68,11 @@ define(function(require) {
normal: {
// color: '各异',
// 柱条边线
barBorderColor: '#fff',
borderColor: '#fff',
// 柱条边线线宽,单位px,默认为1
barBorderWidth: 0
borderWidth: 0
},
emphasis: {
// color: '各异',
// 柱条边线
barBorderColor: '#fff',
// 柱条边线线宽,单位px,默认为1
barBorderWidth: 0
}
emphasis: {}
}
}
});
......
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: require('../../model/mixin/makeStyleMapper')(
[
['fill', 'color'],
['stroke', 'borderColor'],
['lineWidth', 'borderWidth'],
// Compatitable with 2
['stroke', 'barBorderColor'],
['lineWidth', 'barBorderWidth'],
['opacity'],
['shadowBlur'],
['shadowOffsetX'],
['shadowOffsetY'],
['shadowColor']
]
)
getBarItemStyle: function (excludes) {
var style = getBarItemStyle.call(this, excludes);
if (this.getBorderLineDash) {
var lineDash = this.getBorderLineDash();
lineDash && (style.lineDash = lineDash);
}
return style;
}
};
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册