Blame view

node_modules/zrender/src/graphic/helper/fixShadow.js 422 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  
  var SHADOW_PROPS = {
      'shadowBlur': 1,
      'shadowOffsetX': 1,
      'shadowOffsetY': 1,
      'textShadowBlur': 1,
      'textShadowOffsetX': 1,
      'textShadowOffsetY': 1,
      'textBoxShadowBlur': 1,
      'textBoxShadowOffsetX': 1,
      'textBoxShadowOffsetY': 1
  };
  
  export default function (ctx, propName, value) {
      if (SHADOW_PROPS.hasOwnProperty(propName)) {
          return value *= ctx.dpr;
      }
      return value;
  }