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

Bar add borderType, default border option tweak

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