24 lines
574 B
JavaScript
24 lines
574 B
JavaScript
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日志选项:catchBrushException为true下有效
|
||
* 0 : 不生成debug数据,发布用
|
||
* 1 : 异常抛出,调试用
|
||
* 2 : 控制台输出,调试用
|
||
*/
|
||
|
||
|
||
var debugMode = 0; // retina 屏幕优化
|
||
|
||
var devicePixelRatio = dpr;
|
||
exports.debugMode = debugMode;
|
||
exports.devicePixelRatio = devicePixelRatio; |