kdayun-compnent-develop/kdayun-compnent-pack/dist/libs/echarts/zrender/lib/config.js

23 lines
490 B
JavaScript
Raw Normal View History

2022-02-19 20:37:32 +08:00
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 log mode:
* 0: Do nothing, for release.
* 1: console.error, for debug.
*/
var debugMode = 0; // retina 屏幕优化
var devicePixelRatio = dpr;
exports.debugMode = debugMode;
exports.devicePixelRatio = devicePixelRatio;