kdayun-compnent-develop/kdayun-compnent-pack/dist/libs/echarts/zrender/lib/graphic/helper/fixShadow.js

21 lines
414 B
JavaScript
Raw Normal View History

2022-02-19 20:37:32 +08:00
var SHADOW_PROPS = {
'shadowBlur': 1,
'shadowOffsetX': 1,
'shadowOffsetY': 1,
'textShadowBlur': 1,
'textShadowOffsetX': 1,
'textShadowOffsetY': 1,
'textBoxShadowBlur': 1,
'textBoxShadowOffsetX': 1,
'textBoxShadowOffsetY': 1
};
function _default(ctx, propName, value) {
if (SHADOW_PROPS.hasOwnProperty(propName)) {
return value *= ctx.dpr;
}
return value;
}
module.exports = _default;