Blame view

node_modules/zrender/src/config.js 514 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  var dpr = 1;
  
  // If in browser environment
  if (typeof window !== 'undefined') {
      dpr = Math.max(window.devicePixelRatio || 1, 1);
  }
  
  /**
   * config默认配置项
   * @exports zrender/config
   * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
   */
  
  /**
   * debug日志选项:catchBrushExceptiontrue下有效
   * 0 : 不生成debug数据,发布用
   * 1 : 异常抛出,调试用
   * 2 : 控制台输出,调试用
   */
  export var debugMode = 0;
  
  // retina 屏幕优化
  export var devicePixelRatio = dpr;