travel/admin/node_modules/zrender/lib/config.js

24 lines
574 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;